ordering-ui-admin-external 1.30.6 → 1.30.7

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.
Files changed (373) hide show
  1. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js → ordering-ui-admin.a29dbc53a1f823ce0ce5.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js.LICENSE.txt → ordering-ui-admin.a29dbc53a1f823ce0ce5.js.LICENSE.txt} +1 -1
  3. package/_modules/components/BusinessIntelligence/AnalyticsAvailableTimes/index.js +10 -10
  4. package/_modules/components/BusinessIntelligence/AnalyticsBusinessFilter/index.js +1 -1
  5. package/_modules/components/BusinessIntelligence/AnalyticsBusyTimes/index.js +10 -10
  6. package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +1 -1
  7. package/_modules/components/BusinessIntelligence/AnalyticsCustomerSatisfaction/index.js +10 -10
  8. package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +18 -18
  9. package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +4 -4
  10. package/_modules/components/BusinessIntelligence/AnalyticsOrdersOrSales/index.js +3 -3
  11. package/_modules/components/BusinessIntelligence/AnalyticsOrdersStatus/index.js +1 -1
  12. package/_modules/components/BusinessIntelligence/AnalyticsRegisterUsers/index.js +6 -6
  13. package/_modules/components/BusinessIntelligence/AnalyticsSpendTimes/index.js +12 -12
  14. package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
  15. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
  16. package/_modules/components/BusinessIntelligence/CountryFilter/index.js +1 -1
  17. package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
  18. package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
  19. package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
  20. package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +14 -14
  21. package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
  22. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +24 -24
  23. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +9 -9
  24. package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +15 -15
  25. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +8 -8
  26. package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
  27. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +9 -9
  28. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +9 -9
  29. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +7 -7
  30. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +9 -9
  31. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +9 -9
  32. package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +9 -9
  33. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +21 -21
  34. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +14 -14
  35. package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
  36. package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +19 -19
  37. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -9
  38. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +17 -17
  39. package/_modules/components/BusinessIntelligence/ReportsSales/index.js +19 -19
  40. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +8 -8
  41. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +24 -24
  42. package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +14 -14
  43. package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
  44. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
  45. package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
  46. package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
  47. package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
  48. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
  49. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
  50. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
  51. package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
  52. package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
  53. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
  54. package/_modules/components/Delivery/AddressForm/index.js +29 -29
  55. package/_modules/components/Delivery/AddressList/index.js +11 -11
  56. package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
  57. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
  58. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
  59. package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
  60. package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
  61. package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
  62. package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
  63. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
  64. package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
  65. package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
  66. package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
  67. package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
  68. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  69. package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
  70. package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  71. package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
  72. package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
  73. package/_modules/components/Delivery/UserAddForm/index.js +13 -13
  74. package/_modules/components/Delivery/UserDetails/index.js +6 -6
  75. package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
  76. package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
  77. package/_modules/components/Home/HomePage/index.js +7 -7
  78. package/_modules/components/LanguageSelector/index.js +1 -1
  79. package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
  80. package/_modules/components/Login/LoginForm/index.js +11 -11
  81. package/_modules/components/Login/ResetPassword/index.js +5 -5
  82. package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
  83. package/_modules/components/Loyalty/GiftCards/index.js +3 -3
  84. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
  85. package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
  86. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
  87. package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
  88. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
  89. package/_modules/components/Marketing/BannerDetails/index.js +5 -5
  90. package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
  91. package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
  92. package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
  93. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  94. package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
  95. package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
  96. package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
  97. package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
  98. package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
  99. package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
  100. package/_modules/components/Marketing/CampaignList/index.js +2 -2
  101. package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
  102. package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
  103. package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
  104. package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
  105. package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
  106. package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
  107. package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
  108. package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
  109. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
  110. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
  111. package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
  112. package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
  113. package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
  114. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
  115. package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
  116. package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
  117. package/_modules/components/Marketing/PageBanner/index.js +1 -1
  118. package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
  119. package/_modules/components/Messages/ChatContactList/index.js +2 -2
  120. package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
  121. package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
  122. package/_modules/components/MyProducts/AppResources/index.js +15 -15
  123. package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
  124. package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
  125. package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
  126. package/_modules/components/MyProducts/OrderingWebsite/index.js +29 -29
  127. package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
  128. package/_modules/components/NotNetworkConnectivity/index.js +2 -2
  129. package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
  130. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  131. package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
  132. package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
  133. package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
  134. package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
  135. package/_modules/components/Orders/Appointments/index.js +2 -2
  136. package/_modules/components/Orders/CompanySelector/index.js +4 -4
  137. package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
  138. package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
  139. package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
  140. package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
  141. package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
  142. package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
  143. package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +2 -2
  144. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
  145. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
  146. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
  147. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
  148. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
  149. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
  150. package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
  151. package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
  152. package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
  153. package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
  154. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +1 -1
  155. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
  156. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
  157. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
  158. package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
  159. package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
  160. package/_modules/components/Orders/DeliveriesManager/index.js +2 -2
  161. package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
  162. package/_modules/components/Orders/DriversList/index.js +2 -2
  163. package/_modules/components/Orders/DriversLocation/index.js +11 -11
  164. package/_modules/components/Orders/DriversManager/index.js +2 -2
  165. package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
  166. package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
  167. package/_modules/components/Orders/Logistics/index.js +1 -1
  168. package/_modules/components/Orders/Messages/index.js +4 -4
  169. package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
  170. package/_modules/components/Orders/OrderBill/index.js +46 -46
  171. package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
  172. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
  173. package/_modules/components/Orders/OrderDetails/index.js +6 -6
  174. package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
  175. package/_modules/components/Orders/OrderLogisticInformation/index.js +1 -1
  176. package/_modules/components/Orders/OrderNotification/index.js +4 -4
  177. package/_modules/components/Orders/OrderStatusFilterBar/index.js +4 -4
  178. package/_modules/components/Orders/OrderToPrint/index.js +22 -22
  179. package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
  180. package/_modules/components/Orders/OrdersCards/index.js +29 -29
  181. package/_modules/components/Orders/OrdersContentHeader/index.js +3 -3
  182. package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
  183. package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
  184. package/_modules/components/Orders/OrdersListing/index.js +3 -3
  185. package/_modules/components/Orders/OrdersTable/index.js +53 -53
  186. package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
  187. package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
  188. package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
  189. package/_modules/components/PageNotFound/index.js +3 -3
  190. package/_modules/components/Settings/ApiKeysList/index.js +1 -1
  191. package/_modules/components/Settings/CountriesList/index.js +1 -1
  192. package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
  193. package/_modules/components/Settings/EmailSetting/index.js +5 -5
  194. package/_modules/components/Settings/InsertImage/index.js +3 -3
  195. package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
  196. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
  197. package/_modules/components/Settings/LanguageSetting/index.js +1 -1
  198. package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
  199. package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
  200. package/_modules/components/Settings/NotificationSetting/index.js +6 -6
  201. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  202. package/_modules/components/Settings/Settings/index.js +3 -3
  203. package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
  204. package/_modules/components/Settings/SettingsList/index.js +4 -4
  205. package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
  206. package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
  207. package/_modules/components/Shared/AutoScroll/index.js +4 -4
  208. package/_modules/components/Shared/CitySelector/index.js +1 -1
  209. package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
  210. package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
  211. package/_modules/components/Shared/DragScroll/index.js +5 -5
  212. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
  213. package/_modules/components/Shared/InputPhoneNumber/index.js +2 -2
  214. package/_modules/components/Shared/NotFoundSource/index.js +2 -2
  215. package/_modules/components/Shared/Personalization/index.js +1 -1
  216. package/_modules/components/Shared/RangeCalendar/index.js +2 -2
  217. package/_modules/components/Shared/Schedule/index.js +6 -6
  218. package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
  219. package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
  220. package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
  221. package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
  222. package/_modules/components/Shared/SelectSites/index.js +1 -1
  223. package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
  224. package/_modules/components/SidebarMenu/index.js +37 -40
  225. package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
  226. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
  227. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
  228. package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
  229. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
  230. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
  231. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
  232. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +1 -1
  233. package/_modules/components/Stores/BusinessAdd/index.js +9 -9
  234. package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
  235. package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
  236. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
  237. package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
  238. package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
  239. package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
  240. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
  241. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
  242. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
  243. package/_modules/components/Stores/BusinessDetails/index.js +7 -7
  244. package/_modules/components/Stores/BusinessDeviceDetail/index.js +12 -12
  245. package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
  246. package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
  247. package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
  248. package/_modules/components/Stores/BusinessImages/index.js +4 -4
  249. package/_modules/components/Stores/BusinessInformation/index.js +35 -35
  250. package/_modules/components/Stores/BusinessLocation/index.js +7 -7
  251. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  252. package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
  253. package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
  254. package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
  255. package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
  256. package/_modules/components/Stores/BusinessOwners/index.js +1 -1
  257. package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
  258. package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
  259. package/_modules/components/Stores/BusinessPlace/index.js +1 -1
  260. package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
  261. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
  262. package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
  263. package/_modules/components/Stores/BusinessPreview/index.js +19 -19
  264. package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
  265. package/_modules/components/Stores/BusinessProductList/index.js +5 -5
  266. package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
  267. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
  268. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
  269. package/_modules/components/Stores/BusinessProductsListing/index.js +20 -20
  270. package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
  271. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  272. package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
  273. package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
  274. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
  275. package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
  276. package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
  277. package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
  278. package/_modules/components/Stores/BusinessSummary/index.js +8 -8
  279. package/_modules/components/Stores/BusinessSupport/index.js +2 -2
  280. package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
  281. package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
  282. package/_modules/components/Stores/BusinessTypes/index.js +2 -2
  283. package/_modules/components/Stores/BusinessVideos/index.js +2 -2
  284. package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
  285. package/_modules/components/Stores/BusinessWebhooks/index.js +5 -5
  286. package/_modules/components/Stores/BusinessesListing/index.js +1 -1
  287. package/_modules/components/Stores/ImporterForm/index.js +3 -3
  288. package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
  289. package/_modules/components/Stores/PaymentOption/index.js +11 -11
  290. package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
  291. package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
  292. package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
  293. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
  294. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
  295. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
  296. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
  297. package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
  298. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
  299. package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
  300. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +20 -20
  301. package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
  302. package/_modules/components/Stores/ProductExtraOptions/index.js +2 -2
  303. package/_modules/components/Stores/ProductExtraSuboption/index.js +4 -4
  304. package/_modules/components/Stores/ProductExtras/index.js +1 -1
  305. package/_modules/components/Stores/ProductGallery/index.js +3 -3
  306. package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
  307. package/_modules/components/Stores/ProductStep/index.js +2 -2
  308. package/_modules/components/Stores/ProductSummary/index.js +7 -7
  309. package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
  310. package/_modules/components/Stores/ProductTagsList/index.js +1 -1
  311. package/_modules/components/Stores/ProductVideos/index.js +1 -1
  312. package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
  313. package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
  314. package/_modules/components/Stores/SeoOptions/index.js +9 -9
  315. package/_modules/components/Stores/ServiceDetail/index.js +5 -5
  316. package/_modules/components/Stores/SingleBusiness/index.js +14 -14
  317. package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
  318. package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
  319. package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
  320. package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
  321. package/_modules/components/Users/CustomerDetails/index.js +2 -2
  322. package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
  323. package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
  324. package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
  325. package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
  326. package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
  327. package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
  328. package/_modules/components/Users/ProfessionalListing/index.js +1 -1
  329. package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
  330. package/_modules/components/Users/ProfessionalServices/index.js +3 -3
  331. package/_modules/components/Users/UserAddForm/index.js +11 -11
  332. package/_modules/components/Users/UserDetails/index.js +4 -4
  333. package/_modules/components/Users/UserFilterGroup/index.js +2 -2
  334. package/_modules/components/Users/UserFormDetails/index.js +12 -12
  335. package/_modules/components/Users/UserProfileForm/index.js +7 -7
  336. package/_modules/styles/Select/index.js +1 -1
  337. package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
  338. package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
  339. package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
  340. package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
  341. package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
  342. package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
  343. package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
  344. package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
  345. package/_modules/themes/origin/src/components/Header/index.js +3 -3
  346. package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
  347. package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
  348. package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
  349. package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
  350. package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
  351. package/_modules/themes/origin/src/components/Messages/index.js +13 -13
  352. package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
  353. package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
  354. package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
  355. package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
  356. package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
  357. package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
  358. package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
  359. package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
  360. package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
  361. package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
  362. package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
  363. package/_modules/themes/origin/src/components/OverView/index.js +1 -1
  364. package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
  365. package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
  366. package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
  367. package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
  368. package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
  369. package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
  370. package/_modules/utils/index.js +1 -1
  371. package/package.json +1 -1
  372. package/src/components/SidebarMenu/index.js +6 -6
  373. package/template/config.json +1 -1
@@ -29,7 +29,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
29
29
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
30
30
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
31
  var BusinessReviewDetailsUI = function BusinessReviewDetailsUI(props) {
32
- var _businessState$busine, _businessState$busine2, _theme$images, _theme$images$dummies;
32
+ var _businessState$busine, _businessState$busine2, _theme$images;
33
33
  var businessState = props.businessState,
34
34
  reviewsList = props.reviewsList,
35
35
  handleOpenProducts = props.handleOpenProducts,
@@ -53,7 +53,7 @@ var BusinessReviewDetailsUI = function BusinessReviewDetailsUI(props) {
53
53
  return handleOpenProducts(businessState.business);
54
54
  }
55
55
  }, t('PRODUCT_REVIEW', 'Product review'))), /*#__PURE__*/_react.default.createElement(_styles2.BusinessLogoContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles2.Image, {
56
- bgimage: optimizeImage(((_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo), 'h_120,c_limit')
56
+ bgimage: optimizeImage(((_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_120,c_limit')
57
57
  }))), reviewsList !== null && reviewsList !== void 0 && reviewsList.loading ? _toConsumableArray(Array(10).keys()).map(function (i) {
58
58
  return /*#__PURE__*/_react.default.createElement(_styles2.ReviewItemContatiner, {
59
59
  key: i
@@ -93,10 +93,10 @@ var BusinessReviewDetailsUI = function BusinessReviewDetailsUI(props) {
93
93
  }, /*#__PURE__*/_react.default.createElement(_styles2.ReviewItemHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.UserInfoContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, {
94
94
  isSmall: true
95
95
  }, review !== null && review !== void 0 && (_review$user = review.user) !== null && _review$user !== void 0 && _review$user.photo ? /*#__PURE__*/_react.default.createElement(_styles2.Image, {
96
- bgimage: optimizeImage(review === null || review === void 0 ? void 0 : (_review$user2 = review.user) === null || _review$user2 === void 0 ? void 0 : _review$user2.photo)
96
+ bgimage: optimizeImage(review === null || review === void 0 || (_review$user2 = review.user) === null || _review$user2 === void 0 ? void 0 : _review$user2.photo)
97
97
  }) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.PersonFill, null)), /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", {
98
98
  className: "bold"
99
- }, review === null || review === void 0 ? void 0 : (_review$user3 = review.user) === null || _review$user3 === void 0 ? void 0 : _review$user3.name, " ", review === null || review === void 0 ? void 0 : (_review$user4 = review.user) === null || _review$user4 === void 0 ? void 0 : _review$user4.lastname), (review === null || review === void 0 ? void 0 : review.created_at) && /*#__PURE__*/_react.default.createElement("p", null, parseDate(review === null || review === void 0 ? void 0 : review.created_at, {
99
+ }, review === null || review === void 0 || (_review$user3 = review.user) === null || _review$user3 === void 0 ? void 0 : _review$user3.name, " ", review === null || review === void 0 || (_review$user4 = review.user) === null || _review$user4 === void 0 ? void 0 : _review$user4.lastname), (review === null || review === void 0 ? void 0 : review.created_at) && /*#__PURE__*/_react.default.createElement("p", null, parseDate(review === null || review === void 0 ? void 0 : review.created_at, {
100
100
  utc: false
101
101
  })), (review === null || review === void 0 ? void 0 : review.order_id) && /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("span", null, t('INVOICE_ORDER_NO', 'Order No.'), ' '), /*#__PURE__*/_react.default.createElement("span", null, review === null || review === void 0 ? void 0 : review.order_id)))), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
102
102
  defaultChecked: review === null || review === void 0 ? void 0 : review.enabled,
@@ -124,7 +124,7 @@ var BusinessReviewsListingUI = function BusinessReviewsListingUI(props) {
124
124
  width: 20
125
125
  })))));
126
126
  }) : businessList.businesses.map(function (business) {
127
- var _theme$images, _theme$images$dummies, _business$reviews, _business$reviews2;
127
+ var _theme$images, _business$reviews, _business$reviews2;
128
128
  return /*#__PURE__*/_react.default.createElement(_styles.ReviewTbody, {
129
129
  key: business.id,
130
130
  active: business.id === (curBusiness === null || curBusiness === void 0 ? void 0 : curBusiness.id),
@@ -132,10 +132,10 @@ var BusinessReviewsListingUI = function BusinessReviewsListingUI(props) {
132
132
  return handleOpenReview(business);
133
133
  }
134
134
  }, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles.ReviewObject, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles.Image, {
135
- bgimage: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo), 'h_50,c_limit')
135
+ bgimage: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_50,c_limit')
136
136
  })), /*#__PURE__*/_react.default.createElement(_styles.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", {
137
137
  className: "bold"
138
- }, business === null || business === void 0 ? void 0 : business.name), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 ? void 0 : business.address)))), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles.ReviewMarkerWrapper, null, (business === null || business === void 0 ? void 0 : (_business$reviews = business.reviews) === null || _business$reviews === void 0 ? void 0 : _business$reviews.total) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.StarFill, null), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 ? void 0 : (_business$reviews2 = business.reviews) === null || _business$reviews2 === void 0 ? void 0 : _business$reviews2.total)))))));
138
+ }, business === null || business === void 0 ? void 0 : business.name), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 ? void 0 : business.address)))), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles.ReviewMarkerWrapper, null, (business === null || business === void 0 || (_business$reviews = business.reviews) === null || _business$reviews === void 0 ? void 0 : _business$reviews.total) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.StarFill, null), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 || (_business$reviews2 = business.reviews) === null || _business$reviews2 === void 0 ? void 0 : _business$reviews2.total)))))));
139
139
  })), pagination && /*#__PURE__*/_react.default.createElement(_styles.PagesBottomContainer, null, (pagination === null || pagination === void 0 ? void 0 : pagination.total) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
140
140
  currentPage: pagination.currentPage,
141
141
  totalPages: Math.ceil((pagination === null || pagination === void 0 ? void 0 : pagination.total) / pagination.pageSize),
@@ -152,7 +152,7 @@ var BusinessReviewsListingUI = function BusinessReviewsListingUI(props) {
152
152
  }, /*#__PURE__*/_react.default.createElement(_BusinessReviewDetails.BusinessReviewDetails, {
153
153
  business: curBusiness,
154
154
  businessId: curBusinessId,
155
- reviews: curBusiness === null || curBusiness === void 0 ? void 0 : (_curBusiness$reviews = curBusiness.reviews) === null || _curBusiness$reviews === void 0 ? void 0 : _curBusiness$reviews.reviews,
155
+ reviews: curBusiness === null || curBusiness === void 0 || (_curBusiness$reviews = curBusiness.reviews) === null || _curBusiness$reviews === void 0 ? void 0 : _curBusiness$reviews.reviews,
156
156
  handleUpdateReview: handleUpdateReview,
157
157
  handleOpenProducts: handleOpenProducts
158
158
  })), /*#__PURE__*/_react.default.createElement(_Shared.Confirm, {
@@ -127,7 +127,7 @@ var CountryFilterUI = function CountryFilterUI(props) {
127
127
  }) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", {
128
128
  className: "name"
129
129
  }, country === null || country === void 0 ? void 0 : country.name));
130
- }))), /*#__PURE__*/_react.default.createElement(_styles2.PaginationWrapper, null, (countriesState === null || countriesState === void 0 ? void 0 : (_countriesState$count = countriesState.countries) === null || _countriesState$count === void 0 ? void 0 : _countriesState$count.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
130
+ }))), /*#__PURE__*/_react.default.createElement(_styles2.PaginationWrapper, null, (countriesState === null || countriesState === void 0 || (_countriesState$count = countriesState.countries) === null || _countriesState$count === void 0 ? void 0 : _countriesState$count.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
131
131
  currentPage: currentPage,
132
132
  totalPages: totalPages,
133
133
  handleChangePage: handleChangePage,
@@ -21,7 +21,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
21
21
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  var InvoiceBusinessPdf = function InvoiceBusinessPdf(props) {
24
- var _theme$images, _theme$images$logos, _exportInvoiceList$in, _exportInvoiceList$in2, _exportInvoiceList$in3, _exportInvoiceList$in4, _exportInvoiceList$in5, _exportInvoiceList$in6, _exportInvoiceList$in7, _exportInvoiceList$in8, _exportInvoiceList$in9, _exportInvoiceList$in10, _exportInvoiceList$in11, _exportInvoiceList$in12, _exportInvoiceList$in13, _exportInvoiceList$in14, _exportInvoiceList$in15, _exportInvoiceList$in16, _exportInvoiceList$in17, _exportInvoiceList$in18, _exportInvoiceList$in19, _exportInvoiceList$in20, _exportInvoiceList$in21, _exportInvoiceList$in22, _exportInvoiceList$in23, _exportInvoiceList$in24, _exportInvoiceList$in25, _exportInvoiceList$in26, _exportInvoiceList$in27, _exportInvoiceList$in28, _exportInvoiceList$in29, _exportInvoiceList$in30, _exportInvoiceList$in31, _exportInvoiceList$in32;
24
+ var _theme$images, _exportInvoiceList$in, _exportInvoiceList$in2, _exportInvoiceList$in3, _exportInvoiceList$in4, _exportInvoiceList$in5, _exportInvoiceList$in6, _exportInvoiceList$in7, _exportInvoiceList$in8, _exportInvoiceList$in9, _exportInvoiceList$in10, _exportInvoiceList$in11, _exportInvoiceList$in12, _exportInvoiceList$in13, _exportInvoiceList$in14, _exportInvoiceList$in15, _exportInvoiceList$in16, _exportInvoiceList$in17, _exportInvoiceList$in18, _exportInvoiceList$in19, _exportInvoiceList$in20, _exportInvoiceList$in21, _exportInvoiceList$in22, _exportInvoiceList$in23, _exportInvoiceList$in24, _exportInvoiceList$in25, _exportInvoiceList$in26, _exportInvoiceList$in27, _exportInvoiceList$in28, _exportInvoiceList$in29, _exportInvoiceList$in30;
25
25
  var exportInvoiceList = props.exportInvoiceList,
26
26
  getSubtotal = props.getSubtotal,
27
27
  getTotal = props.getTotal;
@@ -233,7 +233,7 @@ var InvoiceBusinessPdf = function InvoiceBusinessPdf(props) {
233
233
  });
234
234
  return objectStatus && objectStatus;
235
235
  };
236
- var logoImage = theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$logos = _theme$images.logos) === null || _theme$images$logos === void 0 ? void 0 : _theme$images$logos.logoPdf;
236
+ var logoImage = theme === null || theme === void 0 || (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.logos) === null || _theme$images === void 0 ? void 0 : _theme$images.logoPdf;
237
237
  var _useState = (0, _react.useState)(null),
238
238
  _useState2 = _slicedToArray(_useState, 2),
239
239
  base64ImageString = _useState2[0],
@@ -284,7 +284,7 @@ var InvoiceBusinessPdf = function InvoiceBusinessPdf(props) {
284
284
  fluid: true,
285
285
  loading: "lazy",
286
286
  style: styles.imageWrapper
287
- }), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("span", null, t('INVOICE_FOR', 'Invoice for'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in = exportInvoiceList.invoice) === null || _exportInvoiceList$in === void 0 ? void 0 : (_exportInvoiceList$in2 = _exportInvoiceList$in.business) === null || _exportInvoiceList$in2 === void 0 ? void 0 : _exportInvoiceList$in2.name)), /*#__PURE__*/_react.default.createElement("br", null), (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in3 = exportInvoiceList.invoice) === null || _exportInvoiceList$in3 === void 0 ? void 0 : _exportInvoiceList$in3.from) && (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in4 = exportInvoiceList.invoice) === null || _exportInvoiceList$in4 === void 0 ? void 0 : _exportInvoiceList$in4.to) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, t('FROM', 'From'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in5 = exportInvoiceList.invoice) === null || _exportInvoiceList$in5 === void 0 ? void 0 : _exportInvoiceList$in5.from), " ", t('TO', 'To'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in6 = exportInvoiceList.invoice) === null || _exportInvoiceList$in6 === void 0 ? void 0 : _exportInvoiceList$in6.to)), /*#__PURE__*/_react.default.createElement("br", null)), /*#__PURE__*/_react.default.createElement("span", null, t('AMOUNT_TO_ORDERS', 'Amount to orders'), ": ", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in7 = exportInvoiceList.invoice) === null || _exportInvoiceList$in7 === void 0 ? void 0 : _exportInvoiceList$in7.orders.length), /*#__PURE__*/_react.default.createElement("table", {
287
+ }), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("span", null, t('INVOICE_FOR', 'Invoice for'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in = exportInvoiceList.invoice) === null || _exportInvoiceList$in === void 0 || (_exportInvoiceList$in = _exportInvoiceList$in.business) === null || _exportInvoiceList$in === void 0 ? void 0 : _exportInvoiceList$in.name)), /*#__PURE__*/_react.default.createElement("br", null), (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in2 = exportInvoiceList.invoice) === null || _exportInvoiceList$in2 === void 0 ? void 0 : _exportInvoiceList$in2.from) && (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in3 = exportInvoiceList.invoice) === null || _exportInvoiceList$in3 === void 0 ? void 0 : _exportInvoiceList$in3.to) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, t('FROM', 'From'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in4 = exportInvoiceList.invoice) === null || _exportInvoiceList$in4 === void 0 ? void 0 : _exportInvoiceList$in4.from), " ", t('TO', 'To'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in5 = exportInvoiceList.invoice) === null || _exportInvoiceList$in5 === void 0 ? void 0 : _exportInvoiceList$in5.to)), /*#__PURE__*/_react.default.createElement("br", null)), /*#__PURE__*/_react.default.createElement("span", null, t('AMOUNT_TO_ORDERS', 'Amount to orders'), ": ", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in6 = exportInvoiceList.invoice) === null || _exportInvoiceList$in6 === void 0 ? void 0 : _exportInvoiceList$in6.orders.length), /*#__PURE__*/_react.default.createElement("table", {
288
288
  style: styles.table
289
289
  }, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", {
290
290
  style: styles.table.thead.trFirst
@@ -303,7 +303,7 @@ var InvoiceBusinessPdf = function InvoiceBusinessPdf(props) {
303
303
  style: styles.table.thead.th
304
304
  }, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("th", {
305
305
  style: styles.table.thead.th
306
- }, t('TOTAL', 'Total')))), /*#__PURE__*/_react.default.createElement("tbody", null, (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in8 = exportInvoiceList.invoice) === null || _exportInvoiceList$in8 === void 0 ? void 0 : _exportInvoiceList$in8.orders) && (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in9 = exportInvoiceList.invoice) === null || _exportInvoiceList$in9 === void 0 ? void 0 : (_exportInvoiceList$in10 = _exportInvoiceList$in9.orders) === null || _exportInvoiceList$in10 === void 0 ? void 0 : _exportInvoiceList$in10.map(function (order, i) {
306
+ }, t('TOTAL', 'Total')))), /*#__PURE__*/_react.default.createElement("tbody", null, (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in7 = exportInvoiceList.invoice) === null || _exportInvoiceList$in7 === void 0 ? void 0 : _exportInvoiceList$in7.orders) && (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in8 = exportInvoiceList.invoice) === null || _exportInvoiceList$in8 === void 0 || (_exportInvoiceList$in8 = _exportInvoiceList$in8.orders) === null || _exportInvoiceList$in8 === void 0 ? void 0 : _exportInvoiceList$in8.map(function (order, i) {
307
307
  return /*#__PURE__*/_react.default.createElement("tr", {
308
308
  key: i
309
309
  }, /*#__PURE__*/_react.default.createElement("td", {
@@ -328,45 +328,45 @@ var InvoiceBusinessPdf = function InvoiceBusinessPdf(props) {
328
328
  colSpan: "4"
329
329
  }, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("td", {
330
330
  style: styles.table.tfoot.tr.td
331
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in11 = exportInvoiceList.invoice) === null || _exportInvoiceList$in11 === void 0 ? void 0 : _exportInvoiceList$in11.orders_subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
331
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in9 = exportInvoiceList.invoice) === null || _exportInvoiceList$in9 === void 0 ? void 0 : _exportInvoiceList$in9.orders_subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
332
332
  style: styles.table.tfoot.tr
333
333
  }, /*#__PURE__*/_react.default.createElement("td", {
334
334
  style: styles.table.tfoot.tr.td,
335
335
  colSpan: "4"
336
336
  }, t('TOTAL', 'Total')), /*#__PURE__*/_react.default.createElement("td", {
337
337
  style: styles.table.tfoot.tr.td
338
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in12 = exportInvoiceList.invoice) === null || _exportInvoiceList$in12 === void 0 ? void 0 : _exportInvoiceList$in12.orders_total))))), /*#__PURE__*/_react.default.createElement("table", {
338
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in10 = exportInvoiceList.invoice) === null || _exportInvoiceList$in10 === void 0 ? void 0 : _exportInvoiceList$in10.orders_total))))), /*#__PURE__*/_react.default.createElement("table", {
339
339
  style: styles.table
340
340
  }, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", {
341
341
  style: styles.table.thead.trLast
342
342
  }, /*#__PURE__*/_react.default.createElement("th", {
343
343
  style: styles.table.thead.th,
344
344
  colSpan: "2"
345
- }, t('TOTALS', 'Totals')))), /*#__PURE__*/_react.default.createElement("tbody", null, (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in13 = exportInvoiceList.invoice) === null || _exportInvoiceList$in13 === void 0 ? void 0 : _exportInvoiceList$in13.type) === 'payout' && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
345
+ }, t('TOTALS', 'Totals')))), /*#__PURE__*/_react.default.createElement("tbody", null, (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in11 = exportInvoiceList.invoice) === null || _exportInvoiceList$in11 === void 0 ? void 0 : _exportInvoiceList$in11.type) === 'payout' && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
346
346
  style: styles.table.tbody.tr.td
347
347
  }, t('ORDERS', 'Orders'), " (", t('SUBTOTAL', 'Subtotal'), ")"), /*#__PURE__*/_react.default.createElement("td", {
348
348
  style: styles.table.tbody.tr.tdNumber
349
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in14 = exportInvoiceList.invoice) === null || _exportInvoiceList$in14 === void 0 ? void 0 : _exportInvoiceList$in14.orders_subtotal))), (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in15 = exportInvoiceList.invoice) === null || _exportInvoiceList$in15 === void 0 ? void 0 : _exportInvoiceList$in15.inlcude_discounts) && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
349
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in12 = exportInvoiceList.invoice) === null || _exportInvoiceList$in12 === void 0 ? void 0 : _exportInvoiceList$in12.orders_subtotal))), (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in13 = exportInvoiceList.invoice) === null || _exportInvoiceList$in13 === void 0 ? void 0 : _exportInvoiceList$in13.inlcude_discounts) && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
350
350
  style: styles.table.tbody.tr.td
351
351
  }, t('DISCOUNTS_BY_PLATFORM', 'Discounts by platform')), /*#__PURE__*/_react.default.createElement("td", {
352
352
  style: styles.table.tbody.tr.tdNumber
353
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in16 = exportInvoiceList.invoice) === null || _exportInvoiceList$in16 === void 0 ? void 0 : _exportInvoiceList$in16.discounts))), (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in17 = exportInvoiceList.invoice) === null || _exportInvoiceList$in17 === void 0 ? void 0 : _exportInvoiceList$in17.type) === 'payout' && (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in18 = exportInvoiceList.invoice) === null || _exportInvoiceList$in18 === void 0 ? void 0 : _exportInvoiceList$in18.tax_products) !== 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
353
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in14 = exportInvoiceList.invoice) === null || _exportInvoiceList$in14 === void 0 ? void 0 : _exportInvoiceList$in14.discounts))), (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in15 = exportInvoiceList.invoice) === null || _exportInvoiceList$in15 === void 0 ? void 0 : _exportInvoiceList$in15.type) === 'payout' && (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in16 = exportInvoiceList.invoice) === null || _exportInvoiceList$in16 === void 0 ? void 0 : _exportInvoiceList$in16.tax_products) !== 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
354
354
  style: styles.table.tbody.tr.td
355
355
  }, t('PRODUCTS', 'Products'), " ", t('TAX', 'Tax')), /*#__PURE__*/_react.default.createElement("td", {
356
356
  style: styles.table.tbody.tr.tdNumber
357
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in19 = exportInvoiceList.invoice) === null || _exportInvoiceList$in19 === void 0 ? void 0 : _exportInvoiceList$in19.tax_products))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
357
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in17 = exportInvoiceList.invoice) === null || _exportInvoiceList$in17 === void 0 ? void 0 : _exportInvoiceList$in17.tax_products))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
358
358
  style: styles.table.tbody.tr.td
359
- }, t('PERCENTAGE_FEE', 'Percentage Fee'), " (", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in20 = exportInvoiceList.invoice) === null || _exportInvoiceList$in20 === void 0 ? void 0 : _exportInvoiceList$in20.percentage_fee, "%)"), /*#__PURE__*/_react.default.createElement("td", {
359
+ }, t('PERCENTAGE_FEE', 'Percentage Fee'), " (", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in18 = exportInvoiceList.invoice) === null || _exportInvoiceList$in18 === void 0 ? void 0 : _exportInvoiceList$in18.percentage_fee, "%)"), /*#__PURE__*/_react.default.createElement("td", {
360
360
  style: styles.table.tbody.tr.tdNumber
361
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in21 = exportInvoiceList.invoice) === null || _exportInvoiceList$in21 === void 0 ? void 0 : _exportInvoiceList$in21.percentage_fee_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
361
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in19 = exportInvoiceList.invoice) === null || _exportInvoiceList$in19 === void 0 ? void 0 : _exportInvoiceList$in19.percentage_fee_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
362
362
  style: styles.table.tbody.tr.td
363
363
  }, t('FIXED_FEE', 'Fixed Fee')), /*#__PURE__*/_react.default.createElement("td", {
364
364
  style: styles.table.tbody.tr.tdNumber
365
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in22 = exportInvoiceList.invoice) === null || _exportInvoiceList$in22 === void 0 ? void 0 : _exportInvoiceList$in22.fixed_fee_total))), (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in23 = exportInvoiceList.invoice) === null || _exportInvoiceList$in23 === void 0 ? void 0 : _exportInvoiceList$in23.misc_amount) !== 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
365
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in20 = exportInvoiceList.invoice) === null || _exportInvoiceList$in20 === void 0 ? void 0 : _exportInvoiceList$in20.fixed_fee_total))), (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in21 = exportInvoiceList.invoice) === null || _exportInvoiceList$in21 === void 0 ? void 0 : _exportInvoiceList$in21.misc_amount) !== 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
366
366
  style: styles.table.tbody.tr.td
367
- }, t('MISC', 'Misc'), " ", (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in24 = exportInvoiceList.invoice) === null || _exportInvoiceList$in24 === void 0 ? void 0 : _exportInvoiceList$in24.misc_description) && /*#__PURE__*/_react.default.createElement("small", null, "(", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in25 = exportInvoiceList.invoice) === null || _exportInvoiceList$in25 === void 0 ? void 0 : _exportInvoiceList$in25.misc_description, ")")), /*#__PURE__*/_react.default.createElement("td", {
367
+ }, t('MISC', 'Misc'), " ", (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in22 = exportInvoiceList.invoice) === null || _exportInvoiceList$in22 === void 0 ? void 0 : _exportInvoiceList$in22.misc_description) && /*#__PURE__*/_react.default.createElement("small", null, "(", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in23 = exportInvoiceList.invoice) === null || _exportInvoiceList$in23 === void 0 ? void 0 : _exportInvoiceList$in23.misc_description, ")")), /*#__PURE__*/_react.default.createElement("td", {
368
368
  style: styles.table.tbody.tr.tdNumber
369
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in26 = exportInvoiceList.invoice) === null || _exportInvoiceList$in26 === void 0 ? void 0 : _exportInvoiceList$in26.misc_amount)))), /*#__PURE__*/_react.default.createElement("tfoot", {
369
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in24 = exportInvoiceList.invoice) === null || _exportInvoiceList$in24 === void 0 ? void 0 : _exportInvoiceList$in24.misc_amount)))), /*#__PURE__*/_react.default.createElement("tfoot", {
370
370
  style: styles.table.tfoot
371
371
  }, /*#__PURE__*/_react.default.createElement("tr", {
372
372
  style: styles.table.tfoot.tr
@@ -374,22 +374,22 @@ var InvoiceBusinessPdf = function InvoiceBusinessPdf(props) {
374
374
  style: styles.table.tfoot.tr.td
375
375
  }, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("td", {
376
376
  style: styles.table.tfoot.tr.td
377
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in27 = exportInvoiceList.invoice) === null || _exportInvoiceList$in27 === void 0 ? void 0 : _exportInvoiceList$in27.subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
377
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in25 = exportInvoiceList.invoice) === null || _exportInvoiceList$in25 === void 0 ? void 0 : _exportInvoiceList$in25.subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
378
378
  style: styles.table.tfoot.tr
379
379
  }, /*#__PURE__*/_react.default.createElement("td", {
380
380
  style: styles.table.tfoot.tr.td
381
- }, t('TAX', 'Tax'), " (", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in28 = exportInvoiceList.invoice) === null || _exportInvoiceList$in28 === void 0 ? void 0 : _exportInvoiceList$in28.tax, "%)"), /*#__PURE__*/_react.default.createElement("td", {
381
+ }, t('TAX', 'Tax'), " (", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in26 = exportInvoiceList.invoice) === null || _exportInvoiceList$in26 === void 0 ? void 0 : _exportInvoiceList$in26.tax, "%)"), /*#__PURE__*/_react.default.createElement("td", {
382
382
  style: styles.table.tfoot.tr.td
383
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in29 = exportInvoiceList.invoice) === null || _exportInvoiceList$in29 === void 0 ? void 0 : _exportInvoiceList$in29.tax_total))), /*#__PURE__*/_react.default.createElement("tr", {
383
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in27 = exportInvoiceList.invoice) === null || _exportInvoiceList$in27 === void 0 ? void 0 : _exportInvoiceList$in27.tax_total))), /*#__PURE__*/_react.default.createElement("tr", {
384
384
  style: styles.table.tfoot.tr
385
385
  }, /*#__PURE__*/_react.default.createElement("td", {
386
386
  style: styles.table.tfoot.tr.td
387
387
  }, t('TOTAL', 'Total')), /*#__PURE__*/_react.default.createElement("td", {
388
388
  style: styles.table.tfoot.tr.td
389
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in30 = exportInvoiceList.invoice) === null || _exportInvoiceList$in30 === void 0 ? void 0 : _exportInvoiceList$in30.total))))), (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in31 = exportInvoiceList.invoice) === null || _exportInvoiceList$in31 === void 0 ? void 0 : _exportInvoiceList$in31.notes) && /*#__PURE__*/_react.default.createElement("p", {
389
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in28 = exportInvoiceList.invoice) === null || _exportInvoiceList$in28 === void 0 ? void 0 : _exportInvoiceList$in28.total))))), (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in29 = exportInvoiceList.invoice) === null || _exportInvoiceList$in29 === void 0 ? void 0 : _exportInvoiceList$in29.notes) && /*#__PURE__*/_react.default.createElement("p", {
390
390
  style: styles.notes,
391
391
  dangerouslySetInnerHTML: {
392
- __html: exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in32 = exportInvoiceList.invoice) === null || _exportInvoiceList$in32 === void 0 ? void 0 : _exportInvoiceList$in32.notes
392
+ __html: exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in30 = exportInvoiceList.invoice) === null || _exportInvoiceList$in30 === void 0 ? void 0 : _exportInvoiceList$in30.notes
393
393
  }
394
394
  }));
395
395
  };
@@ -21,7 +21,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
21
21
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  var InvoiceDriverPdf = function InvoiceDriverPdf(props) {
24
- var _theme$images, _theme$images$logos, _exportInvoiceList$in, _exportInvoiceList$in2, _exportInvoiceList$in3, _exportInvoiceList$in4, _exportInvoiceList$in5, _exportInvoiceList$in6, _exportInvoiceList$in7, _exportInvoiceList$in8, _exportInvoiceList$in9, _exportInvoiceList$in10, _exportInvoiceList$in11, _exportInvoiceList$in12, _exportInvoiceList$in13, _exportInvoiceList$in14, _exportInvoiceList$in15, _exportInvoiceList$in16, _exportInvoiceList$in17, _exportInvoiceList$in18, _exportInvoiceList$in19, _exportInvoiceList$in20, _exportInvoiceList$in21, _exportInvoiceList$in22, _exportInvoiceList$in23, _exportInvoiceList$in24, _exportInvoiceList$in25, _exportInvoiceList$in26, _exportInvoiceList$in27, _exportInvoiceList$in28;
24
+ var _theme$images, _exportInvoiceList$in, _exportInvoiceList$in2, _exportInvoiceList$in3, _exportInvoiceList$in4, _exportInvoiceList$in5, _exportInvoiceList$in6, _exportInvoiceList$in7, _exportInvoiceList$in8, _exportInvoiceList$in9, _exportInvoiceList$in10, _exportInvoiceList$in11, _exportInvoiceList$in12, _exportInvoiceList$in13, _exportInvoiceList$in14, _exportInvoiceList$in15, _exportInvoiceList$in16, _exportInvoiceList$in17, _exportInvoiceList$in18, _exportInvoiceList$in19, _exportInvoiceList$in20, _exportInvoiceList$in21, _exportInvoiceList$in22, _exportInvoiceList$in23, _exportInvoiceList$in24, _exportInvoiceList$in25, _exportInvoiceList$in26;
25
25
  var exportInvoiceList = props.exportInvoiceList,
26
26
  getSubtotal = props.getSubtotal,
27
27
  getTotal = props.getTotal;
@@ -223,7 +223,7 @@ var InvoiceDriverPdf = function InvoiceDriverPdf(props) {
223
223
  });
224
224
  return objectStatus && objectStatus;
225
225
  };
226
- var logoImage = theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$logos = _theme$images.logos) === null || _theme$images$logos === void 0 ? void 0 : _theme$images$logos.logoPdf;
226
+ var logoImage = theme === null || theme === void 0 || (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.logos) === null || _theme$images === void 0 ? void 0 : _theme$images.logoPdf;
227
227
  var _useState = (0, _react.useState)(null),
228
228
  _useState2 = _slicedToArray(_useState, 2),
229
229
  base64ImageString = _useState2[0],
@@ -274,7 +274,7 @@ var InvoiceDriverPdf = function InvoiceDriverPdf(props) {
274
274
  fluid: true,
275
275
  loading: "lazy",
276
276
  style: styles.imageWrapper
277
- }), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("span", null, t('INVOICE_FOR', 'Invoice for'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in = exportInvoiceList.invoice) === null || _exportInvoiceList$in === void 0 ? void 0 : (_exportInvoiceList$in2 = _exportInvoiceList$in.driver) === null || _exportInvoiceList$in2 === void 0 ? void 0 : _exportInvoiceList$in2.name)), /*#__PURE__*/_react.default.createElement("br", null), (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in3 = exportInvoiceList.invoice) === null || _exportInvoiceList$in3 === void 0 ? void 0 : _exportInvoiceList$in3.from) && (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in4 = exportInvoiceList.invoice) === null || _exportInvoiceList$in4 === void 0 ? void 0 : _exportInvoiceList$in4.to) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, t('FROM', 'From'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in5 = exportInvoiceList.invoice) === null || _exportInvoiceList$in5 === void 0 ? void 0 : _exportInvoiceList$in5.from), " ", t('TO', 'To'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in6 = exportInvoiceList.invoice) === null || _exportInvoiceList$in6 === void 0 ? void 0 : _exportInvoiceList$in6.to)), /*#__PURE__*/_react.default.createElement("br", null)), /*#__PURE__*/_react.default.createElement("span", null, t('AMOUNT_TO_ORDERS', 'Amount to orders'), ": ", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in7 = exportInvoiceList.invoice) === null || _exportInvoiceList$in7 === void 0 ? void 0 : _exportInvoiceList$in7.orders.length), /*#__PURE__*/_react.default.createElement("table", {
277
+ }), /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement("span", null, t('INVOICE_FOR', 'Invoice for'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in = exportInvoiceList.invoice) === null || _exportInvoiceList$in === void 0 || (_exportInvoiceList$in = _exportInvoiceList$in.driver) === null || _exportInvoiceList$in === void 0 ? void 0 : _exportInvoiceList$in.name)), /*#__PURE__*/_react.default.createElement("br", null), (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in2 = exportInvoiceList.invoice) === null || _exportInvoiceList$in2 === void 0 ? void 0 : _exportInvoiceList$in2.from) && (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in3 = exportInvoiceList.invoice) === null || _exportInvoiceList$in3 === void 0 ? void 0 : _exportInvoiceList$in3.to) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, t('FROM', 'From'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in4 = exportInvoiceList.invoice) === null || _exportInvoiceList$in4 === void 0 ? void 0 : _exportInvoiceList$in4.from), " ", t('TO', 'To'), " ", /*#__PURE__*/_react.default.createElement("b", null, exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in5 = exportInvoiceList.invoice) === null || _exportInvoiceList$in5 === void 0 ? void 0 : _exportInvoiceList$in5.to)), /*#__PURE__*/_react.default.createElement("br", null)), /*#__PURE__*/_react.default.createElement("span", null, t('AMOUNT_TO_ORDERS', 'Amount to orders'), ": ", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in6 = exportInvoiceList.invoice) === null || _exportInvoiceList$in6 === void 0 ? void 0 : _exportInvoiceList$in6.orders.length), /*#__PURE__*/_react.default.createElement("table", {
278
278
  style: styles.table
279
279
  }, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", {
280
280
  style: styles.table.thead.trFirst
@@ -293,7 +293,7 @@ var InvoiceDriverPdf = function InvoiceDriverPdf(props) {
293
293
  style: styles.table.thead.th
294
294
  }, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("th", {
295
295
  style: styles.table.thead.th
296
- }, t('TOTAL', 'Total')))), /*#__PURE__*/_react.default.createElement("tbody", null, (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in8 = exportInvoiceList.invoice) === null || _exportInvoiceList$in8 === void 0 ? void 0 : _exportInvoiceList$in8.orders) && (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in9 = exportInvoiceList.invoice) === null || _exportInvoiceList$in9 === void 0 ? void 0 : (_exportInvoiceList$in10 = _exportInvoiceList$in9.orders) === null || _exportInvoiceList$in10 === void 0 ? void 0 : _exportInvoiceList$in10.map(function (order, i) {
296
+ }, t('TOTAL', 'Total')))), /*#__PURE__*/_react.default.createElement("tbody", null, (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in7 = exportInvoiceList.invoice) === null || _exportInvoiceList$in7 === void 0 ? void 0 : _exportInvoiceList$in7.orders) && (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in8 = exportInvoiceList.invoice) === null || _exportInvoiceList$in8 === void 0 || (_exportInvoiceList$in8 = _exportInvoiceList$in8.orders) === null || _exportInvoiceList$in8 === void 0 ? void 0 : _exportInvoiceList$in8.map(function (order, i) {
297
297
  return /*#__PURE__*/_react.default.createElement("tr", {
298
298
  key: i
299
299
  }, /*#__PURE__*/_react.default.createElement("td", {
@@ -318,14 +318,14 @@ var InvoiceDriverPdf = function InvoiceDriverPdf(props) {
318
318
  colSpan: "4"
319
319
  }, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("td", {
320
320
  style: styles.table.tfoot.tr.td
321
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in11 = exportInvoiceList.invoice) === null || _exportInvoiceList$in11 === void 0 ? void 0 : _exportInvoiceList$in11.orders_subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
321
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in9 = exportInvoiceList.invoice) === null || _exportInvoiceList$in9 === void 0 ? void 0 : _exportInvoiceList$in9.orders_subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
322
322
  style: styles.table.tfoot.tr
323
323
  }, /*#__PURE__*/_react.default.createElement("td", {
324
324
  style: styles.table.tfoot.tr.td,
325
325
  colSpan: "4"
326
326
  }, t('TOTAL', 'Total')), /*#__PURE__*/_react.default.createElement("td", {
327
327
  style: styles.table.tfoot.tr.td
328
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in12 = exportInvoiceList.invoice) === null || _exportInvoiceList$in12 === void 0 ? void 0 : _exportInvoiceList$in12.orders_total))))), /*#__PURE__*/_react.default.createElement("table", {
328
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in10 = exportInvoiceList.invoice) === null || _exportInvoiceList$in10 === void 0 ? void 0 : _exportInvoiceList$in10.orders_total))))), /*#__PURE__*/_react.default.createElement("table", {
329
329
  style: styles.table
330
330
  }, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", {
331
331
  style: styles.table.thead.trLast
@@ -336,31 +336,31 @@ var InvoiceDriverPdf = function InvoiceDriverPdf(props) {
336
336
  style: styles.table.tbody.tr.td
337
337
  }, t('ORDERS', 'Orders'), " (", t('SUBTOTAL', 'Subtotal'), ")"), /*#__PURE__*/_react.default.createElement("td", {
338
338
  style: styles.table.tbody.tr.tdNumber
339
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in13 = exportInvoiceList.invoice) === null || _exportInvoiceList$in13 === void 0 ? void 0 : _exportInvoiceList$in13.orders_subtotal))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
339
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in11 = exportInvoiceList.invoice) === null || _exportInvoiceList$in11 === void 0 ? void 0 : _exportInvoiceList$in11.orders_subtotal))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
340
340
  style: styles.table.tbody.tr.td
341
341
  }, t('DISCOUNT', 'Discount')), /*#__PURE__*/_react.default.createElement("td", {
342
342
  style: styles.table.tbody.tr.tdNumber
343
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in14 = exportInvoiceList.invoice) === null || _exportInvoiceList$in14 === void 0 ? void 0 : _exportInvoiceList$in14.discounts))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
343
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in12 = exportInvoiceList.invoice) === null || _exportInvoiceList$in12 === void 0 ? void 0 : _exportInvoiceList$in12.discounts))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
344
344
  style: styles.table.tbody.tr.td
345
- }, t('PERCENTAGE_FEE', 'Percentage Fee'), " (", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in15 = exportInvoiceList.invoice) === null || _exportInvoiceList$in15 === void 0 ? void 0 : _exportInvoiceList$in15.percentage_fee, "%)"), /*#__PURE__*/_react.default.createElement("td", {
345
+ }, t('PERCENTAGE_FEE', 'Percentage Fee'), " (", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in13 = exportInvoiceList.invoice) === null || _exportInvoiceList$in13 === void 0 ? void 0 : _exportInvoiceList$in13.percentage_fee, "%)"), /*#__PURE__*/_react.default.createElement("td", {
346
346
  style: styles.table.tbody.tr.tdNumber
347
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in16 = exportInvoiceList.invoice) === null || _exportInvoiceList$in16 === void 0 ? void 0 : _exportInvoiceList$in16.percentage_fee_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
347
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in14 = exportInvoiceList.invoice) === null || _exportInvoiceList$in14 === void 0 ? void 0 : _exportInvoiceList$in14.percentage_fee_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
348
348
  style: styles.table.tbody.tr.td
349
349
  }, t('FIXED_FEE', 'Fixed Fee')), /*#__PURE__*/_react.default.createElement("td", {
350
350
  style: styles.table.tbody.tr.tdNumber
351
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in17 = exportInvoiceList.invoice) === null || _exportInvoiceList$in17 === void 0 ? void 0 : _exportInvoiceList$in17.fixed_fee_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
351
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in15 = exportInvoiceList.invoice) === null || _exportInvoiceList$in15 === void 0 ? void 0 : _exportInvoiceList$in15.fixed_fee_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
352
352
  style: styles.table.tbody.tr.td
353
353
  }, t('DELIVERY_PRICE', 'Delivery price'), " ", t('PERCENTAGE', 'Percentage')), /*#__PURE__*/_react.default.createElement("td", {
354
354
  style: styles.table.tbody.tr.tdNumber
355
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in18 = exportInvoiceList.invoice) === null || _exportInvoiceList$in18 === void 0 ? void 0 : _exportInvoiceList$in18.percentage_delivery_price_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
355
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in16 = exportInvoiceList.invoice) === null || _exportInvoiceList$in16 === void 0 ? void 0 : _exportInvoiceList$in16.percentage_delivery_price_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
356
356
  style: styles.table.tbody.tr.td
357
357
  }, t('DRIVER_TIP', 'Driver tip'), " ", t('PERCENTAGE', 'Percentage')), /*#__PURE__*/_react.default.createElement("td", {
358
358
  style: styles.table.tbody.tr.tdNumber
359
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in19 = exportInvoiceList.invoice) === null || _exportInvoiceList$in19 === void 0 ? void 0 : _exportInvoiceList$in19.percentage_driver_tip_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
359
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in17 = exportInvoiceList.invoice) === null || _exportInvoiceList$in17 === void 0 ? void 0 : _exportInvoiceList$in17.percentage_driver_tip_total))), /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", {
360
360
  style: styles.table.tbody.tr.td
361
- }, t('MISC', 'Misc'), " ", (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in20 = exportInvoiceList.invoice) === null || _exportInvoiceList$in20 === void 0 ? void 0 : _exportInvoiceList$in20.misc_description) && /*#__PURE__*/_react.default.createElement("small", null, "(", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in21 = exportInvoiceList.invoice) === null || _exportInvoiceList$in21 === void 0 ? void 0 : _exportInvoiceList$in21.misc_description, ")")), /*#__PURE__*/_react.default.createElement("td", {
361
+ }, t('MISC', 'Misc'), " ", (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in18 = exportInvoiceList.invoice) === null || _exportInvoiceList$in18 === void 0 ? void 0 : _exportInvoiceList$in18.misc_description) && /*#__PURE__*/_react.default.createElement("small", null, "(", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in19 = exportInvoiceList.invoice) === null || _exportInvoiceList$in19 === void 0 ? void 0 : _exportInvoiceList$in19.misc_description, ")")), /*#__PURE__*/_react.default.createElement("td", {
362
362
  style: styles.table.tbody.tr.tdNumber
363
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in22 = exportInvoiceList.invoice) === null || _exportInvoiceList$in22 === void 0 ? void 0 : _exportInvoiceList$in22.misc_amount)))), /*#__PURE__*/_react.default.createElement("tfoot", {
363
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in20 = exportInvoiceList.invoice) === null || _exportInvoiceList$in20 === void 0 ? void 0 : _exportInvoiceList$in20.misc_amount)))), /*#__PURE__*/_react.default.createElement("tfoot", {
364
364
  style: styles.table.tfoot
365
365
  }, /*#__PURE__*/_react.default.createElement("tr", {
366
366
  style: styles.table.tfoot.tr
@@ -368,22 +368,22 @@ var InvoiceDriverPdf = function InvoiceDriverPdf(props) {
368
368
  style: styles.table.tfoot.tr.td
369
369
  }, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("td", {
370
370
  style: styles.table.tfoot.tr.td
371
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in23 = exportInvoiceList.invoice) === null || _exportInvoiceList$in23 === void 0 ? void 0 : _exportInvoiceList$in23.subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
371
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in21 = exportInvoiceList.invoice) === null || _exportInvoiceList$in21 === void 0 ? void 0 : _exportInvoiceList$in21.subtotal))), /*#__PURE__*/_react.default.createElement("tr", {
372
372
  style: styles.table.tfoot.tr
373
373
  }, /*#__PURE__*/_react.default.createElement("td", {
374
374
  style: styles.table.tfoot.tr.td
375
- }, t('TAX', 'Tax'), " (", exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in24 = exportInvoiceList.invoice) === null || _exportInvoiceList$in24 === void 0 ? void 0 : _exportInvoiceList$in24.tax, "%)"), /*#__PURE__*/_react.default.createElement("td", {
375
+ }, t('TAX', 'Tax'), " (", exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in22 = exportInvoiceList.invoice) === null || _exportInvoiceList$in22 === void 0 ? void 0 : _exportInvoiceList$in22.tax, "%)"), /*#__PURE__*/_react.default.createElement("td", {
376
376
  style: styles.table.tfoot.tr.td
377
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in25 = exportInvoiceList.invoice) === null || _exportInvoiceList$in25 === void 0 ? void 0 : _exportInvoiceList$in25.tax_total))), /*#__PURE__*/_react.default.createElement("tr", {
377
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in23 = exportInvoiceList.invoice) === null || _exportInvoiceList$in23 === void 0 ? void 0 : _exportInvoiceList$in23.tax_total))), /*#__PURE__*/_react.default.createElement("tr", {
378
378
  style: styles.table.tfoot.tr
379
379
  }, /*#__PURE__*/_react.default.createElement("td", {
380
380
  style: styles.table.tfoot.tr.td
381
381
  }, t('TOTAL', 'Total')), /*#__PURE__*/_react.default.createElement("td", {
382
382
  style: styles.table.tfoot.tr.td
383
- }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in26 = exportInvoiceList.invoice) === null || _exportInvoiceList$in26 === void 0 ? void 0 : _exportInvoiceList$in26.total))))), (exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in27 = exportInvoiceList.invoice) === null || _exportInvoiceList$in27 === void 0 ? void 0 : _exportInvoiceList$in27.notes) && /*#__PURE__*/_react.default.createElement("p", {
383
+ }, parsePrice(exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in24 = exportInvoiceList.invoice) === null || _exportInvoiceList$in24 === void 0 ? void 0 : _exportInvoiceList$in24.total))))), (exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in25 = exportInvoiceList.invoice) === null || _exportInvoiceList$in25 === void 0 ? void 0 : _exportInvoiceList$in25.notes) && /*#__PURE__*/_react.default.createElement("p", {
384
384
  style: styles.notes,
385
385
  dangerouslySetInnerHTML: {
386
- __html: exportInvoiceList === null || exportInvoiceList === void 0 ? void 0 : (_exportInvoiceList$in28 = exportInvoiceList.invoice) === null || _exportInvoiceList$in28 === void 0 ? void 0 : _exportInvoiceList$in28.notes
386
+ __html: exportInvoiceList === null || exportInvoiceList === void 0 || (_exportInvoiceList$in26 = exportInvoiceList.invoice) === null || _exportInvoiceList$in26 === void 0 ? void 0 : _exportInvoiceList$in26.notes
387
387
  }
388
388
  }));
389
389
  };
@@ -100,7 +100,7 @@ var InvoiceGeneral = function InvoiceGeneral(props) {
100
100
  var selectedTypes;
101
101
  if (driverList) {
102
102
  var _driverList$drivers;
103
- selectedTypes = driverList === null || driverList === void 0 ? void 0 : (_driverList$drivers = driverList.drivers) === null || _driverList$drivers === void 0 ? void 0 : _driverList$drivers.map(function (item) {
103
+ selectedTypes = driverList === null || driverList === void 0 || (_driverList$drivers = driverList.drivers) === null || _driverList$drivers === void 0 ? void 0 : _driverList$drivers.map(function (item) {
104
104
  return {
105
105
  value: item.id,
106
106
  content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, item.name)
@@ -123,7 +123,7 @@ var InvoiceGeneral = function InvoiceGeneral(props) {
123
123
  var types;
124
124
  if (businessList) {
125
125
  var _businessList$busines;
126
- types = businessList === null || businessList === void 0 ? void 0 : (_businessList$busines = businessList.businesses) === null || _businessList$busines === void 0 ? void 0 : _businessList$busines.map(function (business) {
126
+ types = businessList === null || businessList === void 0 || (_businessList$busines = businessList.businesses) === null || _businessList$busines === void 0 ? void 0 : _businessList$busines.map(function (business) {
127
127
  return {
128
128
  value: business.id,
129
129
  content: /*#__PURE__*/_react.default.createElement(_styles.Option, null, business.name)
@@ -35,7 +35,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
35
35
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
36
36
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
37
  var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
38
- var _filterList$franchise, _reportData$content2, _reportData$content2$, _reportData$content2$2, _reportData$content3, _reportData$content3$, _reportData$content3$2, _reportData$content4, _reportData$content4$, _reportData$content5, _reportData$content5$, _reportData$content6, _reportData$content6$, _reportData$content7, _reportData$content7$, _reportData$content8, _reportData$content8$, _reportData1$content, _reportData1$content$, _reportData1$content$2, _reportData1$content2, _reportData1$content3, _reportData1$content4, _reportData$content9, _reportData$content9$, _reportData1$content5, _reportData1$content6, _reportData1$content7, _reportData1$content8, _reportData1$content9, _reportData1$content10, _reportData1$content11, _reportData1$content12;
38
+ var _filterList$franchise, _reportData$content2, _reportData$content3, _reportData$content4, _reportData$content5, _reportData$content6, _reportData$content7, _reportData$content8, _reportData1$content, _reportData1$content2, _reportData$content9, _reportData1$content3, _reportData1$content4, _reportData1$content5, _reportData1$content6;
39
39
  var filterList = props.filterList,
40
40
  handleChangeFilterList = props.handleChangeFilterList,
41
41
  reportData = props.reportData,
@@ -62,8 +62,8 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
62
62
  }));
63
63
  };
64
64
  var downloadCSV = function downloadCSV(name) {
65
- var _reportData$content, _reportData$content$b, _reportData$content$b2;
66
- if ((reportData === null || reportData === void 0 ? void 0 : (_reportData$content = reportData.content) === null || _reportData$content === void 0 ? void 0 : (_reportData$content$b = _reportData$content.body) === null || _reportData$content$b === void 0 ? void 0 : (_reportData$content$b2 = _reportData$content$b.rows) === null || _reportData$content$b2 === void 0 ? void 0 : _reportData$content$b2.length) === 0) return;
65
+ var _reportData$content;
66
+ if ((reportData === null || reportData === void 0 || (_reportData$content = reportData.content) === null || _reportData$content === void 0 || (_reportData$content = _reportData$content.body) === null || _reportData$content === void 0 || (_reportData$content = _reportData$content.rows) === null || _reportData$content === void 0 ? void 0 : _reportData$content.length) === 0) return;
67
67
  var csv = '';
68
68
  reportData.content.header.rows.forEach(function (tr) {
69
69
  tr.forEach(function (th) {
@@ -118,11 +118,11 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
118
118
  onClick: function onClick() {
119
119
  return setIsBrandFilter(true);
120
120
  }
121
- }, t('BRAND', 'Brand'), " (", filterList !== null && filterList !== void 0 && filterList.franchises_id ? filterList === null || filterList === void 0 ? void 0 : (_filterList$franchise = filterList.franchises_id) === null || _filterList$franchise === void 0 ? void 0 : _filterList$franchise.length : t('ALL', 'All'), ")")), /*#__PURE__*/_react.default.createElement(_styles2.CalendarWrapper, null, /*#__PURE__*/_react.default.createElement(_AnalyticsCalendar.AnalyticsCalendar, {
121
+ }, t('BRAND', 'Brand'), " (", filterList !== null && filterList !== void 0 && filterList.franchises_id ? filterList === null || filterList === void 0 || (_filterList$franchise = filterList.franchises_id) === null || _filterList$franchise === void 0 ? void 0 : _filterList$franchise.length : t('ALL', 'All'), ")")), /*#__PURE__*/_react.default.createElement(_styles2.CalendarWrapper, null, /*#__PURE__*/_react.default.createElement(_AnalyticsCalendar.AnalyticsCalendar, {
122
122
  handleChangeDate: handleChangeDate,
123
123
  defaultValue: filterList
124
124
  }))), /*#__PURE__*/_react.default.createElement(_styles2.OrderStatusTableWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.DistanceTitleBlock, {
125
- active: (reportData === null || reportData === void 0 ? void 0 : (_reportData$content2 = reportData.content) === null || _reportData$content2 === void 0 ? void 0 : (_reportData$content2$ = _reportData$content2.body) === null || _reportData$content2$ === void 0 ? void 0 : (_reportData$content2$2 = _reportData$content2$.rows) === null || _reportData$content2$2 === void 0 ? void 0 : _reportData$content2$2.length) > 0
125
+ active: (reportData === null || reportData === void 0 || (_reportData$content2 = reportData.content) === null || _reportData$content2 === void 0 || (_reportData$content2 = _reportData$content2.body) === null || _reportData$content2 === void 0 || (_reportData$content2 = _reportData$content2.rows) === null || _reportData$content2 === void 0 ? void 0 : _reportData$content2.length) > 0
126
126
  }, /*#__PURE__*/_react.default.createElement("h2", null, t('SITE_AVERAGE_SALES', 'Site average sales')), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Download, {
127
127
  onClick: function onClick() {
128
128
  return downloadCSV('site_sales_average');
@@ -134,9 +134,9 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
134
134
  className: "col-md-3 col-sm-3 col-3",
135
135
  key: i
136
136
  }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null));
137
- })) : /*#__PURE__*/_react.default.createElement(_styles2.TableWrapper, null, (reportData === null || reportData === void 0 ? void 0 : (_reportData$content3 = reportData.content) === null || _reportData$content3 === void 0 ? void 0 : (_reportData$content3$ = _reportData$content3.body) === null || _reportData$content3$ === void 0 ? void 0 : (_reportData$content3$2 = _reportData$content3$.rows) === null || _reportData$content3$2 === void 0 ? void 0 : _reportData$content3$2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_styles2.DistanceTable, {
137
+ })) : /*#__PURE__*/_react.default.createElement(_styles2.TableWrapper, null, (reportData === null || reportData === void 0 || (_reportData$content3 = reportData.content) === null || _reportData$content3 === void 0 || (_reportData$content3 = _reportData$content3.body) === null || _reportData$content3 === void 0 || (_reportData$content3 = _reportData$content3.rows) === null || _reportData$content3 === void 0 ? void 0 : _reportData$content3.length) > 0 ? /*#__PURE__*/_react.default.createElement(_styles2.DistanceTable, {
138
138
  ref: tableRef
139
- }, (reportData === null || reportData === void 0 ? void 0 : (_reportData$content4 = reportData.content) === null || _reportData$content4 === void 0 ? void 0 : (_reportData$content4$ = _reportData$content4.header) === null || _reportData$content4$ === void 0 ? void 0 : _reportData$content4$.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Thead, null, reportData === null || reportData === void 0 ? void 0 : (_reportData$content5 = reportData.content) === null || _reportData$content5 === void 0 ? void 0 : (_reportData$content5$ = _reportData$content5.header) === null || _reportData$content5$ === void 0 ? void 0 : _reportData$content5$.rows.map(function (tr, i) {
139
+ }, (reportData === null || reportData === void 0 || (_reportData$content4 = reportData.content) === null || _reportData$content4 === void 0 || (_reportData$content4 = _reportData$content4.header) === null || _reportData$content4 === void 0 ? void 0 : _reportData$content4.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Thead, null, reportData === null || reportData === void 0 || (_reportData$content5 = reportData.content) === null || _reportData$content5 === void 0 || (_reportData$content5 = _reportData$content5.header) === null || _reportData$content5 === void 0 ? void 0 : _reportData$content5.rows.map(function (tr, i) {
140
140
  return /*#__PURE__*/_react.default.createElement("tr", {
141
141
  key: i
142
142
  }, tr === null || tr === void 0 ? void 0 : tr.map(function (th, j) {
@@ -145,7 +145,7 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
145
145
  colspan: th.colspan
146
146
  }, t(th.value.toUpperCase(), thObj[th.value]));
147
147
  }));
148
- })), reportData === null || reportData === void 0 ? void 0 : (_reportData$content6 = reportData.content) === null || _reportData$content6 === void 0 ? void 0 : (_reportData$content6$ = _reportData$content6.body) === null || _reportData$content6$ === void 0 ? void 0 : _reportData$content6$.rows.map(function (tbody, i) {
148
+ })), reportData === null || reportData === void 0 || (_reportData$content6 = reportData.content) === null || _reportData$content6 === void 0 || (_reportData$content6 = _reportData$content6.body) === null || _reportData$content6 === void 0 ? void 0 : _reportData$content6.rows.map(function (tbody, i) {
149
149
  return /*#__PURE__*/_react.default.createElement(_styles2.Tbody, {
150
150
  key: i
151
151
  }, /*#__PURE__*/_react.default.createElement("tr", null, tbody.map(function (td, j) {
@@ -154,7 +154,7 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
154
154
  colspan: td.colspan
155
155
  }, td.value_unit === 'currency' ? parsePrice(td.value) : td.value);
156
156
  })));
157
- }), (reportData === null || reportData === void 0 ? void 0 : (_reportData$content7 = reportData.content) === null || _reportData$content7 === void 0 ? void 0 : (_reportData$content7$ = _reportData$content7.footer) === null || _reportData$content7$ === void 0 ? void 0 : _reportData$content7$.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Tfoot, null, reportData === null || reportData === void 0 ? void 0 : (_reportData$content8 = reportData.content) === null || _reportData$content8 === void 0 ? void 0 : (_reportData$content8$ = _reportData$content8.footer) === null || _reportData$content8$ === void 0 ? void 0 : _reportData$content8$.rows.map(function (tr, i) {
157
+ }), (reportData === null || reportData === void 0 || (_reportData$content7 = reportData.content) === null || _reportData$content7 === void 0 || (_reportData$content7 = _reportData$content7.footer) === null || _reportData$content7 === void 0 ? void 0 : _reportData$content7.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Tfoot, null, reportData === null || reportData === void 0 || (_reportData$content8 = reportData.content) === null || _reportData$content8 === void 0 || (_reportData$content8 = _reportData$content8.footer) === null || _reportData$content8 === void 0 ? void 0 : _reportData$content8.rows.map(function (tr, i) {
158
158
  return /*#__PURE__*/_react.default.createElement("tr", {
159
159
  key: i
160
160
  }, tr === null || tr === void 0 ? void 0 : tr.map(function (td, j) {
@@ -164,7 +164,7 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
164
164
  }, td.value);
165
165
  }));
166
166
  }))) : /*#__PURE__*/_react.default.createElement(_styles2.EmptyContent, null, t('NO_DATA', 'No Data')))), /*#__PURE__*/_react.default.createElement(_styles2.OrderStatusTableWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.DistanceTitleBlock, {
167
- active: (reportData1 === null || reportData1 === void 0 ? void 0 : (_reportData1$content = reportData1.content) === null || _reportData1$content === void 0 ? void 0 : (_reportData1$content$ = _reportData1$content.body) === null || _reportData1$content$ === void 0 ? void 0 : (_reportData1$content$2 = _reportData1$content$.rows) === null || _reportData1$content$2 === void 0 ? void 0 : _reportData1$content$2.length) > 0
167
+ active: (reportData1 === null || reportData1 === void 0 || (_reportData1$content = reportData1.content) === null || _reportData1$content === void 0 || (_reportData1$content = _reportData1$content.body) === null || _reportData1$content === void 0 || (_reportData1$content = _reportData1$content.rows) === null || _reportData1$content === void 0 ? void 0 : _reportData1$content.length) > 0
168
168
  }, /*#__PURE__*/_react.default.createElement("h2", null, t('ORDER_TYPE_AVERAGE_SALES', 'Order type average sales')), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Download, {
169
169
  onClick: function onClick() {
170
170
  return downloadCSV('order_type_sales_average');
@@ -176,9 +176,9 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
176
176
  className: "col-md-3 col-sm-3 col-3",
177
177
  key: i
178
178
  }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null));
179
- })) : /*#__PURE__*/_react.default.createElement(_styles2.TableWrapper, null, (reportData1 === null || reportData1 === void 0 ? void 0 : (_reportData1$content2 = reportData1.content) === null || _reportData1$content2 === void 0 ? void 0 : (_reportData1$content3 = _reportData1$content2.body) === null || _reportData1$content3 === void 0 ? void 0 : (_reportData1$content4 = _reportData1$content3.rows) === null || _reportData1$content4 === void 0 ? void 0 : _reportData1$content4.length) > 0 ? /*#__PURE__*/_react.default.createElement(_styles2.DistanceTable, {
179
+ })) : /*#__PURE__*/_react.default.createElement(_styles2.TableWrapper, null, (reportData1 === null || reportData1 === void 0 || (_reportData1$content2 = reportData1.content) === null || _reportData1$content2 === void 0 || (_reportData1$content2 = _reportData1$content2.body) === null || _reportData1$content2 === void 0 || (_reportData1$content2 = _reportData1$content2.rows) === null || _reportData1$content2 === void 0 ? void 0 : _reportData1$content2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_styles2.DistanceTable, {
180
180
  ref: tableRef
181
- }, (reportData === null || reportData === void 0 ? void 0 : (_reportData$content9 = reportData.content) === null || _reportData$content9 === void 0 ? void 0 : (_reportData$content9$ = _reportData$content9.header) === null || _reportData$content9$ === void 0 ? void 0 : _reportData$content9$.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Thead, null, reportData1 === null || reportData1 === void 0 ? void 0 : (_reportData1$content5 = reportData1.content) === null || _reportData1$content5 === void 0 ? void 0 : (_reportData1$content6 = _reportData1$content5.header) === null || _reportData1$content6 === void 0 ? void 0 : _reportData1$content6.rows.map(function (tr, i) {
181
+ }, (reportData === null || reportData === void 0 || (_reportData$content9 = reportData.content) === null || _reportData$content9 === void 0 || (_reportData$content9 = _reportData$content9.header) === null || _reportData$content9 === void 0 ? void 0 : _reportData$content9.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Thead, null, reportData1 === null || reportData1 === void 0 || (_reportData1$content3 = reportData1.content) === null || _reportData1$content3 === void 0 || (_reportData1$content3 = _reportData1$content3.header) === null || _reportData1$content3 === void 0 ? void 0 : _reportData1$content3.rows.map(function (tr, i) {
182
182
  return /*#__PURE__*/_react.default.createElement("tr", {
183
183
  key: i
184
184
  }, tr === null || tr === void 0 ? void 0 : tr.map(function (th, j) {
@@ -188,7 +188,7 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
188
188
  colspan: th.colspan
189
189
  }, (_th$value = th.value) !== null && _th$value !== void 0 && _th$value.includes("_") ? t(th.value.toUpperCase(), thObj[th.value]) : th.value);
190
190
  }));
191
- })), reportData1 === null || reportData1 === void 0 ? void 0 : (_reportData1$content7 = reportData1.content) === null || _reportData1$content7 === void 0 ? void 0 : (_reportData1$content8 = _reportData1$content7.body) === null || _reportData1$content8 === void 0 ? void 0 : _reportData1$content8.rows.map(function (tbody, i) {
191
+ })), reportData1 === null || reportData1 === void 0 || (_reportData1$content4 = reportData1.content) === null || _reportData1$content4 === void 0 || (_reportData1$content4 = _reportData1$content4.body) === null || _reportData1$content4 === void 0 ? void 0 : _reportData1$content4.rows.map(function (tbody, i) {
192
192
  return /*#__PURE__*/_react.default.createElement(_styles2.Tbody, {
193
193
  key: i
194
194
  }, /*#__PURE__*/_react.default.createElement("tr", null, tbody.map(function (td, j) {
@@ -197,7 +197,7 @@ var ReportsAverageSalesUI = function ReportsAverageSalesUI(props) {
197
197
  colspan: td.colspan
198
198
  }, td.value_unit === 'currency' ? parsePrice(td.value) : td.value);
199
199
  })));
200
- }), (reportData1 === null || reportData1 === void 0 ? void 0 : (_reportData1$content9 = reportData1.content) === null || _reportData1$content9 === void 0 ? void 0 : (_reportData1$content10 = _reportData1$content9.footer) === null || _reportData1$content10 === void 0 ? void 0 : _reportData1$content10.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Tfoot, null, reportData1 === null || reportData1 === void 0 ? void 0 : (_reportData1$content11 = reportData1.content) === null || _reportData1$content11 === void 0 ? void 0 : (_reportData1$content12 = _reportData1$content11.footer) === null || _reportData1$content12 === void 0 ? void 0 : _reportData1$content12.rows.map(function (tr, i) {
200
+ }), (reportData1 === null || reportData1 === void 0 || (_reportData1$content5 = reportData1.content) === null || _reportData1$content5 === void 0 || (_reportData1$content5 = _reportData1$content5.footer) === null || _reportData1$content5 === void 0 ? void 0 : _reportData1$content5.rows.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Tfoot, null, reportData1 === null || reportData1 === void 0 || (_reportData1$content6 = reportData1.content) === null || _reportData1$content6 === void 0 || (_reportData1$content6 = _reportData1$content6.footer) === null || _reportData1$content6 === void 0 ? void 0 : _reportData1$content6.rows.map(function (tr, i) {
201
201
  return /*#__PURE__*/_react.default.createElement("tr", {
202
202
  key: i
203
203
  }, tr === null || tr === void 0 ? void 0 : tr.map(function (td, j) {
@@ -96,13 +96,13 @@ var ReportsBarChart = function ReportsBarChart(props) {
96
96
  var _barChartRef$current;
97
97
  if (!(barChartRef !== null && barChartRef !== void 0 && barChartRef.current)) return;
98
98
  var a = document.createElement('a');
99
- a.href = barChartRef === null || barChartRef === void 0 ? void 0 : (_barChartRef$current = barChartRef.current) === null || _barChartRef$current === void 0 ? void 0 : _barChartRef$current.toBase64Image();
99
+ a.href = barChartRef === null || barChartRef === void 0 || (_barChartRef$current = barChartRef.current) === null || _barChartRef$current === void 0 ? void 0 : _barChartRef$current.toBase64Image();
100
100
  a.download = "".concat(title, ".png");
101
101
  // Trigger the download
102
102
  a.click();
103
103
  };
104
104
  return /*#__PURE__*/_react.default.createElement(_styles.ReportsBarChartContainer, null, /*#__PURE__*/_react.default.createElement(_styles.TitleBlock, {
105
- active: (chartData === null || chartData === void 0 ? void 0 : (_chartData$datasets = chartData.datasets) === null || _chartData$datasets === void 0 ? void 0 : _chartData$datasets.length) > 0
105
+ active: (chartData === null || chartData === void 0 || (_chartData$datasets = chartData.datasets) === null || _chartData$datasets === void 0 ? void 0 : _chartData$datasets.length) > 0
106
106
  }, /*#__PURE__*/_react.default.createElement("h2", null, title), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Download, {
107
107
  onClick: function onClick() {
108
108
  return downloadChart();
@@ -119,7 +119,7 @@ var ReportsBarChart = function ReportsBarChart(props) {
119
119
  }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
120
120
  height: Math.random() * 300
121
121
  }));
122
- })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (chartData === null || chartData === void 0 ? void 0 : (_chartData$datasets2 = chartData.datasets) === null || _chartData$datasets2 === void 0 ? void 0 : _chartData$datasets2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_styles.ChartWrapper, null, /*#__PURE__*/_react.default.createElement(_reactChartjs.Bar, {
122
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (chartData === null || chartData === void 0 || (_chartData$datasets2 = chartData.datasets) === null || _chartData$datasets2 === void 0 ? void 0 : _chartData$datasets2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_styles.ChartWrapper, null, /*#__PURE__*/_react.default.createElement(_reactChartjs.Bar, {
123
123
  data: chartData,
124
124
  options: options,
125
125
  ref: barChartRef