@bookipi/htmlgenerator 1.1.23 → 1.1.25-alpha10

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
@@ -1,3 +1,7 @@
1
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
2
+
3
+ var sanitizeHtml = _interopDefault(require('sanitize-html'));
4
+
1
5
  function _extends() {
2
6
  _extends = Object.assign || function (target) {
3
7
  for (var i = 1; i < arguments.length; i++) {
@@ -1599,18 +1603,29 @@ var numberFormat = {
1599
1603
  }
1600
1604
  };
1601
1605
 
1602
- Number.prototype.formatMoney = function (c, d, t) {
1603
- var n = this,
1604
- c = isNaN(c = Math.abs(c)) ? 2 : c,
1605
- d = d == undefined ? "." : d,
1606
- t = t == undefined ? "," : t,
1607
- s = n < 0 ? "-" : "",
1608
- i = String(parseInt(n = Math.abs(Number(n) || 0).toFixed(c))),
1609
- j = (j = i.length) > 3 ? j % 3 : 0;
1610
- return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
1606
+ var roundNumber = function roundNumber(num, scale) {
1607
+ var multiplier = Math.pow(10, scale);
1608
+ return Math.round((num + Number.EPSILON) * multiplier) / multiplier;
1611
1609
  };
1612
1610
 
1613
- var currencyFormat = function currencyFormat(value, currency, lang, cFormat, rtl, removeDecimal, showLongSymbol) {
1611
+ function formatMoney(num, c, d, t, forcePositive) {
1612
+ if (forcePositive === void 0) {
1613
+ forcePositive = false;
1614
+ }
1615
+
1616
+ return function (c, d, t) {
1617
+ var n = forcePositive ? Math.abs(num) : num,
1618
+ c = isNaN(c = Math.abs(c)) ? 2 : c,
1619
+ d = d == undefined ? "." : d,
1620
+ t = t == undefined ? "," : t,
1621
+ s = n < 0 ? "-" : "",
1622
+ i = String(parseInt(n = Math.abs(Number(n) || 0).toFixed(c))),
1623
+ j = (j = i.length) > 3 ? j % 3 : 0;
1624
+ return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
1625
+ }(c, d, t);
1626
+ }
1627
+
1628
+ var FormatCurrencyDetails = function FormatCurrencyDetails(value, currency, lang, cFormat, rtl, removeDecimal, showLongSymbol) {
1614
1629
  var currencyName = currency || "USD";
1615
1630
 
1616
1631
  if (!currencies[currencyName]) {
@@ -1628,7 +1643,7 @@ var currencyFormat = function currencyFormat(value, currency, lang, cFormat, rtl
1628
1643
  }
1629
1644
 
1630
1645
  var format = numberFormat[numberFormatObj];
1631
- var formattedValue = parseFloat(value).formatMoney(decimal, format.decimal, format.group);
1646
+ var formattedValue = formatMoney(parseFloat(value), decimal, format.decimal, format.group, true);
1632
1647
 
1633
1648
  if (rtl && currencies[currencyName].rtl) {
1634
1649
  formattedValue = formattedValue.split("").reverse().join("");
@@ -1636,12 +1651,106 @@ var currencyFormat = function currencyFormat(value, currency, lang, cFormat, rtl
1636
1651
 
1637
1652
  formattedValue = format.format.replace("###", formattedValue);
1638
1653
  formattedValue = formattedValue.replace("$$", symbol);
1639
- return formattedValue;
1654
+ var currencySplit = formattedValue.split(format.decimal);
1655
+ var format2 = numberFormat[numberFormatObj];
1656
+ var startFromSymbol = format2.format.startsWith("$$");
1657
+ var currencySplitFormatedArr = format2.format.replace("###", "|###|").replace("$$", "|$$$$|").split("|").filter(function (v) {
1658
+ return v !== "";
1659
+ }).map(function (section) {
1660
+ if (section === "###") {
1661
+ var decimalArr = formatMoney(parseFloat(value), decimal, format2.decimal, format2.group, true).split(format.decimal);
1662
+
1663
+ if (decimalArr.length > 0) {
1664
+ decimalArr[0] = {
1665
+ type: "int",
1666
+ val: decimalArr[0]
1667
+ };
1668
+ }
1669
+
1670
+ if (decimalArr.length > 1) {
1671
+ decimalArr.push({
1672
+ type: "decimal",
1673
+ val: decimalArr[1]
1674
+ });
1675
+ decimalArr[1] = {
1676
+ type: "decimalSeperator",
1677
+ val: format.decimal
1678
+ };
1679
+ }
1680
+
1681
+ if (!startFromSymbol) {
1682
+ decimalArr = [{
1683
+ type: "negative",
1684
+ val: value < 0 ? "-" : ""
1685
+ }].concat(decimalArr);
1686
+ }
1687
+
1688
+ if (rtl && currencies[currencyName].rtl) {
1689
+ decimalArr = decimalArr.reverse();
1690
+ }
1691
+
1692
+ return decimalArr;
1693
+ } else if (section === "$$") {
1694
+ if (startFromSymbol) {
1695
+ return [{
1696
+ type: "negative",
1697
+ val: value < 0 ? "-" : ""
1698
+ }, {
1699
+ type: "symbol",
1700
+ val: symbol
1701
+ }];
1702
+ } else {
1703
+ return [{
1704
+ type: "symbol",
1705
+ val: symbol
1706
+ }];
1707
+ }
1708
+ } else {
1709
+ return [{
1710
+ type: "text",
1711
+ val: section
1712
+ }];
1713
+ }
1714
+ }).reduce(function (a, b) {
1715
+ return a.concat(b);
1716
+ });
1717
+ return {
1718
+ currencySplit: currencySplit,
1719
+ currencySplitFormatedArr: currencySplitFormatedArr,
1720
+ format: format,
1721
+ str: (value < 0 ? "-" : "") + formattedValue,
1722
+ symbol: symbol
1723
+ };
1724
+ };
1725
+
1726
+ var currencyFormat = function currencyFormat(value, currency, lang, cFormat, rtl, removeDecimal, showLongSymbol) {
1727
+ return FormatCurrencyDetails(value, currency, lang, cFormat, rtl, removeDecimal, showLongSymbol).str;
1640
1728
  };
1641
1729
 
1730
+ var FormatCurrencyNumber = function FormatCurrencyNumber(value, currency) {
1731
+ var currencyName = currency || "USD";
1732
+
1733
+ if (!currencies[currencyName]) {
1734
+ currencyName = "USD";
1735
+ }
1736
+
1737
+ var decimal = currencies[currencyName].decimal_digits;
1738
+ return parseInt(Math.round(value * Math.pow(10, decimal))) / Math.pow(10, decimal);
1739
+ };
1642
1740
  var FormatCurrency = function FormatCurrency(value, currency, language, cFormat) {
1643
1741
  return currencyFormat(value, currency, language, cFormat);
1644
1742
  };
1743
+ var FormatCurrencyInPdf = function FormatCurrencyInPdf(value, currency, language, cFormat) {
1744
+ return currencyFormat(value, currency, language, cFormat, true);
1745
+ };
1746
+
1747
+ var index = {
1748
+ FormatCurrency: FormatCurrency,
1749
+ FormatCurrencyInPdf: FormatCurrencyInPdf,
1750
+ FormatCurrencyDetails: FormatCurrencyDetails,
1751
+ roundNumber: roundNumber,
1752
+ FormatCurrencyNumber: FormatCurrencyNumber
1753
+ };
1645
1754
 
1646
1755
  var nl2br = function nl2br(str, is_xhtml) {
1647
1756
  if (typeof str === "undefined" || str === null) {
@@ -8899,7 +9008,9 @@ var bootstrapCss = ":root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pin
8899
9008
 
8900
9009
  var fontawesomeCss = "@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.3.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:\"\\f000\"}.fa-music:before{content:\"\\f001\"}.fa-search:before{content:\"\\f002\"}.fa-envelope-o:before{content:\"\\f003\"}.fa-heart:before{content:\"\\f004\"}.fa-star:before{content:\"\\f005\"}.fa-star-o:before{content:\"\\f006\"}.fa-user:before{content:\"\\f007\"}.fa-film:before{content:\"\\f008\"}.fa-th-large:before{content:\"\\f009\"}.fa-th:before{content:\"\\f00a\"}.fa-th-list:before{content:\"\\f00b\"}.fa-check:before{content:\"\\f00c\"}.fa-remove:before,.fa-close:before,.fa-times:before{content:\"\\f00d\"}.fa-search-plus:before{content:\"\\f00e\"}.fa-search-minus:before{content:\"\\f010\"}.fa-power-off:before{content:\"\\f011\"}.fa-signal:before{content:\"\\f012\"}.fa-gear:before,.fa-cog:before{content:\"\\f013\"}.fa-trash-o:before{content:\"\\f014\"}.fa-home:before{content:\"\\f015\"}.fa-file-o:before{content:\"\\f016\"}.fa-clock-o:before{content:\"\\f017\"}.fa-road:before{content:\"\\f018\"}.fa-download:before{content:\"\\f019\"}.fa-arrow-circle-o-down:before{content:\"\\f01a\"}.fa-arrow-circle-o-up:before{content:\"\\f01b\"}.fa-inbox:before{content:\"\\f01c\"}.fa-play-circle-o:before{content:\"\\f01d\"}.fa-rotate-right:before,.fa-repeat:before{content:\"\\f01e\"}.fa-refresh:before{content:\"\\f021\"}.fa-list-alt:before{content:\"\\f022\"}.fa-lock:before{content:\"\\f023\"}.fa-flag:before{content:\"\\f024\"}.fa-headphones:before{content:\"\\f025\"}.fa-volume-off:before{content:\"\\f026\"}.fa-volume-down:before{content:\"\\f027\"}.fa-volume-up:before{content:\"\\f028\"}.fa-qrcode:before{content:\"\\f029\"}.fa-barcode:before{content:\"\\f02a\"}.fa-tag:before{content:\"\\f02b\"}.fa-tags:before{content:\"\\f02c\"}.fa-book:before{content:\"\\f02d\"}.fa-bookmark:before{content:\"\\f02e\"}.fa-print:before{content:\"\\f02f\"}.fa-camera:before{content:\"\\f030\"}.fa-font:before{content:\"\\f031\"}.fa-bold:before{content:\"\\f032\"}.fa-italic:before{content:\"\\f033\"}.fa-text-height:before{content:\"\\f034\"}.fa-text-width:before{content:\"\\f035\"}.fa-align-left:before{content:\"\\f036\"}.fa-align-center:before{content:\"\\f037\"}.fa-align-right:before{content:\"\\f038\"}.fa-align-justify:before{content:\"\\f039\"}.fa-list:before{content:\"\\f03a\"}.fa-dedent:before,.fa-outdent:before{content:\"\\f03b\"}.fa-indent:before{content:\"\\f03c\"}.fa-video-camera:before{content:\"\\f03d\"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:\"\\f03e\"}.fa-pencil:before{content:\"\\f040\"}.fa-map-marker:before{content:\"\\f041\"}.fa-adjust:before{content:\"\\f042\"}.fa-tint:before{content:\"\\f043\"}.fa-edit:before,.fa-pencil-square-o:before{content:\"\\f044\"}.fa-share-square-o:before{content:\"\\f045\"}.fa-check-square-o:before{content:\"\\f046\"}.fa-arrows:before{content:\"\\f047\"}.fa-step-backward:before{content:\"\\f048\"}.fa-fast-backward:before{content:\"\\f049\"}.fa-backward:before{content:\"\\f04a\"}.fa-play:before{content:\"\\f04b\"}.fa-pause:before{content:\"\\f04c\"}.fa-stop:before{content:\"\\f04d\"}.fa-forward:before{content:\"\\f04e\"}.fa-fast-forward:before{content:\"\\f050\"}.fa-step-forward:before{content:\"\\f051\"}.fa-eject:before{content:\"\\f052\"}.fa-chevron-left:before{content:\"\\f053\"}.fa-chevron-right:before{content:\"\\f054\"}.fa-plus-circle:before{content:\"\\f055\"}.fa-minus-circle:before{content:\"\\f056\"}.fa-times-circle:before{content:\"\\f057\"}.fa-check-circle:before{content:\"\\f058\"}.fa-question-circle:before{content:\"\\f059\"}.fa-info-circle:before{content:\"\\f05a\"}.fa-crosshairs:before{content:\"\\f05b\"}.fa-times-circle-o:before{content:\"\\f05c\"}.fa-check-circle-o:before{content:\"\\f05d\"}.fa-ban:before{content:\"\\f05e\"}.fa-arrow-left:before{content:\"\\f060\"}.fa-arrow-right:before{content:\"\\f061\"}.fa-arrow-up:before{content:\"\\f062\"}.fa-arrow-down:before{content:\"\\f063\"}.fa-mail-forward:before,.fa-share:before{content:\"\\f064\"}.fa-expand:before{content:\"\\f065\"}.fa-compress:before{content:\"\\f066\"}.fa-plus:before{content:\"\\f067\"}.fa-minus:before{content:\"\\f068\"}.fa-asterisk:before{content:\"\\f069\"}.fa-exclamation-circle:before{content:\"\\f06a\"}.fa-gift:before{content:\"\\f06b\"}.fa-leaf:before{content:\"\\f06c\"}.fa-fire:before{content:\"\\f06d\"}.fa-eye:before{content:\"\\f06e\"}.fa-eye-slash:before{content:\"\\f070\"}.fa-warning:before,.fa-exclamation-triangle:before{content:\"\\f071\"}.fa-plane:before{content:\"\\f072\"}.fa-calendar:before{content:\"\\f073\"}.fa-random:before{content:\"\\f074\"}.fa-comment:before{content:\"\\f075\"}.fa-magnet:before{content:\"\\f076\"}.fa-chevron-up:before{content:\"\\f077\"}.fa-chevron-down:before{content:\"\\f078\"}.fa-retweet:before{content:\"\\f079\"}.fa-shopping-cart:before{content:\"\\f07a\"}.fa-folder:before{content:\"\\f07b\"}.fa-folder-open:before{content:\"\\f07c\"}.fa-arrows-v:before{content:\"\\f07d\"}.fa-arrows-h:before{content:\"\\f07e\"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:\"\\f080\"}.fa-twitter-square:before{content:\"\\f081\"}.fa-facebook-square:before{content:\"\\f082\"}.fa-camera-retro:before{content:\"\\f083\"}.fa-key:before{content:\"\\f084\"}.fa-gears:before,.fa-cogs:before{content:\"\\f085\"}.fa-comments:before{content:\"\\f086\"}.fa-thumbs-o-up:before{content:\"\\f087\"}.fa-thumbs-o-down:before{content:\"\\f088\"}.fa-star-half:before{content:\"\\f089\"}.fa-heart-o:before{content:\"\\f08a\"}.fa-sign-out:before{content:\"\\f08b\"}.fa-linkedin-square:before{content:\"\\f08c\"}.fa-thumb-tack:before{content:\"\\f08d\"}.fa-external-link:before{content:\"\\f08e\"}.fa-sign-in:before{content:\"\\f090\"}.fa-trophy:before{content:\"\\f091\"}.fa-github-square:before{content:\"\\f092\"}.fa-upload:before{content:\"\\f093\"}.fa-lemon-o:before{content:\"\\f094\"}.fa-phone:before{content:\"\\f095\"}.fa-square-o:before{content:\"\\f096\"}.fa-bookmark-o:before{content:\"\\f097\"}.fa-phone-square:before{content:\"\\f098\"}.fa-twitter:before{content:\"\\f099\"}.fa-facebook-f:before,.fa-facebook:before{content:\"\\f09a\"}.fa-github:before{content:\"\\f09b\"}.fa-unlock:before{content:\"\\f09c\"}.fa-credit-card:before{content:\"\\f09d\"}.fa-rss:before{content:\"\\f09e\"}.fa-hdd-o:before{content:\"\\f0a0\"}.fa-bullhorn:before{content:\"\\f0a1\"}.fa-bell:before{content:\"\\f0f3\"}.fa-certificate:before{content:\"\\f0a3\"}.fa-hand-o-right:before{content:\"\\f0a4\"}.fa-hand-o-left:before{content:\"\\f0a5\"}.fa-hand-o-up:before{content:\"\\f0a6\"}.fa-hand-o-down:before{content:\"\\f0a7\"}.fa-arrow-circle-left:before{content:\"\\f0a8\"}.fa-arrow-circle-right:before{content:\"\\f0a9\"}.fa-arrow-circle-up:before{content:\"\\f0aa\"}.fa-arrow-circle-down:before{content:\"\\f0ab\"}.fa-globe:before{content:\"\\f0ac\"}.fa-wrench:before{content:\"\\f0ad\"}.fa-tasks:before{content:\"\\f0ae\"}.fa-filter:before{content:\"\\f0b0\"}.fa-briefcase:before{content:\"\\f0b1\"}.fa-arrows-alt:before{content:\"\\f0b2\"}.fa-group:before,.fa-users:before{content:\"\\f0c0\"}.fa-chain:before,.fa-link:before{content:\"\\f0c1\"}.fa-cloud:before{content:\"\\f0c2\"}.fa-flask:before{content:\"\\f0c3\"}.fa-cut:before,.fa-scissors:before{content:\"\\f0c4\"}.fa-copy:before,.fa-files-o:before{content:\"\\f0c5\"}.fa-paperclip:before{content:\"\\f0c6\"}.fa-save:before,.fa-floppy-o:before{content:\"\\f0c7\"}.fa-square:before{content:\"\\f0c8\"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:\"\\f0c9\"}.fa-list-ul:before{content:\"\\f0ca\"}.fa-list-ol:before{content:\"\\f0cb\"}.fa-strikethrough:before{content:\"\\f0cc\"}.fa-underline:before{content:\"\\f0cd\"}.fa-table:before{content:\"\\f0ce\"}.fa-magic:before{content:\"\\f0d0\"}.fa-truck:before{content:\"\\f0d1\"}.fa-pinterest:before{content:\"\\f0d2\"}.fa-pinterest-square:before{content:\"\\f0d3\"}.fa-google-plus-square:before{content:\"\\f0d4\"}.fa-google-plus:before{content:\"\\f0d5\"}.fa-money:before{content:\"\\f0d6\"}.fa-caret-down:before{content:\"\\f0d7\"}.fa-caret-up:before{content:\"\\f0d8\"}.fa-caret-left:before{content:\"\\f0d9\"}.fa-caret-right:before{content:\"\\f0da\"}.fa-columns:before{content:\"\\f0db\"}.fa-unsorted:before,.fa-sort:before{content:\"\\f0dc\"}.fa-sort-down:before,.fa-sort-desc:before{content:\"\\f0dd\"}.fa-sort-up:before,.fa-sort-asc:before{content:\"\\f0de\"}.fa-envelope:before{content:\"\\f0e0\"}.fa-linkedin:before{content:\"\\f0e1\"}.fa-rotate-left:before,.fa-undo:before{content:\"\\f0e2\"}.fa-legal:before,.fa-gavel:before{content:\"\\f0e3\"}.fa-dashboard:before,.fa-tachometer:before{content:\"\\f0e4\"}.fa-comment-o:before{content:\"\\f0e5\"}.fa-comments-o:before{content:\"\\f0e6\"}.fa-flash:before,.fa-bolt:before{content:\"\\f0e7\"}.fa-sitemap:before{content:\"\\f0e8\"}.fa-umbrella:before{content:\"\\f0e9\"}.fa-paste:before,.fa-clipboard:before{content:\"\\f0ea\"}.fa-lightbulb-o:before{content:\"\\f0eb\"}.fa-exchange:before{content:\"\\f0ec\"}.fa-cloud-download:before{content:\"\\f0ed\"}.fa-cloud-upload:before{content:\"\\f0ee\"}.fa-user-md:before{content:\"\\f0f0\"}.fa-stethoscope:before{content:\"\\f0f1\"}.fa-suitcase:before{content:\"\\f0f2\"}.fa-bell-o:before{content:\"\\f0a2\"}.fa-coffee:before{content:\"\\f0f4\"}.fa-cutlery:before{content:\"\\f0f5\"}.fa-file-text-o:before{content:\"\\f0f6\"}.fa-building-o:before{content:\"\\f0f7\"}.fa-hospital-o:before{content:\"\\f0f8\"}.fa-ambulance:before{content:\"\\f0f9\"}.fa-medkit:before{content:\"\\f0fa\"}.fa-fighter-jet:before{content:\"\\f0fb\"}.fa-beer:before{content:\"\\f0fc\"}.fa-h-square:before{content:\"\\f0fd\"}.fa-plus-square:before{content:\"\\f0fe\"}.fa-angle-double-left:before{content:\"\\f100\"}.fa-angle-double-right:before{content:\"\\f101\"}.fa-angle-double-up:before{content:\"\\f102\"}.fa-angle-double-down:before{content:\"\\f103\"}.fa-angle-left:before{content:\"\\f104\"}.fa-angle-right:before{content:\"\\f105\"}.fa-angle-up:before{content:\"\\f106\"}.fa-angle-down:before{content:\"\\f107\"}.fa-desktop:before{content:\"\\f108\"}.fa-laptop:before{content:\"\\f109\"}.fa-tablet:before{content:\"\\f10a\"}.fa-mobile-phone:before,.fa-mobile:before{content:\"\\f10b\"}.fa-circle-o:before{content:\"\\f10c\"}.fa-quote-left:before{content:\"\\f10d\"}.fa-quote-right:before{content:\"\\f10e\"}.fa-spinner:before{content:\"\\f110\"}.fa-circle:before{content:\"\\f111\"}.fa-mail-reply:before,.fa-reply:before{content:\"\\f112\"}.fa-github-alt:before{content:\"\\f113\"}.fa-folder-o:before{content:\"\\f114\"}.fa-folder-open-o:before{content:\"\\f115\"}.fa-smile-o:before{content:\"\\f118\"}.fa-frown-o:before{content:\"\\f119\"}.fa-meh-o:before{content:\"\\f11a\"}.fa-gamepad:before{content:\"\\f11b\"}.fa-keyboard-o:before{content:\"\\f11c\"}.fa-flag-o:before{content:\"\\f11d\"}.fa-flag-checkered:before{content:\"\\f11e\"}.fa-terminal:before{content:\"\\f120\"}.fa-code:before{content:\"\\f121\"}.fa-mail-reply-all:before,.fa-reply-all:before{content:\"\\f122\"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:\"\\f123\"}.fa-location-arrow:before{content:\"\\f124\"}.fa-crop:before{content:\"\\f125\"}.fa-code-fork:before{content:\"\\f126\"}.fa-unlink:before,.fa-chain-broken:before{content:\"\\f127\"}.fa-question:before{content:\"\\f128\"}.fa-info:before{content:\"\\f129\"}.fa-exclamation:before{content:\"\\f12a\"}.fa-superscript:before{content:\"\\f12b\"}.fa-subscript:before{content:\"\\f12c\"}.fa-eraser:before{content:\"\\f12d\"}.fa-puzzle-piece:before{content:\"\\f12e\"}.fa-microphone:before{content:\"\\f130\"}.fa-microphone-slash:before{content:\"\\f131\"}.fa-shield:before{content:\"\\f132\"}.fa-calendar-o:before{content:\"\\f133\"}.fa-fire-extinguisher:before{content:\"\\f134\"}.fa-rocket:before{content:\"\\f135\"}.fa-maxcdn:before{content:\"\\f136\"}.fa-chevron-circle-left:before{content:\"\\f137\"}.fa-chevron-circle-right:before{content:\"\\f138\"}.fa-chevron-circle-up:before{content:\"\\f139\"}.fa-chevron-circle-down:before{content:\"\\f13a\"}.fa-html5:before{content:\"\\f13b\"}.fa-css3:before{content:\"\\f13c\"}.fa-anchor:before{content:\"\\f13d\"}.fa-unlock-alt:before{content:\"\\f13e\"}.fa-bullseye:before{content:\"\\f140\"}.fa-ellipsis-h:before{content:\"\\f141\"}.fa-ellipsis-v:before{content:\"\\f142\"}.fa-rss-square:before{content:\"\\f143\"}.fa-play-circle:before{content:\"\\f144\"}.fa-ticket:before{content:\"\\f145\"}.fa-minus-square:before{content:\"\\f146\"}.fa-minus-square-o:before{content:\"\\f147\"}.fa-level-up:before{content:\"\\f148\"}.fa-level-down:before{content:\"\\f149\"}.fa-check-square:before{content:\"\\f14a\"}.fa-pencil-square:before{content:\"\\f14b\"}.fa-external-link-square:before{content:\"\\f14c\"}.fa-share-square:before{content:\"\\f14d\"}.fa-compass:before{content:\"\\f14e\"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:\"\\f150\"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:\"\\f151\"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:\"\\f152\"}.fa-euro:before,.fa-eur:before{content:\"\\f153\"}.fa-gbp:before{content:\"\\f154\"}.fa-dollar:before,.fa-usd:before{content:\"\\f155\"}.fa-rupee:before,.fa-inr:before{content:\"\\f156\"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:\"\\f157\"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:\"\\f158\"}.fa-won:before,.fa-krw:before{content:\"\\f159\"}.fa-bitcoin:before,.fa-btc:before{content:\"\\f15a\"}.fa-file:before{content:\"\\f15b\"}.fa-file-text:before{content:\"\\f15c\"}.fa-sort-alpha-asc:before{content:\"\\f15d\"}.fa-sort-alpha-desc:before{content:\"\\f15e\"}.fa-sort-amount-asc:before{content:\"\\f160\"}.fa-sort-amount-desc:before{content:\"\\f161\"}.fa-sort-numeric-asc:before{content:\"\\f162\"}.fa-sort-numeric-desc:before{content:\"\\f163\"}.fa-thumbs-up:before{content:\"\\f164\"}.fa-thumbs-down:before{content:\"\\f165\"}.fa-youtube-square:before{content:\"\\f166\"}.fa-youtube:before{content:\"\\f167\"}.fa-xing:before{content:\"\\f168\"}.fa-xing-square:before{content:\"\\f169\"}.fa-youtube-play:before{content:\"\\f16a\"}.fa-dropbox:before{content:\"\\f16b\"}.fa-stack-overflow:before{content:\"\\f16c\"}.fa-instagram:before{content:\"\\f16d\"}.fa-flickr:before{content:\"\\f16e\"}.fa-adn:before{content:\"\\f170\"}.fa-bitbucket:before{content:\"\\f171\"}.fa-bitbucket-square:before{content:\"\\f172\"}.fa-tumblr:before{content:\"\\f173\"}.fa-tumblr-square:before{content:\"\\f174\"}.fa-long-arrow-down:before{content:\"\\f175\"}.fa-long-arrow-up:before{content:\"\\f176\"}.fa-long-arrow-left:before{content:\"\\f177\"}.fa-long-arrow-right:before{content:\"\\f178\"}.fa-apple:before{content:\"\\f179\"}.fa-windows:before{content:\"\\f17a\"}.fa-android:before{content:\"\\f17b\"}.fa-linux:before{content:\"\\f17c\"}.fa-dribbble:before{content:\"\\f17d\"}.fa-skype:before{content:\"\\f17e\"}.fa-foursquare:before{content:\"\\f180\"}.fa-trello:before{content:\"\\f181\"}.fa-female:before{content:\"\\f182\"}.fa-male:before{content:\"\\f183\"}.fa-gittip:before,.fa-gratipay:before{content:\"\\f184\"}.fa-sun-o:before{content:\"\\f185\"}.fa-moon-o:before{content:\"\\f186\"}.fa-archive:before{content:\"\\f187\"}.fa-bug:before{content:\"\\f188\"}.fa-vk:before{content:\"\\f189\"}.fa-weibo:before{content:\"\\f18a\"}.fa-renren:before{content:\"\\f18b\"}.fa-pagelines:before{content:\"\\f18c\"}.fa-stack-exchange:before{content:\"\\f18d\"}.fa-arrow-circle-o-right:before{content:\"\\f18e\"}.fa-arrow-circle-o-left:before{content:\"\\f190\"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:\"\\f191\"}.fa-dot-circle-o:before{content:\"\\f192\"}.fa-wheelchair:before{content:\"\\f193\"}.fa-vimeo-square:before{content:\"\\f194\"}.fa-turkish-lira:before,.fa-try:before{content:\"\\f195\"}.fa-plus-square-o:before{content:\"\\f196\"}.fa-space-shuttle:before{content:\"\\f197\"}.fa-slack:before{content:\"\\f198\"}.fa-envelope-square:before{content:\"\\f199\"}.fa-wordpress:before{content:\"\\f19a\"}.fa-openid:before{content:\"\\f19b\"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:\"\\f19c\"}.fa-mortar-board:before,.fa-graduation-cap:before{content:\"\\f19d\"}.fa-yahoo:before{content:\"\\f19e\"}.fa-google:before{content:\"\\f1a0\"}.fa-reddit:before{content:\"\\f1a1\"}.fa-reddit-square:before{content:\"\\f1a2\"}.fa-stumbleupon-circle:before{content:\"\\f1a3\"}.fa-stumbleupon:before{content:\"\\f1a4\"}.fa-delicious:before{content:\"\\f1a5\"}.fa-digg:before{content:\"\\f1a6\"}.fa-pied-piper:before{content:\"\\f1a7\"}.fa-pied-piper-alt:before{content:\"\\f1a8\"}.fa-drupal:before{content:\"\\f1a9\"}.fa-joomla:before{content:\"\\f1aa\"}.fa-language:before{content:\"\\f1ab\"}.fa-fax:before{content:\"\\f1ac\"}.fa-building:before{content:\"\\f1ad\"}.fa-child:before{content:\"\\f1ae\"}.fa-paw:before{content:\"\\f1b0\"}.fa-spoon:before{content:\"\\f1b1\"}.fa-cube:before{content:\"\\f1b2\"}.fa-cubes:before{content:\"\\f1b3\"}.fa-behance:before{content:\"\\f1b4\"}.fa-behance-square:before{content:\"\\f1b5\"}.fa-steam:before{content:\"\\f1b6\"}.fa-steam-square:before{content:\"\\f1b7\"}.fa-recycle:before{content:\"\\f1b8\"}.fa-automobile:before,.fa-car:before{content:\"\\f1b9\"}.fa-cab:before,.fa-taxi:before{content:\"\\f1ba\"}.fa-tree:before{content:\"\\f1bb\"}.fa-spotify:before{content:\"\\f1bc\"}.fa-deviantart:before{content:\"\\f1bd\"}.fa-soundcloud:before{content:\"\\f1be\"}.fa-database:before{content:\"\\f1c0\"}.fa-file-pdf-o:before{content:\"\\f1c1\"}.fa-file-word-o:before{content:\"\\f1c2\"}.fa-file-excel-o:before{content:\"\\f1c3\"}.fa-file-powerpoint-o:before{content:\"\\f1c4\"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:\"\\f1c5\"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:\"\\f1c6\"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:\"\\f1c7\"}.fa-file-movie-o:before,.fa-file-video-o:before{content:\"\\f1c8\"}.fa-file-code-o:before{content:\"\\f1c9\"}.fa-vine:before{content:\"\\f1ca\"}.fa-codepen:before{content:\"\\f1cb\"}.fa-jsfiddle:before{content:\"\\f1cc\"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:\"\\f1cd\"}.fa-circle-o-notch:before{content:\"\\f1ce\"}.fa-ra:before,.fa-rebel:before{content:\"\\f1d0\"}.fa-ge:before,.fa-empire:before{content:\"\\f1d1\"}.fa-git-square:before{content:\"\\f1d2\"}.fa-git:before{content:\"\\f1d3\"}.fa-hacker-news:before{content:\"\\f1d4\"}.fa-tencent-weibo:before{content:\"\\f1d5\"}.fa-qq:before{content:\"\\f1d6\"}.fa-wechat:before,.fa-weixin:before{content:\"\\f1d7\"}.fa-send:before,.fa-paper-plane:before{content:\"\\f1d8\"}.fa-send-o:before,.fa-paper-plane-o:before{content:\"\\f1d9\"}.fa-history:before{content:\"\\f1da\"}.fa-genderless:before,.fa-circle-thin:before{content:\"\\f1db\"}.fa-header:before{content:\"\\f1dc\"}.fa-paragraph:before{content:\"\\f1dd\"}.fa-sliders:before{content:\"\\f1de\"}.fa-share-alt:before{content:\"\\f1e0\"}.fa-share-alt-square:before{content:\"\\f1e1\"}.fa-bomb:before{content:\"\\f1e2\"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:\"\\f1e3\"}.fa-tty:before{content:\"\\f1e4\"}.fa-binoculars:before{content:\"\\f1e5\"}.fa-plug:before{content:\"\\f1e6\"}.fa-slideshare:before{content:\"\\f1e7\"}.fa-twitch:before{content:\"\\f1e8\"}.fa-yelp:before{content:\"\\f1e9\"}.fa-newspaper-o:before{content:\"\\f1ea\"}.fa-wifi:before{content:\"\\f1eb\"}.fa-calculator:before{content:\"\\f1ec\"}.fa-paypal:before{content:\"\\f1ed\"}.fa-google-wallet:before{content:\"\\f1ee\"}.fa-cc-visa:before{content:\"\\f1f0\"}.fa-cc-mastercard:before{content:\"\\f1f1\"}.fa-cc-discover:before{content:\"\\f1f2\"}.fa-cc-amex:before{content:\"\\f1f3\"}.fa-cc-paypal:before{content:\"\\f1f4\"}.fa-cc-stripe:before{content:\"\\f1f5\"}.fa-bell-slash:before{content:\"\\f1f6\"}.fa-bell-slash-o:before{content:\"\\f1f7\"}.fa-trash:before{content:\"\\f1f8\"}.fa-copyright:before{content:\"\\f1f9\"}.fa-at:before{content:\"\\f1fa\"}.fa-eyedropper:before{content:\"\\f1fb\"}.fa-paint-brush:before{content:\"\\f1fc\"}.fa-birthday-cake:before{content:\"\\f1fd\"}.fa-area-chart:before{content:\"\\f1fe\"}.fa-pie-chart:before{content:\"\\f200\"}.fa-line-chart:before{content:\"\\f201\"}.fa-lastfm:before{content:\"\\f202\"}.fa-lastfm-square:before{content:\"\\f203\"}.fa-toggle-off:before{content:\"\\f204\"}.fa-toggle-on:before{content:\"\\f205\"}.fa-bicycle:before{content:\"\\f206\"}.fa-bus:before{content:\"\\f207\"}.fa-ioxhost:before{content:\"\\f208\"}.fa-angellist:before{content:\"\\f209\"}.fa-cc:before{content:\"\\f20a\"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:\"\\f20b\"}.fa-meanpath:before{content:\"\\f20c\"}.fa-buysellads:before{content:\"\\f20d\"}.fa-connectdevelop:before{content:\"\\f20e\"}.fa-dashcube:before{content:\"\\f210\"}.fa-forumbee:before{content:\"\\f211\"}.fa-leanpub:before{content:\"\\f212\"}.fa-sellsy:before{content:\"\\f213\"}.fa-shirtsinbulk:before{content:\"\\f214\"}.fa-simplybuilt:before{content:\"\\f215\"}.fa-skyatlas:before{content:\"\\f216\"}.fa-cart-plus:before{content:\"\\f217\"}.fa-cart-arrow-down:before{content:\"\\f218\"}.fa-diamond:before{content:\"\\f219\"}.fa-ship:before{content:\"\\f21a\"}.fa-user-secret:before{content:\"\\f21b\"}.fa-motorcycle:before{content:\"\\f21c\"}.fa-street-view:before{content:\"\\f21d\"}.fa-heartbeat:before{content:\"\\f21e\"}.fa-venus:before{content:\"\\f221\"}.fa-mars:before{content:\"\\f222\"}.fa-mercury:before{content:\"\\f223\"}.fa-transgender:before{content:\"\\f224\"}.fa-transgender-alt:before{content:\"\\f225\"}.fa-venus-double:before{content:\"\\f226\"}.fa-mars-double:before{content:\"\\f227\"}.fa-venus-mars:before{content:\"\\f228\"}.fa-mars-stroke:before{content:\"\\f229\"}.fa-mars-stroke-v:before{content:\"\\f22a\"}.fa-mars-stroke-h:before{content:\"\\f22b\"}.fa-neuter:before{content:\"\\f22c\"}.fa-facebook-official:before{content:\"\\f230\"}.fa-pinterest-p:before{content:\"\\f231\"}.fa-whatsapp:before{content:\"\\f232\"}.fa-server:before{content:\"\\f233\"}.fa-user-plus:before{content:\"\\f234\"}.fa-user-times:before{content:\"\\f235\"}.fa-hotel:before,.fa-bed:before{content:\"\\f236\"}.fa-viacoin:before{content:\"\\f237\"}.fa-train:before{content:\"\\f238\"}.fa-subway:before{content:\"\\f239\"}.fa-medium:before{content:\"\\f23a\"}";
8901
9010
 
8902
- var defaultLang = {
9011
+ var _terms$privacy$firstn;
9012
+
9013
+ var en = (_terms$privacy$firstn = {
8903
9014
  terms: "Terms and conditions",
8904
9015
  privacy: "Privacy Policy",
8905
9016
  firstname: "First Name",
@@ -9281,10 +9392,26 @@ var defaultLang = {
9281
9392
  search_item: "Search item",
9282
9393
  impose_surcharge: function impose_surcharge(surcharge) {
9283
9394
  return "A surcharge of " + surcharge + "% will be applied.";
9284
- }
9285
- };
9395
+ },
9396
+ payment_in_progress: "Payment in progress",
9397
+ service_agreement: "Services",
9398
+ details_line_1: 'The services are offered on the below terms and is entered into by the parties named below (the "Parties").',
9399
+ details_line_2: function details_line_2(x) {
9400
+ return "This offer is valid from the date of issue and will expire at the close of business (" + x + "). Acceptance will be in the form of accepting and signing this proposal.";
9401
+ },
9402
+ supplier_details: "Supplier Details",
9403
+ customer_details: "Customer Details",
9404
+ effective_date: "Dated:"
9405
+ }, _terms$privacy$firstn["start_date"] = "Start Date:", _terms$privacy$firstn["end_date"] = "End Date:", _terms$privacy$firstn.supplier_empty = "No supplier added yet.", _terms$privacy$firstn.customer_empty = "No customer added yet.", _terms$privacy$firstn.details_line_3 = "Please accept this proposal and terms of service. This creates a legally binding contract between us. At any time if you have any questions please contact us on the details above. These terms will be effective throughout the period of our engagement and may only be changed by the Parties' agreement in writing.", _terms$privacy$firstn.kind_regards = "Kind regards,", _terms$privacy$firstn.services_title = "Services", _terms$privacy$firstn["total"] = "Total:", _terms$privacy$firstn.items_empty = "No services added yet.", _terms$privacy$firstn.agreement_title = "Terms and Conditions", _terms$privacy$firstn);
9406
+
9407
+ var FormatCurrency$1 = index.FormatCurrency;
9286
9408
 
9287
- var sanitizeHtml = require("sanitize-html");
9409
+ Object.fromEntries = Object.fromEntries || function (arr) {
9410
+ return arr.reduce(function (acc, curr) {
9411
+ acc[curr[0]] = curr[1];
9412
+ return acc;
9413
+ }, {});
9414
+ };
9288
9415
 
9289
9416
  function sanitize(obj) {
9290
9417
  var object = obj;
@@ -9311,7 +9438,72 @@ function sanitize(obj) {
9311
9438
  var val = objarr[1];
9312
9439
 
9313
9440
  if (typeof val === "string" || val instanceof String) {
9314
- return [objarr[0], sanitizeHtml(objarr[1])];
9441
+ return [objarr[0], sanitizeHtml(objarr[1], {
9442
+ allowedAttributes: {
9443
+ "*": ["style"]
9444
+ },
9445
+ allowedStyles: {
9446
+ "*": {
9447
+ color: [/^.*$/],
9448
+ direction: [/^.*$/],
9449
+ "letter-spacing": [/^.*$/],
9450
+ "line-height": [/^.*$/],
9451
+ "text-align": [/^.*$/],
9452
+ "text-decoration": [/^.*$/],
9453
+ "text-indent": [/^.*$/],
9454
+ "text-shadow": [/^.*$/],
9455
+ "text-transform": [/^.*$/],
9456
+ "text-overflow": [/^.*$/],
9457
+ "vertical-align": [/^.*$/],
9458
+ "word-spacing": [/^.*$/],
9459
+ font: [/^.*$/],
9460
+ "font-family": [/^.*$/],
9461
+ "font-size": [/^\d.*$/],
9462
+ "font-style": [/^.*$/],
9463
+ "font-variant": [/^.*$/],
9464
+ "font-weight": [/^.*$/],
9465
+ "list-style-type": [/^.*$/],
9466
+ height: [/^.*$/],
9467
+ width: [/^.*$/],
9468
+ margin: [/^.*$/],
9469
+ "margin-top": [/^.*$/],
9470
+ "margin-right": [/^.*$/],
9471
+ "margin-bottom": [/^.*$/],
9472
+ "margin-left": [/^.*$/],
9473
+ padding: [/^.*$/],
9474
+ "padding-top": [/^.*$/],
9475
+ "padding-right": [/^.*$/],
9476
+ "padding-bottom": [/^.*$/],
9477
+ "padding-left": [/^.*$/],
9478
+ border: [/^.*$/],
9479
+ "border-color": [/^.*$/],
9480
+ "border-style": [/^.*$/],
9481
+ "border-width": [/^.*$/],
9482
+ "border-radius": [/^.*$/],
9483
+ "border-bottom": [/^.*$/],
9484
+ "border-bottom-color": [/^.*$/],
9485
+ "border-bottom-style": [/^.*$/],
9486
+ "border-bottom-width": [/^.*$/],
9487
+ "border-left": [/^.*$/],
9488
+ "border-left-color": [/^.*$/],
9489
+ "border-left-style": [/^.*$/],
9490
+ "border-left-width": [/^.*$/],
9491
+ "border-right": [/^.*$/],
9492
+ "border-right-color": [/^.*$/],
9493
+ "border-right-style": [/^.*$/],
9494
+ "border-right-width": [/^.*$/],
9495
+ "border-top": [/^.*$/],
9496
+ "border-top-color": [/^.*$/],
9497
+ "border-top-style": [/^.*$/],
9498
+ "border-top-width": [/^.*$/],
9499
+ outline: [/^.*$/],
9500
+ "outline-color": [/^.*$/],
9501
+ "outline-offset": [/^.*$/],
9502
+ "outline-style": [/^.*$/],
9503
+ "outline-width": [/^.*$/]
9504
+ }
9505
+ }
9506
+ })];
9315
9507
  } else if (typeof val === "object") {
9316
9508
  return [objarr[0], sanitize(objarr[1])];
9317
9509
  } else {
@@ -9325,7 +9517,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
9325
9517
 
9326
9518
  var invoice = _ref.invoice,
9327
9519
  _ref$lang = _ref.lang,
9328
- lang = _ref$lang === void 0 ? defaultLang : _ref$lang,
9520
+ lang = _ref$lang === void 0 ? en : _ref$lang,
9329
9521
  _ref$companyLogoBase = _ref.companyLogoBase,
9330
9522
  companyLogoBase = _ref$companyLogoBase === void 0 ? "https://s3.amazonaws.com/bookipi/" : _ref$companyLogoBase,
9331
9523
  _ref$isDeposit = _ref.isDeposit,
@@ -9337,7 +9529,9 @@ var invoiceHtmlWithDetails = (function (_ref) {
9337
9529
  _ref$removeHtmlStanda = _ref.removeHtmlStandardDom,
9338
9530
  removeHtmlStandardDom = _ref$removeHtmlStanda === void 0 ? false : _ref$removeHtmlStanda,
9339
9531
  _ref$bookipayLink = _ref.bookipayLink,
9340
- bookipayLink = _ref$bookipayLink === void 0 ? null : _ref$bookipayLink;
9532
+ bookipayLink = _ref$bookipayLink === void 0 ? null : _ref$bookipayLink,
9533
+ _ref$hidePayBtnInScre = _ref.hidePayBtnInScreen,
9534
+ hidePayBtnInScreen = _ref$hidePayBtnInScre === void 0 ? false : _ref$hidePayBtnInScre;
9341
9535
  invoice = sanitize(invoice);
9342
9536
  var company = invoice.company || {};
9343
9537
  var surcharge = company.sc && company.sr || 0;
@@ -9346,7 +9540,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
9346
9540
  var attachments = invoice.attachments || [];
9347
9541
  var customerSignBase64 = invoice.customerSignBase64;
9348
9542
  var signatureBase64 = invoice.signatureBase64;
9349
- var logoPath = invoice.logoPath || company.lg && "" + companyLogoBase + company._id + "/logo.jpg?" + new Date().getTime();
9543
+ var logoPath = company.lg === false ? null : invoice.logoPath || company.lg && "" + companyLogoBase + company._id + "/logo.jpg?" + new Date().getTime();
9350
9544
  var documentName = null;
9351
9545
 
9352
9546
  if (company.doc && company.doc[document.ty] && company.doc[document.ty].n) {
@@ -9447,7 +9641,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
9447
9641
  if (document.it) {
9448
9642
  for (var _iterator2 = _createForOfIteratorHelperLoose(document.it), _step2; !(_step2 = _iterator2()).done;) {
9449
9643
  var _item = _step2.value;
9450
- itemsContainer = itemsContainer + ("<tr>\n <td>\n <span class=\"text-inverse\"><strong>" + (_item.n || "") + "</strong></span>\n <div>" + (nl2br(_item.dsc) || "") + "</div>\n <div class=\"d-block d-md-none mt-1\">\n " + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? FormatCurrency(_item.p, company.cr, company.la, company.cf) + " ✕ " + (_item.q || "0") : "") + "\n " + (discountOnItem && (_item.p || _item.p == 0) && _item.dc ? "" + (_item.dc > 0 ? " - " : " + ") + FormatCurrency(Math.abs(_item.dc), company.cr, company.la, company.cf) + " (" + (company.r_dc ? company.r_dc : lang["discount"]) + ")" : "") + "\n </div>\n </td>\n <td class=\"text-center d-none d-md-table-cell\">" + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? _item.q : "") + "</td>\n <td class=\"text-right d-none d-md-table-cell\">\n " + (_item.p || _item.p == 0 ? FormatCurrency(_item.p, company.cr, company.la, company.cf) : "") + "\n </td>\n" + (discountOnItem ? "<td class=\"text-right d-none d-md-table-cell\">" + ((_item.p || _item.p == 0) && _item.dc ? FormatCurrency(_item.dc, company.cr, company.la, company.cf) : "") + "</td>" : "") + "\n<td class=\"text-right\">" + (_item.p || _item.p == 0 ? FormatCurrency(_item.t, company.cr, company.la, company.cf) : "") + "</td>\n</tr>");
9644
+ itemsContainer = itemsContainer + ("<tr>\n <td>\n <span class=\"text-inverse\"><strong>" + (_item.n || "") + "</strong></span>\n <div>" + (nl2br(_item.dsc) || "") + "</div>\n <div class=\"d-block d-md-none mt-1\">\n " + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? FormatCurrency$1(_item.p, company.cr, company.la, company.cf) + " ✕ " + (_item.q || "0") : "") + "\n " + (discountOnItem && (_item.p || _item.p == 0) && _item.dc ? "" + (_item.dc > 0 ? " - " : " + ") + FormatCurrency$1(Math.abs(_item.dc), company.cr, company.la, company.cf) + " (" + (company.r_dc ? company.r_dc : lang["discount"]) + ")" : "") + "\n </div>\n </td>\n <td class=\"text-center d-none d-md-table-cell\">" + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? _item.q : "") + "</td>\n <td class=\"text-right d-none d-md-table-cell\">\n " + (_item.p || _item.p == 0 ? FormatCurrency$1(_item.p, company.cr, company.la, company.cf) : "") + "\n </td>\n" + (discountOnItem ? "<td class=\"text-right d-none d-md-table-cell\">" + ((_item.p || _item.p == 0) && _item.dc ? FormatCurrency$1(_item.dc, company.cr, company.la, company.cf) : "") + "</td>" : "") + "\n<td class=\"text-right\">" + (_item.p || _item.p == 0 ? FormatCurrency$1(_item.t, company.cr, company.la, company.cf) : "") + "</td>\n</tr>");
9451
9645
  }
9452
9646
  }
9453
9647
 
@@ -9481,7 +9675,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
9481
9675
  if (document.pm) {
9482
9676
  for (var _iterator3 = _createForOfIteratorHelperLoose(document.pm), _step3; !(_step3 = _iterator3()).done;) {
9483
9677
  var payment = _step3.value;
9484
- paymentContainer = paymentContainer + ("<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (lang.payment_on ? lang.payment_on(formatDate(payment.d), payment.b) : payment_on(formatDate(payment.d), payment.b)) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency(payment.a, company.cr, company.la, company.cf) + "</td>\n </tr>");
9678
+ paymentContainer = paymentContainer + ("<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (lang.payment_on ? lang.payment_on(formatDate(payment.d), payment.b) : payment_on(formatDate(payment.d), payment.b)) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$1(payment.a, company.cr, company.la, company.cf) + "</td>\n </tr>");
9485
9679
  }
9486
9680
  }
9487
9681
 
@@ -9494,12 +9688,12 @@ var invoiceHtmlWithDetails = (function (_ref) {
9494
9688
  }
9495
9689
  }
9496
9690
 
9497
- var signatureContainer = document.sd ? "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + (company ? company.c : "") + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (signatureBase64 ? "<img src=\"" + signatureBase64 + "\" style=\"width:220px;margin-top:20px;\" onerror=\"this.style.display='none'\" />" : "") + "\n </div>\n <div style=\"font-size:16px\">" + (document.sd ? formatDate(document.sd) : "") + "</div>\n </div>" : "";
9498
- var clientSignature = document.cs || customerSignBase64 ? "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + (customer ? customer.c : "") + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (customerSignBase64 ? "<img src=\"" + customerSignBase64 + "\" style=\"width:220px;margin-top:20px;\" onerror=\"this.style.display='none'\" />" : "") + "\n </div>\n <div style=\"font-size:16px\">" + (customerSignBase64 ? formatDate(new Date()) : "( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)") + "</div>\n </div>" : "";
9499
- var numOfRowsPaymentInstruction = (1 + (document.dc ? 1 : 0) + (document.sp && !document.sntx ? 1 : 0) + (document.tx != 0 ? 1 : 0) + (document.ttx && document.tx2 != 0 ? 1 : 0) + (document.sp && document.sntx ? 1 : 0) + (document.ti ? 1 : 0) + (document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? 1 : 0) + (document.sca ? 1 : 0) + (((_document$pm = document.pm) === null || _document$pm === void 0 ? void 0 : _document$pm.length) || 0)).toString();
9691
+ var signatureContainer = document.sd ? "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + (company ? company.c : "") + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (signatureBase64 ? "<img src=\"" + signatureBase64 + "\" class=\"signature-img\" onerror=\"this.style.display='none'\" />" : "") + "\n </div>\n <div style=\"font-size:16px\">" + (document.sd ? formatDate(document.sd) : "") + "</div>\n </div>" : "";
9692
+ var clientSignature = document.cs || customerSignBase64 ? "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + (customer ? customer.c : "") + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (customerSignBase64 ? "<img src=\"" + customerSignBase64 + "\" class=\"signature-img\" onerror=\"this.style.display='none'\" />" : "") + "\n </div>\n <div style=\"font-size:16px\">" + (customerSignBase64 ? formatDate(new Date()) : "( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)") + "</div>\n </div>" : "";
9693
+ var numOfRowsPaymentInstruction = (1 + (document.dc ? 1 : 0) + (document.sp && !document.sntx ? 1 : 0) + (document.tx != 0 ? 1 : 0) + (document.ttx && document.tx2 != 0 ? 1 : 0) + (document.sp && document.sntx ? 1 : 0) + (document.ti ? 1 : 0) + (document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? 1 : 0) + (document.sca ? 1 : 0) + (((_document$pm = document.pm) === null || _document$pm === void 0 ? void 0 : _document$pm.length) || 0) + (document.hangingAmount && document.hangingAmount > 0 ? 1 : 0)).toString();
9500
9694
  var paymentInstructionDetails = "\n " + (paymentOn ? "<h2 style=\"margin-top: 0; font-size: 18px; font-weight: 700;\">" + (company.r_pi ? company.r_pi : lang["payment_instruction"]) + "</h2>" : "") + "\n " + (paymentOn && company.p1 ? company.p1 + "<br>" : "") + "\n " + (paymentOn && company.p2 ? company.p2 + "<br>" : "") + "\n " + (paymentOn && company.p3 ? company.p3 + "<br>" : "") + "\n ";
9501
- var bookipayLinkComponent = bookipayLink && document.ty === 1 && document.ad >= 0.01 ? "<div class=\"invoice-price-left-container\" style=\"margin-right:60px\">\n <div style=\"margin-bottom: 7px;\">\n <img class=\"card-image\" alt=\"visa\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABQCAYAAADRAH3kAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJ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qZOn2Un6NR4PHUUJYGBchlv4cUbMqKC8bfvzeVJv5NCtfh43QLc/9ccWEkaxU2dHgngSX0TIJeybZALJHnjNSr2vNnueKPInzb7Shh1KjkWx4bhlexUxOgDPLbdlQc9mBiBV7JnQK+SD3ozaNCKoOGGXC4f0m4gwzCw2+1+bwZxdXvsc9mHfs9V/0jDYHcDh10T+HXB5XzX37EEb5HsGxUBhjr6ByMIGWg4f/R4d0Pj6O99hiofG5ImcLgxnGrYwRrGn+vull6PGelvB4sYHRAJIBJAhEgAESIBRIgEECESQIRIABEiAUSIBBAhEkCESAARIgFEiAQQIRJAxGgnQJ9oijGHPi4BTor2GHM4CfRLwmIBFAIIFe0yJmAAkKlUKmskAKBSqWoAZAI4DMAk2mfUwuT0cabT544IIGLs4t8DABFd1eolwC4WAAAAAElFTkSuQmCC\">\n </div>\n <a href=\"" + bookipayLink + "\" class=\"btn bookipay-payment-pay-btn\">\n " + (lang["pay_online_now"] || "PAY ONLINE NOW") + "\n </a>\n " + (surcharge ? "<div class=\"surcharge\">" + (lang["impose_surcharge"] ? lang["impose_surcharge"](surcharge) : "A surcharge of " + surcharge + "% will be applied.") + "</div>" : "") + "\n </div>" : "";
9502
- var html = (!removeHtmlStandardDom ? '<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8">\n <title>Invoice</title>' : "") + "\n " + (isOffline ? "<style>" + bootstrapCss + "</style><style>" + fontawesomeCss + "</style>" : " <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">\n <link href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\" rel=\"stylesheet\">") + "\n " + (!removeHtmlStandardDom ? "</head>" : "") + "\n <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;removeHtmlStandardDom\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n \n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n \n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n \n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n \n .invoice-price .invoice-price-right span {\n display: block;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n \n .page-not-break {\n page-break-before: auto; \n page-break-after: auto; \n page-break-inside: avoid;\n reak-before: auto; \n break-after: auto; \n break-inside: avoid;\n }\n\n @media print {\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n /*width: 21cm; */\n /*margin: 0; */\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n /* .invoice-body {\n padding:10;\n } */\n #invoice {\n " + (isFromReactnative ? "zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;" : "") + "\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n \n }\n \n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n } \n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n margin-top:10px;\n max-width:28cm;\n zoom: 0.8;\n box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);\n margin-right:auto;margin-left:auto;\n background: white;\n }\n }\n\n @media (min-width: 575.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .invoice-price-right{\n width: 290px !important;\n display: block !important;\n }\n .item-last {\n width: 30%\n }\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n /*border-top: 1px solid #dee2e6;*/\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n .surcharge {\n margin-top: 3px;\n font-size: 12px;\n color: #999;\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n </style>\n " + (!removeHtmlStandardDom ? "<body>" : "") + "\n <div id=\"invoice\" class=\"print\">\n <div class=\"invoice-body\">\n <!-- begin invoice-company -->\n <div class=\"row\">\n <div class=\"col-sm-12 col-md-6 mb-3 mb-md-0\" style=\"padding-top:10px\">\n " + logoContainer + "\n </div>\n <div class=\"col-sm-12 col-md-6 text-md-right\">\n <h1>" + documentName + "</h1>\n <div class=\"text-inverse mb-1\" style=\"font-size: 20px;\">\n <strong>" + company.c + "</strong>\n </div>\n <address class=\"m-t-5 m-b-5\">\n <div class=\"mb-2\">\n " + (companyAddress.address1 ? "<div>" + companyAddress.address1 + "</div>" : "") + "\n " + (companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : "") + "\n " + (companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : "") + "\n " + (companyAddress.city || companyAddress.state || companyAddress.zip ? "<div>" + ((companyAddress.city ? companyAddress.city + " " : "") + (companyAddress.state ? companyAddress.state + " " : "") + (companyAddress.zip ? companyAddress.zip + " " : "")) + "</div>" : "") + "\n " + (companyAddress.country ? "<div>" + companyAddress.country + "</div>" : "") + "\n </div>\n " + (company.ai ? "<div>" + company.ai + "</div>" : "") + "\n " + (company.ph ? "<div>" + company.ph + "</div>" : "") + "\n " + (company.de ? "<div>" + company.de + "</div>" : "") + "\n " + (company.tfn ? "<div>" + ((company.bn ? company.bn : "Tax no.") + " : " + company.tfn) + "</div>" : "") + "\n </address>\n </div>\n </div>\n </div>\n <!-- end invoice-company -->\n <!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <strong>" + (company.r_bt ? company.r_bt : lang["bill_to"]) + "</strong>\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\">" + (customer ? customer.c : "") + "</small>\n </div>\n <address class=\"m-t-5 m-b-5\">\n " + (customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : "") + "\n " + (customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : "") + "\n " + (customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : "") + "\n " + (customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + " " : "") + (customerAddress.state ? customerAddress.state + " " : "") + (customerAddress.zip ? customerAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerAddress.country ? "<div>" + customerAddress.country + "</div>" : "") + "\n " + (customer && customer.tfn ? "<div>" + (customer.tfn ? (company.bn || "Tax no.") + " : " + customer.tfn : "") + "</div>" : "") + "\n " + (customer && customer.ph ? "<div>" + customer.ph + "</div>" : "") + "\n " + (customer && customer.ai ? "<div>" + customer.ai + "</div>" : "") + "\n </address>\n\n " + (shippingAddressExists ? "<strong stryle=\"margin-top:10px\">" + (company.r_st ? company.r_st : lang.ship_to) + "</strong>" : "") + "\n " + (shippingAddressExists ? "\n <address class=\"m-t-5 m-b-5\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : "") + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : "") + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : "") + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + " " : "") + (customerShippingAddress.state ? customerShippingAddress.state + " " : "") + (customerShippingAddress.zip ? customerShippingAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : "") + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : "") + "\n </address>\n " : "") + "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + documentName + " #</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + (document.no ? document.no : "") + "</div>\n </div>\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_d ? company.r_d : lang["date"]) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + formatDate(document.d) + "</div>\n </div>\n " + (document.ty == 1 && !document.rd ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_dd ? company.r_dd : lang["due_date"]) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : "") + "\n " + (document.pon ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_po ? company.r_po : lang["po_number"]) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : "") + "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->\n <!-- begin invoice-content -->\n <div class=\"invoice-content\">\n <div class=\"table-responsive\">\n <table class=\"table table-invoice\">\n <thead>\n <tr class=\"table table-invoice\">\n <th class=\"text-left\">" + (company.r_it ? company.r_it : lang["item"]) + "</th>\n <th class=\"text-center d-none d-md-table-cell\" width=\"15%\">" + (document.um ? document.um : company.r_q ? company.r_q : lang["quantity"]) + "</th>\n <th class=\"text-right d-none d-md-table-cell\" width=\"15%\">" + (company.r_p ? company.r_p : lang["price"]) + "</th>\n " + (discountOnItem ? "<th class=\"text-right d-none d-md-table-cell\" width=\"15%\">" + (company.r_dc ? company.r_dc : lang["discount"]) + "</th>" : "") + "\n <th class=\"text-right item-last\">" + (company.r_a ? company.r_a : lang["amount"]) + "</th>\n </tr>\n </thead>\n <tbody>\n " + itemsContainer + "\n </tbody>\n </table>\n </div>\n \n <hr />\n <div class=\"row\">\n <div class=\"col-12\">\n <table class=\"table table-borderless table-small\">\n <tbody>\n <tr>\n <td class=\"d-none d-md-table-cell\" rowspan=\"" + numOfRowsPaymentInstruction + "\">\n " + (paymentOn ? paymentInstructionDetails : "") + "\n </td>\n <td class=\"text-md-right\" width=\"22%\">" + (company.r_sb ? company.r_sb : lang["subtotal"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency(document.st, company.cr, company.la, company.cf) + "</td>\n </tr>\n " + (document.dc ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + ((company.r_dc ? company.r_dc : lang["discount"]) + (document.dcpo && document.dcp ? " (" + document.dcp + "%)" : "")) + "</td>\n <td class=\"text-right\" width=\"22%\">" + ("(" + FormatCurrency(document.dc, company.cr, company.la, company.cf) + ")") + "</td>\n </tr>" : "") + "\n " + (document.sp && !document.sntx ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.tx != 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (taxName1 + taxIncluded1 + "(" + document.tp + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t1d ? "(" : "") + FormatCurrency(document.tx, company.cr, company.la, company.cf) + (document.t1d ? ")" : "")) + "</td>\n </tr>" : "") + "\n " + (document.ttx && document.tx2 != 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (taxName2 + taxIncluded2 + "(" + document.tp2 + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t2d ? "(" : "") + FormatCurrency(document.tx2, company.cr, company.la, company.cf) + (document.t2d ? ")" : "")) + "</td>\n </tr>" : "") + "\n " + (document.sp && document.sntx ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.ti && !document.t1d && !document.t2d ? "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"border-top: 1px solid #ddd\">" + (company.r_n ? company.r_n : lang["net"]) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #ddd\">" + FormatCurrency(document.tt - (document.tx || 0) - (document.tx2 || 0), company.cr, company.la, company.cd) + "</td>\n </tr>" : "") + "\n " + (document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"border-bottom: 1px solid #ddd\">" + (company.r_tt ? company.r_tt : lang["total"]) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-bottom: 1px solid #ddd\">" + FormatCurrency(document.tt ? document.tt : 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.sca ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + lang["credit_card_surcharge"] + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency(document.sca, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.ty == 1 && document.pma && document.pm ? paymentContainer : "") + "\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- end invoice-content -->\n\n\n <!-- begin invoice price -->\n <div class=\"invoice-price page-not-break\">\n <div class=\"invoice-price-left text-right\">\n <!-- begin bookipay payment -->\n <div class=\"d-none d-md-block\">\n " + bookipayLinkComponent + "\n </div>\n <!-- end bookipay payment -->\n </div>\n <div class=\"invoice-price-right\">\n <small>" + (document.ty == 1 ? company.r_ad ? company.r_ad : lang["amount_due"] : company.r_gt ? company.r_gt : lang["grand_total"]) + "</small>\n <span class=\"f-w-600\">" + (isDeposit ? FormatCurrency(document.depositAmount, company.cr, company.la, company.cf) : FormatCurrency(document.ad, company.cr, company.la, company.cf)) + "</span>\n \n </div>\n </div>\n <!-- end invoice price -->\n\n " + (paymentOn || bookipayLinkComponent ? "<div class=\"invoice-body\">\n <div class=\"d-block d-md-none\">\n " + (paymentOn ? paymentInstructionDetails : "") + "\n " + (bookipayLinkComponent ? "<div class=\"mt-4\">" + bookipayLinkComponent + "</div>" : "") + "\n </div>\n </div>" : "") + "\n\n <div class=\"invoice-body\">\n\n <!-- begin invoice-note -->\n " + (document.noteHtml ? "<div class=\"mt-1\">\n " + document.noteHtml + "\n </div>" : (document.nt ? "<div class=\"mt-1\">\n <h2>" + (company.r_nt ? company.r_nt : lang["note"]) + "</h2>\n " + nl2br(document.nt) + "\n </div>" : "") + "\n " + (document.tc ? "<div class=\"mt-1\">\n <h2>" + (company.r_tc ? company.r_tc : lang["terms"]) + "</h2>\n " + nl2br(document.tc) + "\n </div>" : "")) + "\n <!-- end invoice-note -->\n \n <!--- begin company signature -->\n <!-- begin invoice-signature -->\n " + (document.cs || document.sd ? "\n <div class=\"seperate-line\"></div>\n <div>" + (company.r_bs || lang["by_signing"] || "") + "</div>\n <div class=\"row mt-1\">\n " + (signatureContainer || "") + "\n " + (clientSignature || "") + "\n </div>" : "") + "\n <!-- end invoice-signature-->\n\n <!-- begin invoice attachments -->\n\n " + (attachments && attachments.length > 0 ? "<div style=\"text-align: center\">\n " + attachmentContainer + "\n </div>" : "") + "\n <!-- end invoice attachment -->\n </div>\n </div>\n\n" + (!removeHtmlStandardDom ? "</body></html>" : "") + "\n";
9695
+ var bookipayLinkComponent = bookipayLink && document.ty === 1 && document.ad >= 0.01 ? "<div class=\"invoice-price-left-container " + (hidePayBtnInScreen ? "noInScreen" : "") + "\" style=\"margin-right:60px\">\n <div style=\"margin-bottom: 7px;\">\n <img class=\"card-image\" alt=\"visa\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABQCAYAAADRAH3kAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJ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j4+JnCvPS1ZiVmQy7x4+Pa83/k89f/4ivDUhKPAfQT2jcDpHUb4y2PlYAGGn/X5uH4PD6cbD6Hg6OnrhJ0yQhRaOA2xeAzeVDrKfpv7OuEBz38NI0V5zi0ER51JlAwgnAqFNiQe40XL8/xBxTZNBgw1z2s61vmsUdIPwU8JgAohn0+DHo8U/IqXZW5SPI89h/Wdz+31pTgE0L2GcMf/9VB85GXS1ksnlgc/lEayKSEAAArJ2ljymA1yvzIePYV+WyawDjV++4fAGYGKXieDw7LwMfvboQchmHL5qtolVBjgN2PVWInFT25WI3zEMCATxMBx0xBT6lY4BY6SAAqBUybF2Zy+z3BYJot7rjbgEmmweT/WcpxUYtDmyZh5Pbl4RSNVbdf32ZIebiA+yK4KPcBhLSASpL9KhknKGrKkkXXJYVTp/Dx0yjwmsA5dk6tL23BqebLLhydwD1XQ50RjmCjOMwM0OLVcVp2LRgOjbMNSIp7IzjgHsE3pGg6Ht9s6og7udcOGOa6LGBR3hSaOz/BdA/Dhp1jz6HDwGeh0LOQa9Vxrze//8dlUrFkQAkjEql4ujeQIlDAiABECQAggRAkAAIEgBBAiBIAAQJgCABECQAggRAkAAIEgBBAiBIAAQJgCABECQAggRATC0BuGkqJIc7XACf03xIjs+B8RtDigDUADDSvEgCK4AKlUrVIQMAtVrdAaACwHEALpqfKYtrdI0rRtf8oQMQ0uW/AwDKTWuC0dXeDwAAAABJRU5ErkJggg==\">\n <img class=\"card-image\" alt=\"master\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABQCAYAAADRAH3kAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAiz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Mu+D3kTEckwJMPIzKLevwR0RXz50yRW/Mp5AhYLvGMFKOCtEKkUsKPKL7kROeq2tFm9HtEfQLvzdrRlSxwf16iWxN/UUEf706P80u+mVfmppa8nrL8Zt38H/xMPI/zOLcBKcRGBtc+hXP+s1d/PMdPjR054EDnyhh7h+/S8JlF3/Qjjw4/O6jjeRV9Du+/ONDSJKscc/4DbJOrzWWCiv5iuNnHbUSqXu23iegRicRL//Qr6Cy+d440iFyCHXO02ijwth237TpKvb7RbxVZ+Ye7AahU7HvWSi/DM/crptYptWA/NWxEtOz+3VWxHTE92GTJ/CnLADOhSAt4Tcc4QoBt0HfNADebhRuTRFmQkglBVyAwgCvJQioZapeJno1l09DAiWgfxY2DYzaLVAGTkIn0DrbX9HGoWfW4SwEXvygO4cPMALlwCuHAJ4MIlgAuXAC5cArhwCeDCJYALlwAuXAK4cIoAEVcUfQ6RrgRY58qjz2EddJaEFQPbgH6uXPoEmoGpmqZVKwA+n68amAq8BIRd+fRahG0dT7V1blkAF30X/z8AqeyW9W6AnAYAAAAASUVORK5CYII=\">\n <img class=\"card-image\" alt=\"amex\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABQCAYAAADRAH3kAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRi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il4dPoE3GgzosloQYfZhjaTFW/mV6Cqw5H0fVp5C8uTIrE5Kw6b5sTiq1YjWnos6DTb0NxjwfbcMrQ4tRNnq1pHJwGSwrQek8BDXzTg+eP9o/mlJck4W9mKwsYO9NkpPLQ/DwWb7+Ndkxapd0sCfWH36lm8JLDPTiFt52lUtveiobsPn9W3s9p/wCFUSfdDqCKVEJg+Xofp43X90ay7D3+8WOaMVnbeYy09Ug9E9l9/pamLVSb584rcN5IA2y+WCcrCbBSNPRzZ9KY5U/A/35qB1vlWZO06i5pOE5p7LFhxIN/na2m3uywbIJfi4eQo7Mh3qKGbeyw8Atw0mnnE5GJtegyig9TY7nQyF60mK/6XI5qdqFOjpKVbUB7e0N3Hy0uiderRSYC/X6v3WWZVSjR2rcxgp34nn16E+bvOocNsw9XmLqw/UuTRmdz1c9cPM3hT5JAkCblcjiBVf5mB6xMGkxVvehB9pkfpoZBKPJ7nzmI2zZmC4qZOn2Un6NR4PHUUJYGBchlv4cUbMqKC8bfvzeVJv5NCtfh43QLc/9ccWEkaxU2dHgngSX0TIJeybZALJHnjNSr2vNnueKPInzb7Shh1KjkWx4bhlexUxOgDPLbdlQc9mBiBV7JnQK+SD3ozaNCKoOGGXC4f0m4gwzCw2+1+bwZxdXvsc9mHfs9V/0jDYHcDh10T+HXB5XzX37EEb5HsGxUBhjr6ByMIGWg4f/R4d0Pj6O99hiofG5ImcLgxnGrYwRrGn+vull6PGelvB4sYHRAJIBJAhEgAESIBRIgEECESQIRIABEiAUSIBBAhEkCESAARIgFEiAQQIRJAxGgnQJ9oijGHPi4BTor2GHM4CfRLwmIBFAIIFe0yJmAAkKlUKmskAKBSqWoAZAI4DMAk2mfUwuT0cabT544IIGLs4t8DABFd1eolwC4WAAAAAElFTkSuQmCC\">\n </div>\n <a href=\"" + bookipayLink + "\" class=\"btn bookipay-payment-pay-btn\">\n " + (lang["pay_online_now"] || "PAY ONLINE NOW") + "\n </a>\n " + (surcharge ? "<div class=\"surcharge\">" + (lang["impose_surcharge"] ? lang["impose_surcharge"](surcharge) : "A surcharge of " + surcharge + "% will be applied.") + "</div>" : "") + "\n </div>" : "";
9696
+ var html = (!removeHtmlStandardDom ? '<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8">\n <title>Invoice</title>' : "") + "\n " + (isOffline ? "<style>" + bootstrapCss + "</style><style>" + fontawesomeCss + "</style>" : " <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">\n <link href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\" rel=\"stylesheet\">") + "\n " + (!removeHtmlStandardDom ? "</head>" : "") + "\n <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n body {\n font-size: 18px;removeHtmlStandardDom\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n .invoice-body {\n background: #fff;\n padding: 30px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 15px\n }\n\n .invoice-price{\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n \n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n // padding: 20px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-row{\n display: table;\n float: left;\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n padding: 28px 12px 16px;\n }\n\n .bookipay-payment-pay-btn {\n right: 0;\n width: 220px;\n text-align: center;\n border-radius: 5px;\n font-size: 17px;\n font-weight: 700;\n background: #067EED;\n border: none;\n color: white;\n padding-top: 10px;\n padding-bottom: 10px;\n text-transform: uppercase;\n }\n\n .bookipay-payment-pay-btn:hover {\n background: #0571d6;\n color: #fff;\n }\n \n .invoice-price .invoice-price-right .bookipay-payment-with-span {\n font-size: 12px;\n margin-top: 13px;\n margin-bottom: 10px;\n font-size: 12px;\n width: 140px;\n right: 0;\n float: right;\n text-align:center;\n }\n \n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n \n .invoice-price .invoice-price-right span {\n display: block;\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n \n .page-not-break {\n page-break-before: auto; \n page-break-after: auto; \n page-break-inside: avoid;\n reak-before: auto; \n break-after: auto; \n break-inside: avoid;\n }\n\n @media print {\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n width:50%;\n float:left\n }\n .mb-md-0 {margin-bottom:0;}\n .text-md-right{text-align: right;}\n .d-md-table-cell { display: table-cell!important; }\n .d-md-block { display: block !important; }\n .d-md-none {display: none !important;}\n @page {\n size: A4;\n margin: 0.66cm 0.66cm 0.66cm 0.66cm;\n }\n body, page, html {\n /*width: 21cm; */\n /*margin: 0; */\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n\n .no-print {\n display: none;\n }\n /* .invoice-body {\n padding:10;\n } */\n #invoice {\n " + (isFromReactnative ? "zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;" : "") + "\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n \n }\n \n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n } \n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n margin-top:10px;\n max-width:28cm;\n zoom: 0.8;\n box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);\n margin-right:auto;margin-left:auto;\n background: white;\n }\n .noInScreen{\n display: none;\n }\n }\n\n @media (min-width: 575.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n\n .item-last {\n width: 15%;\n }\n\n @media only screen and (max-width: 575.98px) {\n .invoice-price-right{\n width: 290px !important;\n display: block !important;\n }\n .item-last {\n width: 30%\n }\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n /*border-top: 1px solid #dee2e6;*/\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n .surcharge {\n margin-top: 3px;\n font-size: 12px;\n color: #999;\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n .card-image {width:45px;}\n .seperate-line{\n border-top: 1px solid #dee2e6;\n margin-top: 20px;\n margin-bottom: 10px;\n }\n \n .signature-img{\n width:220px;\n margin-top:20px;\n max-height: -moz-calc(100% - 20px);\n max-height: -webkit-calc(100% - 20px);\n max-height: -o-cal(100% - 20px);\n max-height: calc(100% - 20px);\n object-fit: contain;\n }\n \n </style>\n " + (!removeHtmlStandardDom ? "<body>" : "") + "\n <div id=\"invoice\" class=\"print\">\n <div class=\"invoice-body\">\n <!-- begin invoice-company -->\n <div class=\"row\">\n <div class=\"col-sm-12 col-md-6 mb-3 mb-md-0\" style=\"padding-top:10px\">\n " + logoContainer + "\n </div>\n <div class=\"col-sm-12 col-md-6 text-md-right\">\n <h1>" + documentName + "</h1>\n <div class=\"text-inverse mb-1\" style=\"font-size: 20px;\">\n <strong>" + company.c + "</strong>\n </div>\n <address class=\"m-t-5 m-b-5\">\n <div class=\"mb-2\">\n " + (companyAddress.address1 ? "<div>" + companyAddress.address1 + "</div>" : "") + "\n " + (companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : "") + "\n " + (companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : "") + "\n " + (companyAddress.city || companyAddress.state || companyAddress.zip ? "<div>" + ((companyAddress.city ? companyAddress.city + " " : "") + (companyAddress.state ? companyAddress.state + " " : "") + (companyAddress.zip ? companyAddress.zip + " " : "")) + "</div>" : "") + "\n " + (companyAddress.country ? "<div>" + companyAddress.country + "</div>" : "") + "\n </div>\n " + (company.ai ? "<div>" + company.ai + "</div>" : "") + "\n " + (company.ph ? "<div>" + company.ph + "</div>" : "") + "\n " + (company.de ? "<div>" + company.de + "</div>" : "") + "\n " + (company.tfn ? "<div>" + ((company.bn ? company.bn : "Tax no.") + " : " + company.tfn) + "</div>" : "") + "\n </address>\n </div>\n </div>\n </div>\n <!-- end invoice-company -->\n <!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-12 col-md-6\">\n <strong>" + (company.r_bt ? company.r_bt : lang["bill_to"]) + "</strong>\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\">" + (customer ? customer.c : "") + "</small>\n </div>\n <address class=\"m-t-5 m-b-5\">\n " + (customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : "") + "\n " + (customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : "") + "\n " + (customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : "") + "\n " + (customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + " " : "") + (customerAddress.state ? customerAddress.state + " " : "") + (customerAddress.zip ? customerAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerAddress.country ? "<div>" + customerAddress.country + "</div>" : "") + "\n " + (customer && customer.tfn ? "<div>" + (customer.tfn ? (company.bn || "Tax no.") + " : " + customer.tfn : "") + "</div>" : "") + "\n " + (customer && customer.ph ? "<div>" + customer.ph + "</div>" : "") + "\n " + (customer && customer.ai ? "<div>" + customer.ai + "</div>" : "") + "\n </address>\n\n " + (shippingAddressExists ? "<strong stryle=\"margin-top:10px\">" + (company.r_st ? company.r_st : lang.ship_to) + "</strong>" : "") + "\n " + (shippingAddressExists ? "\n <address class=\"m-t-5 m-b-5\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : "") + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : "") + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : "") + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + " " : "") + (customerShippingAddress.state ? customerShippingAddress.state + " " : "") + (customerShippingAddress.zip ? customerShippingAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : "") + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : "") + "\n </address>\n " : "") + "\n </div>\n\n <div class=\"invoice-date col-sm-12 col-md-6\">\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + documentName + " #</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + (document.no ? document.no : "") + "</div>\n </div>\n " + (document.proposal && document.proposal.no ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>Proposal #</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + document.proposal.no + "\n </div>\n </div>" : "") + "\n <div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_d ? company.r_d : lang["date"]) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + formatDate(document.d) + "</div>\n </div>\n " + (document.ty == 1 && !document.rd ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_dd ? company.r_dd : lang["due_date"]) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : "") + "\n " + (document.pon ? "<div class=\"row text-md-right\">\n <div class=\"col-6 col-md\">\n <strong>" + (company.r_po ? company.r_po : lang["po_number"]) + "</strong>\n </div>\n <div class=\"col-6 col-md invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : "") + "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->\n <!-- begin invoice-content -->\n <div class=\"invoice-content\">\n <div class=\"table-responsive\">\n <table class=\"table table-invoice\">\n <thead>\n <tr class=\"table table-invoice\">\n <th class=\"text-left\">" + (company.r_it ? company.r_it : lang["item"]) + "</th>\n <th class=\"text-center d-none d-md-table-cell\" width=\"15%\">" + (document.um ? document.um : company.r_q ? company.r_q : lang["quantity"]) + "</th>\n <th class=\"text-right d-none d-md-table-cell\" width=\"15%\">" + (company.r_p ? company.r_p : lang["price"]) + "</th>\n " + (discountOnItem ? "<th class=\"text-right d-none d-md-table-cell\" width=\"15%\">" + (company.r_dc ? company.r_dc : lang["discount"]) + "</th>" : "") + "\n <th class=\"text-right item-last\">" + (company.r_a ? company.r_a : lang["amount"]) + "</th>\n </tr>\n </thead>\n <tbody>\n " + itemsContainer + "\n </tbody>\n </table>\n </div>\n \n <hr />\n <div class=\"row\">\n <div class=\"col-12\">\n <table class=\"table table-borderless table-small\">\n <tbody>\n <tr>\n <td class=\"d-none d-md-table-cell\" rowspan=\"" + numOfRowsPaymentInstruction + "\">\n " + (paymentOn ? paymentInstructionDetails : "") + "\n </td>\n <td class=\"text-md-right\" width=\"22%\">" + (company.r_sb ? company.r_sb : lang["subtotal"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$1(document.st, company.cr, company.la, company.cf) + "</td>\n </tr>\n " + (document.dc ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + ((company.r_dc ? company.r_dc : lang["discount"]) + (document.dcpo && document.dcp ? " (" + document.dcp + "%)" : "")) + "</td>\n <td class=\"text-right\" width=\"22%\">" + ("(" + FormatCurrency$1(document.dc, company.cr, company.la, company.cf) + ")") + "</td>\n </tr>" : "") + "\n " + (document.sp && !document.sntx ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$1(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.tx != 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (taxName1 + taxIncluded1 + "(" + document.tp + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t1d ? "(" : "") + FormatCurrency$1(document.tx, company.cr, company.la, company.cf) + (document.t1d ? ")" : "")) + "</td>\n </tr>" : "") + "\n " + (document.ttx && document.tx2 != 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (taxName2 + taxIncluded2 + "(" + document.tp2 + "%)") + "</td>\n <td class=\"text-right\" width=\"22%\">" + ((document.t2d ? "(" : "") + FormatCurrency$1(document.tx2, company.cr, company.la, company.cf) + (document.t2d ? ")" : "")) + "</td>\n </tr>" : "") + "\n " + (document.sp && document.sntx ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$1(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.ti && !document.t1d && !document.t2d ? "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"border-top: 1px solid #ddd\">" + (company.r_n ? company.r_n : lang["net"]) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #ddd\">" + FormatCurrency$1(document.tt - (document.tx || 0) - (document.tx2 || 0), company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"border-bottom: 1px solid #ddd\">" + (company.r_tt ? company.r_tt : lang["total"]) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-bottom: 1px solid #ddd\">" + FormatCurrency$1(document.tt ? document.tt : 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.sca ? "<tr>\n <td class=\"text-md-right\" width=\"22%\">" + lang["credit_card_surcharge"] + "</td>\n <td class=\"text-right\" width=\"22%\">" + FormatCurrency$1(document.sca, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.hangingAmount && document.hangingAmount > 0 ? "<tr>\n <td class=\"text-md-right\" width=\"22%\" style=\"border-top: 1px solid #ddd\">" + (company.payment_in_progress ? company.payment_in_progress : lang.payment_in_progress) + "</td>\n <td class=\"text-right\" width=\"22%\" style=\"border-top: 1px solid #ddd\">" + FormatCurrency$1(document.hangingAmount || 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.ty == 1 && document.pma && document.pm ? paymentContainer : "") + "\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- end invoice-content -->\n\n\n <!-- begin invoice price -->\n <div class=\"invoice-price page-not-break\">\n <div class=\"invoice-price-left text-right\">\n <!-- begin bookipay payment -->\n <div class=\"d-none d-md-block\">\n " + bookipayLinkComponent + "\n </div>\n <!-- end bookipay payment -->\n </div>\n <div class=\"invoice-price-right\">\n <small>" + (document.ty == 1 ? company.r_ad ? company.r_ad : lang["amount_due"] : company.r_gt ? company.r_gt : lang["grand_total"]) + "</small>\n <span class=\"f-w-600\">" + (isDeposit ? FormatCurrency$1(document.depositAmount, company.cr, company.la, company.cf) : FormatCurrency$1(document.ad - (document.hangingAmount || 0), company.cr, company.la, company.cf)) + "</span>\n \n </div>\n </div>\n <!-- end invoice price -->\n\n " + (paymentOn || bookipayLinkComponent ? "<div class=\"invoice-body\">\n <div class=\"d-block d-md-none\">\n " + (paymentOn ? paymentInstructionDetails : "") + "\n " + (bookipayLinkComponent ? "<div class=\"mt-4\">" + bookipayLinkComponent + "</div>" : "") + "\n </div>\n </div>" : "") + "\n\n <div class=\"invoice-body\">\n\n <!-- begin invoice-note -->\n " + (document.noteHtml ? "<div class=\"mt-1\">\n " + document.noteHtml + "\n </div>" : (document.nt ? "<div class=\"mt-1\">\n <h2>" + (company.r_nt ? company.r_nt : lang["note"]) + "</h2>\n " + nl2br(document.nt) + "\n </div>" : "") + "\n " + (document.tc ? "<div class=\"mt-1\">\n <h2>" + (company.r_tc ? company.r_tc : lang["terms"]) + "</h2>\n " + nl2br(document.tc) + "\n </div>" : "")) + "\n <!-- end invoice-note -->\n \n <!--- begin company signature -->\n <!-- begin invoice-signature -->\n " + (document.cs || document.sd ? "\n <div class=\"seperate-line\"></div>\n <div>" + (company.r_bs || lang["by_signing"] || "") + "</div>\n <div class=\"row mt-1\">\n " + (signatureContainer || "") + "\n " + (clientSignature || "") + "\n </div>" : "") + "\n <!-- end invoice-signature-->\n\n <!-- begin invoice attachments -->\n\n " + (attachments && attachments.length > 0 ? "<div style=\"text-align: center\">\n " + attachmentContainer + "\n </div>" : "") + "\n <!-- end invoice attachment -->\n </div>\n </div>\n\n" + (!removeHtmlStandardDom ? "</body></html>" : "") + "\n";
9503
9697
  return {
9504
9698
  html: html,
9505
9699
  timeZone: timeZone,
@@ -9511,7 +9705,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
9511
9705
  var invoiceHtml = (function (_ref) {
9512
9706
  var invoice = _ref.invoice,
9513
9707
  _ref$lang = _ref.lang,
9514
- lang = _ref$lang === void 0 ? defaultLang : _ref$lang,
9708
+ lang = _ref$lang === void 0 ? en : _ref$lang,
9515
9709
  referral = _ref.referral,
9516
9710
  _ref$companyLogoBase = _ref.companyLogoBase,
9517
9711
  companyLogoBase = _ref$companyLogoBase === void 0 ? "https://s3.amazonaws.com/bookipi/" : _ref$companyLogoBase,
@@ -9524,7 +9718,9 @@ var invoiceHtml = (function (_ref) {
9524
9718
  _ref$removeHtmlStanda = _ref.removeHtmlStandardDom,
9525
9719
  removeHtmlStandardDom = _ref$removeHtmlStanda === void 0 ? false : _ref$removeHtmlStanda,
9526
9720
  _ref$bookipayLink = _ref.bookipayLink,
9527
- bookipayLink = _ref$bookipayLink === void 0 ? null : _ref$bookipayLink;
9721
+ bookipayLink = _ref$bookipayLink === void 0 ? null : _ref$bookipayLink,
9722
+ _ref$hidePayBtnInScre = _ref.hidePayBtnInScreen,
9723
+ hidePayBtnInScreen = _ref$hidePayBtnInScre === void 0 ? false : _ref$hidePayBtnInScre;
9528
9724
  return invoiceHtmlWithDetails({
9529
9725
  invoice: invoice,
9530
9726
  lang: lang,
@@ -9534,7 +9730,8 @@ var invoiceHtml = (function (_ref) {
9534
9730
  isOffline: isOffline,
9535
9731
  isFromReactnative: isFromReactnative,
9536
9732
  removeHtmlStandardDom: removeHtmlStandardDom,
9537
- bookipayLink: bookipayLink
9733
+ bookipayLink: bookipayLink,
9734
+ hidePayBtnInScreen: hidePayBtnInScreen
9538
9735
  }).html;
9539
9736
  });
9540
9737
 
@@ -9572,7 +9769,7 @@ var CustomerCompat = function CustomerCompat(customer) {
9572
9769
 
9573
9770
  var InvoiceCompat = function InvoiceCompat(doc) {
9574
9771
  if (doc == null) return null;
9575
- var mapping = new Map([["address1", "a1"], ["address2", "a2"], ["address3", "a3"], ["customer", ["cu", CustomerCompat]], ["items", ["it", ItemCompat]], ["taxInclusive", "ti"], ["taxPercentage", "tp"], ["taxDeductible", "t1d"], ["taxInclusive", "ti"], ["taxName", "tn"], ["enableTax2", "ttx"], ["taxName2", "tn2"], ["taxPercentage2", "tp2"], ["taxDeductible2", "t2d"], ["tax1_total", "tx"], ["tax2_total", "tx2"], ["taxDeductibleInc2", "t2di"], ["shippingCost", "sp"], ["shippingNonTax", "sntx"], ["total", "tt"], ["subtotal", "st"], ["amountDue", "ad"], ["discount", "dc"], ["discountOption", "dco"], ["discountPercentage", "dcp"], ["discountPercentageOption", "dcpo"], ["payments", ["pm", PaymentCompat]], ["timeZone", "tz"], ["type", "ty"], ["date", "d"], ["dueDate", "dd"], ["dueIn", "di"], ["removeDueDate", "rd"], ["purchaseOrderNumber", "pon"], ["note", "nt"], ["signDate", "sd"], ["customerSignature", "cs"], ["customerSigned", "cs"]]);
9772
+ var mapping = new Map([["address1", "a1"], ["address2", "a2"], ["address3", "a3"], ["customer", ["cu", CustomerCompat]], ["items", ["it", ItemCompat]], ["taxInclusive", "ti"], ["taxPercentage", "tp"], ["taxDeductible", "t1d"], ["taxInclusive", "ti"], ["taxName", "tn"], ["enableTax2", "ttx"], ["taxName2", "tn2"], ["taxPercentage2", "tp2"], ["taxDeductible2", "t2d"], ["tax1_total", "tx"], ["tax2_total", "tx2"], ["taxDeductibleInc2", "t2di"], ["shippingCost", "sp"], ["shippingNonTax", "sntx"], ["total", "tt"], ["subtotal", "st"], ["amountDue", "ad"], ["discount", "dc"], ["discountOption", "dco"], ["discountPercentage", "dcp"], ["discountPercentageOption", "dcpo"], ["payments", ["pm", PaymentCompat]], ["timeZone", "tz"], ["type", "ty"], ["date", "d"], ["dueDate", "dd"], ["dueIn", "di"], ["removeDueDate", "rd"], ["purchaseOrderNumber", "pon"], ["note", "nt"], ["signDate", "sd"], ["customerSignature", "cs"], ["customerSigned", "cs"], ["surchargeAmount", "sca"]]);
9576
9773
  return Object.fromEntries(Object.entries(doc).map(function (_ref4) {
9577
9774
  var k = _ref4[0],
9578
9775
  v = _ref4[1];
@@ -9639,7 +9836,7 @@ var DocumentDefinitionCompat = function DocumentDefinitionCompat(dd) {
9639
9836
 
9640
9837
  var CompanyCompat = function CompanyCompat(doc) {
9641
9838
  if (doc == null) return null;
9642
- var mapping = new Map([["dateFormat", "df"], ["timeZone", "tz"], ["language", "la"], ["TFN", "tfn"], ["paymentInstruction1", "p1"], ["paymentInstruction2", "p2"], ["paymentInstruction3", "p3"], ["invoiceColor", "ct"], ["taxPercentage", "tp"], ["taxDeductible", "t1d"], ["taxInclusive", "ti"], ["taxName", "tn"], ["twoTaxes", "ttx"], ["taxName2", "tn2"], ["taxPercentage2", "tp2"], ["taxDeductible2", "t2d"], ["name", "c"], ["hasPaymentInstruction", "pi"], ["additionalInfo", "ai"], ["phoneNumber", "ph"], ["displayEmail", "de"], ["email", "e"], ["logoExists", "lg"], ["currency", "cr"], ["hasSignature", "sg"]]);
9839
+ var mapping = new Map([["dateFormat", "df"], ["timeZone", "tz"], ["language", "la"], ["businessNumber", "tfn"], ["abbrBusinessNumber", "bn"], ["paymentInstruction1", "p1"], ["paymentInstruction2", "p2"], ["paymentInstruction3", "p3"], ["invoiceColor", "ct"], ["taxPercentage", "tp"], ["taxDeductible", "t1d"], ["taxInclusive", "ti"], ["taxName", "tn"], ["twoTaxes", "ttx"], ["taxName2", "tn2"], ["taxPercentage2", "tp2"], ["taxDeductible2", "t2d"], ["name", "c"], ["hasPaymentInstruction", "pi"], ["additionalInfo", "ai"], ["phoneNumber", "ph"], ["displayEmail", "de"], ["email", "e"], ["logoExists", "lg"], ["currency", "cr"], ["hasSignature", "sg"], ["currencyFormat", "cf"]]);
9643
9840
  var rootMapping = new Map([["template", TemplateCompat], ["documentDefinitions", DocumentDefinitionCompat]]);
9644
9841
  var newCompany = Object.fromEntries(Object.entries(doc).map(function (_ref6) {
9645
9842
  var k = _ref6[0],
@@ -9708,7 +9905,7 @@ var CompanyCompat = function CompanyCompat(doc) {
9708
9905
  var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
9709
9906
  var invoice = _ref.invoice,
9710
9907
  _ref$lang = _ref.lang,
9711
- lang = _ref$lang === void 0 ? defaultLang : _ref$lang,
9908
+ lang = _ref$lang === void 0 ? en : _ref$lang,
9712
9909
  _ref$isDeposit = _ref.isDeposit,
9713
9910
  isDeposit = _ref$isDeposit === void 0 ? false : _ref$isDeposit,
9714
9911
  _ref$isOffline = _ref.isOffline,
@@ -9718,7 +9915,9 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
9718
9915
  _ref$removeHtmlStanda = _ref.removeHtmlStandardDom,
9719
9916
  removeHtmlStandardDom = _ref$removeHtmlStanda === void 0 ? false : _ref$removeHtmlStanda,
9720
9917
  _ref$bookipayLink = _ref.bookipayLink,
9721
- bookipayLink = _ref$bookipayLink === void 0 ? null : _ref$bookipayLink;
9918
+ bookipayLink = _ref$bookipayLink === void 0 ? null : _ref$bookipayLink,
9919
+ _ref$hidePayBtnInScre = _ref.hidePayBtnInScreen,
9920
+ hidePayBtnInScreen = _ref$hidePayBtnInScre === void 0 ? false : _ref$hidePayBtnInScre;
9722
9921
  return invoiceHtml({
9723
9922
  invoice: _extends({}, invoice, {
9724
9923
  document: InvoiceCompat(invoice.document),
@@ -9729,10 +9928,2550 @@ var InvoiceCompatHtml = function InvoiceCompatHtml(_ref) {
9729
9928
  isOffline: isOffline,
9730
9929
  isFromReactnative: isFromReactnative,
9731
9930
  removeHtmlStandardDom: removeHtmlStandardDom,
9732
- bookipayLink: bookipayLink
9931
+ bookipayLink: bookipayLink,
9932
+ hidePayBtnInScreen: hidePayBtnInScreen
9933
+ });
9934
+ };
9935
+
9936
+ /*
9937
+ object-assign
9938
+ (c) Sindre Sorhus
9939
+ @license MIT
9940
+ */
9941
+ /* eslint-disable no-unused-vars */
9942
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
9943
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
9944
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
9945
+
9946
+ function toObject(val) {
9947
+ if (val === null || val === undefined) {
9948
+ throw new TypeError('Object.assign cannot be called with null or undefined');
9949
+ }
9950
+
9951
+ return Object(val);
9952
+ }
9953
+
9954
+ function shouldUseNative() {
9955
+ try {
9956
+ if (!Object.assign) {
9957
+ return false;
9958
+ }
9959
+
9960
+ // Detect buggy property enumeration order in older V8 versions.
9961
+
9962
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
9963
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
9964
+ test1[5] = 'de';
9965
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
9966
+ return false;
9967
+ }
9968
+
9969
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9970
+ var test2 = {};
9971
+ for (var i = 0; i < 10; i++) {
9972
+ test2['_' + String.fromCharCode(i)] = i;
9973
+ }
9974
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
9975
+ return test2[n];
9976
+ });
9977
+ if (order2.join('') !== '0123456789') {
9978
+ return false;
9979
+ }
9980
+
9981
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9982
+ var test3 = {};
9983
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
9984
+ test3[letter] = letter;
9985
+ });
9986
+ if (Object.keys(Object.assign({}, test3)).join('') !==
9987
+ 'abcdefghijklmnopqrst') {
9988
+ return false;
9989
+ }
9990
+
9991
+ return true;
9992
+ } catch (err) {
9993
+ // We don't expect any of the above to throw, but better to be safe.
9994
+ return false;
9995
+ }
9996
+ }
9997
+
9998
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
9999
+ var from;
10000
+ var to = toObject(target);
10001
+ var symbols;
10002
+
10003
+ for (var s = 1; s < arguments.length; s++) {
10004
+ from = Object(arguments[s]);
10005
+
10006
+ for (var key in from) {
10007
+ if (hasOwnProperty.call(from, key)) {
10008
+ to[key] = from[key];
10009
+ }
10010
+ }
10011
+
10012
+ if (getOwnPropertySymbols) {
10013
+ symbols = getOwnPropertySymbols(from);
10014
+ for (var i = 0; i < symbols.length; i++) {
10015
+ if (propIsEnumerable.call(from, symbols[i])) {
10016
+ to[symbols[i]] = from[symbols[i]];
10017
+ }
10018
+ }
10019
+ }
10020
+ }
10021
+
10022
+ return to;
10023
+ };
10024
+
10025
+ var n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,z=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"):
10026
+ 60116,B="function"===typeof Symbol&&Symbol.iterator;function C(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
10027
+ var D={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function F(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D;}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C(85));this.updater.enqueueSetState(this,a,b,"setState");};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
10028
+ function G(){}G.prototype=F.prototype;function H(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D;}var I=H.prototype=new G;I.constructor=H;objectAssign(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
10029
+ function M(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,e)&&!L.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h;}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return {$$typeof:p,type:a,key:g,ref:k,props:d,_owner:J.current}}
10030
+ function N(a,b){return {$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return "$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g,Q=[];function R(a,b,c,e){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return {result:a,keyPrefix:b,func:c,context:e,count:0}}
10031
+ function S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a);}
10032
+ function T(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0;}}if(g)return c(e,a,""===b?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U(d,k);g+=T(d,f,c,e);}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
10033
+ 0;!(d=a.next()).done;)d=d.value,f=b+U(d,k++),g+=T(d,f,c,e);else if("object"===d)throw c=""+a,Error(C(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V(a,b,c){return null==a?0:T(a,"",b,c)}function U(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function W(a,b){a.func.call(a.context,b,a.count++);}
10034
+ function aa(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X(a,e,c,function(a){return a}):null!=a&&(O(a)&&(a=N(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+c)),e.push(a));}function X(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P,"$&/")+"/");b=R(b,g,e,d);V(a,aa,b);S(b);}var Y={current:null};function Z(){var a=Y.current;if(null===a)throw Error(C(321));return a}
10035
+ var ba={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:objectAssign};var Children={map:function(a,b,c){if(null==a)return a;var e=[];X(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R(null,null,b,c);V(a,W,b);S(b);},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];X(a,b,null,function(a){return a});return b},only:function(a){if(!O(a))throw Error(C(143));return a}};
10036
+ var Component=F;var Fragment=r;var Profiler=u;var PureComponent=H;var StrictMode=t;var Suspense=y;var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba;
10037
+ var cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C(267,a));var e=objectAssign({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K.call(b,h)&&!L.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h]);}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f;}return {$$typeof:p,type:a.type,
10038
+ key:d,ref:g,props:e,_owner:k}};var createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a};var createElement=M;var createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};var createRef=function(){return {current:null}};var forwardRef=function(a){return {$$typeof:x,render:a}};var isValidElement=O;
10039
+ var lazy=function(a){return {$$typeof:A,_ctor:a,_status:-1,_result:null}};var memo=function(a,b){return {$$typeof:z,type:a,compare:void 0===b?null:b}};var useCallback=function(a,b){return Z().useCallback(a,b)};var useContext=function(a,b){return Z().useContext(a,b)};var useDebugValue=function(){};var useEffect=function(a,b){return Z().useEffect(a,b)};var useImperativeHandle=function(a,b,c){return Z().useImperativeHandle(a,b,c)};
10040
+ var useLayoutEffect=function(a,b){return Z().useLayoutEffect(a,b)};var useMemo=function(a,b){return Z().useMemo(a,b)};var useReducer=function(a,b,c){return Z().useReducer(a,b,c)};var useRef=function(a){return Z().useRef(a)};var useState=function(a){return Z().useState(a)};var version$1="16.14.0";
10041
+
10042
+ var react_production_min = {
10043
+ Children: Children,
10044
+ Component: Component,
10045
+ Fragment: Fragment,
10046
+ Profiler: Profiler,
10047
+ PureComponent: PureComponent,
10048
+ StrictMode: StrictMode,
10049
+ Suspense: Suspense,
10050
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
10051
+ cloneElement: cloneElement,
10052
+ createContext: createContext,
10053
+ createElement: createElement,
10054
+ createFactory: createFactory,
10055
+ createRef: createRef,
10056
+ forwardRef: forwardRef,
10057
+ isValidElement: isValidElement,
10058
+ lazy: lazy,
10059
+ memo: memo,
10060
+ useCallback: useCallback,
10061
+ useContext: useContext,
10062
+ useDebugValue: useDebugValue,
10063
+ useEffect: useEffect,
10064
+ useImperativeHandle: useImperativeHandle,
10065
+ useLayoutEffect: useLayoutEffect,
10066
+ useMemo: useMemo,
10067
+ useReducer: useReducer,
10068
+ useRef: useRef,
10069
+ useState: useState,
10070
+ version: version$1
10071
+ };
10072
+
10073
+ /**
10074
+ * Copyright (c) 2013-present, Facebook, Inc.
10075
+ *
10076
+ * This source code is licensed under the MIT license found in the
10077
+ * LICENSE file in the root directory of this source tree.
10078
+ */
10079
+
10080
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
10081
+
10082
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret;
10083
+
10084
+ var printWarning = function() {};
10085
+
10086
+ if (process.env.NODE_ENV !== 'production') {
10087
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
10088
+ var loggedTypeFailures = {};
10089
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
10090
+
10091
+ printWarning = function(text) {
10092
+ var message = 'Warning: ' + text;
10093
+ if (typeof console !== 'undefined') {
10094
+ console.error(message);
10095
+ }
10096
+ try {
10097
+ // --- Welcome to debugging React ---
10098
+ // This error was thrown as a convenience so that you can use this stack
10099
+ // to find the callsite that caused this warning to fire.
10100
+ throw new Error(message);
10101
+ } catch (x) {}
10102
+ };
10103
+ }
10104
+
10105
+ /**
10106
+ * Assert that the values match with the type specs.
10107
+ * Error messages are memorized and will only be shown once.
10108
+ *
10109
+ * @param {object} typeSpecs Map of name to a ReactPropType
10110
+ * @param {object} values Runtime values that need to be type-checked
10111
+ * @param {string} location e.g. "prop", "context", "child context"
10112
+ * @param {string} componentName Name of the component for error messages.
10113
+ * @param {?Function} getStack Returns the component stack.
10114
+ * @private
10115
+ */
10116
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
10117
+ if (process.env.NODE_ENV !== 'production') {
10118
+ for (var typeSpecName in typeSpecs) {
10119
+ if (has(typeSpecs, typeSpecName)) {
10120
+ var error;
10121
+ // Prop type validation may throw. In case they do, we don't want to
10122
+ // fail the render phase where it didn't fail before. So we log it.
10123
+ // After these have been cleaned up, we'll let them throw.
10124
+ try {
10125
+ // This is intentionally an invariant that gets caught. It's the same
10126
+ // behavior as without this statement except with a better message.
10127
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
10128
+ var err = Error(
10129
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
10130
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
10131
+ );
10132
+ err.name = 'Invariant Violation';
10133
+ throw err;
10134
+ }
10135
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
10136
+ } catch (ex) {
10137
+ error = ex;
10138
+ }
10139
+ if (error && !(error instanceof Error)) {
10140
+ printWarning(
10141
+ (componentName || 'React class') + ': type specification of ' +
10142
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
10143
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
10144
+ 'You may have forgotten to pass an argument to the type checker ' +
10145
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
10146
+ 'shape all require an argument).'
10147
+ );
10148
+ }
10149
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
10150
+ // Only monitor this failure once because there tends to be a lot of the
10151
+ // same error.
10152
+ loggedTypeFailures[error.message] = true;
10153
+
10154
+ var stack = getStack ? getStack() : '';
10155
+
10156
+ printWarning(
10157
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
10158
+ );
10159
+ }
10160
+ }
10161
+ }
10162
+ }
10163
+ }
10164
+
10165
+ /**
10166
+ * Resets warning cache when testing.
10167
+ *
10168
+ * @private
10169
+ */
10170
+ checkPropTypes.resetWarningCache = function() {
10171
+ if (process.env.NODE_ENV !== 'production') {
10172
+ loggedTypeFailures = {};
10173
+ }
10174
+ };
10175
+
10176
+ var checkPropTypes_1 = checkPropTypes;
10177
+
10178
+ var react_development = createCommonjsModule(function (module, exports) {
10179
+
10180
+
10181
+
10182
+ if (process.env.NODE_ENV !== "production") {
10183
+ (function() {
10184
+
10185
+ var _assign = objectAssign;
10186
+ var checkPropTypes = checkPropTypes_1;
10187
+
10188
+ var ReactVersion = '16.14.0';
10189
+
10190
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
10191
+ // nor polyfill, then a plain number is used for performance.
10192
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
10193
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
10194
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
10195
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
10196
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
10197
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
10198
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
10199
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
10200
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
10201
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
10202
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
10203
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
10204
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
10205
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
10206
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
10207
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
10208
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
10209
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
10210
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
10211
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
10212
+ function getIteratorFn(maybeIterable) {
10213
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
10214
+ return null;
10215
+ }
10216
+
10217
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
10218
+
10219
+ if (typeof maybeIterator === 'function') {
10220
+ return maybeIterator;
10221
+ }
10222
+
10223
+ return null;
10224
+ }
10225
+
10226
+ /**
10227
+ * Keeps track of the current dispatcher.
10228
+ */
10229
+ var ReactCurrentDispatcher = {
10230
+ /**
10231
+ * @internal
10232
+ * @type {ReactComponent}
10233
+ */
10234
+ current: null
10235
+ };
10236
+
10237
+ /**
10238
+ * Keeps track of the current batch's configuration such as how long an update
10239
+ * should suspend for if it needs to.
10240
+ */
10241
+ var ReactCurrentBatchConfig = {
10242
+ suspense: null
10243
+ };
10244
+
10245
+ /**
10246
+ * Keeps track of the current owner.
10247
+ *
10248
+ * The current owner is the component who should own any components that are
10249
+ * currently being constructed.
10250
+ */
10251
+ var ReactCurrentOwner = {
10252
+ /**
10253
+ * @internal
10254
+ * @type {ReactComponent}
10255
+ */
10256
+ current: null
10257
+ };
10258
+
10259
+ var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
10260
+ function describeComponentFrame (name, source, ownerName) {
10261
+ var sourceInfo = '';
10262
+
10263
+ if (source) {
10264
+ var path = source.fileName;
10265
+ var fileName = path.replace(BEFORE_SLASH_RE, '');
10266
+
10267
+ {
10268
+ // In DEV, include code for a common special case:
10269
+ // prefer "folder/index.js" instead of just "index.js".
10270
+ if (/^index\./.test(fileName)) {
10271
+ var match = path.match(BEFORE_SLASH_RE);
10272
+
10273
+ if (match) {
10274
+ var pathBeforeSlash = match[1];
10275
+
10276
+ if (pathBeforeSlash) {
10277
+ var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
10278
+ fileName = folderName + '/' + fileName;
10279
+ }
10280
+ }
10281
+ }
10282
+ }
10283
+
10284
+ sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
10285
+ } else if (ownerName) {
10286
+ sourceInfo = ' (created by ' + ownerName + ')';
10287
+ }
10288
+
10289
+ return '\n in ' + (name || 'Unknown') + sourceInfo;
10290
+ }
10291
+
10292
+ var Resolved = 1;
10293
+ function refineResolvedLazyComponent(lazyComponent) {
10294
+ return lazyComponent._status === Resolved ? lazyComponent._result : null;
10295
+ }
10296
+
10297
+ function getWrappedName(outerType, innerType, wrapperName) {
10298
+ var functionName = innerType.displayName || innerType.name || '';
10299
+ return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
10300
+ }
10301
+
10302
+ function getComponentName(type) {
10303
+ if (type == null) {
10304
+ // Host root, text node or just invalid type.
10305
+ return null;
10306
+ }
10307
+
10308
+ {
10309
+ if (typeof type.tag === 'number') {
10310
+ error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
10311
+ }
10312
+ }
10313
+
10314
+ if (typeof type === 'function') {
10315
+ return type.displayName || type.name || null;
10316
+ }
10317
+
10318
+ if (typeof type === 'string') {
10319
+ return type;
10320
+ }
10321
+
10322
+ switch (type) {
10323
+ case REACT_FRAGMENT_TYPE:
10324
+ return 'Fragment';
10325
+
10326
+ case REACT_PORTAL_TYPE:
10327
+ return 'Portal';
10328
+
10329
+ case REACT_PROFILER_TYPE:
10330
+ return "Profiler";
10331
+
10332
+ case REACT_STRICT_MODE_TYPE:
10333
+ return 'StrictMode';
10334
+
10335
+ case REACT_SUSPENSE_TYPE:
10336
+ return 'Suspense';
10337
+
10338
+ case REACT_SUSPENSE_LIST_TYPE:
10339
+ return 'SuspenseList';
10340
+ }
10341
+
10342
+ if (typeof type === 'object') {
10343
+ switch (type.$$typeof) {
10344
+ case REACT_CONTEXT_TYPE:
10345
+ return 'Context.Consumer';
10346
+
10347
+ case REACT_PROVIDER_TYPE:
10348
+ return 'Context.Provider';
10349
+
10350
+ case REACT_FORWARD_REF_TYPE:
10351
+ return getWrappedName(type, type.render, 'ForwardRef');
10352
+
10353
+ case REACT_MEMO_TYPE:
10354
+ return getComponentName(type.type);
10355
+
10356
+ case REACT_BLOCK_TYPE:
10357
+ return getComponentName(type.render);
10358
+
10359
+ case REACT_LAZY_TYPE:
10360
+ {
10361
+ var thenable = type;
10362
+ var resolvedThenable = refineResolvedLazyComponent(thenable);
10363
+
10364
+ if (resolvedThenable) {
10365
+ return getComponentName(resolvedThenable);
10366
+ }
10367
+
10368
+ break;
10369
+ }
10370
+ }
10371
+ }
10372
+
10373
+ return null;
10374
+ }
10375
+
10376
+ var ReactDebugCurrentFrame = {};
10377
+ var currentlyValidatingElement = null;
10378
+ function setCurrentlyValidatingElement(element) {
10379
+ {
10380
+ currentlyValidatingElement = element;
10381
+ }
10382
+ }
10383
+
10384
+ {
10385
+ // Stack implementation injected by the current renderer.
10386
+ ReactDebugCurrentFrame.getCurrentStack = null;
10387
+
10388
+ ReactDebugCurrentFrame.getStackAddendum = function () {
10389
+ var stack = ''; // Add an extra top frame while an element is being validated
10390
+
10391
+ if (currentlyValidatingElement) {
10392
+ var name = getComponentName(currentlyValidatingElement.type);
10393
+ var owner = currentlyValidatingElement._owner;
10394
+ stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
10395
+ } // Delegate to the injected renderer-specific implementation
10396
+
10397
+
10398
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
10399
+
10400
+ if (impl) {
10401
+ stack += impl() || '';
10402
+ }
10403
+
10404
+ return stack;
10405
+ };
10406
+ }
10407
+
10408
+ /**
10409
+ * Used by act() to track whether you're inside an act() scope.
10410
+ */
10411
+ var IsSomeRendererActing = {
10412
+ current: false
10413
+ };
10414
+
10415
+ var ReactSharedInternals = {
10416
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
10417
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
10418
+ ReactCurrentOwner: ReactCurrentOwner,
10419
+ IsSomeRendererActing: IsSomeRendererActing,
10420
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
10421
+ assign: _assign
10422
+ };
10423
+
10424
+ {
10425
+ _assign(ReactSharedInternals, {
10426
+ // These should not be included in production.
10427
+ ReactDebugCurrentFrame: ReactDebugCurrentFrame,
10428
+ // Shim for React DOM 16.0.0 which still destructured (but not used) this.
10429
+ // TODO: remove in React 17.0.
10430
+ ReactComponentTreeHook: {}
9733
10431
  });
10432
+ }
10433
+
10434
+ // by calls to these methods by a Babel plugin.
10435
+ //
10436
+ // In PROD (or in packages without access to React internals),
10437
+ // they are left as they are instead.
10438
+
10439
+ function warn(format) {
10440
+ {
10441
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
10442
+ args[_key - 1] = arguments[_key];
10443
+ }
10444
+
10445
+ printWarning('warn', format, args);
10446
+ }
10447
+ }
10448
+ function error(format) {
10449
+ {
10450
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
10451
+ args[_key2 - 1] = arguments[_key2];
10452
+ }
10453
+
10454
+ printWarning('error', format, args);
10455
+ }
10456
+ }
10457
+
10458
+ function printWarning(level, format, args) {
10459
+ // When changing this logic, you might want to also
10460
+ // update consoleWithStackDev.www.js as well.
10461
+ {
10462
+ var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
10463
+
10464
+ if (!hasExistingStack) {
10465
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
10466
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
10467
+
10468
+ if (stack !== '') {
10469
+ format += '%s';
10470
+ args = args.concat([stack]);
10471
+ }
10472
+ }
10473
+
10474
+ var argsWithFormat = args.map(function (item) {
10475
+ return '' + item;
10476
+ }); // Careful: RN currently depends on this prefix
10477
+
10478
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
10479
+ // breaks IE9: https://github.com/facebook/react/issues/13610
10480
+ // eslint-disable-next-line react-internal/no-production-logging
10481
+
10482
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
10483
+
10484
+ try {
10485
+ // --- Welcome to debugging React ---
10486
+ // This error was thrown as a convenience so that you can use this stack
10487
+ // to find the callsite that caused this warning to fire.
10488
+ var argIndex = 0;
10489
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
10490
+ return args[argIndex++];
10491
+ });
10492
+ throw new Error(message);
10493
+ } catch (x) {}
10494
+ }
10495
+ }
10496
+
10497
+ var didWarnStateUpdateForUnmountedComponent = {};
10498
+
10499
+ function warnNoop(publicInstance, callerName) {
10500
+ {
10501
+ var _constructor = publicInstance.constructor;
10502
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
10503
+ var warningKey = componentName + "." + callerName;
10504
+
10505
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
10506
+ return;
10507
+ }
10508
+
10509
+ error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
10510
+
10511
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
10512
+ }
10513
+ }
10514
+ /**
10515
+ * This is the abstract API for an update queue.
10516
+ */
10517
+
10518
+
10519
+ var ReactNoopUpdateQueue = {
10520
+ /**
10521
+ * Checks whether or not this composite component is mounted.
10522
+ * @param {ReactClass} publicInstance The instance we want to test.
10523
+ * @return {boolean} True if mounted, false otherwise.
10524
+ * @protected
10525
+ * @final
10526
+ */
10527
+ isMounted: function (publicInstance) {
10528
+ return false;
10529
+ },
10530
+
10531
+ /**
10532
+ * Forces an update. This should only be invoked when it is known with
10533
+ * certainty that we are **not** in a DOM transaction.
10534
+ *
10535
+ * You may want to call this when you know that some deeper aspect of the
10536
+ * component's state has changed but `setState` was not called.
10537
+ *
10538
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
10539
+ * `componentWillUpdate` and `componentDidUpdate`.
10540
+ *
10541
+ * @param {ReactClass} publicInstance The instance that should rerender.
10542
+ * @param {?function} callback Called after component is updated.
10543
+ * @param {?string} callerName name of the calling function in the public API.
10544
+ * @internal
10545
+ */
10546
+ enqueueForceUpdate: function (publicInstance, callback, callerName) {
10547
+ warnNoop(publicInstance, 'forceUpdate');
10548
+ },
10549
+
10550
+ /**
10551
+ * Replaces all of the state. Always use this or `setState` to mutate state.
10552
+ * You should treat `this.state` as immutable.
10553
+ *
10554
+ * There is no guarantee that `this.state` will be immediately updated, so
10555
+ * accessing `this.state` after calling this method may return the old value.
10556
+ *
10557
+ * @param {ReactClass} publicInstance The instance that should rerender.
10558
+ * @param {object} completeState Next state.
10559
+ * @param {?function} callback Called after component is updated.
10560
+ * @param {?string} callerName name of the calling function in the public API.
10561
+ * @internal
10562
+ */
10563
+ enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
10564
+ warnNoop(publicInstance, 'replaceState');
10565
+ },
10566
+
10567
+ /**
10568
+ * Sets a subset of the state. This only exists because _pendingState is
10569
+ * internal. This provides a merging strategy that is not available to deep
10570
+ * properties which is confusing. TODO: Expose pendingState or don't use it
10571
+ * during the merge.
10572
+ *
10573
+ * @param {ReactClass} publicInstance The instance that should rerender.
10574
+ * @param {object} partialState Next partial state to be merged with state.
10575
+ * @param {?function} callback Called after component is updated.
10576
+ * @param {?string} Name of the calling function in the public API.
10577
+ * @internal
10578
+ */
10579
+ enqueueSetState: function (publicInstance, partialState, callback, callerName) {
10580
+ warnNoop(publicInstance, 'setState');
10581
+ }
10582
+ };
10583
+
10584
+ var emptyObject = {};
10585
+
10586
+ {
10587
+ Object.freeze(emptyObject);
10588
+ }
10589
+ /**
10590
+ * Base class helpers for the updating state of a component.
10591
+ */
10592
+
10593
+
10594
+ function Component(props, context, updater) {
10595
+ this.props = props;
10596
+ this.context = context; // If a component has string refs, we will assign a different object later.
10597
+
10598
+ this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
10599
+ // renderer.
10600
+
10601
+ this.updater = updater || ReactNoopUpdateQueue;
10602
+ }
10603
+
10604
+ Component.prototype.isReactComponent = {};
10605
+ /**
10606
+ * Sets a subset of the state. Always use this to mutate
10607
+ * state. You should treat `this.state` as immutable.
10608
+ *
10609
+ * There is no guarantee that `this.state` will be immediately updated, so
10610
+ * accessing `this.state` after calling this method may return the old value.
10611
+ *
10612
+ * There is no guarantee that calls to `setState` will run synchronously,
10613
+ * as they may eventually be batched together. You can provide an optional
10614
+ * callback that will be executed when the call to setState is actually
10615
+ * completed.
10616
+ *
10617
+ * When a function is provided to setState, it will be called at some point in
10618
+ * the future (not synchronously). It will be called with the up to date
10619
+ * component arguments (state, props, context). These values can be different
10620
+ * from this.* because your function may be called after receiveProps but before
10621
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
10622
+ * assigned to this.
10623
+ *
10624
+ * @param {object|function} partialState Next partial state or function to
10625
+ * produce next partial state to be merged with current state.
10626
+ * @param {?function} callback Called after state is updated.
10627
+ * @final
10628
+ * @protected
10629
+ */
10630
+
10631
+ Component.prototype.setState = function (partialState, callback) {
10632
+ if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
10633
+ {
10634
+ throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
10635
+ }
10636
+ }
10637
+
10638
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
9734
10639
  };
10640
+ /**
10641
+ * Forces an update. This should only be invoked when it is known with
10642
+ * certainty that we are **not** in a DOM transaction.
10643
+ *
10644
+ * You may want to call this when you know that some deeper aspect of the
10645
+ * component's state has changed but `setState` was not called.
10646
+ *
10647
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
10648
+ * `componentWillUpdate` and `componentDidUpdate`.
10649
+ *
10650
+ * @param {?function} callback Called after update is complete.
10651
+ * @final
10652
+ * @protected
10653
+ */
10654
+
10655
+
10656
+ Component.prototype.forceUpdate = function (callback) {
10657
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
10658
+ };
10659
+ /**
10660
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
10661
+ * we would like to deprecate them, we're not going to move them over to this
10662
+ * modern base class. Instead, we define a getter that warns if it's accessed.
10663
+ */
10664
+
10665
+
10666
+ {
10667
+ var deprecatedAPIs = {
10668
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
10669
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
10670
+ };
10671
+
10672
+ var defineDeprecationWarning = function (methodName, info) {
10673
+ Object.defineProperty(Component.prototype, methodName, {
10674
+ get: function () {
10675
+ warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
10676
+
10677
+ return undefined;
10678
+ }
10679
+ });
10680
+ };
10681
+
10682
+ for (var fnName in deprecatedAPIs) {
10683
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
10684
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
10685
+ }
10686
+ }
10687
+ }
10688
+
10689
+ function ComponentDummy() {}
10690
+
10691
+ ComponentDummy.prototype = Component.prototype;
10692
+ /**
10693
+ * Convenience component with default shallow equality check for sCU.
10694
+ */
10695
+
10696
+ function PureComponent(props, context, updater) {
10697
+ this.props = props;
10698
+ this.context = context; // If a component has string refs, we will assign a different object later.
10699
+
10700
+ this.refs = emptyObject;
10701
+ this.updater = updater || ReactNoopUpdateQueue;
10702
+ }
10703
+
10704
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
10705
+ pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
10706
+
10707
+ _assign(pureComponentPrototype, Component.prototype);
10708
+
10709
+ pureComponentPrototype.isPureReactComponent = true;
10710
+
10711
+ // an immutable object with a single mutable value
10712
+ function createRef() {
10713
+ var refObject = {
10714
+ current: null
10715
+ };
10716
+
10717
+ {
10718
+ Object.seal(refObject);
10719
+ }
10720
+
10721
+ return refObject;
10722
+ }
10723
+
10724
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
10725
+ var RESERVED_PROPS = {
10726
+ key: true,
10727
+ ref: true,
10728
+ __self: true,
10729
+ __source: true
10730
+ };
10731
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
10732
+
10733
+ {
10734
+ didWarnAboutStringRefs = {};
10735
+ }
10736
+
10737
+ function hasValidRef(config) {
10738
+ {
10739
+ if (hasOwnProperty.call(config, 'ref')) {
10740
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
10741
+
10742
+ if (getter && getter.isReactWarning) {
10743
+ return false;
10744
+ }
10745
+ }
10746
+ }
10747
+
10748
+ return config.ref !== undefined;
10749
+ }
10750
+
10751
+ function hasValidKey(config) {
10752
+ {
10753
+ if (hasOwnProperty.call(config, 'key')) {
10754
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
10755
+
10756
+ if (getter && getter.isReactWarning) {
10757
+ return false;
10758
+ }
10759
+ }
10760
+ }
10761
+
10762
+ return config.key !== undefined;
10763
+ }
10764
+
10765
+ function defineKeyPropWarningGetter(props, displayName) {
10766
+ var warnAboutAccessingKey = function () {
10767
+ {
10768
+ if (!specialPropKeyWarningShown) {
10769
+ specialPropKeyWarningShown = true;
10770
+
10771
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
10772
+ }
10773
+ }
10774
+ };
10775
+
10776
+ warnAboutAccessingKey.isReactWarning = true;
10777
+ Object.defineProperty(props, 'key', {
10778
+ get: warnAboutAccessingKey,
10779
+ configurable: true
10780
+ });
10781
+ }
10782
+
10783
+ function defineRefPropWarningGetter(props, displayName) {
10784
+ var warnAboutAccessingRef = function () {
10785
+ {
10786
+ if (!specialPropRefWarningShown) {
10787
+ specialPropRefWarningShown = true;
10788
+
10789
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
10790
+ }
10791
+ }
10792
+ };
10793
+
10794
+ warnAboutAccessingRef.isReactWarning = true;
10795
+ Object.defineProperty(props, 'ref', {
10796
+ get: warnAboutAccessingRef,
10797
+ configurable: true
10798
+ });
10799
+ }
10800
+
10801
+ function warnIfStringRefCannotBeAutoConverted(config) {
10802
+ {
10803
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
10804
+ var componentName = getComponentName(ReactCurrentOwner.current.type);
10805
+
10806
+ if (!didWarnAboutStringRefs[componentName]) {
10807
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
10808
+
10809
+ didWarnAboutStringRefs[componentName] = true;
10810
+ }
10811
+ }
10812
+ }
10813
+ }
10814
+ /**
10815
+ * Factory method to create a new React element. This no longer adheres to
10816
+ * the class pattern, so do not use new to call it. Also, instanceof check
10817
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
10818
+ * if something is a React Element.
10819
+ *
10820
+ * @param {*} type
10821
+ * @param {*} props
10822
+ * @param {*} key
10823
+ * @param {string|object} ref
10824
+ * @param {*} owner
10825
+ * @param {*} self A *temporary* helper to detect places where `this` is
10826
+ * different from the `owner` when React.createElement is called, so that we
10827
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
10828
+ * functions, and as long as `this` and owner are the same, there will be no
10829
+ * change in behavior.
10830
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
10831
+ * indicating filename, line number, and/or other information.
10832
+ * @internal
10833
+ */
10834
+
10835
+
10836
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
10837
+ var element = {
10838
+ // This tag allows us to uniquely identify this as a React Element
10839
+ $$typeof: REACT_ELEMENT_TYPE,
10840
+ // Built-in properties that belong on the element
10841
+ type: type,
10842
+ key: key,
10843
+ ref: ref,
10844
+ props: props,
10845
+ // Record the component responsible for creating this element.
10846
+ _owner: owner
10847
+ };
10848
+
10849
+ {
10850
+ // The validation flag is currently mutative. We put it on
10851
+ // an external backing store so that we can freeze the whole object.
10852
+ // This can be replaced with a WeakMap once they are implemented in
10853
+ // commonly used development environments.
10854
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
10855
+ // the validation flag non-enumerable (where possible, which should
10856
+ // include every environment we run tests in), so the test framework
10857
+ // ignores it.
10858
+
10859
+ Object.defineProperty(element._store, 'validated', {
10860
+ configurable: false,
10861
+ enumerable: false,
10862
+ writable: true,
10863
+ value: false
10864
+ }); // self and source are DEV only properties.
10865
+
10866
+ Object.defineProperty(element, '_self', {
10867
+ configurable: false,
10868
+ enumerable: false,
10869
+ writable: false,
10870
+ value: self
10871
+ }); // Two elements created in two different places should be considered
10872
+ // equal for testing purposes and therefore we hide it from enumeration.
10873
+
10874
+ Object.defineProperty(element, '_source', {
10875
+ configurable: false,
10876
+ enumerable: false,
10877
+ writable: false,
10878
+ value: source
10879
+ });
10880
+
10881
+ if (Object.freeze) {
10882
+ Object.freeze(element.props);
10883
+ Object.freeze(element);
10884
+ }
10885
+ }
10886
+
10887
+ return element;
10888
+ };
10889
+ /**
10890
+ * Create and return a new ReactElement of the given type.
10891
+ * See https://reactjs.org/docs/react-api.html#createelement
10892
+ */
10893
+
10894
+ function createElement(type, config, children) {
10895
+ var propName; // Reserved names are extracted
10896
+
10897
+ var props = {};
10898
+ var key = null;
10899
+ var ref = null;
10900
+ var self = null;
10901
+ var source = null;
10902
+
10903
+ if (config != null) {
10904
+ if (hasValidRef(config)) {
10905
+ ref = config.ref;
10906
+
10907
+ {
10908
+ warnIfStringRefCannotBeAutoConverted(config);
10909
+ }
10910
+ }
10911
+
10912
+ if (hasValidKey(config)) {
10913
+ key = '' + config.key;
10914
+ }
10915
+
10916
+ self = config.__self === undefined ? null : config.__self;
10917
+ source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
10918
+
10919
+ for (propName in config) {
10920
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
10921
+ props[propName] = config[propName];
10922
+ }
10923
+ }
10924
+ } // Children can be more than one argument, and those are transferred onto
10925
+ // the newly allocated props object.
10926
+
10927
+
10928
+ var childrenLength = arguments.length - 2;
10929
+
10930
+ if (childrenLength === 1) {
10931
+ props.children = children;
10932
+ } else if (childrenLength > 1) {
10933
+ var childArray = Array(childrenLength);
10934
+
10935
+ for (var i = 0; i < childrenLength; i++) {
10936
+ childArray[i] = arguments[i + 2];
10937
+ }
10938
+
10939
+ {
10940
+ if (Object.freeze) {
10941
+ Object.freeze(childArray);
10942
+ }
10943
+ }
10944
+
10945
+ props.children = childArray;
10946
+ } // Resolve default props
10947
+
10948
+
10949
+ if (type && type.defaultProps) {
10950
+ var defaultProps = type.defaultProps;
10951
+
10952
+ for (propName in defaultProps) {
10953
+ if (props[propName] === undefined) {
10954
+ props[propName] = defaultProps[propName];
10955
+ }
10956
+ }
10957
+ }
10958
+
10959
+ {
10960
+ if (key || ref) {
10961
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
10962
+
10963
+ if (key) {
10964
+ defineKeyPropWarningGetter(props, displayName);
10965
+ }
10966
+
10967
+ if (ref) {
10968
+ defineRefPropWarningGetter(props, displayName);
10969
+ }
10970
+ }
10971
+ }
10972
+
10973
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
10974
+ }
10975
+ function cloneAndReplaceKey(oldElement, newKey) {
10976
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
10977
+ return newElement;
10978
+ }
10979
+ /**
10980
+ * Clone and return a new ReactElement using element as the starting point.
10981
+ * See https://reactjs.org/docs/react-api.html#cloneelement
10982
+ */
10983
+
10984
+ function cloneElement(element, config, children) {
10985
+ if (!!(element === null || element === undefined)) {
10986
+ {
10987
+ throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
10988
+ }
10989
+ }
10990
+
10991
+ var propName; // Original props are copied
10992
+
10993
+ var props = _assign({}, element.props); // Reserved names are extracted
10994
+
10995
+
10996
+ var key = element.key;
10997
+ var ref = element.ref; // Self is preserved since the owner is preserved.
10998
+
10999
+ var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
11000
+ // transpiler, and the original source is probably a better indicator of the
11001
+ // true owner.
11002
+
11003
+ var source = element._source; // Owner will be preserved, unless ref is overridden
11004
+
11005
+ var owner = element._owner;
11006
+
11007
+ if (config != null) {
11008
+ if (hasValidRef(config)) {
11009
+ // Silently steal the ref from the parent.
11010
+ ref = config.ref;
11011
+ owner = ReactCurrentOwner.current;
11012
+ }
11013
+
11014
+ if (hasValidKey(config)) {
11015
+ key = '' + config.key;
11016
+ } // Remaining properties override existing props
11017
+
11018
+
11019
+ var defaultProps;
11020
+
11021
+ if (element.type && element.type.defaultProps) {
11022
+ defaultProps = element.type.defaultProps;
11023
+ }
11024
+
11025
+ for (propName in config) {
11026
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
11027
+ if (config[propName] === undefined && defaultProps !== undefined) {
11028
+ // Resolve default props
11029
+ props[propName] = defaultProps[propName];
11030
+ } else {
11031
+ props[propName] = config[propName];
11032
+ }
11033
+ }
11034
+ }
11035
+ } // Children can be more than one argument, and those are transferred onto
11036
+ // the newly allocated props object.
11037
+
11038
+
11039
+ var childrenLength = arguments.length - 2;
11040
+
11041
+ if (childrenLength === 1) {
11042
+ props.children = children;
11043
+ } else if (childrenLength > 1) {
11044
+ var childArray = Array(childrenLength);
11045
+
11046
+ for (var i = 0; i < childrenLength; i++) {
11047
+ childArray[i] = arguments[i + 2];
11048
+ }
11049
+
11050
+ props.children = childArray;
11051
+ }
11052
+
11053
+ return ReactElement(element.type, key, ref, self, source, owner, props);
11054
+ }
11055
+ /**
11056
+ * Verifies the object is a ReactElement.
11057
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
11058
+ * @param {?object} object
11059
+ * @return {boolean} True if `object` is a ReactElement.
11060
+ * @final
11061
+ */
11062
+
11063
+ function isValidElement(object) {
11064
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
11065
+ }
11066
+
11067
+ var SEPARATOR = '.';
11068
+ var SUBSEPARATOR = ':';
11069
+ /**
11070
+ * Escape and wrap key so it is safe to use as a reactid
11071
+ *
11072
+ * @param {string} key to be escaped.
11073
+ * @return {string} the escaped key.
11074
+ */
11075
+
11076
+ function escape(key) {
11077
+ var escapeRegex = /[=:]/g;
11078
+ var escaperLookup = {
11079
+ '=': '=0',
11080
+ ':': '=2'
11081
+ };
11082
+ var escapedString = ('' + key).replace(escapeRegex, function (match) {
11083
+ return escaperLookup[match];
11084
+ });
11085
+ return '$' + escapedString;
11086
+ }
11087
+ /**
11088
+ * TODO: Test that a single child and an array with one item have the same key
11089
+ * pattern.
11090
+ */
11091
+
11092
+
11093
+ var didWarnAboutMaps = false;
11094
+ var userProvidedKeyEscapeRegex = /\/+/g;
11095
+
11096
+ function escapeUserProvidedKey(text) {
11097
+ return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
11098
+ }
11099
+
11100
+ var POOL_SIZE = 10;
11101
+ var traverseContextPool = [];
11102
+
11103
+ function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
11104
+ if (traverseContextPool.length) {
11105
+ var traverseContext = traverseContextPool.pop();
11106
+ traverseContext.result = mapResult;
11107
+ traverseContext.keyPrefix = keyPrefix;
11108
+ traverseContext.func = mapFunction;
11109
+ traverseContext.context = mapContext;
11110
+ traverseContext.count = 0;
11111
+ return traverseContext;
11112
+ } else {
11113
+ return {
11114
+ result: mapResult,
11115
+ keyPrefix: keyPrefix,
11116
+ func: mapFunction,
11117
+ context: mapContext,
11118
+ count: 0
11119
+ };
11120
+ }
11121
+ }
11122
+
11123
+ function releaseTraverseContext(traverseContext) {
11124
+ traverseContext.result = null;
11125
+ traverseContext.keyPrefix = null;
11126
+ traverseContext.func = null;
11127
+ traverseContext.context = null;
11128
+ traverseContext.count = 0;
11129
+
11130
+ if (traverseContextPool.length < POOL_SIZE) {
11131
+ traverseContextPool.push(traverseContext);
11132
+ }
11133
+ }
11134
+ /**
11135
+ * @param {?*} children Children tree container.
11136
+ * @param {!string} nameSoFar Name of the key path so far.
11137
+ * @param {!function} callback Callback to invoke with each child found.
11138
+ * @param {?*} traverseContext Used to pass information throughout the traversal
11139
+ * process.
11140
+ * @return {!number} The number of children in this subtree.
11141
+ */
11142
+
11143
+
11144
+ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
11145
+ var type = typeof children;
11146
+
11147
+ if (type === 'undefined' || type === 'boolean') {
11148
+ // All of the above are perceived as null.
11149
+ children = null;
11150
+ }
11151
+
11152
+ var invokeCallback = false;
11153
+
11154
+ if (children === null) {
11155
+ invokeCallback = true;
11156
+ } else {
11157
+ switch (type) {
11158
+ case 'string':
11159
+ case 'number':
11160
+ invokeCallback = true;
11161
+ break;
11162
+
11163
+ case 'object':
11164
+ switch (children.$$typeof) {
11165
+ case REACT_ELEMENT_TYPE:
11166
+ case REACT_PORTAL_TYPE:
11167
+ invokeCallback = true;
11168
+ }
11169
+
11170
+ }
11171
+ }
11172
+
11173
+ if (invokeCallback) {
11174
+ callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
11175
+ // so that it's consistent if the number of children grows.
11176
+ nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
11177
+ return 1;
11178
+ }
11179
+
11180
+ var child;
11181
+ var nextName;
11182
+ var subtreeCount = 0; // Count of children found in the current subtree.
11183
+
11184
+ var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
11185
+
11186
+ if (Array.isArray(children)) {
11187
+ for (var i = 0; i < children.length; i++) {
11188
+ child = children[i];
11189
+ nextName = nextNamePrefix + getComponentKey(child, i);
11190
+ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
11191
+ }
11192
+ } else {
11193
+ var iteratorFn = getIteratorFn(children);
11194
+
11195
+ if (typeof iteratorFn === 'function') {
11196
+
11197
+ {
11198
+ // Warn about using Maps as children
11199
+ if (iteratorFn === children.entries) {
11200
+ if (!didWarnAboutMaps) {
11201
+ warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
11202
+ }
11203
+
11204
+ didWarnAboutMaps = true;
11205
+ }
11206
+ }
11207
+
11208
+ var iterator = iteratorFn.call(children);
11209
+ var step;
11210
+ var ii = 0;
11211
+
11212
+ while (!(step = iterator.next()).done) {
11213
+ child = step.value;
11214
+ nextName = nextNamePrefix + getComponentKey(child, ii++);
11215
+ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
11216
+ }
11217
+ } else if (type === 'object') {
11218
+ var addendum = '';
11219
+
11220
+ {
11221
+ addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
11222
+ }
11223
+
11224
+ var childrenString = '' + children;
11225
+
11226
+ {
11227
+ {
11228
+ throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
11229
+ }
11230
+ }
11231
+ }
11232
+ }
11233
+
11234
+ return subtreeCount;
11235
+ }
11236
+ /**
11237
+ * Traverses children that are typically specified as `props.children`, but
11238
+ * might also be specified through attributes:
11239
+ *
11240
+ * - `traverseAllChildren(this.props.children, ...)`
11241
+ * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
11242
+ *
11243
+ * The `traverseContext` is an optional argument that is passed through the
11244
+ * entire traversal. It can be used to store accumulations or anything else that
11245
+ * the callback might find relevant.
11246
+ *
11247
+ * @param {?*} children Children tree object.
11248
+ * @param {!function} callback To invoke upon traversing each child.
11249
+ * @param {?*} traverseContext Context for traversal.
11250
+ * @return {!number} The number of children in this subtree.
11251
+ */
11252
+
11253
+
11254
+ function traverseAllChildren(children, callback, traverseContext) {
11255
+ if (children == null) {
11256
+ return 0;
11257
+ }
11258
+
11259
+ return traverseAllChildrenImpl(children, '', callback, traverseContext);
11260
+ }
11261
+ /**
11262
+ * Generate a key string that identifies a component within a set.
11263
+ *
11264
+ * @param {*} component A component that could contain a manual key.
11265
+ * @param {number} index Index that is used if a manual key is not provided.
11266
+ * @return {string}
11267
+ */
11268
+
11269
+
11270
+ function getComponentKey(component, index) {
11271
+ // Do some typechecking here since we call this blindly. We want to ensure
11272
+ // that we don't block potential future ES APIs.
11273
+ if (typeof component === 'object' && component !== null && component.key != null) {
11274
+ // Explicit key
11275
+ return escape(component.key);
11276
+ } // Implicit key determined by the index in the set
11277
+
11278
+
11279
+ return index.toString(36);
11280
+ }
11281
+
11282
+ function forEachSingleChild(bookKeeping, child, name) {
11283
+ var func = bookKeeping.func,
11284
+ context = bookKeeping.context;
11285
+ func.call(context, child, bookKeeping.count++);
11286
+ }
11287
+ /**
11288
+ * Iterates through children that are typically specified as `props.children`.
11289
+ *
11290
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
11291
+ *
11292
+ * The provided forEachFunc(child, index) will be called for each
11293
+ * leaf child.
11294
+ *
11295
+ * @param {?*} children Children tree container.
11296
+ * @param {function(*, int)} forEachFunc
11297
+ * @param {*} forEachContext Context for forEachContext.
11298
+ */
11299
+
11300
+
11301
+ function forEachChildren(children, forEachFunc, forEachContext) {
11302
+ if (children == null) {
11303
+ return children;
11304
+ }
11305
+
11306
+ var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
11307
+ traverseAllChildren(children, forEachSingleChild, traverseContext);
11308
+ releaseTraverseContext(traverseContext);
11309
+ }
11310
+
11311
+ function mapSingleChildIntoContext(bookKeeping, child, childKey) {
11312
+ var result = bookKeeping.result,
11313
+ keyPrefix = bookKeeping.keyPrefix,
11314
+ func = bookKeeping.func,
11315
+ context = bookKeeping.context;
11316
+ var mappedChild = func.call(context, child, bookKeeping.count++);
11317
+
11318
+ if (Array.isArray(mappedChild)) {
11319
+ mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
11320
+ return c;
11321
+ });
11322
+ } else if (mappedChild != null) {
11323
+ if (isValidElement(mappedChild)) {
11324
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
11325
+ // traverseAllChildren used to do for objects as children
11326
+ keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
11327
+ }
11328
+
11329
+ result.push(mappedChild);
11330
+ }
11331
+ }
11332
+
11333
+ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
11334
+ var escapedPrefix = '';
11335
+
11336
+ if (prefix != null) {
11337
+ escapedPrefix = escapeUserProvidedKey(prefix) + '/';
11338
+ }
11339
+
11340
+ var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
11341
+ traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
11342
+ releaseTraverseContext(traverseContext);
11343
+ }
11344
+ /**
11345
+ * Maps children that are typically specified as `props.children`.
11346
+ *
11347
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
11348
+ *
11349
+ * The provided mapFunction(child, key, index) will be called for each
11350
+ * leaf child.
11351
+ *
11352
+ * @param {?*} children Children tree container.
11353
+ * @param {function(*, int)} func The map function.
11354
+ * @param {*} context Context for mapFunction.
11355
+ * @return {object} Object containing the ordered map of results.
11356
+ */
11357
+
11358
+
11359
+ function mapChildren(children, func, context) {
11360
+ if (children == null) {
11361
+ return children;
11362
+ }
11363
+
11364
+ var result = [];
11365
+ mapIntoWithKeyPrefixInternal(children, result, null, func, context);
11366
+ return result;
11367
+ }
11368
+ /**
11369
+ * Count the number of children that are typically specified as
11370
+ * `props.children`.
11371
+ *
11372
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
11373
+ *
11374
+ * @param {?*} children Children tree container.
11375
+ * @return {number} The number of children.
11376
+ */
11377
+
11378
+
11379
+ function countChildren(children) {
11380
+ return traverseAllChildren(children, function () {
11381
+ return null;
11382
+ }, null);
11383
+ }
11384
+ /**
11385
+ * Flatten a children object (typically specified as `props.children`) and
11386
+ * return an array with appropriately re-keyed children.
11387
+ *
11388
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
11389
+ */
11390
+
11391
+
11392
+ function toArray(children) {
11393
+ var result = [];
11394
+ mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
11395
+ return child;
11396
+ });
11397
+ return result;
11398
+ }
11399
+ /**
11400
+ * Returns the first child in a collection of children and verifies that there
11401
+ * is only one child in the collection.
11402
+ *
11403
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
11404
+ *
11405
+ * The current implementation of this function assumes that a single child gets
11406
+ * passed without a wrapper, but the purpose of this helper function is to
11407
+ * abstract away the particular structure of children.
11408
+ *
11409
+ * @param {?object} children Child collection structure.
11410
+ * @return {ReactElement} The first and only `ReactElement` contained in the
11411
+ * structure.
11412
+ */
11413
+
11414
+
11415
+ function onlyChild(children) {
11416
+ if (!isValidElement(children)) {
11417
+ {
11418
+ throw Error( "React.Children.only expected to receive a single React element child." );
11419
+ }
11420
+ }
11421
+
11422
+ return children;
11423
+ }
11424
+
11425
+ function createContext(defaultValue, calculateChangedBits) {
11426
+ if (calculateChangedBits === undefined) {
11427
+ calculateChangedBits = null;
11428
+ } else {
11429
+ {
11430
+ if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
11431
+ error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
11432
+ }
11433
+ }
11434
+ }
11435
+
11436
+ var context = {
11437
+ $$typeof: REACT_CONTEXT_TYPE,
11438
+ _calculateChangedBits: calculateChangedBits,
11439
+ // As a workaround to support multiple concurrent renderers, we categorize
11440
+ // some renderers as primary and others as secondary. We only expect
11441
+ // there to be two concurrent renderers at most: React Native (primary) and
11442
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
11443
+ // Secondary renderers store their context values on separate fields.
11444
+ _currentValue: defaultValue,
11445
+ _currentValue2: defaultValue,
11446
+ // Used to track how many concurrent renderers this context currently
11447
+ // supports within in a single renderer. Such as parallel server rendering.
11448
+ _threadCount: 0,
11449
+ // These are circular
11450
+ Provider: null,
11451
+ Consumer: null
11452
+ };
11453
+ context.Provider = {
11454
+ $$typeof: REACT_PROVIDER_TYPE,
11455
+ _context: context
11456
+ };
11457
+ var hasWarnedAboutUsingNestedContextConsumers = false;
11458
+ var hasWarnedAboutUsingConsumerProvider = false;
11459
+
11460
+ {
11461
+ // A separate object, but proxies back to the original context object for
11462
+ // backwards compatibility. It has a different $$typeof, so we can properly
11463
+ // warn for the incorrect usage of Context as a Consumer.
11464
+ var Consumer = {
11465
+ $$typeof: REACT_CONTEXT_TYPE,
11466
+ _context: context,
11467
+ _calculateChangedBits: context._calculateChangedBits
11468
+ }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
11469
+
11470
+ Object.defineProperties(Consumer, {
11471
+ Provider: {
11472
+ get: function () {
11473
+ if (!hasWarnedAboutUsingConsumerProvider) {
11474
+ hasWarnedAboutUsingConsumerProvider = true;
11475
+
11476
+ error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
11477
+ }
11478
+
11479
+ return context.Provider;
11480
+ },
11481
+ set: function (_Provider) {
11482
+ context.Provider = _Provider;
11483
+ }
11484
+ },
11485
+ _currentValue: {
11486
+ get: function () {
11487
+ return context._currentValue;
11488
+ },
11489
+ set: function (_currentValue) {
11490
+ context._currentValue = _currentValue;
11491
+ }
11492
+ },
11493
+ _currentValue2: {
11494
+ get: function () {
11495
+ return context._currentValue2;
11496
+ },
11497
+ set: function (_currentValue2) {
11498
+ context._currentValue2 = _currentValue2;
11499
+ }
11500
+ },
11501
+ _threadCount: {
11502
+ get: function () {
11503
+ return context._threadCount;
11504
+ },
11505
+ set: function (_threadCount) {
11506
+ context._threadCount = _threadCount;
11507
+ }
11508
+ },
11509
+ Consumer: {
11510
+ get: function () {
11511
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
11512
+ hasWarnedAboutUsingNestedContextConsumers = true;
11513
+
11514
+ error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
11515
+ }
11516
+
11517
+ return context.Consumer;
11518
+ }
11519
+ }
11520
+ }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
11521
+
11522
+ context.Consumer = Consumer;
11523
+ }
11524
+
11525
+ {
11526
+ context._currentRenderer = null;
11527
+ context._currentRenderer2 = null;
11528
+ }
11529
+
11530
+ return context;
11531
+ }
11532
+
11533
+ function lazy(ctor) {
11534
+ var lazyType = {
11535
+ $$typeof: REACT_LAZY_TYPE,
11536
+ _ctor: ctor,
11537
+ // React uses these fields to store the result.
11538
+ _status: -1,
11539
+ _result: null
11540
+ };
11541
+
11542
+ {
11543
+ // In production, this would just set it on the object.
11544
+ var defaultProps;
11545
+ var propTypes;
11546
+ Object.defineProperties(lazyType, {
11547
+ defaultProps: {
11548
+ configurable: true,
11549
+ get: function () {
11550
+ return defaultProps;
11551
+ },
11552
+ set: function (newDefaultProps) {
11553
+ error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
11554
+
11555
+ defaultProps = newDefaultProps; // Match production behavior more closely:
11556
+
11557
+ Object.defineProperty(lazyType, 'defaultProps', {
11558
+ enumerable: true
11559
+ });
11560
+ }
11561
+ },
11562
+ propTypes: {
11563
+ configurable: true,
11564
+ get: function () {
11565
+ return propTypes;
11566
+ },
11567
+ set: function (newPropTypes) {
11568
+ error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
11569
+
11570
+ propTypes = newPropTypes; // Match production behavior more closely:
11571
+
11572
+ Object.defineProperty(lazyType, 'propTypes', {
11573
+ enumerable: true
11574
+ });
11575
+ }
11576
+ }
11577
+ });
11578
+ }
11579
+
11580
+ return lazyType;
11581
+ }
11582
+
11583
+ function forwardRef(render) {
11584
+ {
11585
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
11586
+ error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
11587
+ } else if (typeof render !== 'function') {
11588
+ error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
11589
+ } else {
11590
+ if (render.length !== 0 && render.length !== 2) {
11591
+ error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
11592
+ }
11593
+ }
11594
+
11595
+ if (render != null) {
11596
+ if (render.defaultProps != null || render.propTypes != null) {
11597
+ error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
11598
+ }
11599
+ }
11600
+ }
11601
+
11602
+ return {
11603
+ $$typeof: REACT_FORWARD_REF_TYPE,
11604
+ render: render
11605
+ };
11606
+ }
11607
+
11608
+ function isValidElementType(type) {
11609
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
11610
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
11611
+ }
11612
+
11613
+ function memo(type, compare) {
11614
+ {
11615
+ if (!isValidElementType(type)) {
11616
+ error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
11617
+ }
11618
+ }
11619
+
11620
+ return {
11621
+ $$typeof: REACT_MEMO_TYPE,
11622
+ type: type,
11623
+ compare: compare === undefined ? null : compare
11624
+ };
11625
+ }
11626
+
11627
+ function resolveDispatcher() {
11628
+ var dispatcher = ReactCurrentDispatcher.current;
11629
+
11630
+ if (!(dispatcher !== null)) {
11631
+ {
11632
+ throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
11633
+ }
11634
+ }
11635
+
11636
+ return dispatcher;
11637
+ }
11638
+
11639
+ function useContext(Context, unstable_observedBits) {
11640
+ var dispatcher = resolveDispatcher();
11641
+
11642
+ {
11643
+ if (unstable_observedBits !== undefined) {
11644
+ error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
11645
+ } // TODO: add a more generic warning for invalid values.
11646
+
11647
+
11648
+ if (Context._context !== undefined) {
11649
+ var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
11650
+ // and nobody should be using this in existing code.
11651
+
11652
+ if (realContext.Consumer === Context) {
11653
+ error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
11654
+ } else if (realContext.Provider === Context) {
11655
+ error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
11656
+ }
11657
+ }
11658
+ }
11659
+
11660
+ return dispatcher.useContext(Context, unstable_observedBits);
11661
+ }
11662
+ function useState(initialState) {
11663
+ var dispatcher = resolveDispatcher();
11664
+ return dispatcher.useState(initialState);
11665
+ }
11666
+ function useReducer(reducer, initialArg, init) {
11667
+ var dispatcher = resolveDispatcher();
11668
+ return dispatcher.useReducer(reducer, initialArg, init);
11669
+ }
11670
+ function useRef(initialValue) {
11671
+ var dispatcher = resolveDispatcher();
11672
+ return dispatcher.useRef(initialValue);
11673
+ }
11674
+ function useEffect(create, deps) {
11675
+ var dispatcher = resolveDispatcher();
11676
+ return dispatcher.useEffect(create, deps);
11677
+ }
11678
+ function useLayoutEffect(create, deps) {
11679
+ var dispatcher = resolveDispatcher();
11680
+ return dispatcher.useLayoutEffect(create, deps);
11681
+ }
11682
+ function useCallback(callback, deps) {
11683
+ var dispatcher = resolveDispatcher();
11684
+ return dispatcher.useCallback(callback, deps);
11685
+ }
11686
+ function useMemo(create, deps) {
11687
+ var dispatcher = resolveDispatcher();
11688
+ return dispatcher.useMemo(create, deps);
11689
+ }
11690
+ function useImperativeHandle(ref, create, deps) {
11691
+ var dispatcher = resolveDispatcher();
11692
+ return dispatcher.useImperativeHandle(ref, create, deps);
11693
+ }
11694
+ function useDebugValue(value, formatterFn) {
11695
+ {
11696
+ var dispatcher = resolveDispatcher();
11697
+ return dispatcher.useDebugValue(value, formatterFn);
11698
+ }
11699
+ }
11700
+
11701
+ var propTypesMisspellWarningShown;
11702
+
11703
+ {
11704
+ propTypesMisspellWarningShown = false;
11705
+ }
11706
+
11707
+ function getDeclarationErrorAddendum() {
11708
+ if (ReactCurrentOwner.current) {
11709
+ var name = getComponentName(ReactCurrentOwner.current.type);
11710
+
11711
+ if (name) {
11712
+ return '\n\nCheck the render method of `' + name + '`.';
11713
+ }
11714
+ }
11715
+
11716
+ return '';
11717
+ }
11718
+
11719
+ function getSourceInfoErrorAddendum(source) {
11720
+ if (source !== undefined) {
11721
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
11722
+ var lineNumber = source.lineNumber;
11723
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
11724
+ }
11725
+
11726
+ return '';
11727
+ }
11728
+
11729
+ function getSourceInfoErrorAddendumForProps(elementProps) {
11730
+ if (elementProps !== null && elementProps !== undefined) {
11731
+ return getSourceInfoErrorAddendum(elementProps.__source);
11732
+ }
11733
+
11734
+ return '';
11735
+ }
11736
+ /**
11737
+ * Warn if there's no key explicitly set on dynamic arrays of children or
11738
+ * object keys are not valid. This allows us to keep track of children between
11739
+ * updates.
11740
+ */
11741
+
11742
+
11743
+ var ownerHasKeyUseWarning = {};
11744
+
11745
+ function getCurrentComponentErrorInfo(parentType) {
11746
+ var info = getDeclarationErrorAddendum();
11747
+
11748
+ if (!info) {
11749
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
11750
+
11751
+ if (parentName) {
11752
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
11753
+ }
11754
+ }
11755
+
11756
+ return info;
11757
+ }
11758
+ /**
11759
+ * Warn if the element doesn't have an explicit key assigned to it.
11760
+ * This element is in an array. The array could grow and shrink or be
11761
+ * reordered. All children that haven't already been validated are required to
11762
+ * have a "key" property assigned to it. Error statuses are cached so a warning
11763
+ * will only be shown once.
11764
+ *
11765
+ * @internal
11766
+ * @param {ReactElement} element Element that requires a key.
11767
+ * @param {*} parentType element's parent's type.
11768
+ */
11769
+
11770
+
11771
+ function validateExplicitKey(element, parentType) {
11772
+ if (!element._store || element._store.validated || element.key != null) {
11773
+ return;
11774
+ }
11775
+
11776
+ element._store.validated = true;
11777
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
11778
+
11779
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
11780
+ return;
11781
+ }
11782
+
11783
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
11784
+ // property, it may be the creator of the child that's responsible for
11785
+ // assigning it a key.
11786
+
11787
+ var childOwner = '';
11788
+
11789
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
11790
+ // Give the component that originally created this child.
11791
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
11792
+ }
11793
+
11794
+ setCurrentlyValidatingElement(element);
11795
+
11796
+ {
11797
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
11798
+ }
11799
+
11800
+ setCurrentlyValidatingElement(null);
11801
+ }
11802
+ /**
11803
+ * Ensure that every element either is passed in a static location, in an
11804
+ * array with an explicit keys property defined, or in an object literal
11805
+ * with valid key property.
11806
+ *
11807
+ * @internal
11808
+ * @param {ReactNode} node Statically passed child of any type.
11809
+ * @param {*} parentType node's parent's type.
11810
+ */
11811
+
11812
+
11813
+ function validateChildKeys(node, parentType) {
11814
+ if (typeof node !== 'object') {
11815
+ return;
11816
+ }
11817
+
11818
+ if (Array.isArray(node)) {
11819
+ for (var i = 0; i < node.length; i++) {
11820
+ var child = node[i];
11821
+
11822
+ if (isValidElement(child)) {
11823
+ validateExplicitKey(child, parentType);
11824
+ }
11825
+ }
11826
+ } else if (isValidElement(node)) {
11827
+ // This element was passed in a valid location.
11828
+ if (node._store) {
11829
+ node._store.validated = true;
11830
+ }
11831
+ } else if (node) {
11832
+ var iteratorFn = getIteratorFn(node);
11833
+
11834
+ if (typeof iteratorFn === 'function') {
11835
+ // Entry iterators used to provide implicit keys,
11836
+ // but now we print a separate warning for them later.
11837
+ if (iteratorFn !== node.entries) {
11838
+ var iterator = iteratorFn.call(node);
11839
+ var step;
11840
+
11841
+ while (!(step = iterator.next()).done) {
11842
+ if (isValidElement(step.value)) {
11843
+ validateExplicitKey(step.value, parentType);
11844
+ }
11845
+ }
11846
+ }
11847
+ }
11848
+ }
11849
+ }
11850
+ /**
11851
+ * Given an element, validate that its props follow the propTypes definition,
11852
+ * provided by the type.
11853
+ *
11854
+ * @param {ReactElement} element
11855
+ */
11856
+
11857
+
11858
+ function validatePropTypes(element) {
11859
+ {
11860
+ var type = element.type;
11861
+
11862
+ if (type === null || type === undefined || typeof type === 'string') {
11863
+ return;
11864
+ }
11865
+
11866
+ var name = getComponentName(type);
11867
+ var propTypes;
11868
+
11869
+ if (typeof type === 'function') {
11870
+ propTypes = type.propTypes;
11871
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
11872
+ // Inner props are checked in the reconciler.
11873
+ type.$$typeof === REACT_MEMO_TYPE)) {
11874
+ propTypes = type.propTypes;
11875
+ } else {
11876
+ return;
11877
+ }
11878
+
11879
+ if (propTypes) {
11880
+ setCurrentlyValidatingElement(element);
11881
+ checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
11882
+ setCurrentlyValidatingElement(null);
11883
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
11884
+ propTypesMisspellWarningShown = true;
11885
+
11886
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
11887
+ }
11888
+
11889
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
11890
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
11891
+ }
11892
+ }
11893
+ }
11894
+ /**
11895
+ * Given a fragment, validate that it can only be provided with fragment props
11896
+ * @param {ReactElement} fragment
11897
+ */
11898
+
11899
+
11900
+ function validateFragmentProps(fragment) {
11901
+ {
11902
+ setCurrentlyValidatingElement(fragment);
11903
+ var keys = Object.keys(fragment.props);
11904
+
11905
+ for (var i = 0; i < keys.length; i++) {
11906
+ var key = keys[i];
11907
+
11908
+ if (key !== 'children' && key !== 'key') {
11909
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
11910
+
11911
+ break;
11912
+ }
11913
+ }
11914
+
11915
+ if (fragment.ref !== null) {
11916
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
11917
+ }
11918
+
11919
+ setCurrentlyValidatingElement(null);
11920
+ }
11921
+ }
11922
+ function createElementWithValidation(type, props, children) {
11923
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
11924
+ // succeed and there will likely be errors in render.
11925
+
11926
+ if (!validType) {
11927
+ var info = '';
11928
+
11929
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
11930
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
11931
+ }
11932
+
11933
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
11934
+
11935
+ if (sourceInfo) {
11936
+ info += sourceInfo;
11937
+ } else {
11938
+ info += getDeclarationErrorAddendum();
11939
+ }
11940
+
11941
+ var typeString;
11942
+
11943
+ if (type === null) {
11944
+ typeString = 'null';
11945
+ } else if (Array.isArray(type)) {
11946
+ typeString = 'array';
11947
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
11948
+ typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
11949
+ info = ' Did you accidentally export a JSX literal instead of a component?';
11950
+ } else {
11951
+ typeString = typeof type;
11952
+ }
11953
+
11954
+ {
11955
+ error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
11956
+ }
11957
+ }
11958
+
11959
+ var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
11960
+ // TODO: Drop this when these are no longer allowed as the type argument.
11961
+
11962
+ if (element == null) {
11963
+ return element;
11964
+ } // Skip key warning if the type isn't valid since our key validation logic
11965
+ // doesn't expect a non-string/function type and can throw confusing errors.
11966
+ // We don't want exception behavior to differ between dev and prod.
11967
+ // (Rendering will throw with a helpful message and as soon as the type is
11968
+ // fixed, the key warnings will appear.)
11969
+
11970
+
11971
+ if (validType) {
11972
+ for (var i = 2; i < arguments.length; i++) {
11973
+ validateChildKeys(arguments[i], type);
11974
+ }
11975
+ }
11976
+
11977
+ if (type === REACT_FRAGMENT_TYPE) {
11978
+ validateFragmentProps(element);
11979
+ } else {
11980
+ validatePropTypes(element);
11981
+ }
11982
+
11983
+ return element;
11984
+ }
11985
+ var didWarnAboutDeprecatedCreateFactory = false;
11986
+ function createFactoryWithValidation(type) {
11987
+ var validatedFactory = createElementWithValidation.bind(null, type);
11988
+ validatedFactory.type = type;
11989
+
11990
+ {
11991
+ if (!didWarnAboutDeprecatedCreateFactory) {
11992
+ didWarnAboutDeprecatedCreateFactory = true;
11993
+
11994
+ warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
11995
+ } // Legacy hook: remove it
11996
+
11997
+
11998
+ Object.defineProperty(validatedFactory, 'type', {
11999
+ enumerable: false,
12000
+ get: function () {
12001
+ warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
12002
+
12003
+ Object.defineProperty(this, 'type', {
12004
+ value: type
12005
+ });
12006
+ return type;
12007
+ }
12008
+ });
12009
+ }
12010
+
12011
+ return validatedFactory;
12012
+ }
12013
+ function cloneElementWithValidation(element, props, children) {
12014
+ var newElement = cloneElement.apply(this, arguments);
12015
+
12016
+ for (var i = 2; i < arguments.length; i++) {
12017
+ validateChildKeys(arguments[i], newElement.type);
12018
+ }
12019
+
12020
+ validatePropTypes(newElement);
12021
+ return newElement;
12022
+ }
12023
+
12024
+ {
12025
+
12026
+ try {
12027
+ var frozenObject = Object.freeze({});
12028
+ var testMap = new Map([[frozenObject, null]]);
12029
+ var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
12030
+ // https://github.com/rollup/rollup/issues/1771
12031
+ // TODO: we can remove these if Rollup fixes the bug.
12032
+
12033
+ testMap.set(0, 0);
12034
+ testSet.add(0);
12035
+ } catch (e) {
12036
+ }
12037
+ }
12038
+
12039
+ var createElement$1 = createElementWithValidation ;
12040
+ var cloneElement$1 = cloneElementWithValidation ;
12041
+ var createFactory = createFactoryWithValidation ;
12042
+ var Children = {
12043
+ map: mapChildren,
12044
+ forEach: forEachChildren,
12045
+ count: countChildren,
12046
+ toArray: toArray,
12047
+ only: onlyChild
12048
+ };
12049
+
12050
+ exports.Children = Children;
12051
+ exports.Component = Component;
12052
+ exports.Fragment = REACT_FRAGMENT_TYPE;
12053
+ exports.Profiler = REACT_PROFILER_TYPE;
12054
+ exports.PureComponent = PureComponent;
12055
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
12056
+ exports.Suspense = REACT_SUSPENSE_TYPE;
12057
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
12058
+ exports.cloneElement = cloneElement$1;
12059
+ exports.createContext = createContext;
12060
+ exports.createElement = createElement$1;
12061
+ exports.createFactory = createFactory;
12062
+ exports.createRef = createRef;
12063
+ exports.forwardRef = forwardRef;
12064
+ exports.isValidElement = isValidElement;
12065
+ exports.lazy = lazy;
12066
+ exports.memo = memo;
12067
+ exports.useCallback = useCallback;
12068
+ exports.useContext = useContext;
12069
+ exports.useDebugValue = useDebugValue;
12070
+ exports.useEffect = useEffect;
12071
+ exports.useImperativeHandle = useImperativeHandle;
12072
+ exports.useLayoutEffect = useLayoutEffect;
12073
+ exports.useMemo = useMemo;
12074
+ exports.useReducer = useReducer;
12075
+ exports.useRef = useRef;
12076
+ exports.useState = useState;
12077
+ exports.version = ReactVersion;
12078
+ })();
12079
+ }
12080
+ });
12081
+
12082
+ var react = createCommonjsModule(function (module) {
12083
+
12084
+ if (process.env.NODE_ENV === 'production') {
12085
+ module.exports = react_production_min;
12086
+ } else {
12087
+ module.exports = react_development;
12088
+ }
12089
+ });
12090
+
12091
+ var dateFormatSettings = ["DD MMM yyyy", "DD/MM/yyyy", "MMM DD yyyy", "MM/DD/yyyy", "yyyy/MM/DD"];
12092
+ var generateDateFormat = function generateDateFormat(settingValue) {
12093
+ switch (settingValue) {
12094
+ case 0:
12095
+ case 1:
12096
+ case 2:
12097
+ case 3:
12098
+ case 4:
12099
+ return dateFormatSettings[settingValue];
12100
+
12101
+ default:
12102
+ return dateFormatSettings[0];
12103
+ }
12104
+ };
12105
+ var formatDate = function formatDate(date, _ref) {
12106
+ var timeZone = _ref.timeZone,
12107
+ _ref$dateFormat = _ref.dateFormat,
12108
+ dateFormat = _ref$dateFormat === void 0 ? dateFormatSettings[0] : _ref$dateFormat;
12109
+ var d = momentTimezone$1(date);
12110
+
12111
+ if (timeZone) {
12112
+ d = d.tz(timeZone);
12113
+ }
12114
+
12115
+ return d.format(generateDateFormat(dateFormat));
12116
+ };
12117
+
12118
+ var getTax1 = function getTax1(item, rtl) {
12119
+ if (rtl === void 0) {
12120
+ rtl = false;
12121
+ }
12122
+
12123
+ var enableTax1 = "";
12124
+
12125
+ if (item.enableTax1) {
12126
+ if (rtl) {
12127
+ enableTax1 = (item.taxRate1 || 0) + "% " + (item.taxCode1 || "Tax1");
12128
+ } else {
12129
+ enableTax1 = (item.taxCode1 || "Tax1") + " " + (item.taxRate1 || 0) + "%";
12130
+ }
12131
+ } else if (item.enableTax2) {
12132
+ enableTax1 = "";
12133
+ } else if (item.taxInclusive) {
12134
+ if (rtl) {
12135
+ enableTax1 = "0% " + (item.taxCode1 || "Tax1");
12136
+ } else {
12137
+ enableTax1 = (item.taxCode1 || "Tax1") + " 0%";
12138
+ }
12139
+ }
12140
+
12141
+ return enableTax1;
12142
+ };
12143
+
12144
+ var getTax2 = function getTax2(item, rtl) {
12145
+ if (rtl === void 0) {
12146
+ rtl = false;
12147
+ }
12148
+
12149
+ if (!item.enableTax2) return "";
12150
+ var enableTax2 = "";
12151
+ var firstString = item !== null && item !== void 0 && item.enableTax1 ? " &" : "";
12152
+
12153
+ if (rtl) {
12154
+ enableTax2 = firstString.concat(" " + (item.taxRate2 || 0) + "% " + (item.taxCode2 || "Second Tax"));
12155
+ } else {
12156
+ enableTax2 = firstString.concat(" " + (item.taxCode2 || " Second Tax") + " " + (item.taxRate2 || 0) + "%");
12157
+ }
12158
+
12159
+ return enableTax2;
12160
+ };
12161
+
12162
+ var getTaxTitle = function getTaxTitle(item, isShowZero, rtl) {
12163
+ if (isShowZero === void 0) {
12164
+ isShowZero = false;
12165
+ }
12166
+
12167
+ if (rtl === void 0) {
12168
+ rtl = false;
12169
+ }
12170
+
12171
+ if (!item.enableTax1 && !item.enableTax2 && !isShowZero) {
12172
+ return "Add Tax";
12173
+ }
12174
+
12175
+ var enableTax1 = "";
12176
+ var enableTax2 = "";
12177
+ var taxInclusive = item.taxInclusive ? " inclusive " : " exclusive ";
12178
+
12179
+ if (!isShowZero) {
12180
+ enableTax1 = getTax1(item, rtl);
12181
+ enableTax2 = getTax2(item, rtl);
12182
+ } else {
12183
+ if (item.enableTax1 && item.taxRate1 > 0) {
12184
+ enableTax1 = getTax1(item, rtl);
12185
+ }
12186
+
12187
+ if (item.enableTax2 && item.taxRate2 > 0) {
12188
+ enableTax2 = getTax2(item, rtl);
12189
+ }
12190
+
12191
+ if (!enableTax1 && !enableTax2) {
12192
+ taxInclusive = "";
12193
+ }
12194
+ }
12195
+
12196
+ if (rtl) {
12197
+ return (taxInclusive + enableTax1 + enableTax2).trim();
12198
+ }
12199
+
12200
+ return (enableTax1 + enableTax2 + taxInclusive).trim();
12201
+ };
12202
+ var endDate = function endDate(proposal, company) {
12203
+ if (proposal.endDate !== null) {
12204
+ return formatDate(proposal.endDate, company);
12205
+ } else if (proposal.endType === "fixed_length") {
12206
+ return formatDate(moment(proposal.startDate).add(proposal.contractLength, "month"), company);
12207
+ }
12208
+ };
12209
+
12210
+ var getRecurringPeriodType = function getRecurringPeriodType(recurringPeriodType, recurringPeriodFrequency) {
12211
+ if (recurringPeriodType === void 0) {
12212
+ recurringPeriodType = "month";
12213
+ }
12214
+
12215
+ if (recurringPeriodFrequency > 1) {
12216
+ return recurringPeriodType + "s";
12217
+ } else {
12218
+ return recurringPeriodType;
12219
+ }
12220
+ };
12221
+
12222
+ function getBilling(item, proposal, company) {
12223
+ var billingType = item.billingType,
12224
+ recurringPeriodFrequency = item.recurringPeriodFrequency,
12225
+ recurringPeriodType = item.recurringPeriodType,
12226
+ recurringStartDate = item.recurringStartDate,
12227
+ recurringStartType = item.recurringStartType;
12228
+
12229
+ switch (billingType) {
12230
+ case "acceptance":
12231
+ return "Billed today";
12232
+
12233
+ case "completion":
12234
+ if (proposal.endType === "fixed_date") {
12235
+ return "Billed on completion";
12236
+ } else if (proposal.endDate !== null) {
12237
+ return "Billed on " + formatDate(proposal.endDate, company);
12238
+ } else {
12239
+ return "Billed on completion";
12240
+ }
12241
+
12242
+ case "recurring":
12243
+ var startDate = recurringStartType === "on_acceptance" ? "acceptance" : formatDate(recurringStartDate, company);
12244
+ return "Billed every " + (recurringPeriodFrequency === 1 ? "" : recurringPeriodFrequency) + " " + getRecurringPeriodType(recurringPeriodType || "month", recurringPeriodFrequency) + " from " + startDate;
12245
+
12246
+ default:
12247
+ return "Billing type should be selected";
12248
+ }
12249
+ }
12250
+
12251
+ var convertMetaCharacterToHtml = function convertMetaCharacterToHtml(text) {
12252
+ var _text = (text || '').replace(/\r?\n/g, '<br />');
12253
+
12254
+ var arr = _text.split('<br />');
12255
+
12256
+ _text = arr.map(function (t) {
12257
+ if (t === '<br />') return t;
12258
+ return "<div class=\"pageBreak\">" + t + "</div>";
12259
+ }).join('');
12260
+ return _text;
12261
+ };
12262
+
12263
+ var stringInjectObject = function stringInjectObject(str, object) {
12264
+ var s = str;
12265
+
12266
+ for (var prop in object) {
12267
+ s = s.replace(new RegExp("{" + prop + "}", "g"), object[prop]);
12268
+ }
12269
+
12270
+ return s;
12271
+ };
12272
+ var getObjectInject = function getObjectInject(arr, objectDefine) {
12273
+ if (arr.length === 0) return {};
12274
+ var object = {};
12275
+
12276
+ for (var i = 0; i < arr.length; i++) {
12277
+ var item = arr[i];
12278
+ Object.defineProperty(object, item, {
12279
+ value: objectDefine[item] || null,
12280
+ enumerable: true,
12281
+ writable: true
12282
+ });
12283
+ }
12284
+
12285
+ return object;
12286
+ };
12287
+
12288
+ var SECTION_DEFINE = [{
12289
+ termHeading: '',
12290
+ termContent: 'The following terms and conditions form the Terms of Services between <b>{companyName} (Supplier)</b> and <b>{customerName} (Customer)</b>. Please review the following terms carefully before accepting this Proposal.',
12291
+ isTermHidden: false,
12292
+ replace: ['customerName', 'companyName']
12293
+ }];
12294
+
12295
+ var FormatCurrency$2 = index.FormatCurrency;
12296
+ var language = {
12297
+ en: en
12298
+ };
12299
+ var contractHtml = (function (props) {
12300
+ var proposal = props.proposal,
12301
+ company = props.company,
12302
+ contractor = props.contractor;
12303
+ var lang = language[(props === null || props === void 0 ? void 0 : props.lang) || "en"];
12304
+ var customer = (proposal === null || proposal === void 0 ? void 0 : proposal.customer) || {};
12305
+ var items = ((proposal === null || proposal === void 0 ? void 0 : proposal.serviceItems) || []).filter(function (item) {
12306
+ return !!(item !== null && item !== void 0 && item.name);
12307
+ });
12308
+ var sections = ((proposal === null || proposal === void 0 ? void 0 : proposal.termsAndConditions) || []).filter(function (item) {
12309
+ return !(item !== null && item !== void 0 && item.isTermHidden);
12310
+ });
12311
+ var sectionsDefine = SECTION_DEFINE;
12312
+ var objectDefine = {
12313
+ customerName: (customer === null || customer === void 0 ? void 0 : customer.companyName) || "Customer Name",
12314
+ companyName: (company === null || company === void 0 ? void 0 : company.name) || " Supplier Name"
12315
+ };
12316
+ var styles = "<style>\n .pageBreak {\n page-break-inside: avoid;\n }\n #proposal-generator {\n background-color: #ffffff;\n max-width: 21cm;\n padding: 8px;\n }\n #proposal-generator hr {\n display: block;\n height: 1px;\n background: transparent;\n width: 100%;\n border: none;\n border-top: solid 2px #f0f3fb;\n margin: 16px 0;\n }\n #proposal-generator span, p, b {\n line-height: 1.5;\n }\n #proposal-generator b {\n font-size: 16px;\n font-weight: 700;\n }\n #proposal-generator table {\n width: 100%;\n }\n #proposal-generator section:not(:first-child) {\n margin-top: 40px;\n }\n #proposal-generator .section-title {\n font-size: 18px;\n font-weight: 700;\n color: #263238;\n }\n #proposal-generator .proposal-title {\n margin-bottom: 16px;\n }\n #proposal-generator .contact-title {\n font-size: 24px;\n }\n #proposal-generator .table-details {\n margin: 16px 0;\n }\n #proposal-generator .table-details tr td {\n width: 50%;\n vertical-align: top;\n word-break: break-word;\n page-break-inside: avoid;\n }\n #proposal-generator .agreement-date {\n margin-bottom: 16px;\n }\n #proposal-generator .table-service {\n border-collapse: collapse;\n }\n #proposal-generator .table-service tr {\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: 1px solid rgb(221, 221, 221);\n }\n #proposal-generator .table-service tr td {\n width: 50%;\n padding: 8px;\n vertical-align: top;\n word-break: break-word;\n page-break-inside: avoid;\n }\n #proposal-generator .table-agreement tr td {\n padding-top: 24px;\n page-break-inside: avoid;\n }\n @print {\n #proposal-generator {\n padding: 0;\n }\n }\n @media only screen and (max-width: 480px) {\n #proposal-generator{\n background-color: #ffffff;\n max-width: 21cm;\n padding: 20px;\n }\n #proposal-generator .table-details tr td {\n width: 100%;\n display: block;\n margin:10px 0px;\n }\n }\n </style>";
12317
+ var sectionHeader = "<section>";
12318
+ sectionHeader += "<h2 class=\"section-title contact-title\">" + ((lang === null || lang === void 0 ? void 0 : lang.service_agreement) || "") + "</h2>";
12319
+ sectionHeader += "<hr />";
12320
+ sectionHeader += "</section>";
12321
+ var sectionUserInfo = "<section>";
12322
+ sectionUserInfo += "<h5 class=\"section-title proposal-title\">" + ((proposal === null || proposal === void 0 ? void 0 : proposal.title) || "") + "</h5>";
12323
+ sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.details_line_1) || "") + "</span>";
12324
+ sectionUserInfo += "<br />";
12325
+ sectionUserInfo += "<span>" + (lang === null || lang === void 0 ? void 0 : lang.details_line_2(proposal !== null && proposal !== void 0 && proposal.expirationDate ? formatDate(proposal.expirationDate, company || {}) : "")) + "</span>";
12326
+ sectionUserInfo += '<table class="table-details"><tbody><tr><td>';
12327
+ sectionUserInfo += "<b>" + ((lang === null || lang === void 0 ? void 0 : lang.supplier_details) || "") + "</b>";
12328
+
12329
+ if (Object.keys(company || {}).length > 0) {
12330
+ if (company !== null && company !== void 0 && company.name) {
12331
+ sectionUserInfo += "<div><b>" + company.name + "</b></div>";
12332
+ }
12333
+
12334
+ if (company !== null && company !== void 0 && company.abbrBusinessNumber && company !== null && company !== void 0 && company.businessNumber) {
12335
+ sectionUserInfo += "<div><b>" + company.abbrBusinessNumber + " " + company.businessNumber + "</b></div>";
12336
+ }
12337
+
12338
+ if (company !== null && company !== void 0 && company.email) {
12339
+ sectionUserInfo += "<div><b>" + company.email + "</b></div>";
12340
+ }
12341
+
12342
+ if (company !== null && company !== void 0 && company.phoneNumber) {
12343
+ sectionUserInfo += "<div><b>" + company.phoneNumber + "</b></div>";
12344
+ }
12345
+ } else {
12346
+ sectionUserInfo += "<br />";
12347
+ sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.supplier_empty) || "") + "</span>";
12348
+ }
12349
+
12350
+ sectionUserInfo += "</td><td>";
12351
+ sectionUserInfo += "<b>" + (lang === null || lang === void 0 ? void 0 : lang.customer_details) + "</b>";
12352
+
12353
+ if (Object.keys(customer || {}).length > 0) {
12354
+ if (customer !== null && customer !== void 0 && customer.companyName) {
12355
+ sectionUserInfo += "<div><b>" + customer.companyName + "</b></div>";
12356
+ }
12357
+
12358
+ if (customer !== null && customer !== void 0 && customer.businessNumber) {
12359
+ sectionUserInfo += "<div><b>" + customer.businessNumber + "</b></div>";
12360
+ }
12361
+
12362
+ if (customer !== null && customer !== void 0 && customer.email) {
12363
+ sectionUserInfo += "<div><b>" + customer.email + "</b></div>";
12364
+ }
12365
+
12366
+ if (customer !== null && customer !== void 0 && customer.phone) {
12367
+ sectionUserInfo += "<div><b>" + customer.phone + "</b></div>";
12368
+ }
12369
+ } else {
12370
+ sectionUserInfo += "<br />";
12371
+ sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.customer_empty) || "") + "</span>";
12372
+ }
12373
+
12374
+ sectionUserInfo += "</td></tr></tbody></table>";
12375
+ sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((lang === null || lang === void 0 ? void 0 : lang.effective_date) || "") + "</b> " + (proposal !== null && proposal !== void 0 && proposal.effectiveDate ? formatDate(proposal.effectiveDate, company || {}) : "") + "</p>";
12376
+ sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((lang === null || lang === void 0 ? void 0 : lang.start_date) || "") + "</b> " + (proposal !== null && proposal !== void 0 && proposal.startDate ? formatDate(proposal.startDate, company || {}) : "") + "</p>";
12377
+ sectionUserInfo += "<p class=\"agreement-date\"><b>" + ((lang === null || lang === void 0 ? void 0 : lang.end_date) || "") + "</b> " + endDate(proposal, company || {}) + "</p>";
12378
+ sectionUserInfo += "<div style=\"margin: 6px 0\">";
12379
+ sectionUserInfo += "<span>" + ((lang === null || lang === void 0 ? void 0 : lang.details_line_3) || "") + "</span><br />";
12380
+ sectionUserInfo += "</div>";
12381
+ sectionUserInfo += "<p style=\"margin: 6px 0\">" + ((lang === null || lang === void 0 ? void 0 : lang.kind_regards) || "") + "</p>";
12382
+ sectionUserInfo += "<b>" + ((contractor === null || contractor === void 0 ? void 0 : contractor.firstName) || "") + " " + ((contractor === null || contractor === void 0 ? void 0 : contractor.lastName) || "") + "</b><br />";
12383
+ sectionUserInfo += "</section>";
12384
+ var sectionServices = "<section>";
12385
+ sectionServices += "<h5 class=\"section-title\">" + ((lang === null || lang === void 0 ? void 0 : lang.services_title) || "") + "</h5>";
12386
+ sectionServices += "<hr />";
12387
+ sectionServices += '<table class="table-service"><tbody>';
12388
+
12389
+ if (items && items.length > 0) {
12390
+ items.forEach(function (it) {
12391
+ var taxTitle = getTaxTitle(it, true);
12392
+ sectionServices += "<tr><td>";
12393
+
12394
+ if (it.billingType !== "none") {
12395
+ sectionServices += "<b>" + FormatCurrency$2(((it === null || it === void 0 ? void 0 : it.price) || 0) * ((it === null || it === void 0 ? void 0 : it.quantity) || 0), (company === null || company === void 0 ? void 0 : company.currency) || "USD", (company === null || company === void 0 ? void 0 : company.language) || "en", (company === null || company === void 0 ? void 0 : company.currencyFormat) || "") + "</b>";
12396
+ sectionServices += !!taxTitle && " " + taxTitle + "</br>";
12397
+ sectionServices += "<b>" + lang.quantity + ": " + (it.quantity || 0) + "</b></br>";
12398
+ sectionServices += "<b>" + lang.total + " " + FormatCurrency$2(it.totalAmount || 0, (company === null || company === void 0 ? void 0 : company.currency) || "USD", (company === null || company === void 0 ? void 0 : company.language) || "en", (company === null || company === void 0 ? void 0 : company.currencyFormat) || "") + "</b></br>";
12399
+ }
12400
+
12401
+ if (it.name) {
12402
+ sectionServices += "<b>" + it.name + "</b>";
12403
+ }
12404
+
12405
+ if (it.description) {
12406
+ sectionServices += "<p>" + it.description + "</p>";
12407
+ }
12408
+
12409
+ sectionServices += '</td><td align="right">';
12410
+ sectionServices += "<p>" + getBilling(it, proposal, company) + "</p>";
12411
+ sectionServices += "</td></tr>";
12412
+ });
12413
+ } else {
12414
+ sectionServices += '<tr style="border:none;"><td style="border: unset;">' + ((lang === null || lang === void 0 ? void 0 : lang.items_empty) || "") + "</td></tr>";
12415
+ }
12416
+
12417
+ sectionServices += "</tbody></table>";
12418
+ sectionServices += "</section>";
12419
+ var sectionAgreement = "<section>";
12420
+ sectionAgreement += "<h5 class=\"section-title\">" + ((lang === null || lang === void 0 ? void 0 : lang.agreement_title) || "") + "</h5>";
12421
+ sectionAgreement += "<hr />";
12422
+ sectionAgreement += '<table class="table-agreement"><tbody>';
12423
+
12424
+ if (sectionsDefine && sectionsDefine.length > 0) {
12425
+ sectionsDefine.forEach(function (s) {
12426
+ sectionAgreement += "<tr><td>";
12427
+
12428
+ if (s !== null && s !== void 0 && s.termHeading) {
12429
+ sectionAgreement += '<b style="marginBottom: 10px">' + s.termHeading + "</b>";
12430
+ }
12431
+
12432
+ if (s !== null && s !== void 0 && s.termContent) {
12433
+ var _s$replace;
12434
+
12435
+ sectionAgreement += '<p style="marginBottom: 10px">';
12436
+ sectionAgreement += convertMetaCharacterToHtml((s === null || s === void 0 ? void 0 : (_s$replace = s.replace) === null || _s$replace === void 0 ? void 0 : _s$replace.length) === 0 ? s.termContent : stringInjectObject(s.termContent, getObjectInject(s.replace, objectDefine)));
12437
+ sectionAgreement += "</p>";
12438
+ }
12439
+
12440
+ sectionAgreement += "</td></tr>";
12441
+ });
12442
+ }
12443
+
12444
+ if (sections && sections.length > 0) {
12445
+ sections.forEach(function (s) {
12446
+ sectionAgreement += "<tr><td>";
12447
+
12448
+ if (s !== null && s !== void 0 && s.termHeading) {
12449
+ sectionAgreement += '<b style="marginBottom: 10px">' + s.termHeading + "</b>";
12450
+ }
12451
+
12452
+ if (s !== null && s !== void 0 && s.termContent) {
12453
+ sectionAgreement += '<p style="marginBottom: 10px">';
12454
+ sectionAgreement += s.termContent;
12455
+ sectionAgreement += "</p>";
12456
+ }
12457
+
12458
+ sectionAgreement += "</td></tr>";
12459
+ });
12460
+ }
12461
+
12462
+ sectionAgreement += "</tbody></table>";
12463
+ sectionAgreement += "</section>";
12464
+ var html = styles;
12465
+ html += '<div id="proposal-generator">';
12466
+ html += sectionHeader;
12467
+ html += sectionUserInfo;
12468
+ html += sectionServices;
12469
+ html += sectionAgreement;
12470
+ html += "</div>";
12471
+ return html;
12472
+ });
9735
12473
 
12474
+ exports.ContractHtml = contractHtml;
9736
12475
  exports.InvoiceCompatHtml = InvoiceCompatHtml;
9737
12476
  exports.InvoiceHtml = invoiceHtml;
9738
12477
  exports.invoiceHtmlWithDetails = invoiceHtmlWithDetails;