ordering-ui-admin-external 1.30.5 → 1.30.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/_bundles/{ordering-ui-admin.d23ef912a8c0e75e18e5.js → ordering-ui-admin.a29dbc53a1f823ce0ce5.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.d23ef912a8c0e75e18e5.js.LICENSE.txt → ordering-ui-admin.a29dbc53a1f823ce0ce5.js.LICENSE.txt} +1 -1
  3. package/_modules/components/BusinessIntelligence/AnalyticsAvailableTimes/index.js +10 -10
  4. package/_modules/components/BusinessIntelligence/AnalyticsBusinessFilter/index.js +1 -1
  5. package/_modules/components/BusinessIntelligence/AnalyticsBusyTimes/index.js +10 -10
  6. package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +1 -1
  7. package/_modules/components/BusinessIntelligence/AnalyticsCustomerSatisfaction/index.js +10 -10
  8. package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +18 -18
  9. package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +4 -4
  10. package/_modules/components/BusinessIntelligence/AnalyticsOrdersOrSales/index.js +3 -3
  11. package/_modules/components/BusinessIntelligence/AnalyticsOrdersStatus/index.js +1 -1
  12. package/_modules/components/BusinessIntelligence/AnalyticsRegisterUsers/index.js +6 -6
  13. package/_modules/components/BusinessIntelligence/AnalyticsSpendTimes/index.js +12 -12
  14. package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
  15. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
  16. package/_modules/components/BusinessIntelligence/CountryFilter/index.js +4 -2
  17. package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
  18. package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
  19. package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
  20. package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +14 -14
  21. package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
  22. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +41 -36
  23. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +22 -17
  24. package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +15 -15
  25. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +30 -25
  26. package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
  27. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +22 -17
  28. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +22 -17
  29. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +7 -7
  30. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +22 -17
  31. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +24 -19
  32. package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +37 -32
  33. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +38 -33
  34. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +34 -29
  35. package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
  36. package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +37 -32
  37. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -9
  38. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +30 -25
  39. package/_modules/components/BusinessIntelligence/ReportsSales/index.js +36 -31
  40. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +8 -8
  41. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +25 -26
  42. package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +14 -14
  43. package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
  44. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
  45. package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
  46. package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
  47. package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
  48. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
  49. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
  50. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
  51. package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
  52. package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
  53. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
  54. package/_modules/components/Delivery/AddressForm/index.js +29 -29
  55. package/_modules/components/Delivery/AddressList/index.js +11 -11
  56. package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
  57. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
  58. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
  59. package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
  60. package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
  61. package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
  62. package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
  63. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
  64. package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
  65. package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
  66. package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
  67. package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
  68. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  69. package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
  70. package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  71. package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
  72. package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
  73. package/_modules/components/Delivery/UserAddForm/index.js +13 -13
  74. package/_modules/components/Delivery/UserDetails/index.js +6 -6
  75. package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
  76. package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
  77. package/_modules/components/Home/HomePage/index.js +7 -7
  78. package/_modules/components/LanguageSelector/index.js +1 -1
  79. package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
  80. package/_modules/components/Login/LoginForm/index.js +11 -11
  81. package/_modules/components/Login/ResetPassword/index.js +5 -5
  82. package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
  83. package/_modules/components/Loyalty/GiftCards/index.js +3 -3
  84. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
  85. package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
  86. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
  87. package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
  88. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
  89. package/_modules/components/Marketing/BannerDetails/index.js +5 -5
  90. package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
  91. package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
  92. package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
  93. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  94. package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
  95. package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
  96. package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
  97. package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
  98. package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
  99. package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
  100. package/_modules/components/Marketing/CampaignList/index.js +2 -2
  101. package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
  102. package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
  103. package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
  104. package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
  105. package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
  106. package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
  107. package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
  108. package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
  109. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
  110. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
  111. package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
  112. package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
  113. package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
  114. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
  115. package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
  116. package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
  117. package/_modules/components/Marketing/PageBanner/index.js +1 -1
  118. package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
  119. package/_modules/components/Messages/ChatContactList/index.js +2 -2
  120. package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
  121. package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
  122. package/_modules/components/MyProducts/AppResources/index.js +15 -15
  123. package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
  124. package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
  125. package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
  126. package/_modules/components/MyProducts/OrderingWebsite/index.js +29 -29
  127. package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
  128. package/_modules/components/NotNetworkConnectivity/index.js +2 -2
  129. package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
  130. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  131. package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
  132. package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
  133. package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
  134. package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
  135. package/_modules/components/Orders/Appointments/index.js +2 -2
  136. package/_modules/components/Orders/CompanySelector/index.js +4 -4
  137. package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
  138. package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
  139. package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
  140. package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
  141. package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
  142. package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
  143. package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +2 -2
  144. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
  145. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
  146. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
  147. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
  148. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
  149. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
  150. package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
  151. package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
  152. package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
  153. package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
  154. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +1 -1
  155. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
  156. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
  157. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
  158. package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
  159. package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
  160. package/_modules/components/Orders/DeliveriesManager/index.js +2 -2
  161. package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
  162. package/_modules/components/Orders/DriversList/index.js +2 -2
  163. package/_modules/components/Orders/DriversLocation/index.js +11 -11
  164. package/_modules/components/Orders/DriversManager/index.js +2 -2
  165. package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
  166. package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
  167. package/_modules/components/Orders/Logistics/index.js +1 -1
  168. package/_modules/components/Orders/Messages/index.js +4 -4
  169. package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
  170. package/_modules/components/Orders/OrderBill/index.js +46 -46
  171. package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
  172. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
  173. package/_modules/components/Orders/OrderDetails/index.js +6 -6
  174. package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
  175. package/_modules/components/Orders/OrderLogisticInformation/index.js +2 -4
  176. package/_modules/components/Orders/OrderNotification/index.js +4 -4
  177. package/_modules/components/Orders/OrderStatusFilterBar/index.js +4 -4
  178. package/_modules/components/Orders/OrderToPrint/index.js +22 -22
  179. package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
  180. package/_modules/components/Orders/OrdersCards/index.js +29 -29
  181. package/_modules/components/Orders/OrdersContentHeader/index.js +3 -3
  182. package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
  183. package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
  184. package/_modules/components/Orders/OrdersListing/index.js +3 -3
  185. package/_modules/components/Orders/OrdersTable/index.js +54 -54
  186. package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
  187. package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
  188. package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
  189. package/_modules/components/PageNotFound/index.js +3 -3
  190. package/_modules/components/Settings/ApiKeysList/index.js +1 -1
  191. package/_modules/components/Settings/CountriesList/index.js +1 -1
  192. package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
  193. package/_modules/components/Settings/EmailSetting/index.js +5 -5
  194. package/_modules/components/Settings/InsertImage/index.js +3 -3
  195. package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
  196. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
  197. package/_modules/components/Settings/LanguageSetting/index.js +1 -1
  198. package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
  199. package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
  200. package/_modules/components/Settings/NotificationSetting/index.js +6 -6
  201. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  202. package/_modules/components/Settings/Settings/index.js +3 -3
  203. package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
  204. package/_modules/components/Settings/SettingsList/index.js +4 -4
  205. package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
  206. package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
  207. package/_modules/components/Shared/AutoScroll/index.js +4 -4
  208. package/_modules/components/Shared/CitySelector/index.js +1 -1
  209. package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
  210. package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
  211. package/_modules/components/Shared/DragScroll/index.js +5 -5
  212. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
  213. package/_modules/components/Shared/InputPhoneNumber/index.js +2 -2
  214. package/_modules/components/Shared/NotFoundSource/index.js +2 -2
  215. package/_modules/components/Shared/Personalization/index.js +1 -1
  216. package/_modules/components/Shared/RangeCalendar/index.js +2 -2
  217. package/_modules/components/Shared/Schedule/index.js +6 -6
  218. package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
  219. package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
  220. package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
  221. package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
  222. package/_modules/components/Shared/SelectSites/index.js +1 -1
  223. package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
  224. package/_modules/components/SidebarMenu/index.js +37 -40
  225. package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
  226. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
  227. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
  228. package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
  229. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
  230. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
  231. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
  232. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +1 -1
  233. package/_modules/components/Stores/BusinessAdd/index.js +9 -9
  234. package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
  235. package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
  236. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
  237. package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
  238. package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
  239. package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
  240. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
  241. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
  242. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
  243. package/_modules/components/Stores/BusinessDetails/index.js +7 -7
  244. package/_modules/components/Stores/BusinessDeviceDetail/index.js +12 -12
  245. package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
  246. package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
  247. package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
  248. package/_modules/components/Stores/BusinessImages/index.js +4 -4
  249. package/_modules/components/Stores/BusinessInformation/index.js +35 -35
  250. package/_modules/components/Stores/BusinessLocation/index.js +7 -7
  251. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  252. package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
  253. package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
  254. package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
  255. package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
  256. package/_modules/components/Stores/BusinessOwners/index.js +1 -1
  257. package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
  258. package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
  259. package/_modules/components/Stores/BusinessPlace/index.js +1 -1
  260. package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
  261. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
  262. package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
  263. package/_modules/components/Stores/BusinessPreview/index.js +19 -19
  264. package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
  265. package/_modules/components/Stores/BusinessProductList/index.js +5 -5
  266. package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
  267. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
  268. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
  269. package/_modules/components/Stores/BusinessProductsListing/index.js +20 -20
  270. package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
  271. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  272. package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
  273. package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
  274. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
  275. package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
  276. package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
  277. package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
  278. package/_modules/components/Stores/BusinessSummary/index.js +8 -8
  279. package/_modules/components/Stores/BusinessSupport/index.js +2 -2
  280. package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
  281. package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
  282. package/_modules/components/Stores/BusinessTypes/index.js +2 -2
  283. package/_modules/components/Stores/BusinessVideos/index.js +2 -2
  284. package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
  285. package/_modules/components/Stores/BusinessWebhooks/index.js +5 -5
  286. package/_modules/components/Stores/BusinessesListing/index.js +1 -1
  287. package/_modules/components/Stores/ImporterForm/index.js +3 -3
  288. package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
  289. package/_modules/components/Stores/PaymentOption/index.js +11 -11
  290. package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
  291. package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
  292. package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
  293. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
  294. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
  295. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
  296. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
  297. package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
  298. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
  299. package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
  300. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +20 -20
  301. package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
  302. package/_modules/components/Stores/ProductExtraOptions/index.js +2 -2
  303. package/_modules/components/Stores/ProductExtraSuboption/index.js +4 -4
  304. package/_modules/components/Stores/ProductExtras/index.js +1 -1
  305. package/_modules/components/Stores/ProductGallery/index.js +3 -3
  306. package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
  307. package/_modules/components/Stores/ProductStep/index.js +2 -2
  308. package/_modules/components/Stores/ProductSummary/index.js +7 -7
  309. package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
  310. package/_modules/components/Stores/ProductTagsList/index.js +1 -1
  311. package/_modules/components/Stores/ProductVideos/index.js +1 -1
  312. package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
  313. package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
  314. package/_modules/components/Stores/SeoOptions/index.js +9 -9
  315. package/_modules/components/Stores/ServiceDetail/index.js +5 -5
  316. package/_modules/components/Stores/SingleBusiness/index.js +14 -14
  317. package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
  318. package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
  319. package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
  320. package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
  321. package/_modules/components/Users/CustomerDetails/index.js +2 -2
  322. package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
  323. package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
  324. package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
  325. package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
  326. package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
  327. package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
  328. package/_modules/components/Users/ProfessionalListing/index.js +1 -1
  329. package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
  330. package/_modules/components/Users/ProfessionalServices/index.js +3 -3
  331. package/_modules/components/Users/UserAddForm/index.js +11 -11
  332. package/_modules/components/Users/UserDetails/index.js +4 -4
  333. package/_modules/components/Users/UserFilterGroup/index.js +2 -2
  334. package/_modules/components/Users/UserFormDetails/index.js +12 -12
  335. package/_modules/components/Users/UserProfileForm/index.js +7 -7
  336. package/_modules/styles/Select/index.js +1 -1
  337. package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
  338. package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
  339. package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
  340. package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
  341. package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
  342. package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
  343. package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
  344. package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
  345. package/_modules/themes/origin/src/components/Header/index.js +3 -3
  346. package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
  347. package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
  348. package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
  349. package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
  350. package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
  351. package/_modules/themes/origin/src/components/Messages/index.js +13 -13
  352. package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
  353. package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
  354. package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
  355. package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
  356. package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
  357. package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
  358. package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
  359. package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
  360. package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
  361. package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
  362. package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
  363. package/_modules/themes/origin/src/components/OverView/index.js +1 -1
  364. package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
  365. package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
  366. package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
  367. package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
  368. package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
  369. package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
  370. package/_modules/utils/index.js +1 -1
  371. package/package.json +2 -2
  372. package/src/components/BusinessIntelligence/CountryFilter/index.js +3 -1
  373. package/src/components/BusinessIntelligence/ReportsBusinessDistance/index.js +16 -11
  374. package/src/components/BusinessIntelligence/ReportsBusinessSpend/index.js +16 -11
  375. package/src/components/BusinessIntelligence/ReportsDriverDistance/index.js +16 -11
  376. package/src/components/BusinessIntelligence/ReportsDriverOrder/index.js +16 -11
  377. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +16 -11
  378. package/src/components/BusinessIntelligence/ReportsDriverSpend/index.js +16 -11
  379. package/src/components/BusinessIntelligence/ReportsGeneralSales/index.js +16 -11
  380. package/src/components/BusinessIntelligence/ReportsHeatMap/index.js +16 -11
  381. package/src/components/BusinessIntelligence/ReportsOrderDistance/index.js +16 -11
  382. package/src/components/BusinessIntelligence/ReportsOrderStatus/index.js +16 -11
  383. package/src/components/BusinessIntelligence/ReportsOrders/index.js +16 -11
  384. package/src/components/BusinessIntelligence/ReportsPaymethodSales/index.js +7 -7
  385. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +16 -11
  386. package/src/components/BusinessIntelligence/ReportsSales/index.js +16 -11
  387. package/src/components/BusinessIntelligence/ReportsTopDrivers/index.js +7 -8
  388. package/src/components/Orders/OrderLogisticInformation/index.js +1 -1
  389. package/src/components/Orders/OrdersTable/index.js +0 -1
  390. package/src/components/SidebarMenu/index.js +6 -6
  391. package/template/config.json +1 -1
@@ -38,7 +38,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
38
38
  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; } }
39
39
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
40
40
  var CheckoutUI = function CheckoutUI(props) {
41
- var _businessDetails$busi, _businessDetails$busi2, _configs$table_numer_, _businessConfigs$find, _businessConfigs$find2, _configs$cash_wallet, _configs$wallet_enabl, _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _validationFields$fie5, _validationFields$fie6, _cart$comment, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _validationFields$fie12, _paymethodSelected$da, _paymethodSelected$da2, _paymethodSelected$da3, _cardList$cards, _cartState$cart, _validationFields$fie13, _validationFields$fie14, _validationFields$fie15, _validationFields$fie16, _validationFields$fie17, _validationFields$fie18, _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _validationFields$fie19, _validationFields$fie20, _validationFields$fie21, _businessDetails$busi3, _businessDetails$busi4, _businessDetails$busi5, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _validationFields$fie30, _validationFields$fie31, _validationFields$fie32, _validationFields$fie33, _validationFields$fie34, _validationFields$fie35;
41
+ var _businessDetails$busi, _businessDetails$busi2, _configs$table_numer_, _businessConfigs$find, _businessConfigs$find2, _configs$cash_wallet, _configs$wallet_enabl, _validationFields$fie, _validationFields$fie2, _cart$comment, _validationFields$fie3, _validationFields$fie4, _paymethodSelected$da, _paymethodSelected$da2, _cardList$cards, _cartState$cart, _validationFields$fie5, _validationFields$fie6, _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _validationFields$fie7, _businessDetails$busi3, _businessDetails$busi4, _businessDetails$busi5, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _validationFields$fie12, _validationFields$fie13;
42
42
  var cart = props.cart,
43
43
  errors = props.errors,
44
44
  placing = props.placing,
@@ -105,21 +105,21 @@ var CheckoutUI = function CheckoutUI(props) {
105
105
  paymethodClicked = _useState12[0],
106
106
  setPaymethodClicked = _useState12[1];
107
107
  var cardsMethods = ['stripe', 'credomatic'];
108
- var businessConfigs = (_businessDetails$busi = businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi2 = businessDetails.business) === null || _businessDetails$busi2 === void 0 ? void 0 : _businessDetails$busi2.configs) !== null && _businessDetails$busi !== void 0 ? _businessDetails$busi : [];
109
- var isTableNumberEnabled = configs === null || configs === void 0 ? void 0 : (_configs$table_numer_ = configs.table_numer_enabled) === null || _configs$table_numer_ === void 0 ? void 0 : _configs$table_numer_.value;
108
+ var businessConfigs = (_businessDetails$busi = businessDetails === null || businessDetails === void 0 || (_businessDetails$busi2 = businessDetails.business) === null || _businessDetails$busi2 === void 0 ? void 0 : _businessDetails$busi2.configs) !== null && _businessDetails$busi !== void 0 ? _businessDetails$busi : [];
109
+ var isTableNumberEnabled = configs === null || configs === void 0 || (_configs$table_numer_ = configs.table_numer_enabled) === null || _configs$table_numer_ === void 0 ? void 0 : _configs$table_numer_.value;
110
110
  var isWalletCashEnabled = ((_businessConfigs$find = businessConfigs.find(function (config) {
111
111
  return config.key === 'wallet_cash_enabled';
112
112
  })) === null || _businessConfigs$find === void 0 ? void 0 : _businessConfigs$find.value) === '1';
113
113
  var isWalletCreditPointsEnabled = ((_businessConfigs$find2 = businessConfigs.find(function (config) {
114
114
  return config.key === 'wallet_credit_point_enabled';
115
115
  })) === null || _businessConfigs$find2 === void 0 ? void 0 : _businessConfigs$find2.value) === '1';
116
- var isWalletEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$cash_wallet = configs.cash_wallet) === null || _configs$cash_wallet === void 0 ? void 0 : _configs$cash_wallet.value) && (configs === null || configs === void 0 ? void 0 : (_configs$wallet_enabl = configs.wallet_enabled) === null || _configs$wallet_enabl === void 0 ? void 0 : _configs$wallet_enabl.value) === '1' && (isWalletCashEnabled || isWalletCreditPointsEnabled) && !isCustomerMode;
116
+ var isWalletEnabled = (configs === null || configs === void 0 || (_configs$cash_wallet = configs.cash_wallet) === null || _configs$cash_wallet === void 0 ? void 0 : _configs$cash_wallet.value) && (configs === null || configs === void 0 || (_configs$wallet_enabl = configs.wallet_enabled) === null || _configs$wallet_enabl === void 0 ? void 0 : _configs$wallet_enabl.value) === '1' && (isWalletCashEnabled || isWalletCreditPointsEnabled) && !isCustomerMode;
117
117
  var isGiftCardCart = !(cart !== null && cart !== void 0 && cart.business_id);
118
- var validateCommentsCartField = (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie = validationFields.fields) === null || _validationFields$fie === void 0 ? void 0 : (_validationFields$fie2 = _validationFields$fie.checkout) === null || _validationFields$fie2 === void 0 ? void 0 : (_validationFields$fie3 = _validationFields$fie2.comments) === null || _validationFields$fie3 === void 0 ? void 0 : _validationFields$fie3.enabled) && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie4 = validationFields.fields) === null || _validationFields$fie4 === void 0 ? void 0 : (_validationFields$fie5 = _validationFields$fie4.checkout) === null || _validationFields$fie5 === void 0 ? void 0 : (_validationFields$fie6 = _validationFields$fie5.comments) === null || _validationFields$fie6 === void 0 ? void 0 : _validationFields$fie6.required) && ((cart === null || cart === void 0 ? void 0 : cart.comment) === null || (cart === null || cart === void 0 ? void 0 : (_cart$comment = cart.comment) === null || _cart$comment === void 0 ? void 0 : _cart$comment.trim().length) === 0);
119
- var validateZipcodeCard = (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie7 = validationFields.fields) === null || _validationFields$fie7 === void 0 ? void 0 : (_validationFields$fie8 = _validationFields$fie7.card) === null || _validationFields$fie8 === void 0 ? void 0 : (_validationFields$fie9 = _validationFields$fie8.zipcode) === null || _validationFields$fie9 === void 0 ? void 0 : _validationFields$fie9.enabled) && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie10 = validationFields.fields) === null || _validationFields$fie10 === void 0 ? void 0 : (_validationFields$fie11 = _validationFields$fie10.card) === null || _validationFields$fie11 === void 0 ? void 0 : (_validationFields$fie12 = _validationFields$fie11.zipcode) === null || _validationFields$fie12 === void 0 ? void 0 : _validationFields$fie12.required) && (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'stripe' && (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : (_paymethodSelected$da = paymethodSelected.data) === null || _paymethodSelected$da === void 0 ? void 0 : _paymethodSelected$da.card) && !(paymethodSelected !== null && paymethodSelected !== void 0 && (_paymethodSelected$da2 = paymethodSelected.data) !== null && _paymethodSelected$da2 !== void 0 && (_paymethodSelected$da3 = _paymethodSelected$da2.card) !== null && _paymethodSelected$da3 !== void 0 && _paymethodSelected$da3.zipcode);
120
- var isDisablePlaceOrderButton = !(cart !== null && cart !== void 0 && cart.valid) || !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 || cardsMethods.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) && (cardList === null || cardList === void 0 ? void 0 : (_cardList$cards = cardList.cards) === null || _cardList$cards === void 0 ? void 0 : _cardList$cards.length) === 0 || placing || errorCash || loading || isTableNumberEnabled === '1' && (options === null || options === void 0 ? void 0 : options.type) === 3 && !(cartState !== null && cartState !== void 0 && (_cartState$cart = cartState.cart) !== null && _cartState$cart !== void 0 && _cartState$cart.spot_number || cart !== null && cart !== void 0 && cart.spot_number || placeSpotNumber) || !(cart !== null && cart !== void 0 && cart.valid_maximum) || !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) || options.type === 1 && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie13 = validationFields.fields) === null || _validationFields$fie13 === void 0 ? void 0 : (_validationFields$fie14 = _validationFields$fie13.checkout) === null || _validationFields$fie14 === void 0 ? void 0 : (_validationFields$fie15 = _validationFields$fie14.driver_tip) === null || _validationFields$fie15 === void 0 ? void 0 : _validationFields$fie15.enabled) && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie16 = validationFields.fields) === null || _validationFields$fie16 === void 0 ? void 0 : (_validationFields$fie17 = _validationFields$fie16.checkout) === null || _validationFields$fie17 === void 0 ? void 0 : (_validationFields$fie18 = _validationFields$fie17.driver_tip) === null || _validationFields$fie18 === void 0 ? void 0 : _validationFields$fie18.required) && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0 || validateCommentsCartField || validateZipcodeCard;
121
- var driverTipsOptions = typeof (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string' ? JSON.parse(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
122
- var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && options.type === 1 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie19 = validationFields.fields) === null || _validationFields$fie19 === void 0 ? void 0 : (_validationFields$fie20 = _validationFields$fie19.checkout) === null || _validationFields$fie20 === void 0 ? void 0 : (_validationFields$fie21 = _validationFields$fie20.driver_tip) === null || _validationFields$fie21 === void 0 ? void 0 : _validationFields$fie21.enabled) && driverTipsOptions.length > 0;
118
+ var validateCommentsCartField = (validationFields === null || validationFields === void 0 || (_validationFields$fie = validationFields.fields) === null || _validationFields$fie === void 0 || (_validationFields$fie = _validationFields$fie.checkout) === null || _validationFields$fie === void 0 || (_validationFields$fie = _validationFields$fie.comments) === null || _validationFields$fie === void 0 ? void 0 : _validationFields$fie.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie2 = validationFields.fields) === null || _validationFields$fie2 === void 0 || (_validationFields$fie2 = _validationFields$fie2.checkout) === null || _validationFields$fie2 === void 0 || (_validationFields$fie2 = _validationFields$fie2.comments) === null || _validationFields$fie2 === void 0 ? void 0 : _validationFields$fie2.required) && ((cart === null || cart === void 0 ? void 0 : cart.comment) === null || (cart === null || cart === void 0 || (_cart$comment = cart.comment) === null || _cart$comment === void 0 ? void 0 : _cart$comment.trim().length) === 0);
119
+ var validateZipcodeCard = (validationFields === null || validationFields === void 0 || (_validationFields$fie3 = validationFields.fields) === null || _validationFields$fie3 === void 0 || (_validationFields$fie3 = _validationFields$fie3.card) === null || _validationFields$fie3 === void 0 || (_validationFields$fie3 = _validationFields$fie3.zipcode) === null || _validationFields$fie3 === void 0 ? void 0 : _validationFields$fie3.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie4 = validationFields.fields) === null || _validationFields$fie4 === void 0 || (_validationFields$fie4 = _validationFields$fie4.card) === null || _validationFields$fie4 === void 0 || (_validationFields$fie4 = _validationFields$fie4.zipcode) === null || _validationFields$fie4 === void 0 ? void 0 : _validationFields$fie4.required) && (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'stripe' && (paymethodSelected === null || paymethodSelected === void 0 || (_paymethodSelected$da = paymethodSelected.data) === null || _paymethodSelected$da === void 0 ? void 0 : _paymethodSelected$da.card) && !(paymethodSelected !== null && paymethodSelected !== void 0 && (_paymethodSelected$da2 = paymethodSelected.data) !== null && _paymethodSelected$da2 !== void 0 && (_paymethodSelected$da2 = _paymethodSelected$da2.card) !== null && _paymethodSelected$da2 !== void 0 && _paymethodSelected$da2.zipcode);
120
+ var isDisablePlaceOrderButton = !(cart !== null && cart !== void 0 && cart.valid) || !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 || cardsMethods.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) && (cardList === null || cardList === void 0 || (_cardList$cards = cardList.cards) === null || _cardList$cards === void 0 ? void 0 : _cardList$cards.length) === 0 || placing || errorCash || loading || isTableNumberEnabled === '1' && (options === null || options === void 0 ? void 0 : options.type) === 3 && !(cartState !== null && cartState !== void 0 && (_cartState$cart = cartState.cart) !== null && _cartState$cart !== void 0 && _cartState$cart.spot_number || cart !== null && cart !== void 0 && cart.spot_number || placeSpotNumber) || !(cart !== null && cart !== void 0 && cart.valid_maximum) || !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) || options.type === 1 && (validationFields === null || validationFields === void 0 || (_validationFields$fie5 = validationFields.fields) === null || _validationFields$fie5 === void 0 || (_validationFields$fie5 = _validationFields$fie5.checkout) === null || _validationFields$fie5 === void 0 || (_validationFields$fie5 = _validationFields$fie5.driver_tip) === null || _validationFields$fie5 === void 0 ? void 0 : _validationFields$fie5.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie6 = validationFields.fields) === null || _validationFields$fie6 === void 0 || (_validationFields$fie6 = _validationFields$fie6.checkout) === null || _validationFields$fie6 === void 0 || (_validationFields$fie6 = _validationFields$fie6.driver_tip) === null || _validationFields$fie6 === void 0 ? void 0 : _validationFields$fie6.required) && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0 || validateCommentsCartField || validateZipcodeCard;
121
+ var driverTipsOptions = typeof (configs === null || configs === void 0 || (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string' ? JSON.parse(configs === null || configs === void 0 || (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 || (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
122
+ var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && options.type === 1 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (validationFields === null || validationFields === void 0 || (_validationFields$fie7 = validationFields.fields) === null || _validationFields$fie7 === void 0 || (_validationFields$fie7 = _validationFields$fie7.checkout) === null || _validationFields$fie7 === void 0 || (_validationFields$fie7 = _validationFields$fie7.driver_tip) === null || _validationFields$fie7 === void 0 ? void 0 : _validationFields$fie7.enabled) && driverTipsOptions.length > 0;
123
123
  var handlePlaceOrder = function handlePlaceOrder() {
124
124
  if (!userErrors.length && (!(requiredFields !== null && requiredFields !== void 0 && requiredFields.length) || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'cash' || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'card_delivery')) {
125
125
  var body = {};
@@ -134,20 +134,20 @@ var CheckoutUI = function CheckoutUI(props) {
134
134
  });
135
135
  };
136
136
  var checkValidationFields = function checkValidationFields() {
137
- var _validationFields$fie22, _validationFields$fie23, _validationFields$fie24, _validationFields$fie25, _validationFields$fie26, _validationFields$fie27, _validationFields$fie28, _configs$verification;
137
+ var _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _configs$verification;
138
138
  setUserErrors([]);
139
139
  var errors = [];
140
140
  var notFields = ['coupon', 'driver_tip', 'mobile_phone', 'address', 'zipcode', 'address_notes', 'comments'];
141
141
  var userSelected = isCustomerMode ? customerState.user : user;
142
142
  var _requiredFields = [];
143
- Object.values(validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie22 = validationFields.fields) === null || _validationFields$fie22 === void 0 ? void 0 : _validationFields$fie22.checkout).map(function (field) {
143
+ Object.values(validationFields === null || validationFields === void 0 || (_validationFields$fie8 = validationFields.fields) === null || _validationFields$fie8 === void 0 ? void 0 : _validationFields$fie8.checkout).map(function (field) {
144
144
  if (field !== null && field !== void 0 && field.enabled && field !== null && field !== void 0 && field.required && !notFields.includes(field.code)) {
145
145
  if (userSelected && !userSelected[field === null || field === void 0 ? void 0 : field.code]) {
146
146
  _requiredFields.push(field === null || field === void 0 ? void 0 : field.code);
147
147
  }
148
148
  }
149
149
  });
150
- if (userSelected && !(userSelected !== null && userSelected !== void 0 && userSelected.cellphone) && (validationFields !== null && validationFields !== void 0 && (_validationFields$fie23 = validationFields.fields) !== null && _validationFields$fie23 !== void 0 && (_validationFields$fie24 = _validationFields$fie23.checkout) !== null && _validationFields$fie24 !== void 0 && (_validationFields$fie25 = _validationFields$fie24.cellphone) !== null && _validationFields$fie25 !== void 0 && _validationFields$fie25.enabled && validationFields !== null && validationFields !== void 0 && (_validationFields$fie26 = validationFields.fields) !== null && _validationFields$fie26 !== void 0 && (_validationFields$fie27 = _validationFields$fie26.checkout) !== null && _validationFields$fie27 !== void 0 && (_validationFields$fie28 = _validationFields$fie27.cellphone) !== null && _validationFields$fie28 !== void 0 && _validationFields$fie28.required || (configs === null || configs === void 0 ? void 0 : (_configs$verification = configs.verification_phone_required) === null || _configs$verification === void 0 ? void 0 : _configs$verification.value) === '1')) {
150
+ if (userSelected && !(userSelected !== null && userSelected !== void 0 && userSelected.cellphone) && (validationFields !== null && validationFields !== void 0 && (_validationFields$fie9 = validationFields.fields) !== null && _validationFields$fie9 !== void 0 && (_validationFields$fie9 = _validationFields$fie9.checkout) !== null && _validationFields$fie9 !== void 0 && (_validationFields$fie9 = _validationFields$fie9.cellphone) !== null && _validationFields$fie9 !== void 0 && _validationFields$fie9.enabled && validationFields !== null && validationFields !== void 0 && (_validationFields$fie10 = validationFields.fields) !== null && _validationFields$fie10 !== void 0 && (_validationFields$fie10 = _validationFields$fie10.checkout) !== null && _validationFields$fie10 !== void 0 && (_validationFields$fie10 = _validationFields$fie10.cellphone) !== null && _validationFields$fie10 !== void 0 && _validationFields$fie10.required || (configs === null || configs === void 0 || (_configs$verification = configs.verification_phone_required) === null || _configs$verification === void 0 ? void 0 : _configs$verification.value) === '1')) {
151
151
  _requiredFields.push('cellphone');
152
152
  }
153
153
  setRequiredFields(_requiredFields);
@@ -166,8 +166,8 @@ var CheckoutUI = function CheckoutUI(props) {
166
166
  setUserErrors(errors);
167
167
  };
168
168
  (0, _react.useEffect)(function () {
169
- var _validationFields$fie29;
170
- if (validationFields && validationFields !== null && validationFields !== void 0 && (_validationFields$fie29 = validationFields.fields) !== null && _validationFields$fie29 !== void 0 && _validationFields$fie29.checkout) {
169
+ var _validationFields$fie11;
170
+ if (validationFields && validationFields !== null && validationFields !== void 0 && (_validationFields$fie11 = validationFields.fields) !== null && _validationFields$fie11 !== void 0 && _validationFields$fie11.checkout) {
171
171
  checkValidationFields();
172
172
  }
173
173
  }, [validationFields, user, customerState]);
@@ -194,9 +194,9 @@ var CheckoutUI = function CheckoutUI(props) {
194
194
  }, /*#__PURE__*/_react.default.createElement(_VscWarning.default, null), /*#__PURE__*/_react.default.createElement("h1", null, t('CART_STATUS_CANCEL_MESSAGE', 'The payment has not been successful, please try again'))), /*#__PURE__*/_react.default.createElement(_PaymentOptions.PaymentOptions, {
195
195
  cart: cart,
196
196
  isDisabled: (cart === null || cart === void 0 ? void 0 : cart.status) === 2,
197
- businessId: !isGiftCardCart ? businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi3 = businessDetails.business) === null || _businessDetails$busi3 === void 0 ? void 0 : _businessDetails$busi3.id : -1,
197
+ businessId: !isGiftCardCart ? businessDetails === null || businessDetails === void 0 || (_businessDetails$busi3 = businessDetails.business) === null || _businessDetails$busi3 === void 0 ? void 0 : _businessDetails$busi3.id : -1,
198
198
  isLoading: !isGiftCardCart ? businessDetails.loading : false,
199
- paymethods: businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi4 = businessDetails.business) === null || _businessDetails$busi4 === void 0 ? void 0 : _businessDetails$busi4.paymethods,
199
+ paymethods: businessDetails === null || businessDetails === void 0 || (_businessDetails$busi4 = businessDetails.business) === null || _businessDetails$busi4 === void 0 ? void 0 : _businessDetails$busi4.paymethods,
200
200
  onPaymentChange: handlePaymethodChange,
201
201
  errorCash: errorCash,
202
202
  setErrorCash: setErrorCash,
@@ -212,13 +212,13 @@ var CheckoutUI = function CheckoutUI(props) {
212
212
  })), isWalletEnabled && !(businessDetails !== null && businessDetails !== void 0 && businessDetails.loading) && /*#__PURE__*/_react.default.createElement(_PaymentOptionWallet.PaymentOptionWallet, {
213
213
  cart: cart,
214
214
  loyaltyPlansState: loyaltyPlansState,
215
- businessConfigs: businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi5 = businessDetails.business) === null || _businessDetails$busi5 === void 0 ? void 0 : _businessDetails$busi5.configs
215
+ businessConfigs: businessDetails === null || businessDetails === void 0 || (_businessDetails$busi5 = businessDetails.business) === null || _businessDetails$busi5 === void 0 ? void 0 : _businessDetails$busi5.configs
216
216
  }), driverTipsField && /*#__PURE__*/_react.default.createElement(_DriverTips.DriverTips, {
217
217
  businessId: cart === null || cart === void 0 ? void 0 : cart.business_id,
218
218
  driverTipsOptions: driverTipsOptions,
219
- isFixedPrice: parseInt(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_t = configs.driver_tip_type) === null || _configs$driver_tip_t === void 0 ? void 0 : _configs$driver_tip_t.value, 10) === 1,
220
- isDriverTipUseCustom: !!parseInt(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_u = configs.driver_tip_use_custom) === null || _configs$driver_tip_u === void 0 ? void 0 : _configs$driver_tip_u.value, 10),
221
- driverTip: parseInt(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_t2 = configs.driver_tip_type) === null || _configs$driver_tip_t2 === void 0 ? void 0 : _configs$driver_tip_t2.value, 10) === 1 ? cart === null || cart === void 0 ? void 0 : cart.driver_tip : cart === null || cart === void 0 ? void 0 : cart.driver_tip_rate,
219
+ isFixedPrice: parseInt(configs === null || configs === void 0 || (_configs$driver_tip_t = configs.driver_tip_type) === null || _configs$driver_tip_t === void 0 ? void 0 : _configs$driver_tip_t.value, 10) === 1,
220
+ isDriverTipUseCustom: !!parseInt(configs === null || configs === void 0 || (_configs$driver_tip_u = configs.driver_tip_use_custom) === null || _configs$driver_tip_u === void 0 ? void 0 : _configs$driver_tip_u.value, 10),
221
+ driverTip: parseInt(configs === null || configs === void 0 || (_configs$driver_tip_t2 = configs.driver_tip_type) === null || _configs$driver_tip_t2 === void 0 ? void 0 : _configs$driver_tip_t2.value, 10) === 1 ? cart === null || cart === void 0 ? void 0 : cart.driver_tip : cart === null || cart === void 0 ? void 0 : cart.driver_tip_rate,
222
222
  cart: cart,
223
223
  useOrderContext: true
224
224
  }), !cartState.loading && cart && /*#__PURE__*/_react.default.createElement(_CartBill.CartBill, {
@@ -229,7 +229,7 @@ var CheckoutUI = function CheckoutUI(props) {
229
229
  onClick: function onClick() {
230
230
  return handlePlaceOrder();
231
231
  }
232
- }, !(cart !== null && cart !== void 0 && cart.valid_maximum) ? "".concat(t('MAXIMUM_SUBTOTAL_ORDER', 'Maximum subtotal order'), ": ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.maximum)) : !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) ? "".concat(t('MINIMUN_SUBTOTAL_ORDER', 'Minimum subtotal order:'), " ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.minimum)) : placing ? t('PLACING', 'Placing') : t('PLACE_ORDER', 'Place Order'))), !(cart !== null && cart !== void 0 && cart.valid_address) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('INVALID_CART_ADDRESS', 'Selected address is invalid, please select a closer address.')), !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_NOT_PAYMENT_SELECTED', 'Please, select a payment method to place order.')), !(cart !== null && cart !== void 0 && cart.valid_products) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_PRODUCTS', 'Some products are invalid, please check them.')), isTableNumberEnabled === '1' && (options === null || options === void 0 ? void 0 : options.type) === 3 && !(cart !== null && cart !== void 0 && cart.spot_number || placeSpotNumber) && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_PLACE_SPOT', 'Please, select your spot to place order.')), options.type === 1 && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie30 = validationFields.fields) === null || _validationFields$fie30 === void 0 ? void 0 : (_validationFields$fie31 = _validationFields$fie30.checkout) === null || _validationFields$fie31 === void 0 ? void 0 : (_validationFields$fie32 = _validationFields$fie31.driver_tip) === null || _validationFields$fie32 === void 0 ? void 0 : _validationFields$fie32.enabled) && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie33 = validationFields.fields) === null || _validationFields$fie33 === void 0 ? void 0 : (_validationFields$fie34 = _validationFields$fie33.checkout) === null || _validationFields$fie34 === void 0 ? void 0 : (_validationFields$fie35 = _validationFields$fie34.driver_tip) === null || _validationFields$fie35 === void 0 ? void 0 : _validationFields$fie35.required) && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_DRIVER_TIP', 'Driver Tip is required.')), validateCommentsCartField && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_CART_COMMENTS', 'Cart comments is required.')), validateZipcodeCard && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_CARD_ZIPCODE_REQUIRED', 'Your card selected has not zipcode')), (cart === null || cart === void 0 ? void 0 : cart.valid_preorder) !== undefined && !(cart !== null && cart !== void 0 && cart.valid_preorder) && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('INVALID_CART_MOMENT', 'Selected schedule time is invalid, please select a schedule into the business schedule interval.')), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
232
+ }, !(cart !== null && cart !== void 0 && cart.valid_maximum) ? "".concat(t('MAXIMUM_SUBTOTAL_ORDER', 'Maximum subtotal order'), ": ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.maximum)) : !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) ? "".concat(t('MINIMUN_SUBTOTAL_ORDER', 'Minimum subtotal order:'), " ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.minimum)) : placing ? t('PLACING', 'Placing') : t('PLACE_ORDER', 'Place Order'))), !(cart !== null && cart !== void 0 && cart.valid_address) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('INVALID_CART_ADDRESS', 'Selected address is invalid, please select a closer address.')), !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_NOT_PAYMENT_SELECTED', 'Please, select a payment method to place order.')), !(cart !== null && cart !== void 0 && cart.valid_products) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_PRODUCTS', 'Some products are invalid, please check them.')), isTableNumberEnabled === '1' && (options === null || options === void 0 ? void 0 : options.type) === 3 && !(cart !== null && cart !== void 0 && cart.spot_number || placeSpotNumber) && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_PLACE_SPOT', 'Please, select your spot to place order.')), options.type === 1 && (validationFields === null || validationFields === void 0 || (_validationFields$fie12 = validationFields.fields) === null || _validationFields$fie12 === void 0 || (_validationFields$fie12 = _validationFields$fie12.checkout) === null || _validationFields$fie12 === void 0 || (_validationFields$fie12 = _validationFields$fie12.driver_tip) === null || _validationFields$fie12 === void 0 ? void 0 : _validationFields$fie12.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie13 = validationFields.fields) === null || _validationFields$fie13 === void 0 || (_validationFields$fie13 = _validationFields$fie13.checkout) === null || _validationFields$fie13 === void 0 || (_validationFields$fie13 = _validationFields$fie13.driver_tip) === null || _validationFields$fie13 === void 0 ? void 0 : _validationFields$fie13.required) && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_DRIVER_TIP', 'Driver Tip is required.')), validateCommentsCartField && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_CART_COMMENTS', 'Cart comments is required.')), validateZipcodeCard && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_CARD_ZIPCODE_REQUIRED', 'Your card selected has not zipcode')), (cart === null || cart === void 0 ? void 0 : cart.valid_preorder) !== undefined && !(cart !== null && cart !== void 0 && cart.valid_preorder) && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('INVALID_CART_MOMENT', 'Selected schedule time is invalid, please select a schedule into the business schedule interval.')), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
233
233
  title: t('CUSTOMER_DETAILS', 'Customer Details'),
234
234
  content: alertState.content,
235
235
  acceptText: t('ACCEPT', 'Accept'),
@@ -296,11 +296,11 @@ var Checkout = function Checkout(props) {
296
296
  setIsResetPaymethod = _useState20[1];
297
297
  var cartsWithProducts = (orderState === null || orderState === void 0 ? void 0 : orderState.carts) && (((_Object$values = Object.values(orderState === null || orderState === void 0 ? void 0 : orderState.carts)) === null || _Object$values === void 0 ? void 0 : _Object$values.filter(function (cart) {
298
298
  var _cart$products;
299
- return (cart === null || cart === void 0 ? void 0 : cart.products) && (cart === null || cart === void 0 ? void 0 : (_cart$products = cart.products) === null || _cart$products === void 0 ? void 0 : _cart$products.length);
299
+ return (cart === null || cart === void 0 ? void 0 : cart.products) && (cart === null || cart === void 0 || (_cart$products = cart.products) === null || _cart$products === void 0 ? void 0 : _cart$products.length);
300
300
  })) || null);
301
301
  var carts = businessSlug ? cartsWithProducts.filter(function (cart) {
302
302
  var _cart$business;
303
- return (cart === null || cart === void 0 ? void 0 : (_cart$business = cart.business) === null || _cart$business === void 0 ? void 0 : _cart$business.slug) === businessSlug || businessSlug === (cart === null || cart === void 0 ? void 0 : cart.business_id);
303
+ return (cart === null || cart === void 0 || (_cart$business = cart.business) === null || _cart$business === void 0 ? void 0 : _cart$business.slug) === businessSlug || businessSlug === (cart === null || cart === void 0 ? void 0 : cart.business_id);
304
304
  }) : cartsWithProducts;
305
305
  var closeAlert = function closeAlert() {
306
306
  setAlertState({
@@ -327,7 +327,7 @@ var Checkout = function Checkout(props) {
327
327
  }, [errors]);
328
328
  var getOrder = /*#__PURE__*/function () {
329
329
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
330
- var _result$order, result, cart, userCustomer, url, response, content, _result, _result$paymethod_dat, credomaticData, urlParams, paramsObj, _confirmCartRes$resul, confirmCartRes, _cart, spotNumberFromStorage, _JSON$parse, _JSON$parse2, _cart2, _cart2$business, spotNumber, slug;
330
+ var _result$order, result, cart, userCustomer, url, response, content, _result, credomaticData, urlParams, paramsObj, _confirmCartRes$resul, confirmCartRes, _cart, spotNumberFromStorage, _JSON$parse, _JSON$parse2, _cart2, spotNumber, slug;
331
331
  return _regeneratorRuntime().wrap(function _callee$(_context) {
332
332
  while (1) switch (_context.prev = _context.next) {
333
333
  case 0:
@@ -382,7 +382,7 @@ var Checkout = function Checkout(props) {
382
382
  break;
383
383
  }
384
384
  credomaticData = null;
385
- if (((_result = result) === null || _result === void 0 ? void 0 : (_result$paymethod_dat = _result.paymethod_data) === null || _result$paymethod_dat === void 0 ? void 0 : _result$paymethod_dat.gateway) === 'credomatic') {
385
+ if (((_result = result) === null || _result === void 0 || (_result = _result.paymethod_data) === null || _result === void 0 ? void 0 : _result.gateway) === 'credomatic') {
386
386
  urlParams = new URLSearchParams(window.location.search);
387
387
  paramsObj = Object.fromEntries(urlParams.entries());
388
388
  credomaticData = {
@@ -426,7 +426,7 @@ var Checkout = function Checkout(props) {
426
426
  if (spotNumberFromStorage) {
427
427
  spotNumber = (_JSON$parse = JSON.parse(spotNumberFromStorage)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.tableNumber;
428
428
  slug = (_JSON$parse2 = JSON.parse(spotNumberFromStorage)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2.slug;
429
- if (((_cart2 = _cart) === null || _cart2 === void 0 ? void 0 : (_cart2$business = _cart2.business) === null || _cart2$business === void 0 ? void 0 : _cart2$business.slug) === slug) {
429
+ if (((_cart2 = _cart) === null || _cart2 === void 0 || (_cart2 = _cart2.business) === null || _cart2 === void 0 ? void 0 : _cart2.slug) === slug) {
430
430
  _cart = _objectSpread(_objectSpread({}, _cart), {}, {
431
431
  spot_number: parseInt(spotNumber, 10)
432
432
  });
@@ -48,15 +48,15 @@ var DriverTipsUI = function DriverTipsUI(props) {
48
48
  _useState4 = _slicedToArray(_useState3, 2),
49
49
  value = _useState4[0],
50
50
  setvalue = _useState4[1];
51
- var isFixedPriceType = parseInt(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_t = configs.driver_tip_type) === null || _configs$driver_tip_t === void 0 ? void 0 : _configs$driver_tip_t.value, 10) === 1;
51
+ var isFixedPriceType = parseInt(configs === null || configs === void 0 || (_configs$driver_tip_t = configs.driver_tip_type) === null || _configs$driver_tip_t === void 0 ? void 0 : _configs$driver_tip_t.value, 10) === 1;
52
52
  var currentTip = customTip ? parseFloat(driverTip || 0) > 0 : (!customTip && !driverTipsOptions.includes(driverTip) && parseFloat(driverTip || 0)) > 0;
53
53
  var handleChangeDriverTip = function handleChangeDriverTip(e) {
54
54
  var _e$target, _e$target2;
55
- var tip = Number(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
55
+ var tip = Number(e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
56
56
  if (isNaN(tip) || tip < 0) return;
57
- setvalue(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
57
+ setvalue(e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
58
58
  };
59
- var placeholderCurrency = !isFixedPriceType ? '0%' : ((configs === null || configs === void 0 ? void 0 : (_configs$currency_pos = configs.currency_position) === null || _configs$currency_pos === void 0 ? void 0 : _configs$currency_pos.value) || 'left') === 'left' ? "".concat(configs === null || configs === void 0 ? void 0 : (_configs$format_numbe = configs.format_number_currency) === null || _configs$format_numbe === void 0 ? void 0 : _configs$format_numbe.value, "0") : "0".concat(configs === null || configs === void 0 ? void 0 : (_configs$format_numbe2 = configs.format_number_currency) === null || _configs$format_numbe2 === void 0 ? void 0 : _configs$format_numbe2.value);
59
+ var placeholderCurrency = !isFixedPriceType ? '0%' : ((configs === null || configs === void 0 || (_configs$currency_pos = configs.currency_position) === null || _configs$currency_pos === void 0 ? void 0 : _configs$currency_pos.value) || 'left') === 'left' ? "".concat(configs === null || configs === void 0 || (_configs$format_numbe = configs.format_number_currency) === null || _configs$format_numbe === void 0 ? void 0 : _configs$format_numbe.value, "0") : "0".concat(configs === null || configs === void 0 || (_configs$format_numbe2 = configs.format_number_currency) === null || _configs$format_numbe2 === void 0 ? void 0 : _configs$format_numbe2.value);
60
60
  var multiCartTipsAmmout = carts === null || carts === void 0 ? void 0 : carts.reduce(function (total, cart) {
61
61
  return total + parseFloat((cart === null || cart === void 0 ? void 0 : cart.driver_tip) || 0);
62
62
  }, 0);
@@ -38,14 +38,14 @@ var Map = function Map(props) {
38
38
  var mapRef = (0, _react.useRef)(null);
39
39
  var googleMapsApiKey = (0, _react.useMemo)(function () {
40
40
  var _configs$google_maps_;
41
- return configs === null || configs === void 0 ? void 0 : (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
41
+ return configs === null || configs === void 0 || (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
42
42
  }, [configs]);
43
43
  var deliveryType = (0, _react.useMemo)(function () {
44
44
  var _orderState$options;
45
- return orderState === null || orderState === void 0 ? void 0 : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type;
45
+ return orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type;
46
46
  }, [orderState]);
47
- var defaultLatitude = Number(configs === null || configs === void 0 ? void 0 : (_configs$location_def = configs.location_default_latitude) === null || _configs$location_def === void 0 ? void 0 : _configs$location_def.value);
48
- var defaultLongitude = Number(configs === null || configs === void 0 ? void 0 : (_configs$location_def2 = configs.location_default_longitude) === null || _configs$location_def2 === void 0 ? void 0 : _configs$location_def2.value);
47
+ var defaultLatitude = Number(configs === null || configs === void 0 || (_configs$location_def = configs.location_default_latitude) === null || _configs$location_def === void 0 ? void 0 : _configs$location_def.value);
48
+ var defaultLongitude = Number(configs === null || configs === void 0 || (_configs$location_def2 = configs.location_default_longitude) === null || _configs$location_def2 === void 0 ? void 0 : _configs$location_def2.value);
49
49
  var isInvalidDefaultLocation = isNaN(defaultLatitude) || isNaN(defaultLongitude);
50
50
  var defaultCenter = {
51
51
  lat: !isInvalidDefaultLocation ? defaultLatitude : 40.7744146,
@@ -144,7 +144,7 @@ var Map = function Map(props) {
144
144
  var _newCircleZone = new window.google.maps.Circle(_objectSpread(_objectSpread({}, greenFillStyle), {}, {
145
145
  editable: false,
146
146
  center: _center,
147
- radius: (deliveryZone === null || deliveryZone === void 0 ? void 0 : deliveryZone.data.distance) * units[deliveryZone === null || deliveryZone === void 0 ? void 0 : (_deliveryZone$data4 = deliveryZone.data) === null || _deliveryZone$data4 === void 0 ? void 0 : _deliveryZone$data4.unit]
147
+ radius: (deliveryZone === null || deliveryZone === void 0 ? void 0 : deliveryZone.data.distance) * units[deliveryZone === null || deliveryZone === void 0 || (_deliveryZone$data4 = deliveryZone.data) === null || _deliveryZone$data4 === void 0 ? void 0 : _deliveryZone$data4.unit]
148
148
  }));
149
149
  _newCircleZone.setMap(map);
150
150
  bounds.union(_newCircleZone.getBounds());
@@ -187,12 +187,12 @@ var Map = function Map(props) {
187
187
  // fit map center and zoone
188
188
  var newBounds = {
189
189
  ne: {
190
- lat: (_bounds$getNorthEast = bounds.getNorthEast()) === null || _bounds$getNorthEast === void 0 ? void 0 : (_bounds$getNorthEast$ = _bounds$getNorthEast.lat) === null || _bounds$getNorthEast$ === void 0 ? void 0 : _bounds$getNorthEast$.call(_bounds$getNorthEast),
191
- lng: (_bounds$getNorthEast2 = bounds.getNorthEast()) === null || _bounds$getNorthEast2 === void 0 ? void 0 : (_bounds$getNorthEast3 = _bounds$getNorthEast2.lng) === null || _bounds$getNorthEast3 === void 0 ? void 0 : _bounds$getNorthEast3.call(_bounds$getNorthEast2)
190
+ lat: (_bounds$getNorthEast = bounds.getNorthEast()) === null || _bounds$getNorthEast === void 0 || (_bounds$getNorthEast$ = _bounds$getNorthEast.lat) === null || _bounds$getNorthEast$ === void 0 ? void 0 : _bounds$getNorthEast$.call(_bounds$getNorthEast),
191
+ lng: (_bounds$getNorthEast2 = bounds.getNorthEast()) === null || _bounds$getNorthEast2 === void 0 || (_bounds$getNorthEast3 = _bounds$getNorthEast2.lng) === null || _bounds$getNorthEast3 === void 0 ? void 0 : _bounds$getNorthEast3.call(_bounds$getNorthEast2)
192
192
  },
193
193
  sw: {
194
- lat: (_bounds$getSouthWest = bounds.getSouthWest()) === null || _bounds$getSouthWest === void 0 ? void 0 : (_bounds$getSouthWest$ = _bounds$getSouthWest.lat) === null || _bounds$getSouthWest$ === void 0 ? void 0 : _bounds$getSouthWest$.call(_bounds$getSouthWest),
195
- lng: (_bounds$getSouthWest2 = bounds.getSouthWest()) === null || _bounds$getSouthWest2 === void 0 ? void 0 : (_bounds$getSouthWest3 = _bounds$getSouthWest2.lng) === null || _bounds$getSouthWest3 === void 0 ? void 0 : _bounds$getSouthWest3.call(_bounds$getSouthWest2)
194
+ lat: (_bounds$getSouthWest = bounds.getSouthWest()) === null || _bounds$getSouthWest === void 0 || (_bounds$getSouthWest$ = _bounds$getSouthWest.lat) === null || _bounds$getSouthWest$ === void 0 ? void 0 : _bounds$getSouthWest$.call(_bounds$getSouthWest),
195
+ lng: (_bounds$getSouthWest2 = bounds.getSouthWest()) === null || _bounds$getSouthWest2 === void 0 || (_bounds$getSouthWest3 = _bounds$getSouthWest2.lng) === null || _bounds$getSouthWest3 === void 0 ? void 0 : _bounds$getSouthWest3.call(_bounds$getSouthWest2)
196
196
  }
197
197
  };
198
198
  var mapSize = {
@@ -240,8 +240,8 @@ var Map = function Map(props) {
240
240
  yesIWantToUseGoogleMapApiInternals: true
241
241
  }, (business === null || business === void 0 ? void 0 : business.location) && /*#__PURE__*/_react.default.createElement(_InterActOrderMarker.InterActOrderMarker, {
242
242
  business: business,
243
- lat: business === null || business === void 0 ? void 0 : (_business$location = business.location) === null || _business$location === void 0 ? void 0 : _business$location.lat,
244
- lng: business === null || business === void 0 ? void 0 : (_business$location2 = business.location) === null || _business$location2 === void 0 ? void 0 : _business$location2.lng,
243
+ lat: business === null || business === void 0 || (_business$location = business.location) === null || _business$location === void 0 ? void 0 : _business$location.lat,
244
+ lng: business === null || business === void 0 || (_business$location2 = business.location) === null || _business$location2 === void 0 ? void 0 : _business$location2.lng,
245
245
  image: business === null || business === void 0 ? void 0 : business.logo
246
246
  }), /*#__PURE__*/_react.default.createElement(_InterActOrderMarker.InterActOrderMarker, {
247
247
  customer: customer,
@@ -23,7 +23,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
23
23
  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; } }
24
24
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
25
  var OrderTypeSelectorUI = function OrderTypeSelectorUI(props) {
26
- var _configState$configs, _configState$configs$;
26
+ var _configState$configs;
27
27
  var typeSelected = props.typeSelected,
28
28
  defaultValue = props.defaultValue,
29
29
  orderTypes = props.orderTypes,
@@ -34,7 +34,7 @@ var OrderTypeSelectorUI = function OrderTypeSelectorUI(props) {
34
34
  var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
35
35
  _useConfig2 = _slicedToArray(_useConfig, 1),
36
36
  configState = _useConfig2[0];
37
- var configTypes = (configState === null || configState === void 0 ? void 0 : (_configState$configs = configState.configs) === null || _configState$configs === void 0 ? void 0 : (_configState$configs$ = _configState$configs.order_types_allowed) === null || _configState$configs$ === void 0 ? void 0 : _configState$configs$.value.split('|').map(function (value) {
37
+ var configTypes = (configState === null || configState === void 0 || (_configState$configs = configState.configs) === null || _configState$configs === void 0 || (_configState$configs = _configState$configs.order_types_allowed) === null || _configState$configs === void 0 ? void 0 : _configState$configs.value.split('|').map(function (value) {
38
38
  return Number(value);
39
39
  })) || [];
40
40
  var defaultType = configTypes !== null && configTypes !== void 0 && configTypes.includes(typeSelected) ? null : configTypes === null || configTypes === void 0 ? void 0 : configTypes[0];
@@ -46,7 +46,7 @@ var PaymentOptionCardUI = function PaymentOptionCardUI(props) {
46
46
  setAddCardOpen = _useState2[1];
47
47
  (0, _react.useEffect)(function () {
48
48
  var _cardsList$cards;
49
- if ((cardsList === null || cardsList === void 0 ? void 0 : (_cardsList$cards = cardsList.cards) === null || _cardsList$cards === void 0 ? void 0 : _cardsList$cards.length) > 0) {
49
+ if ((cardsList === null || cardsList === void 0 || (_cardsList$cards = cardsList.cards) === null || _cardsList$cards === void 0 ? void 0 : _cardsList$cards.length) > 0) {
50
50
  setAddCardOpen(true);
51
51
  }
52
52
  }, [cardsList === null || cardsList === void 0 ? void 0 : cardsList.cards]);
@@ -36,11 +36,11 @@ var PaymentOptionCash = function PaymentOptionCash(props) {
36
36
  var timeout = null;
37
37
  var onChangeCash = function onChangeCash(e) {
38
38
  var _e$target;
39
- if (!/^(?=.)([+-]?([0-9]*)(\.([0-9]+))?)$/.test(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value)) return;
39
+ if (!/^(?=.)([+-]?([0-9]*)(\.([0-9]+))?)$/.test(e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value)) return;
40
40
  clearTimeout(timeout);
41
41
  timeout = setTimeout(function () {
42
42
  var _e$target2;
43
- var cash = parseFloat(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
43
+ var cash = parseFloat(e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
44
44
  cash = isNaN(cash) ? null : cash;
45
45
  setvalue(cash);
46
46
  if (cash >= orderTotal || !cash) {
@@ -38,7 +38,7 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
38
38
  configs = _useConfig2[0].configs;
39
39
  var paymentPaypalProps = _objectSpread(_objectSpread({}, props), {}, {
40
40
  UIComponent: PaymentOptionPaypalUI,
41
- currency: configs === null || configs === void 0 ? void 0 : (_configs$stripe_curre = configs.stripe_currency) === null || _configs$stripe_curre === void 0 ? void 0 : _configs$stripe_curre.value
41
+ currency: configs === null || configs === void 0 || (_configs$stripe_curre = configs.stripe_currency) === null || _configs$stripe_curre === void 0 ? void 0 : _configs$stripe_curre.value
42
42
  });
43
43
  return /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.PaymentOptionPaypal, paymentPaypalProps);
44
44
  };
@@ -36,7 +36,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
36
36
  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; } }
37
37
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
38
38
  var PaymentOptionStripeUI = function PaymentOptionStripeUI(props) {
39
- var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _validationFields$fie5, _validationFields$fie6, _props$beforeElements, _props$beforeComponen, _cardsList$error$, _cardsList$cards2, _props$afterComponent, _props$afterElements;
39
+ var _validationFields$fie, _validationFields$fie2, _props$beforeElements, _props$beforeComponen, _cardsList$error$, _cardsList$cards2, _props$afterComponent, _props$afterElements;
40
40
  var deleteCard = props.deleteCard,
41
41
  cardsList = props.cardsList,
42
42
  _handleCardClick = props.handleCardClick,
@@ -65,7 +65,7 @@ var PaymentOptionStripeUI = function PaymentOptionStripeUI(props) {
65
65
  _useState4 = _slicedToArray(_useState3, 2),
66
66
  addCartOpen = _useState4[0],
67
67
  setAddCardOpen = _useState4[1];
68
- var validateZipcodeCard = (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie = validationFields.fields) === null || _validationFields$fie === void 0 ? void 0 : (_validationFields$fie2 = _validationFields$fie.card) === null || _validationFields$fie2 === void 0 ? void 0 : (_validationFields$fie3 = _validationFields$fie2.zipcode) === null || _validationFields$fie3 === void 0 ? void 0 : _validationFields$fie3.enabled) && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie4 = validationFields.fields) === null || _validationFields$fie4 === void 0 ? void 0 : (_validationFields$fie5 = _validationFields$fie4.card) === null || _validationFields$fie5 === void 0 ? void 0 : (_validationFields$fie6 = _validationFields$fie5.zipcode) === null || _validationFields$fie6 === void 0 ? void 0 : _validationFields$fie6.required);
68
+ var validateZipcodeCard = (validationFields === null || validationFields === void 0 || (_validationFields$fie = validationFields.fields) === null || _validationFields$fie === void 0 || (_validationFields$fie = _validationFields$fie.card) === null || _validationFields$fie === void 0 || (_validationFields$fie = _validationFields$fie.zipcode) === null || _validationFields$fie === void 0 ? void 0 : _validationFields$fie.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie2 = validationFields.fields) === null || _validationFields$fie2 === void 0 || (_validationFields$fie2 = _validationFields$fie2.card) === null || _validationFields$fie2 === void 0 || (_validationFields$fie2 = _validationFields$fie2.zipcode) === null || _validationFields$fie2 === void 0 ? void 0 : _validationFields$fie2.required);
69
69
  var paymethodsWithoutSaveCards = ['credomatic'];
70
70
  var _handleNewCard = function _handleNewCard(card) {
71
71
  setAddCardOpen(false);
@@ -85,7 +85,7 @@ var PaymentOptionStripeUI = function PaymentOptionStripeUI(props) {
85
85
  };
86
86
  (0, _react.useEffect)(function () {
87
87
  var _cardsList$cards;
88
- if (!(cardsList !== null && cardsList !== void 0 && cardsList.loading) && (cardsList === null || cardsList === void 0 ? void 0 : (_cardsList$cards = cardsList.cards) === null || _cardsList$cards === void 0 ? void 0 : _cardsList$cards.length) === 0 && !paymethodsWithoutSaveCards.includes(gateway)) {
88
+ if (!(cardsList !== null && cardsList !== void 0 && cardsList.loading) && (cardsList === null || cardsList === void 0 || (_cardsList$cards = cardsList.cards) === null || _cardsList$cards === void 0 ? void 0 : _cardsList$cards.length) === 0 && !paymethodsWithoutSaveCards.includes(gateway)) {
89
89
  setAddCardOpen(true);
90
90
  }
91
91
  }, [cardsList === null || cardsList === void 0 ? void 0 : cardsList.loading]);
@@ -98,8 +98,8 @@ var PaymentOptionStripeUI = function PaymentOptionStripeUI(props) {
98
98
  key: i
99
99
  }, props));
100
100
  }), /*#__PURE__*/_react.default.createElement(_styles.OptionStripeContainer, null, !token && /*#__PURE__*/_react.default.createElement(_styles.WarningMessage, null, t('NEED_LOGIN_TO_USE', 'Sorry, you need to login to use this method')), token && !cardsList.loading && cardsList.cards && cardsList.cards.length === 0 && /*#__PURE__*/_react.default.createElement(_styles.CardItem, null, /*#__PURE__*/_react.default.createElement("span", null, t('NO_CARDS', 'No cards'))), token && cardsList.error && cardsList.error.length > 0 && /*#__PURE__*/_react.default.createElement(_Shared.NotFoundSource, {
101
- content: (cardsList === null || cardsList === void 0 ? void 0 : (_cardsList$error$ = cardsList.error[0]) === null || _cardsList$error$ === void 0 ? void 0 : _cardsList$error$.message) || (cardsList === null || cardsList === void 0 ? void 0 : cardsList.error[0])
102
- }), token && cardsList.cards && cardsList.cards.length > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, cardsList === null || cardsList === void 0 ? void 0 : (_cardsList$cards2 = cardsList.cards) === null || _cardsList$cards2 === void 0 ? void 0 : _cardsList$cards2.map(function (card, i) {
101
+ content: (cardsList === null || cardsList === void 0 || (_cardsList$error$ = cardsList.error[0]) === null || _cardsList$error$ === void 0 ? void 0 : _cardsList$error$.message) || (cardsList === null || cardsList === void 0 ? void 0 : cardsList.error[0])
102
+ }), token && cardsList.cards && cardsList.cards.length > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, cardsList === null || cardsList === void 0 || (_cardsList$cards2 = cardsList.cards) === null || _cardsList$cards2 === void 0 ? void 0 : _cardsList$cards2.map(function (card, i) {
103
103
  return /*#__PURE__*/_react.default.createElement(PaymentCard, _extends({}, props, {
104
104
  key: i,
105
105
  handleCardClick: function handleCardClick() {
@@ -217,9 +217,9 @@ var PaymentCard = function PaymentCard(props) {
217
217
  id: cardSelected === null || cardSelected === void 0 ? void 0 : cardSelected.id,
218
218
  type: 'card',
219
219
  card: {
220
- brand: cardSelected === null || cardSelected === void 0 ? void 0 : (_cardSelected$card = cardSelected.card) === null || _cardSelected$card === void 0 ? void 0 : _cardSelected$card.brand,
221
- last4: cardSelected === null || cardSelected === void 0 ? void 0 : (_cardSelected$card2 = cardSelected.card) === null || _cardSelected$card2 === void 0 ? void 0 : _cardSelected$card2.last4,
222
- zipcode: cardSelected === null || cardSelected === void 0 ? void 0 : (_cardSelected$card3 = cardSelected.card) === null || _cardSelected$card3 === void 0 ? void 0 : _cardSelected$card3.zipcode
220
+ brand: cardSelected === null || cardSelected === void 0 || (_cardSelected$card = cardSelected.card) === null || _cardSelected$card === void 0 ? void 0 : _cardSelected$card.brand,
221
+ last4: cardSelected === null || cardSelected === void 0 || (_cardSelected$card2 = cardSelected.card) === null || _cardSelected$card2 === void 0 ? void 0 : _cardSelected$card2.last4,
222
+ zipcode: cardSelected === null || cardSelected === void 0 || (_cardSelected$card3 = cardSelected.card) === null || _cardSelected$card3 === void 0 ? void 0 : _cardSelected$card3.zipcode
223
223
  }
224
224
  }));
225
225
  }, [cardSelected]);
@@ -36,7 +36,7 @@ var CardItemContent = _styledComponents.default.div(_templateObject7 || (_templa
36
36
  }, function (_ref3) {
37
37
  var _theme$colors;
38
38
  var theme = _ref3.theme;
39
- return theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.danger500;
39
+ return theme === null || theme === void 0 || (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.danger500;
40
40
  });
41
41
  exports.CardItemContent = CardItemContent;
42
42
  var CardItemActions = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > span {\n font-weight: 600;\n font-size: 12px;\n color: ", ";\n margin-right: 20px;\n ", "\n }\n"])), function (props) {
@@ -60,8 +60,8 @@ var PaymentOptionWalletUI = function PaymentOptionWalletUI(props) {
60
60
  _useState4 = _slicedToArray(_useState3, 2),
61
61
  checkedState = _useState4[0],
62
62
  setCheckedState = _useState4[1];
63
- var isWalletCashEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$wallet_cash_ = configs.wallet_cash_enabled) === null || _configs$wallet_cash_ === void 0 ? void 0 : _configs$wallet_cash_.value) === '1';
64
- var isWalletPointsEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$wallet_credi = configs.wallet_credit_point_enabled) === null || _configs$wallet_credi === void 0 ? void 0 : _configs$wallet_credi.value) === '1';
63
+ var isWalletCashEnabled = (configs === null || configs === void 0 || (_configs$wallet_cash_ = configs.wallet_cash_enabled) === null || _configs$wallet_cash_ === void 0 ? void 0 : _configs$wallet_cash_.value) === '1';
64
+ var isWalletPointsEnabled = (configs === null || configs === void 0 || (_configs$wallet_credi = configs.wallet_credit_point_enabled) === null || _configs$wallet_credi === void 0 ? void 0 : _configs$wallet_credi.value) === '1';
65
65
  var isBusinessWalletCashEnabled = ((_businessConfigs$find = businessConfigs.find(function (config) {
66
66
  return config.key === 'wallet_cash_enabled';
67
67
  })) === null || _businessConfigs$find === void 0 ? void 0 : _businessConfigs$find.value) === '1';
@@ -99,7 +99,7 @@ var PaymentOptionWalletUI = function PaymentOptionWalletUI(props) {
99
99
  (0, _react.useEffect)(function () {
100
100
  if (!walletsState.loading) {
101
101
  var _walletsState$result2;
102
- setCheckedState(walletsState === null || walletsState === void 0 ? void 0 : (_walletsState$result2 = walletsState.result) === null || _walletsState$result2 === void 0 ? void 0 : _walletsState$result2.map(function (wallet) {
102
+ setCheckedState(walletsState === null || walletsState === void 0 || (_walletsState$result2 = walletsState.result) === null || _walletsState$result2 === void 0 ? void 0 : _walletsState$result2.map(function (wallet) {
103
103
  var _cart$wallets;
104
104
  return !!(cart !== null && cart !== void 0 && (_cart$wallets = cart.wallets) !== null && _cart$wallets !== void 0 && _cart$wallets.find(function (w) {
105
105
  return w.id === wallet.id;