ordering-ui-admin-external 1.30.6 → 1.31.0

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 (485) hide show
  1. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js → ordering-ui-admin.2f5049887bf500c65392.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js.LICENSE.txt → ordering-ui-admin.2f5049887bf500c65392.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 +80 -47
  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/BusinessAnalytics/index.js +2 -1
  15. package/_modules/components/BusinessIntelligence/BusinessAnalytics/styles.js +6 -4
  16. package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
  17. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
  18. package/_modules/components/BusinessIntelligence/CountryFilter/index.js +1 -1
  19. package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
  20. package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
  21. package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
  22. package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +16 -15
  23. package/_modules/components/BusinessIntelligence/ReportsAverageSales/styles.js +13 -3
  24. package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
  25. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +27 -26
  26. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +13 -3
  27. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +12 -11
  28. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +13 -3
  29. package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +18 -17
  30. package/_modules/components/BusinessIntelligence/ReportsCustomer/styles.js +13 -3
  31. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +12 -11
  32. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/styles.js +13 -3
  33. package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
  34. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +12 -11
  35. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/styles.js +13 -3
  36. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +12 -11
  37. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +13 -3
  38. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +11 -10
  39. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +13 -3
  40. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +12 -11
  41. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/styles.js +13 -3
  42. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +12 -11
  43. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/styles.js +13 -3
  44. package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +12 -11
  45. package/_modules/components/BusinessIntelligence/ReportsHeatMap/styles.js +13 -3
  46. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +24 -23
  47. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/styles.js +13 -3
  48. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +18 -17
  49. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/styles.js +13 -3
  50. package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
  51. package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +22 -21
  52. package/_modules/components/BusinessIntelligence/ReportsOrders/styles.js +13 -3
  53. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +11 -10
  54. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +13 -3
  55. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +20 -19
  56. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +13 -3
  57. package/_modules/components/BusinessIntelligence/ReportsSales/index.js +22 -21
  58. package/_modules/components/BusinessIntelligence/ReportsSales/styles.js +13 -3
  59. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +11 -10
  60. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/styles.js +13 -3
  61. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +27 -26
  62. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/styles.js +13 -3
  63. package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +17 -16
  64. package/_modules/components/BusinessIntelligence/ReportsUsers/styles.js +13 -3
  65. package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
  66. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
  67. package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
  68. package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
  69. package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
  70. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
  71. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
  72. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
  73. package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
  74. package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
  75. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
  76. package/_modules/components/Delivery/AddressForm/index.js +29 -29
  77. package/_modules/components/Delivery/AddressList/index.js +22 -12
  78. package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
  79. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
  80. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
  81. package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
  82. package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
  83. package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
  84. package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
  85. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
  86. package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
  87. package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
  88. package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
  89. package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
  90. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  91. package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
  92. package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  93. package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
  94. package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
  95. package/_modules/components/Delivery/UserAddForm/index.js +13 -13
  96. package/_modules/components/Delivery/UserDetails/index.js +6 -6
  97. package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
  98. package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
  99. package/_modules/components/Home/HomePage/index.js +10 -9
  100. package/_modules/components/LanguageSelector/index.js +1 -1
  101. package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
  102. package/_modules/components/Login/LoginForm/index.js +11 -11
  103. package/_modules/components/Login/ResetPassword/index.js +5 -5
  104. package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
  105. package/_modules/components/Loyalty/GiftCards/index.js +3 -3
  106. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
  107. package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
  108. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
  109. package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
  110. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
  111. package/_modules/components/Marketing/BannerDetails/index.js +5 -5
  112. package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
  113. package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
  114. package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
  115. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  116. package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
  117. package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
  118. package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
  119. package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
  120. package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
  121. package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
  122. package/_modules/components/Marketing/CampaignList/index.js +2 -2
  123. package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
  124. package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
  125. package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
  126. package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
  127. package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
  128. package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
  129. package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
  130. package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
  131. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
  132. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
  133. package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
  134. package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
  135. package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
  136. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
  137. package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
  138. package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
  139. package/_modules/components/Marketing/PageBanner/index.js +1 -1
  140. package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
  141. package/_modules/components/Messages/ChatContactList/index.js +2 -2
  142. package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
  143. package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
  144. package/_modules/components/MyProducts/AppResources/index.js +15 -15
  145. package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
  146. package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
  147. package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
  148. package/_modules/components/MyProducts/OrderingWebsite/index.js +39 -32
  149. package/_modules/components/MyProducts/OrderingWebsite/styles.js +1 -1
  150. package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
  151. package/_modules/components/NotNetworkConnectivity/index.js +2 -2
  152. package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
  153. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  154. package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
  155. package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
  156. package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
  157. package/_modules/components/Orders/AllInOne/index.js +15 -6
  158. package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
  159. package/_modules/components/Orders/Appointments/index.js +2 -2
  160. package/_modules/components/Orders/CompanySelector/index.js +4 -4
  161. package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
  162. package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
  163. package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
  164. package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
  165. package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +102 -9
  166. package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +19 -3
  167. package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
  168. package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
  169. package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +3 -3
  170. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
  171. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
  172. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
  173. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
  174. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
  175. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
  176. package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
  177. package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
  178. package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
  179. package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
  180. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +22 -10
  181. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +8 -5
  182. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
  183. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
  184. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
  185. package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
  186. package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
  187. package/_modules/components/Orders/DeliveriesManager/index.js +13 -4
  188. package/_modules/components/Orders/DeliveryDashboard/index.js +6 -6
  189. package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
  190. package/_modules/components/Orders/DriversList/index.js +2 -2
  191. package/_modules/components/Orders/DriversLocation/index.js +11 -11
  192. package/_modules/components/Orders/DriversManager/index.js +2 -2
  193. package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
  194. package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
  195. package/_modules/components/Orders/Logistics/index.js +1 -1
  196. package/_modules/components/Orders/Messages/index.js +4 -4
  197. package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
  198. package/_modules/components/Orders/OrderBill/index.js +46 -46
  199. package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
  200. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
  201. package/_modules/components/Orders/OrderDetails/index.js +6 -6
  202. package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
  203. package/_modules/components/Orders/OrderLogisticInformation/index.js +1 -1
  204. package/_modules/components/Orders/OrderNotification/index.js +47 -18
  205. package/_modules/components/Orders/OrderNotification/styles.js +18 -3
  206. package/_modules/components/Orders/OrderStatusFilterBar/index.js +6 -6
  207. package/_modules/components/Orders/OrderToPrint/index.js +22 -22
  208. package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
  209. package/_modules/components/Orders/OrdersCards/index.js +29 -29
  210. package/_modules/components/Orders/OrdersContentHeader/index.js +13 -4
  211. package/_modules/components/Orders/OrdersContentHeader/styles.js +20 -4
  212. package/_modules/components/Orders/OrdersDashboardList/index.js +34 -5
  213. package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
  214. package/_modules/components/Orders/OrdersFilterGroup/index.js +18 -1
  215. package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
  216. package/_modules/components/Orders/OrdersListing/index.js +9 -3
  217. package/_modules/components/Orders/OrdersManager/index.js +16 -7
  218. package/_modules/components/Orders/OrdersTable/index.js +53 -53
  219. package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
  220. package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
  221. package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
  222. package/_modules/components/Orders/WebsocketStatus/index.js +6 -1
  223. package/_modules/components/PageNotFound/index.js +3 -3
  224. package/_modules/components/Settings/ApiKeysList/index.js +1 -1
  225. package/_modules/components/Settings/CountriesList/index.js +1 -1
  226. package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
  227. package/_modules/components/Settings/EmailSetting/index.js +5 -5
  228. package/_modules/components/Settings/InsertImage/index.js +3 -3
  229. package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
  230. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
  231. package/_modules/components/Settings/LanguageSetting/index.js +1 -1
  232. package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
  233. package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
  234. package/_modules/components/Settings/NotificationSetting/index.js +6 -6
  235. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  236. package/_modules/components/Settings/Settings/index.js +3 -3
  237. package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
  238. package/_modules/components/Settings/SettingsList/index.js +4 -4
  239. package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
  240. package/_modules/components/Settings/WebhookListSelector/index.js +6 -0
  241. package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
  242. package/_modules/components/Shared/AutoScroll/index.js +4 -4
  243. package/_modules/components/Shared/CitySelector/index.js +1 -1
  244. package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
  245. package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
  246. package/_modules/components/Shared/DragScroll/index.js +5 -5
  247. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
  248. package/_modules/components/Shared/InputPhoneNumber/index.js +3 -4
  249. package/_modules/components/Shared/NotFoundSource/index.js +2 -2
  250. package/_modules/components/Shared/Personalization/index.js +1 -1
  251. package/_modules/components/Shared/RangeCalendar/index.js +2 -2
  252. package/_modules/components/Shared/Schedule/index.js +6 -6
  253. package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
  254. package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
  255. package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
  256. package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
  257. package/_modules/components/Shared/SelectSites/index.js +1 -1
  258. package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
  259. package/_modules/components/SidebarMenu/index.js +37 -40
  260. package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
  261. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
  262. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
  263. package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
  264. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
  265. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
  266. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
  267. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +7 -3
  268. package/_modules/components/Stores/BusinessAdd/index.js +9 -9
  269. package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
  270. package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
  271. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
  272. package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
  273. package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
  274. package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
  275. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
  276. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
  277. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
  278. package/_modules/components/Stores/BusinessDetails/index.js +7 -7
  279. package/_modules/components/Stores/BusinessDeviceDetail/index.js +13 -13
  280. package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
  281. package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
  282. package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
  283. package/_modules/components/Stores/BusinessImages/index.js +4 -4
  284. package/_modules/components/Stores/BusinessInformation/index.js +35 -35
  285. package/_modules/components/Stores/BusinessLocation/index.js +7 -7
  286. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  287. package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
  288. package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
  289. package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
  290. package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
  291. package/_modules/components/Stores/BusinessOwners/index.js +1 -1
  292. package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
  293. package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
  294. package/_modules/components/Stores/BusinessPlace/index.js +1 -1
  295. package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
  296. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
  297. package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
  298. package/_modules/components/Stores/BusinessPreview/index.js +19 -19
  299. package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
  300. package/_modules/components/Stores/BusinessProductList/index.js +5 -5
  301. package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
  302. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
  303. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
  304. package/_modules/components/Stores/BusinessProductsListing/index.js +25 -21
  305. package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
  306. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  307. package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
  308. package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
  309. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
  310. package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
  311. package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
  312. package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
  313. package/_modules/components/Stores/BusinessSummary/index.js +14 -11
  314. package/_modules/components/Stores/BusinessSupport/index.js +2 -2
  315. package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
  316. package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
  317. package/_modules/components/Stores/BusinessTypes/index.js +2 -2
  318. package/_modules/components/Stores/BusinessVideos/index.js +2 -2
  319. package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
  320. package/_modules/components/Stores/BusinessWebhooks/index.js +11 -5
  321. package/_modules/components/Stores/BusinessesListing/index.js +1 -1
  322. package/_modules/components/Stores/ImporterForm/index.js +3 -3
  323. package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
  324. package/_modules/components/Stores/PaymentOption/index.js +11 -11
  325. package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
  326. package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
  327. package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
  328. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
  329. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
  330. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
  331. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
  332. package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
  333. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
  334. package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
  335. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +26 -21
  336. package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
  337. package/_modules/components/Stores/ProductExtraOptions/index.js +10 -4
  338. package/_modules/components/Stores/ProductExtraSuboption/index.js +10 -5
  339. package/_modules/components/Stores/ProductExtras/index.js +9 -4
  340. package/_modules/components/Stores/ProductGallery/index.js +3 -3
  341. package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
  342. package/_modules/components/Stores/ProductStep/index.js +2 -2
  343. package/_modules/components/Stores/ProductSummary/index.js +11 -8
  344. package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
  345. package/_modules/components/Stores/ProductTagsList/index.js +1 -1
  346. package/_modules/components/Stores/ProductVideos/index.js +1 -1
  347. package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
  348. package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
  349. package/_modules/components/Stores/SeoOptions/index.js +9 -9
  350. package/_modules/components/Stores/ServiceDetail/index.js +5 -5
  351. package/_modules/components/Stores/SingleBusiness/index.js +14 -14
  352. package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
  353. package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
  354. package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
  355. package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
  356. package/_modules/components/Users/CustomerDetails/index.js +2 -2
  357. package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
  358. package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
  359. package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
  360. package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
  361. package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
  362. package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
  363. package/_modules/components/Users/ProfessionalListing/index.js +1 -1
  364. package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
  365. package/_modules/components/Users/ProfessionalServices/index.js +3 -3
  366. package/_modules/components/Users/UserAddForm/index.js +11 -13
  367. package/_modules/components/Users/UserDetails/index.js +4 -4
  368. package/_modules/components/Users/UserFilterGroup/index.js +2 -2
  369. package/_modules/components/Users/UserFormDetails/index.js +12 -12
  370. package/_modules/components/Users/UserProfileForm/index.js +7 -7
  371. package/_modules/styles/Select/index.js +1 -1
  372. package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
  373. package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
  374. package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
  375. package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
  376. package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
  377. package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
  378. package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
  379. package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
  380. package/_modules/themes/origin/src/components/Header/index.js +3 -3
  381. package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
  382. package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
  383. package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
  384. package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
  385. package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
  386. package/_modules/themes/origin/src/components/Messages/index.js +13 -13
  387. package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
  388. package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
  389. package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
  390. package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
  391. package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
  392. package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
  393. package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
  394. package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
  395. package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
  396. package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
  397. package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
  398. package/_modules/themes/origin/src/components/OverView/index.js +1 -1
  399. package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
  400. package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
  401. package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
  402. package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
  403. package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
  404. package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
  405. package/_modules/utils/index.js +1 -1
  406. package/package.json +2 -2
  407. package/src/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +39 -17
  408. package/src/components/BusinessIntelligence/BusinessAnalytics/index.js +6 -1
  409. package/src/components/BusinessIntelligence/BusinessAnalytics/styles.js +2 -0
  410. package/src/components/BusinessIntelligence/ReportsAverageSales/index.js +15 -7
  411. package/src/components/BusinessIntelligence/ReportsAverageSales/styles.js +34 -0
  412. package/src/components/BusinessIntelligence/ReportsBusinessDistance/index.js +9 -1
  413. package/src/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +34 -0
  414. package/src/components/BusinessIntelligence/ReportsBusinessSpend/index.js +9 -1
  415. package/src/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +34 -0
  416. package/src/components/BusinessIntelligence/ReportsCustomer/index.js +15 -7
  417. package/src/components/BusinessIntelligence/ReportsCustomer/styles.js +34 -0
  418. package/src/components/BusinessIntelligence/ReportsDriverDistance/index.js +10 -2
  419. package/src/components/BusinessIntelligence/ReportsDriverDistance/styles.js +34 -0
  420. package/src/components/BusinessIntelligence/ReportsDriverOrder/index.js +9 -1
  421. package/src/components/BusinessIntelligence/ReportsDriverOrder/styles.js +34 -0
  422. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +9 -1
  423. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +34 -0
  424. package/src/components/BusinessIntelligence/ReportsDriverSchedule/index.js +16 -8
  425. package/src/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +34 -0
  426. package/src/components/BusinessIntelligence/ReportsDriverSpend/index.js +9 -1
  427. package/src/components/BusinessIntelligence/ReportsDriverSpend/styles.js +34 -0
  428. package/src/components/BusinessIntelligence/ReportsGeneralSales/index.js +9 -1
  429. package/src/components/BusinessIntelligence/ReportsGeneralSales/styles.js +34 -0
  430. package/src/components/BusinessIntelligence/ReportsHeatMap/index.js +9 -1
  431. package/src/components/BusinessIntelligence/ReportsHeatMap/styles.js +34 -0
  432. package/src/components/BusinessIntelligence/ReportsOrderDistance/index.js +10 -1
  433. package/src/components/BusinessIntelligence/ReportsOrderDistance/styles.js +34 -0
  434. package/src/components/BusinessIntelligence/ReportsOrderStatus/index.js +10 -2
  435. package/src/components/BusinessIntelligence/ReportsOrderStatus/styles.js +34 -0
  436. package/src/components/BusinessIntelligence/ReportsOrders/index.js +9 -1
  437. package/src/components/BusinessIntelligence/ReportsOrders/styles.js +34 -0
  438. package/src/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -1
  439. package/src/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +34 -0
  440. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +9 -1
  441. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +34 -0
  442. package/src/components/BusinessIntelligence/ReportsSales/index.js +9 -1
  443. package/src/components/BusinessIntelligence/ReportsSales/styles.js +34 -0
  444. package/src/components/BusinessIntelligence/ReportsSpentTIme/index.js +15 -7
  445. package/src/components/BusinessIntelligence/ReportsSpentTIme/styles.js +34 -0
  446. package/src/components/BusinessIntelligence/ReportsTopDrivers/index.js +9 -2
  447. package/src/components/BusinessIntelligence/ReportsTopDrivers/styles.js +34 -0
  448. package/src/components/BusinessIntelligence/ReportsUsers/index.js +15 -7
  449. package/src/components/BusinessIntelligence/ReportsUsers/styles.js +34 -0
  450. package/src/components/Delivery/AddressList/index.js +11 -1
  451. package/src/components/Home/HomePage/index.js +5 -1
  452. package/src/components/MyProducts/OrderingWebsite/index.js +25 -12
  453. package/src/components/MyProducts/OrderingWebsite/styles.js +0 -2
  454. package/src/components/Orders/AllInOne/index.js +8 -2
  455. package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +118 -6
  456. package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +56 -0
  457. package/src/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +1 -1
  458. package/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +19 -11
  459. package/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +3 -0
  460. package/src/components/Orders/DeliveriesManager/index.js +8 -2
  461. package/src/components/Orders/DeliveryDashboard/index.js +4 -4
  462. package/src/components/Orders/OrderNotification/index.js +31 -5
  463. package/src/components/Orders/OrderNotification/styles.js +37 -0
  464. package/src/components/Orders/OrderStatusFilterBar/index.js +10 -9
  465. package/src/components/Orders/OrdersContentHeader/index.js +17 -3
  466. package/src/components/Orders/OrdersContentHeader/styles.js +54 -0
  467. package/src/components/Orders/OrdersDashboardList/index.js +6 -1
  468. package/src/components/Orders/OrdersFilterGroup/index.js +16 -0
  469. package/src/components/Orders/OrdersListing/index.js +7 -0
  470. package/src/components/Orders/OrdersManager/index.js +11 -3
  471. package/src/components/Orders/WebsocketStatus/index.js +5 -2
  472. package/src/components/Settings/WebhookListSelector/index.js +3 -1
  473. package/src/components/Shared/InputPhoneNumber/index.js +2 -3
  474. package/src/components/SidebarMenu/index.js +6 -6
  475. package/src/components/Stores/BusinessAdd/ReceiveOrders/index.js +16 -12
  476. package/src/components/Stores/BusinessDeviceDetail/index.js +1 -1
  477. package/src/components/Stores/BusinessProductsListing/index.js +4 -0
  478. package/src/components/Stores/BusinessSummary/index.js +21 -15
  479. package/src/components/Stores/BusinessWebhooks/index.js +3 -1
  480. package/src/components/Stores/ProductExtraOptionDetails/index.js +8 -0
  481. package/src/components/Stores/ProductExtraOptions/index.js +10 -1
  482. package/src/components/Stores/ProductExtraSuboption/index.js +7 -1
  483. package/src/components/Stores/ProductExtras/index.js +6 -1
  484. package/src/components/Stores/ProductSummary/index.js +7 -1
  485. package/src/components/Users/UserAddForm/index.js +0 -2
@@ -74,14 +74,14 @@ var AnalyticsRegisterUsers = function AnalyticsRegisterUsers(props) {
74
74
  var values = [];
75
75
  timeAxes.forEach(function (axe) {
76
76
  var _registerUsersList$da;
77
- var index = registerUsersList === null || registerUsersList === void 0 ? void 0 : (_registerUsersList$da = registerUsersList.data) === null || _registerUsersList$da === void 0 ? void 0 : _registerUsersList$da.findIndex(function (history) {
77
+ var index = registerUsersList === null || registerUsersList === void 0 || (_registerUsersList$da = registerUsersList.data) === null || _registerUsersList$da === void 0 ? void 0 : _registerUsersList$da.findIndex(function (history) {
78
78
  return axe === (history === null || history === void 0 ? void 0 : history.time);
79
79
  });
80
80
  if (index !== -1) {
81
81
  var _registerUsersList$da2, _registerUsersList$da3;
82
82
  values.push({
83
- x: registerUsersList === null || registerUsersList === void 0 ? void 0 : (_registerUsersList$da2 = registerUsersList.data[index]) === null || _registerUsersList$da2 === void 0 ? void 0 : _registerUsersList$da2.time,
84
- y: registerUsersList === null || registerUsersList === void 0 ? void 0 : (_registerUsersList$da3 = registerUsersList.data[index]) === null || _registerUsersList$da3 === void 0 ? void 0 : _registerUsersList$da3.users
83
+ x: registerUsersList === null || registerUsersList === void 0 || (_registerUsersList$da2 = registerUsersList.data[index]) === null || _registerUsersList$da2 === void 0 ? void 0 : _registerUsersList$da2.time,
84
+ y: registerUsersList === null || registerUsersList === void 0 || (_registerUsersList$da3 = registerUsersList.data[index]) === null || _registerUsersList$da3 === void 0 ? void 0 : _registerUsersList$da3.users
85
85
  });
86
86
  } else {
87
87
  values.push({
@@ -216,13 +216,13 @@ var AnalyticsRegisterUsers = function AnalyticsRegisterUsers(props) {
216
216
  };
217
217
  var previewChart = function previewChart() {
218
218
  var _registerUsersList$da4;
219
- if ((registerUsersList === null || registerUsersList === void 0 ? void 0 : (_registerUsersList$da4 = registerUsersList.data) === null || _registerUsersList$da4 === void 0 ? void 0 : _registerUsersList$da4.length) > 0) setIsShowPreview(true);
219
+ if ((registerUsersList === null || registerUsersList === void 0 || (_registerUsersList$da4 = registerUsersList.data) === null || _registerUsersList$da4 === void 0 ? void 0 : _registerUsersList$da4.length) > 0) setIsShowPreview(true);
220
220
  };
221
221
  (0, _react.useEffect)(function () {
222
222
  updateTimeAxes();
223
223
  }, [filterList]);
224
224
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement(_styles.RegisterUsersHeader, null, /*#__PURE__*/_react.default.createElement("p", null, t('REGISTER_USERS', 'Register Users')), /*#__PURE__*/_react.default.createElement(_styles.ActionBlock, {
225
- disabled: (registerUsersList === null || registerUsersList === void 0 ? void 0 : (_registerUsersList$da5 = registerUsersList.data) === null || _registerUsersList$da5 === void 0 ? void 0 : _registerUsersList$da5.length) === 0
225
+ disabled: (registerUsersList === null || registerUsersList === void 0 || (_registerUsersList$da5 = registerUsersList.data) === null || _registerUsersList$da5 === void 0 ? void 0 : _registerUsersList$da5.length) === 0
226
226
  }, /*#__PURE__*/_react.default.createElement(_BsArrowsAngleExpand.default, {
227
227
  onClick: previewChart
228
228
  }), /*#__PURE__*/_react.default.createElement(_BsDownload.default, {
@@ -230,7 +230,7 @@ var AnalyticsRegisterUsers = function AnalyticsRegisterUsers(props) {
230
230
  onClick: downloadImage
231
231
  }))), /*#__PURE__*/_react.default.createElement(_styles.RegisterUserChartWrapper, null, registerUsersList !== null && registerUsersList !== void 0 && registerUsersList.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
232
232
  height: 150
233
- }) : (registerUsersList === null || registerUsersList === void 0 ? void 0 : (_registerUsersList$da6 = registerUsersList.data) === null || _registerUsersList$da6 === void 0 ? void 0 : _registerUsersList$da6.length) > 0 ? /*#__PURE__*/_react.default.createElement(_reactChartjs.Line, {
233
+ }) : (registerUsersList === null || registerUsersList === void 0 || (_registerUsersList$da6 = registerUsersList.data) === null || _registerUsersList$da6 === void 0 ? void 0 : _registerUsersList$da6.length) > 0 ? /*#__PURE__*/_react.default.createElement(_reactChartjs.Line, {
234
234
  data: defaultData,
235
235
  options: options,
236
236
  ref: chartRef
@@ -44,14 +44,14 @@ var AnalyticsSpendTimes = function AnalyticsSpendTimes(props) {
44
44
  var values = [];
45
45
  timeAxes.forEach(function (axe) {
46
46
  var _chartDataList$data;
47
- var index = chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data = chartDataList.data) === null || _chartDataList$data === void 0 ? void 0 : _chartDataList$data.findIndex(function (history) {
47
+ var index = chartDataList === null || chartDataList === void 0 || (_chartDataList$data = chartDataList.data) === null || _chartDataList$data === void 0 ? void 0 : _chartDataList$data.findIndex(function (history) {
48
48
  return axe === (history === null || history === void 0 ? void 0 : history.time);
49
49
  });
50
50
  if (index !== -1) {
51
51
  var _chartDataList$data$i, _chartDataList$data$i2, _chartDataList$data$i3;
52
52
  values.push({
53
- x: chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i = chartDataList.data[index]) === null || _chartDataList$data$i === void 0 ? void 0 : _chartDataList$data$i.time,
54
- y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i2 = chartDataList.data[index]) !== null && _chartDataList$data$i2 !== void 0 && _chartDataList$data$i2.accept_spend ? (chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i3 = chartDataList.data[index]) === null || _chartDataList$data$i3 === void 0 ? void 0 : _chartDataList$data$i3.accept_spend) / 60 : 0
53
+ x: chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i = chartDataList.data[index]) === null || _chartDataList$data$i === void 0 ? void 0 : _chartDataList$data$i.time,
54
+ y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i2 = chartDataList.data[index]) !== null && _chartDataList$data$i2 !== void 0 && _chartDataList$data$i2.accept_spend ? (chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i3 = chartDataList.data[index]) === null || _chartDataList$data$i3 === void 0 ? void 0 : _chartDataList$data$i3.accept_spend) / 60 : 0
55
55
  });
56
56
  } else {
57
57
  values.push({
@@ -66,14 +66,14 @@ var AnalyticsSpendTimes = function AnalyticsSpendTimes(props) {
66
66
  var values = [];
67
67
  timeAxes.forEach(function (axe) {
68
68
  var _chartDataList$data2;
69
- var index = chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data2 = chartDataList.data) === null || _chartDataList$data2 === void 0 ? void 0 : _chartDataList$data2.findIndex(function (history) {
69
+ var index = chartDataList === null || chartDataList === void 0 || (_chartDataList$data2 = chartDataList.data) === null || _chartDataList$data2 === void 0 ? void 0 : _chartDataList$data2.findIndex(function (history) {
70
70
  return axe === (history === null || history === void 0 ? void 0 : history.time);
71
71
  });
72
72
  if (index !== -1) {
73
73
  var _chartDataList$data$i4, _chartDataList$data$i5, _chartDataList$data$i6;
74
74
  values.push({
75
- x: chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i4 = chartDataList.data[index]) === null || _chartDataList$data$i4 === void 0 ? void 0 : _chartDataList$data$i4.time,
76
- y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i5 = chartDataList.data[index]) !== null && _chartDataList$data$i5 !== void 0 && _chartDataList$data$i5.pickup_spend ? (chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i6 = chartDataList.data[index]) === null || _chartDataList$data$i6 === void 0 ? void 0 : _chartDataList$data$i6.pickup_spend) / 60 : 0
75
+ x: chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i4 = chartDataList.data[index]) === null || _chartDataList$data$i4 === void 0 ? void 0 : _chartDataList$data$i4.time,
76
+ y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i5 = chartDataList.data[index]) !== null && _chartDataList$data$i5 !== void 0 && _chartDataList$data$i5.pickup_spend ? (chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i6 = chartDataList.data[index]) === null || _chartDataList$data$i6 === void 0 ? void 0 : _chartDataList$data$i6.pickup_spend) / 60 : 0
77
77
  });
78
78
  } else {
79
79
  values.push({
@@ -88,14 +88,14 @@ var AnalyticsSpendTimes = function AnalyticsSpendTimes(props) {
88
88
  var values = [];
89
89
  timeAxes.forEach(function (axe) {
90
90
  var _chartDataList$data3;
91
- var index = chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data3 = chartDataList.data) === null || _chartDataList$data3 === void 0 ? void 0 : _chartDataList$data3.findIndex(function (history) {
91
+ var index = chartDataList === null || chartDataList === void 0 || (_chartDataList$data3 = chartDataList.data) === null || _chartDataList$data3 === void 0 ? void 0 : _chartDataList$data3.findIndex(function (history) {
92
92
  return axe === (history === null || history === void 0 ? void 0 : history.time);
93
93
  });
94
94
  if (index !== -1) {
95
95
  var _chartDataList$data$i7, _chartDataList$data$i8, _chartDataList$data$i9;
96
96
  values.push({
97
- x: chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i7 = chartDataList.data[index]) === null || _chartDataList$data$i7 === void 0 ? void 0 : _chartDataList$data$i7.time,
98
- y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i8 = chartDataList.data[index]) !== null && _chartDataList$data$i8 !== void 0 && _chartDataList$data$i8.delivery_spend ? (chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i9 = chartDataList.data[index]) === null || _chartDataList$data$i9 === void 0 ? void 0 : _chartDataList$data$i9.delivery_spend) / 60 : 0
97
+ x: chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i7 = chartDataList.data[index]) === null || _chartDataList$data$i7 === void 0 ? void 0 : _chartDataList$data$i7.time,
98
+ y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i8 = chartDataList.data[index]) !== null && _chartDataList$data$i8 !== void 0 && _chartDataList$data$i8.delivery_spend ? (chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i9 = chartDataList.data[index]) === null || _chartDataList$data$i9 === void 0 ? void 0 : _chartDataList$data$i9.delivery_spend) / 60 : 0
99
99
  });
100
100
  } else {
101
101
  values.push({
@@ -110,14 +110,14 @@ var AnalyticsSpendTimes = function AnalyticsSpendTimes(props) {
110
110
  var values = [];
111
111
  timeAxes.forEach(function (axe) {
112
112
  var _chartDataList$data4;
113
- var index = chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data4 = chartDataList.data) === null || _chartDataList$data4 === void 0 ? void 0 : _chartDataList$data4.findIndex(function (history) {
113
+ var index = chartDataList === null || chartDataList === void 0 || (_chartDataList$data4 = chartDataList.data) === null || _chartDataList$data4 === void 0 ? void 0 : _chartDataList$data4.findIndex(function (history) {
114
114
  return axe === (history === null || history === void 0 ? void 0 : history.time);
115
115
  });
116
116
  if (index !== -1) {
117
117
  var _chartDataList$data$i10, _chartDataList$data$i11, _chartDataList$data$i12;
118
118
  values.push({
119
- x: chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i10 = chartDataList.data[index]) === null || _chartDataList$data$i10 === void 0 ? void 0 : _chartDataList$data$i10.time,
120
- y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i11 = chartDataList.data[index]) !== null && _chartDataList$data$i11 !== void 0 && _chartDataList$data$i11.complete_spend ? (chartDataList === null || chartDataList === void 0 ? void 0 : (_chartDataList$data$i12 = chartDataList.data[index]) === null || _chartDataList$data$i12 === void 0 ? void 0 : _chartDataList$data$i12.complete_spend) / 60 : 0
119
+ x: chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i10 = chartDataList.data[index]) === null || _chartDataList$data$i10 === void 0 ? void 0 : _chartDataList$data$i10.time,
120
+ y: chartDataList !== null && chartDataList !== void 0 && (_chartDataList$data$i11 = chartDataList.data[index]) !== null && _chartDataList$data$i11 !== void 0 && _chartDataList$data$i11.complete_spend ? (chartDataList === null || chartDataList === void 0 || (_chartDataList$data$i12 = chartDataList.data[index]) === null || _chartDataList$data$i12 === void 0 ? void 0 : _chartDataList$data$i12.complete_spend) / 60 : 0
121
121
  });
122
122
  } else {
123
123
  values.push({
@@ -23,6 +23,7 @@ var _AnalyticsRegisterUsers = require("../AnalyticsRegisterUsers");
23
23
  var _AnalyticsCustomerSatisfaction = require("../AnalyticsCustomerSatisfaction");
24
24
  var _AnalyticsOrdersAcceptSpend = require("../AnalyticsOrdersAcceptSpend");
25
25
  var _AnalyticsSpendList = require("../AnalyticsSpendList");
26
+ var _AnalyticsFilterTimeZone = require("../AnalyticsFilterTimeZone");
26
27
  var _styles2 = require("./styles");
27
28
  var _ReportsBrandFilter = require("../ReportsBrandFilter");
28
29
  var _CountryFilter = require("../CountryFilter");
@@ -95,7 +96,7 @@ var BusinessAnalyticsUI = function BusinessAnalyticsUI(props) {
95
96
  onClick: function onClick() {
96
97
  return setBusinessFilterModal(true);
97
98
  }
98
- }, t('BUSINESS', 'Business'), " (", filterList !== null && filterList !== void 0 && filterList.businessIds ? filterList === null || filterList === void 0 ? void 0 : filterList.businessIds.length : t('ALL', 'All'), ")")), /*#__PURE__*/_react.default.createElement(_styles2.BusinessCalendarWrapper, null, /*#__PURE__*/_react.default.createElement(_AnalyticsCalendar.AnalyticsCalendar, _extends({}, props, {
99
+ }, t('BUSINESS', 'Business'), " (", filterList !== null && filterList !== void 0 && filterList.businessIds ? filterList === null || filterList === void 0 ? void 0 : filterList.businessIds.length : t('ALL', 'All'), ")")), /*#__PURE__*/_react.default.createElement(_styles2.AnalyticsTimeZoneWrapper, null, /*#__PURE__*/_react.default.createElement(_AnalyticsFilterTimeZone.AnalyticsFilterTimeZone, props)), /*#__PURE__*/_react.default.createElement(_styles2.BusinessCalendarWrapper, null, /*#__PURE__*/_react.default.createElement(_AnalyticsCalendar.AnalyticsCalendar, _extends({}, props, {
99
100
  handleChangeDate: handleChangeDate
100
101
  }))))), /*#__PURE__*/_react.default.createElement(_AnalyticsStatusFilterBar.AnalyticsStatusFilterBar, props), /*#__PURE__*/_react.default.createElement(_AnalyticsStatusSubFilter.AnalyticsStatusSubFilter, props), /*#__PURE__*/_react.default.createElement(_styles2.MapWrraper, null, /*#__PURE__*/_react.default.createElement(_AnalyticsMap.AnalyticsMap, {
101
102
  locationList: orderLocationList
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.MapWrraper = exports.HeaderTitleContainer = exports.HeaderFilterContainer = exports.BusinessFilterWrapper = exports.BusinessCalendarWrapper = exports.BusinessAnalyticsHeader = exports.BusinessAnalyticsContainer = exports.AnalyticsContentWrapper = void 0;
7
+ exports.MapWrraper = exports.HeaderTitleContainer = exports.HeaderFilterContainer = exports.BusinessFilterWrapper = exports.BusinessCalendarWrapper = exports.BusinessAnalyticsHeader = exports.BusinessAnalyticsContainer = exports.AnalyticsTimeZoneWrapper = exports.AnalyticsContentWrapper = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -33,7 +33,9 @@ var BusinessCalendarWrapper = (0, _styledComponents.default)(BusinessFilterWrapp
33
33
  return props.theme.rtl && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: 12px;\n margin-right: 0;\n "])));
34
34
  });
35
35
  exports.BusinessCalendarWrapper = BusinessCalendarWrapper;
36
- var AnalyticsContentWrapper = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n > div {\n margin-top: 40px;\n }\n"])));
36
+ var AnalyticsTimeZoneWrapper = (0, _styledComponents.default)(BusinessFilterWrapper)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral([""])));
37
+ exports.AnalyticsTimeZoneWrapper = AnalyticsTimeZoneWrapper;
38
+ var AnalyticsContentWrapper = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n > div {\n margin-top: 40px;\n }\n"])));
37
39
  exports.AnalyticsContentWrapper = AnalyticsContentWrapper;
38
- var MapWrraper = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-top: 20px;\n"])));
40
+ var MapWrraper = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-top: 20px;\n"])));
39
41
  exports.MapWrraper = MapWrraper;
@@ -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
  };