ordering-ui-admin-external 1.30.6 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) hide show
  1. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js → ordering-ui-admin.2f5049887bf500c65392.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js.LICENSE.txt → ordering-ui-admin.2f5049887bf500c65392.js.LICENSE.txt} +1 -1
  3. package/_modules/components/BusinessIntelligence/AnalyticsAvailableTimes/index.js +10 -10
  4. package/_modules/components/BusinessIntelligence/AnalyticsBusinessFilter/index.js +1 -1
  5. package/_modules/components/BusinessIntelligence/AnalyticsBusyTimes/index.js +10 -10
  6. package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +1 -1
  7. package/_modules/components/BusinessIntelligence/AnalyticsCustomerSatisfaction/index.js +10 -10
  8. package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +80 -47
  9. package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +4 -4
  10. package/_modules/components/BusinessIntelligence/AnalyticsOrdersOrSales/index.js +3 -3
  11. package/_modules/components/BusinessIntelligence/AnalyticsOrdersStatus/index.js +1 -1
  12. package/_modules/components/BusinessIntelligence/AnalyticsRegisterUsers/index.js +6 -6
  13. package/_modules/components/BusinessIntelligence/AnalyticsSpendTimes/index.js +12 -12
  14. package/_modules/components/BusinessIntelligence/BusinessAnalytics/index.js +2 -1
  15. package/_modules/components/BusinessIntelligence/BusinessAnalytics/styles.js +6 -4
  16. package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
  17. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
  18. package/_modules/components/BusinessIntelligence/CountryFilter/index.js +1 -1
  19. package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
  20. package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
  21. package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
  22. package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +16 -15
  23. package/_modules/components/BusinessIntelligence/ReportsAverageSales/styles.js +13 -3
  24. package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
  25. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +27 -26
  26. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +13 -3
  27. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +12 -11
  28. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +13 -3
  29. package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +18 -17
  30. package/_modules/components/BusinessIntelligence/ReportsCustomer/styles.js +13 -3
  31. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +12 -11
  32. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/styles.js +13 -3
  33. package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
  34. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +12 -11
  35. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/styles.js +13 -3
  36. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +12 -11
  37. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +13 -3
  38. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +11 -10
  39. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +13 -3
  40. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +12 -11
  41. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/styles.js +13 -3
  42. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +12 -11
  43. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/styles.js +13 -3
  44. package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +12 -11
  45. package/_modules/components/BusinessIntelligence/ReportsHeatMap/styles.js +13 -3
  46. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +24 -23
  47. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/styles.js +13 -3
  48. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +18 -17
  49. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/styles.js +13 -3
  50. package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
  51. package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +22 -21
  52. package/_modules/components/BusinessIntelligence/ReportsOrders/styles.js +13 -3
  53. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +11 -10
  54. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +13 -3
  55. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +20 -19
  56. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +13 -3
  57. package/_modules/components/BusinessIntelligence/ReportsSales/index.js +22 -21
  58. package/_modules/components/BusinessIntelligence/ReportsSales/styles.js +13 -3
  59. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +11 -10
  60. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/styles.js +13 -3
  61. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +27 -26
  62. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/styles.js +13 -3
  63. package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +17 -16
  64. package/_modules/components/BusinessIntelligence/ReportsUsers/styles.js +13 -3
  65. package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
  66. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
  67. package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
  68. package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
  69. package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
  70. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
  71. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
  72. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
  73. package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
  74. package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
  75. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
  76. package/_modules/components/Delivery/AddressForm/index.js +29 -29
  77. package/_modules/components/Delivery/AddressList/index.js +22 -12
  78. package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
  79. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
  80. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
  81. package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
  82. package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
  83. package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
  84. package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
  85. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
  86. package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
  87. package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
  88. package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
  89. package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
  90. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  91. package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
  92. package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  93. package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
  94. package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
  95. package/_modules/components/Delivery/UserAddForm/index.js +13 -13
  96. package/_modules/components/Delivery/UserDetails/index.js +6 -6
  97. package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
  98. package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
  99. package/_modules/components/Home/HomePage/index.js +10 -9
  100. package/_modules/components/LanguageSelector/index.js +1 -1
  101. package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
  102. package/_modules/components/Login/LoginForm/index.js +11 -11
  103. package/_modules/components/Login/ResetPassword/index.js +5 -5
  104. package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
  105. package/_modules/components/Loyalty/GiftCards/index.js +3 -3
  106. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
  107. package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
  108. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
  109. package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
  110. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
  111. package/_modules/components/Marketing/BannerDetails/index.js +5 -5
  112. package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
  113. package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
  114. package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
  115. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  116. package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
  117. package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
  118. package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
  119. package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
  120. package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
  121. package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
  122. package/_modules/components/Marketing/CampaignList/index.js +2 -2
  123. package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
  124. package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
  125. package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
  126. package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
  127. package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
  128. package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
  129. package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
  130. package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
  131. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
  132. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
  133. package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
  134. package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
  135. package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
  136. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
  137. package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
  138. package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
  139. package/_modules/components/Marketing/PageBanner/index.js +1 -1
  140. package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
  141. package/_modules/components/Messages/ChatContactList/index.js +2 -2
  142. package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
  143. package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
  144. package/_modules/components/MyProducts/AppResources/index.js +15 -15
  145. package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
  146. package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
  147. package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
  148. package/_modules/components/MyProducts/OrderingWebsite/index.js +39 -32
  149. package/_modules/components/MyProducts/OrderingWebsite/styles.js +1 -1
  150. package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
  151. package/_modules/components/NotNetworkConnectivity/index.js +2 -2
  152. package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
  153. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  154. package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
  155. package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
  156. package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
  157. package/_modules/components/Orders/AllInOne/index.js +15 -6
  158. package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
  159. package/_modules/components/Orders/Appointments/index.js +2 -2
  160. package/_modules/components/Orders/CompanySelector/index.js +4 -4
  161. package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
  162. package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
  163. package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
  164. package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
  165. package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +102 -9
  166. package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +19 -3
  167. package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
  168. package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
  169. package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +3 -3
  170. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
  171. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
  172. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
  173. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
  174. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
  175. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
  176. package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
  177. package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
  178. package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
  179. package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
  180. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +22 -10
  181. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +8 -5
  182. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
  183. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
  184. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
  185. package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
  186. package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
  187. package/_modules/components/Orders/DeliveriesManager/index.js +13 -4
  188. package/_modules/components/Orders/DeliveryDashboard/index.js +6 -6
  189. package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
  190. package/_modules/components/Orders/DriversList/index.js +2 -2
  191. package/_modules/components/Orders/DriversLocation/index.js +11 -11
  192. package/_modules/components/Orders/DriversManager/index.js +2 -2
  193. package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
  194. package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
  195. package/_modules/components/Orders/Logistics/index.js +1 -1
  196. package/_modules/components/Orders/Messages/index.js +4 -4
  197. package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
  198. package/_modules/components/Orders/OrderBill/index.js +46 -46
  199. package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
  200. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
  201. package/_modules/components/Orders/OrderDetails/index.js +6 -6
  202. package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
  203. package/_modules/components/Orders/OrderLogisticInformation/index.js +1 -1
  204. package/_modules/components/Orders/OrderNotification/index.js +47 -18
  205. package/_modules/components/Orders/OrderNotification/styles.js +18 -3
  206. package/_modules/components/Orders/OrderStatusFilterBar/index.js +6 -6
  207. package/_modules/components/Orders/OrderToPrint/index.js +22 -22
  208. package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
  209. package/_modules/components/Orders/OrdersCards/index.js +29 -29
  210. package/_modules/components/Orders/OrdersContentHeader/index.js +13 -4
  211. package/_modules/components/Orders/OrdersContentHeader/styles.js +20 -4
  212. package/_modules/components/Orders/OrdersDashboardList/index.js +34 -5
  213. package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
  214. package/_modules/components/Orders/OrdersFilterGroup/index.js +18 -1
  215. package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
  216. package/_modules/components/Orders/OrdersListing/index.js +9 -3
  217. package/_modules/components/Orders/OrdersManager/index.js +16 -7
  218. package/_modules/components/Orders/OrdersTable/index.js +53 -53
  219. package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
  220. package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
  221. package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
  222. package/_modules/components/Orders/WebsocketStatus/index.js +6 -1
  223. package/_modules/components/PageNotFound/index.js +3 -3
  224. package/_modules/components/Settings/ApiKeysList/index.js +1 -1
  225. package/_modules/components/Settings/CountriesList/index.js +1 -1
  226. package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
  227. package/_modules/components/Settings/EmailSetting/index.js +5 -5
  228. package/_modules/components/Settings/InsertImage/index.js +3 -3
  229. package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
  230. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
  231. package/_modules/components/Settings/LanguageSetting/index.js +1 -1
  232. package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
  233. package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
  234. package/_modules/components/Settings/NotificationSetting/index.js +6 -6
  235. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  236. package/_modules/components/Settings/Settings/index.js +3 -3
  237. package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
  238. package/_modules/components/Settings/SettingsList/index.js +4 -4
  239. package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
  240. package/_modules/components/Settings/WebhookListSelector/index.js +6 -0
  241. package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
  242. package/_modules/components/Shared/AutoScroll/index.js +4 -4
  243. package/_modules/components/Shared/CitySelector/index.js +1 -1
  244. package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
  245. package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
  246. package/_modules/components/Shared/DragScroll/index.js +5 -5
  247. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
  248. package/_modules/components/Shared/InputPhoneNumber/index.js +3 -4
  249. package/_modules/components/Shared/NotFoundSource/index.js +2 -2
  250. package/_modules/components/Shared/Personalization/index.js +1 -1
  251. package/_modules/components/Shared/RangeCalendar/index.js +2 -2
  252. package/_modules/components/Shared/Schedule/index.js +6 -6
  253. package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
  254. package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
  255. package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
  256. package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
  257. package/_modules/components/Shared/SelectSites/index.js +1 -1
  258. package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
  259. package/_modules/components/SidebarMenu/index.js +37 -40
  260. package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
  261. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
  262. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
  263. package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
  264. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
  265. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
  266. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
  267. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +7 -3
  268. package/_modules/components/Stores/BusinessAdd/index.js +9 -9
  269. package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
  270. package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
  271. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
  272. package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
  273. package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
  274. package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
  275. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
  276. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
  277. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
  278. package/_modules/components/Stores/BusinessDetails/index.js +7 -7
  279. package/_modules/components/Stores/BusinessDeviceDetail/index.js +13 -13
  280. package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
  281. package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
  282. package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
  283. package/_modules/components/Stores/BusinessImages/index.js +4 -4
  284. package/_modules/components/Stores/BusinessInformation/index.js +35 -35
  285. package/_modules/components/Stores/BusinessLocation/index.js +7 -7
  286. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  287. package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
  288. package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
  289. package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
  290. package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
  291. package/_modules/components/Stores/BusinessOwners/index.js +1 -1
  292. package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
  293. package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
  294. package/_modules/components/Stores/BusinessPlace/index.js +1 -1
  295. package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
  296. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
  297. package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
  298. package/_modules/components/Stores/BusinessPreview/index.js +19 -19
  299. package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
  300. package/_modules/components/Stores/BusinessProductList/index.js +5 -5
  301. package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
  302. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
  303. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
  304. package/_modules/components/Stores/BusinessProductsListing/index.js +25 -21
  305. package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
  306. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  307. package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
  308. package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
  309. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
  310. package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
  311. package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
  312. package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
  313. package/_modules/components/Stores/BusinessSummary/index.js +14 -11
  314. package/_modules/components/Stores/BusinessSupport/index.js +2 -2
  315. package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
  316. package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
  317. package/_modules/components/Stores/BusinessTypes/index.js +2 -2
  318. package/_modules/components/Stores/BusinessVideos/index.js +2 -2
  319. package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
  320. package/_modules/components/Stores/BusinessWebhooks/index.js +11 -5
  321. package/_modules/components/Stores/BusinessesListing/index.js +1 -1
  322. package/_modules/components/Stores/ImporterForm/index.js +3 -3
  323. package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
  324. package/_modules/components/Stores/PaymentOption/index.js +11 -11
  325. package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
  326. package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
  327. package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
  328. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
  329. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
  330. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
  331. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
  332. package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
  333. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
  334. package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
  335. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +26 -21
  336. package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
  337. package/_modules/components/Stores/ProductExtraOptions/index.js +10 -4
  338. package/_modules/components/Stores/ProductExtraSuboption/index.js +10 -5
  339. package/_modules/components/Stores/ProductExtras/index.js +9 -4
  340. package/_modules/components/Stores/ProductGallery/index.js +3 -3
  341. package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
  342. package/_modules/components/Stores/ProductStep/index.js +2 -2
  343. package/_modules/components/Stores/ProductSummary/index.js +11 -8
  344. package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
  345. package/_modules/components/Stores/ProductTagsList/index.js +1 -1
  346. package/_modules/components/Stores/ProductVideos/index.js +1 -1
  347. package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
  348. package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
  349. package/_modules/components/Stores/SeoOptions/index.js +9 -9
  350. package/_modules/components/Stores/ServiceDetail/index.js +5 -5
  351. package/_modules/components/Stores/SingleBusiness/index.js +14 -14
  352. package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
  353. package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
  354. package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
  355. package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
  356. package/_modules/components/Users/CustomerDetails/index.js +2 -2
  357. package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
  358. package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
  359. package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
  360. package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
  361. package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
  362. package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
  363. package/_modules/components/Users/ProfessionalListing/index.js +1 -1
  364. package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
  365. package/_modules/components/Users/ProfessionalServices/index.js +3 -3
  366. package/_modules/components/Users/UserAddForm/index.js +11 -13
  367. package/_modules/components/Users/UserDetails/index.js +4 -4
  368. package/_modules/components/Users/UserFilterGroup/index.js +2 -2
  369. package/_modules/components/Users/UserFormDetails/index.js +12 -12
  370. package/_modules/components/Users/UserProfileForm/index.js +7 -7
  371. package/_modules/styles/Select/index.js +1 -1
  372. package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
  373. package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
  374. package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
  375. package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
  376. package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
  377. package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
  378. package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
  379. package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
  380. package/_modules/themes/origin/src/components/Header/index.js +3 -3
  381. package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
  382. package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
  383. package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
  384. package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
  385. package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
  386. package/_modules/themes/origin/src/components/Messages/index.js +13 -13
  387. package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
  388. package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
  389. package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
  390. package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
  391. package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
  392. package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
  393. package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
  394. package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
  395. package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
  396. package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
  397. package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
  398. package/_modules/themes/origin/src/components/OverView/index.js +1 -1
  399. package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
  400. package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
  401. package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
  402. package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
  403. package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
  404. package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
  405. package/_modules/utils/index.js +1 -1
  406. package/package.json +2 -2
  407. package/src/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +39 -17
  408. package/src/components/BusinessIntelligence/BusinessAnalytics/index.js +6 -1
  409. package/src/components/BusinessIntelligence/BusinessAnalytics/styles.js +2 -0
  410. package/src/components/BusinessIntelligence/ReportsAverageSales/index.js +15 -7
  411. package/src/components/BusinessIntelligence/ReportsAverageSales/styles.js +34 -0
  412. package/src/components/BusinessIntelligence/ReportsBusinessDistance/index.js +9 -1
  413. package/src/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +34 -0
  414. package/src/components/BusinessIntelligence/ReportsBusinessSpend/index.js +9 -1
  415. package/src/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +34 -0
  416. package/src/components/BusinessIntelligence/ReportsCustomer/index.js +15 -7
  417. package/src/components/BusinessIntelligence/ReportsCustomer/styles.js +34 -0
  418. package/src/components/BusinessIntelligence/ReportsDriverDistance/index.js +10 -2
  419. package/src/components/BusinessIntelligence/ReportsDriverDistance/styles.js +34 -0
  420. package/src/components/BusinessIntelligence/ReportsDriverOrder/index.js +9 -1
  421. package/src/components/BusinessIntelligence/ReportsDriverOrder/styles.js +34 -0
  422. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +9 -1
  423. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +34 -0
  424. package/src/components/BusinessIntelligence/ReportsDriverSchedule/index.js +16 -8
  425. package/src/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +34 -0
  426. package/src/components/BusinessIntelligence/ReportsDriverSpend/index.js +9 -1
  427. package/src/components/BusinessIntelligence/ReportsDriverSpend/styles.js +34 -0
  428. package/src/components/BusinessIntelligence/ReportsGeneralSales/index.js +9 -1
  429. package/src/components/BusinessIntelligence/ReportsGeneralSales/styles.js +34 -0
  430. package/src/components/BusinessIntelligence/ReportsHeatMap/index.js +9 -1
  431. package/src/components/BusinessIntelligence/ReportsHeatMap/styles.js +34 -0
  432. package/src/components/BusinessIntelligence/ReportsOrderDistance/index.js +10 -1
  433. package/src/components/BusinessIntelligence/ReportsOrderDistance/styles.js +34 -0
  434. package/src/components/BusinessIntelligence/ReportsOrderStatus/index.js +10 -2
  435. package/src/components/BusinessIntelligence/ReportsOrderStatus/styles.js +34 -0
  436. package/src/components/BusinessIntelligence/ReportsOrders/index.js +9 -1
  437. package/src/components/BusinessIntelligence/ReportsOrders/styles.js +34 -0
  438. package/src/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -1
  439. package/src/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +34 -0
  440. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +9 -1
  441. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +34 -0
  442. package/src/components/BusinessIntelligence/ReportsSales/index.js +9 -1
  443. package/src/components/BusinessIntelligence/ReportsSales/styles.js +34 -0
  444. package/src/components/BusinessIntelligence/ReportsSpentTIme/index.js +15 -7
  445. package/src/components/BusinessIntelligence/ReportsSpentTIme/styles.js +34 -0
  446. package/src/components/BusinessIntelligence/ReportsTopDrivers/index.js +9 -2
  447. package/src/components/BusinessIntelligence/ReportsTopDrivers/styles.js +34 -0
  448. package/src/components/BusinessIntelligence/ReportsUsers/index.js +15 -7
  449. package/src/components/BusinessIntelligence/ReportsUsers/styles.js +34 -0
  450. package/src/components/Delivery/AddressList/index.js +11 -1
  451. package/src/components/Home/HomePage/index.js +5 -1
  452. package/src/components/MyProducts/OrderingWebsite/index.js +25 -12
  453. package/src/components/MyProducts/OrderingWebsite/styles.js +0 -2
  454. package/src/components/Orders/AllInOne/index.js +8 -2
  455. package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +118 -6
  456. package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +56 -0
  457. package/src/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +1 -1
  458. package/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +19 -11
  459. package/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +3 -0
  460. package/src/components/Orders/DeliveriesManager/index.js +8 -2
  461. package/src/components/Orders/DeliveryDashboard/index.js +4 -4
  462. package/src/components/Orders/OrderNotification/index.js +31 -5
  463. package/src/components/Orders/OrderNotification/styles.js +37 -0
  464. package/src/components/Orders/OrderStatusFilterBar/index.js +10 -9
  465. package/src/components/Orders/OrdersContentHeader/index.js +17 -3
  466. package/src/components/Orders/OrdersContentHeader/styles.js +54 -0
  467. package/src/components/Orders/OrdersDashboardList/index.js +6 -1
  468. package/src/components/Orders/OrdersFilterGroup/index.js +16 -0
  469. package/src/components/Orders/OrdersListing/index.js +7 -0
  470. package/src/components/Orders/OrdersManager/index.js +11 -3
  471. package/src/components/Orders/WebsocketStatus/index.js +5 -2
  472. package/src/components/Settings/WebhookListSelector/index.js +3 -1
  473. package/src/components/Shared/InputPhoneNumber/index.js +2 -3
  474. package/src/components/SidebarMenu/index.js +6 -6
  475. package/src/components/Stores/BusinessAdd/ReceiveOrders/index.js +16 -12
  476. package/src/components/Stores/BusinessDeviceDetail/index.js +1 -1
  477. package/src/components/Stores/BusinessProductsListing/index.js +4 -0
  478. package/src/components/Stores/BusinessSummary/index.js +21 -15
  479. package/src/components/Stores/BusinessWebhooks/index.js +3 -1
  480. package/src/components/Stores/ProductExtraOptionDetails/index.js +8 -0
  481. package/src/components/Stores/ProductExtraOptions/index.js +10 -1
  482. package/src/components/Stores/ProductExtraSuboption/index.js +7 -1
  483. package/src/components/Stores/ProductExtras/index.js +6 -1
  484. package/src/components/Stores/ProductSummary/index.js +7 -1
  485. package/src/components/Users/UserAddForm/index.js +0 -2
@@ -30,7 +30,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
30
30
  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; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
33
- var _brandFormState$chang7, _brandFormState$resul3, _brandFormState$resul4, _brandFormState$chang8, _brandFormState$chang9, _ref, _brandFormState$chang10, _brandFormState$chang11, _ref2, _brandFormState$chang12, _brandFormState$chang13, _brand$ribbon2, _brandFormState$chang14, _brandFormState$chang15, _brandFormState$chang16, _brandFormState$chang17, _brand$ribbon3, _brandFormState$chang18, _brandFormState$chang19, _brandFormState$chang20, _brand$ribbon4, _brandFormState$chang21, _brandFormState$chang22, _brandFormState$chang23, _brand$ribbon5;
33
+ var _brandFormState$chang4, _brandFormState$resul3, _brandFormState$resul4, _brandFormState$chang5, _brandFormState$chang6, _ref, _brandFormState$chang7, _brandFormState$chang8, _ref2, _brandFormState$chang9, _brandFormState$chang10, _brand$ribbon2, _brandFormState$chang11, _brandFormState$chang12, _brand$ribbon3, _brandFormState$chang13, _brandFormState$chang14, _brand$ribbon4, _brandFormState$chang15, _brandFormState$chang16, _brand$ribbon5;
34
34
  var brandFormState = props.brandFormState,
35
35
  brand = props.brand,
36
36
  handleChangeInput = props.handleChangeInput,
@@ -121,8 +121,8 @@ var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
121
121
  });
122
122
  };
123
123
  var handleSubmit = function handleSubmit() {
124
- var _brandFormState$chang, _brandFormState$chang2, _brandFormState$chang3, _brandFormState$chang4, _brand$ribbon, _brandFormState$chang5, _brandFormState$chang6;
125
- if ((typeof (brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang = brandFormState.changes) === null || _brandFormState$chang === void 0 ? void 0 : (_brandFormState$chang2 = _brandFormState$chang.ribbon) === null || _brandFormState$chang2 === void 0 ? void 0 : _brandFormState$chang2.enabled) !== 'undefined' ? brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang3 = brandFormState.changes) === null || _brandFormState$chang3 === void 0 ? void 0 : (_brandFormState$chang4 = _brandFormState$chang3.ribbon) === null || _brandFormState$chang4 === void 0 ? void 0 : _brandFormState$chang4.enabled : brand === null || brand === void 0 ? void 0 : (_brand$ribbon = brand.ribbon) === null || _brand$ribbon === void 0 ? void 0 : _brand$ribbon.enabled) && (brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang5 = brandFormState.changes) === null || _brandFormState$chang5 === void 0 ? void 0 : (_brandFormState$chang6 = _brandFormState$chang5.ribbon) === null || _brandFormState$chang6 === void 0 ? void 0 : _brandFormState$chang6.text) === '') {
124
+ var _brandFormState$chang, _brandFormState$chang2, _brand$ribbon, _brandFormState$chang3;
125
+ if ((typeof (brandFormState === null || brandFormState === void 0 || (_brandFormState$chang = brandFormState.changes) === null || _brandFormState$chang === void 0 || (_brandFormState$chang = _brandFormState$chang.ribbon) === null || _brandFormState$chang === void 0 ? void 0 : _brandFormState$chang.enabled) !== 'undefined' ? brandFormState === null || brandFormState === void 0 || (_brandFormState$chang2 = brandFormState.changes) === null || _brandFormState$chang2 === void 0 || (_brandFormState$chang2 = _brandFormState$chang2.ribbon) === null || _brandFormState$chang2 === void 0 ? void 0 : _brandFormState$chang2.enabled : brand === null || brand === void 0 || (_brand$ribbon = brand.ribbon) === null || _brand$ribbon === void 0 ? void 0 : _brand$ribbon.enabled) && (brandFormState === null || brandFormState === void 0 || (_brandFormState$chang3 = brandFormState.changes) === null || _brandFormState$chang3 === void 0 || (_brandFormState$chang3 = _brandFormState$chang3.ribbon) === null || _brandFormState$chang3 === void 0 ? void 0 : _brandFormState$chang3.text) === '') {
126
126
  setAlertState({
127
127
  open: true,
128
128
  content: t('VALIDATION_ERROR_REQUIRED', 'The Ribbon text field is required').replace('_attribute_', t('Ribbon_Text', 'Ribbon text'))
@@ -137,7 +137,7 @@ var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
137
137
  var _brandFormState$resul2;
138
138
  setAlertState({
139
139
  open: true,
140
- content: brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$resul2 = brandFormState.result) === null || _brandFormState$resul2 === void 0 ? void 0 : _brandFormState$resul2.result
140
+ content: brandFormState === null || brandFormState === void 0 || (_brandFormState$resul2 = brandFormState.result) === null || _brandFormState$resul2 === void 0 ? void 0 : _brandFormState$resul2.result
141
141
  });
142
142
  }
143
143
  }, [brandFormState === null || brandFormState === void 0 ? void 0 : brandFormState.result]);
@@ -160,12 +160,12 @@ var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
160
160
  },
161
161
  accept: "image/png, image/jpeg, image/jpg",
162
162
  disabled: brandFormState.loading
163
- }, brandFormState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : !((_brandFormState$chang7 = brandFormState.changes) !== null && _brandFormState$chang7 !== void 0 && _brandFormState$chang7.logo) || ((_brandFormState$resul3 = brandFormState.result) === null || _brandFormState$resul3 === void 0 ? void 0 : _brandFormState$resul3.result) === 'Network Error' || (_brandFormState$resul4 = brandFormState.result) !== null && _brandFormState$resul4 !== void 0 && _brandFormState$resul4.error ? (brand === null || brand === void 0 ? void 0 : brand.logo) && /*#__PURE__*/_react.default.createElement("img", {
163
+ }, brandFormState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : !((_brandFormState$chang4 = brandFormState.changes) !== null && _brandFormState$chang4 !== void 0 && _brandFormState$chang4.logo) || ((_brandFormState$resul3 = brandFormState.result) === null || _brandFormState$resul3 === void 0 ? void 0 : _brandFormState$resul3.result) === 'Network Error' || (_brandFormState$resul4 = brandFormState.result) !== null && _brandFormState$resul4 !== void 0 && _brandFormState$resul4.error ? (brand === null || brand === void 0 ? void 0 : brand.logo) && /*#__PURE__*/_react.default.createElement("img", {
164
164
  src: brand === null || brand === void 0 ? void 0 : brand.logo,
165
165
  alt: "business brand logo",
166
166
  loading: "lazy"
167
- }) : (brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang8 = brandFormState.changes) === null || _brandFormState$chang8 === void 0 ? void 0 : _brandFormState$chang8.logo) && /*#__PURE__*/_react.default.createElement("img", {
168
- src: brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang9 = brandFormState.changes) === null || _brandFormState$chang9 === void 0 ? void 0 : _brandFormState$chang9.logo,
167
+ }) : (brandFormState === null || brandFormState === void 0 || (_brandFormState$chang5 = brandFormState.changes) === null || _brandFormState$chang5 === void 0 ? void 0 : _brandFormState$chang5.logo) && /*#__PURE__*/_react.default.createElement("img", {
168
+ src: brandFormState === null || brandFormState === void 0 || (_brandFormState$chang6 = brandFormState.changes) === null || _brandFormState$chang6 === void 0 ? void 0 : _brandFormState$chang6.logo,
169
169
  alt: "business brand logo",
170
170
  loading: "lazy"
171
171
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_BsCardImage.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_AND_DROP', 'Drag and drop')))), /*#__PURE__*/_react.default.createElement(_styles2.CameraIconContainer, null, /*#__PURE__*/_react.default.createElement(_FiCamera.default, null))))), brand && /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement(_styles2.Label, null, t('ID', 'ID')), /*#__PURE__*/_react.default.createElement("input", {
@@ -174,7 +174,7 @@ var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
174
174
  })), /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement(_styles2.Label, null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement("input", {
175
175
  name: "name",
176
176
  placeholder: t('WRITE_A_NAME', 'Write a name'),
177
- value: (_ref = (_brandFormState$chang10 = brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang11 = brandFormState.changes) === null || _brandFormState$chang11 === void 0 ? void 0 : _brandFormState$chang11.name) !== null && _brandFormState$chang10 !== void 0 ? _brandFormState$chang10 : brand === null || brand === void 0 ? void 0 : brand.name) !== null && _ref !== void 0 ? _ref : '',
177
+ value: (_ref = (_brandFormState$chang7 = brandFormState === null || brandFormState === void 0 || (_brandFormState$chang8 = brandFormState.changes) === null || _brandFormState$chang8 === void 0 ? void 0 : _brandFormState$chang8.name) !== null && _brandFormState$chang7 !== void 0 ? _brandFormState$chang7 : brand === null || brand === void 0 ? void 0 : brand.name) !== null && _ref !== void 0 ? _ref : '',
178
178
  onChange: function onChange(e) {
179
179
  return handleChangeItem({
180
180
  name: e.target.value,
@@ -186,7 +186,7 @@ var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
186
186
  })), brand && /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement(_styles2.Label, null, t('SLUG', 'Slug')), /*#__PURE__*/_react.default.createElement("input", {
187
187
  name: "slug",
188
188
  placeholder: t('WRITE_A_SLUG', 'Write a slug'),
189
- value: (_ref2 = (_brandFormState$chang12 = brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang13 = brandFormState.changes) === null || _brandFormState$chang13 === void 0 ? void 0 : _brandFormState$chang13.slug) !== null && _brandFormState$chang12 !== void 0 ? _brandFormState$chang12 : brand === null || brand === void 0 ? void 0 : brand.slug) !== null && _ref2 !== void 0 ? _ref2 : '',
189
+ value: (_ref2 = (_brandFormState$chang9 = brandFormState === null || brandFormState === void 0 || (_brandFormState$chang10 = brandFormState.changes) === null || _brandFormState$chang10 === void 0 ? void 0 : _brandFormState$chang10.slug) !== null && _brandFormState$chang9 !== void 0 ? _brandFormState$chang9 : brand === null || brand === void 0 ? void 0 : brand.slug) !== null && _ref2 !== void 0 ? _ref2 : '',
190
190
  onChange: handleChangeInput,
191
191
  disabled: brandFormState.loading,
192
192
  autoComplete: "off",
@@ -196,14 +196,14 @@ var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
196
196
  }
197
197
  }
198
198
  })), /*#__PURE__*/_react.default.createElement(_styles2.SwitchWrapper, null, /*#__PURE__*/_react.default.createElement("span", null, t('RIBBON', 'Ribbon')), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
199
- defaultChecked: (brand === null || brand === void 0 ? void 0 : (_brand$ribbon2 = brand.ribbon) === null || _brand$ribbon2 === void 0 ? void 0 : _brand$ribbon2.enabled) || false,
199
+ defaultChecked: (brand === null || brand === void 0 || (_brand$ribbon2 = brand.ribbon) === null || _brand$ribbon2 === void 0 ? void 0 : _brand$ribbon2.enabled) || false,
200
200
  onChange: function onChange(val) {
201
201
  return handleChangeEnable(val);
202
202
  }
203
- })), (typeof (brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang14 = brandFormState.changes) === null || _brandFormState$chang14 === void 0 ? void 0 : (_brandFormState$chang15 = _brandFormState$chang14.ribbon) === null || _brandFormState$chang15 === void 0 ? void 0 : _brandFormState$chang15.enabled) !== 'undefined' ? brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang16 = brandFormState.changes) === null || _brandFormState$chang16 === void 0 ? void 0 : (_brandFormState$chang17 = _brandFormState$chang16.ribbon) === null || _brandFormState$chang17 === void 0 ? void 0 : _brandFormState$chang17.enabled : brand === null || brand === void 0 ? void 0 : (_brand$ribbon3 = brand.ribbon) === null || _brand$ribbon3 === void 0 ? void 0 : _brand$ribbon3.enabled) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('TEXT', 'Text')), /*#__PURE__*/_react.default.createElement("input", {
203
+ })), (typeof (brandFormState === null || brandFormState === void 0 || (_brandFormState$chang11 = brandFormState.changes) === null || _brandFormState$chang11 === void 0 || (_brandFormState$chang11 = _brandFormState$chang11.ribbon) === null || _brandFormState$chang11 === void 0 ? void 0 : _brandFormState$chang11.enabled) !== 'undefined' ? brandFormState === null || brandFormState === void 0 || (_brandFormState$chang12 = brandFormState.changes) === null || _brandFormState$chang12 === void 0 || (_brandFormState$chang12 = _brandFormState$chang12.ribbon) === null || _brandFormState$chang12 === void 0 ? void 0 : _brandFormState$chang12.enabled : brand === null || brand === void 0 || (_brand$ribbon3 = brand.ribbon) === null || _brand$ribbon3 === void 0 ? void 0 : _brand$ribbon3.enabled) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('TEXT', 'Text')), /*#__PURE__*/_react.default.createElement("input", {
204
204
  name: "text",
205
205
  placeholder: t('TEXT', 'Text'),
206
- value: (_brandFormState$chang18 = brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang19 = brandFormState.changes) === null || _brandFormState$chang19 === void 0 ? void 0 : (_brandFormState$chang20 = _brandFormState$chang19.ribbon) === null || _brandFormState$chang20 === void 0 ? void 0 : _brandFormState$chang20.text) !== null && _brandFormState$chang18 !== void 0 ? _brandFormState$chang18 : brand === null || brand === void 0 ? void 0 : (_brand$ribbon4 = brand.ribbon) === null || _brand$ribbon4 === void 0 ? void 0 : _brand$ribbon4.text,
206
+ value: (_brandFormState$chang13 = brandFormState === null || brandFormState === void 0 || (_brandFormState$chang14 = brandFormState.changes) === null || _brandFormState$chang14 === void 0 || (_brandFormState$chang14 = _brandFormState$chang14.ribbon) === null || _brandFormState$chang14 === void 0 ? void 0 : _brandFormState$chang14.text) !== null && _brandFormState$chang13 !== void 0 ? _brandFormState$chang13 : brand === null || brand === void 0 || (_brand$ribbon4 = brand.ribbon) === null || _brand$ribbon4 === void 0 ? void 0 : _brand$ribbon4.text,
207
207
  onChange: function onChange(e) {
208
208
  return handleChangeRibbon({
209
209
  text: e.target.value
@@ -212,25 +212,25 @@ var BusinessBrandGENDetailUI = function BusinessBrandGENDetailUI(props) {
212
212
  disabled: brandFormState.loading,
213
213
  autoComplete: "off"
214
214
  })), /*#__PURE__*/_react.default.createElement(_styles2.ColorShapeWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.ColorWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('COLOR', 'Color')), /*#__PURE__*/_react.default.createElement(_Shared.ColorPicker, {
215
- defaultColor: (_brandFormState$chang21 = brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang22 = brandFormState.changes) === null || _brandFormState$chang22 === void 0 ? void 0 : (_brandFormState$chang23 = _brandFormState$chang22.ribbon) === null || _brandFormState$chang23 === void 0 ? void 0 : _brandFormState$chang23.color) !== null && _brandFormState$chang21 !== void 0 ? _brandFormState$chang21 : brand === null || brand === void 0 ? void 0 : (_brand$ribbon5 = brand.ribbon) === null || _brand$ribbon5 === void 0 ? void 0 : _brand$ribbon5.color,
215
+ defaultColor: (_brandFormState$chang15 = brandFormState === null || brandFormState === void 0 || (_brandFormState$chang16 = brandFormState.changes) === null || _brandFormState$chang16 === void 0 || (_brandFormState$chang16 = _brandFormState$chang16.ribbon) === null || _brandFormState$chang16 === void 0 ? void 0 : _brandFormState$chang16.color) !== null && _brandFormState$chang15 !== void 0 ? _brandFormState$chang15 : brand === null || brand === void 0 || (_brand$ribbon5 = brand.ribbon) === null || _brand$ribbon5 === void 0 ? void 0 : _brand$ribbon5.color,
216
216
  onChangeColor: function onChangeColor(color) {
217
217
  return handleChangeRibbon({
218
218
  color: color
219
219
  });
220
220
  }
221
221
  })), /*#__PURE__*/_react.default.createElement(_styles2.ShapeWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('SHAPE', 'Shape')), /*#__PURE__*/_react.default.createElement(_styles2.ShapeContentWrapper, null, _utils.shape && Object.keys(_utils.shape).map(function (key, i) {
222
- var _brandFormState$chang24, _brandFormState$chang25, _brandFormState$chang26, _brandFormState$chang27, _brand$ribbon6, _brandFormState$chang28, _brandFormState$chang29, _brandFormState$chang30, _brandFormState$chang31, _brand$ribbon7;
222
+ var _brandFormState$chang17, _brandFormState$chang18, _brand$ribbon6, _brandFormState$chang19, _brandFormState$chang20, _brand$ribbon7;
223
223
  return /*#__PURE__*/_react.default.createElement(_styles2.ShapeBoxWrapper, {
224
224
  key: i,
225
225
  shapeRect: _utils.shape[key] === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
226
226
  round: _utils.shape[key] === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape),
227
- active: brandFormState !== null && brandFormState !== void 0 && (_brandFormState$chang24 = brandFormState.changes) !== null && _brandFormState$chang24 !== void 0 && (_brandFormState$chang25 = _brandFormState$chang24.ribbon) !== null && _brandFormState$chang25 !== void 0 && _brandFormState$chang25.shape ? (brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang26 = brandFormState.changes) === null || _brandFormState$chang26 === void 0 ? void 0 : (_brandFormState$chang27 = _brandFormState$chang26.ribbon) === null || _brandFormState$chang27 === void 0 ? void 0 : _brandFormState$chang27.shape) === _utils.shape[key] : (brand === null || brand === void 0 ? void 0 : (_brand$ribbon6 = brand.ribbon) === null || _brand$ribbon6 === void 0 ? void 0 : _brand$ribbon6.shape) === _utils.shape[key],
227
+ active: brandFormState !== null && brandFormState !== void 0 && (_brandFormState$chang17 = brandFormState.changes) !== null && _brandFormState$chang17 !== void 0 && (_brandFormState$chang17 = _brandFormState$chang17.ribbon) !== null && _brandFormState$chang17 !== void 0 && _brandFormState$chang17.shape ? (brandFormState === null || brandFormState === void 0 || (_brandFormState$chang18 = brandFormState.changes) === null || _brandFormState$chang18 === void 0 || (_brandFormState$chang18 = _brandFormState$chang18.ribbon) === null || _brandFormState$chang18 === void 0 ? void 0 : _brandFormState$chang18.shape) === _utils.shape[key] : (brand === null || brand === void 0 || (_brand$ribbon6 = brand.ribbon) === null || _brand$ribbon6 === void 0 ? void 0 : _brand$ribbon6.shape) === _utils.shape[key],
228
228
  onClick: function onClick() {
229
229
  return handleChangeRibbon({
230
230
  shape: _utils.shape[key]
231
231
  });
232
232
  }
233
- }, /*#__PURE__*/_react.default.createElement("div", null), (brandFormState !== null && brandFormState !== void 0 && (_brandFormState$chang28 = brandFormState.changes) !== null && _brandFormState$chang28 !== void 0 && (_brandFormState$chang29 = _brandFormState$chang28.ribbon) !== null && _brandFormState$chang29 !== void 0 && _brandFormState$chang29.shape ? (brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$chang30 = brandFormState.changes) === null || _brandFormState$chang30 === void 0 ? void 0 : (_brandFormState$chang31 = _brandFormState$chang30.ribbon) === null || _brandFormState$chang31 === void 0 ? void 0 : _brandFormState$chang31.shape) === _utils.shape[key] : (brand === null || brand === void 0 ? void 0 : (_brand$ribbon7 = brand.ribbon) === null || _brand$ribbon7 === void 0 ? void 0 : _brand$ribbon7.shape) === _utils.shape[key]) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null));
233
+ }, /*#__PURE__*/_react.default.createElement("div", null), (brandFormState !== null && brandFormState !== void 0 && (_brandFormState$chang19 = brandFormState.changes) !== null && _brandFormState$chang19 !== void 0 && (_brandFormState$chang19 = _brandFormState$chang19.ribbon) !== null && _brandFormState$chang19 !== void 0 && _brandFormState$chang19.shape ? (brandFormState === null || brandFormState === void 0 || (_brandFormState$chang20 = brandFormState.changes) === null || _brandFormState$chang20 === void 0 || (_brandFormState$chang20 = _brandFormState$chang20.ribbon) === null || _brandFormState$chang20 === void 0 ? void 0 : _brandFormState$chang20.shape) === _utils.shape[key] : (brand === null || brand === void 0 || (_brand$ribbon7 = brand.ribbon) === null || _brand$ribbon7 === void 0 ? void 0 : _brand$ribbon7.shape) === _utils.shape[key]) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null));
234
234
  }))))), /*#__PURE__*/_react.default.createElement(_styles2.SaveBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
235
235
  borderRadius: "7.6px",
236
236
  color: "primary",
@@ -111,7 +111,7 @@ var BusinessBrandListingUI = function BusinessBrandListingUI(props) {
111
111
  };
112
112
  var handleClickBrand = function handleClickBrand(e, brandId, isInitialRender) {
113
113
  var _e$target;
114
- var isInvalid = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.brand_enable_control');
114
+ var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.brand_enable_control');
115
115
  if (isInvalid) return;
116
116
  handleOpenSideBar(brandId);
117
117
  if (!isInitialRender) {
@@ -128,11 +128,11 @@ var BusinessBrandListingUI = function BusinessBrandListingUI(props) {
128
128
  };
129
129
  (0, _react.useEffect)(function () {
130
130
  var _brandListState$brand;
131
- if ((brandListState === null || brandListState === void 0 ? void 0 : (_brandListState$brand = brandListState.brands) === null || _brandListState$brand === void 0 ? void 0 : _brandListState$brand.length) > 0) {
131
+ if ((brandListState === null || brandListState === void 0 || (_brandListState$brand = brandListState.brands) === null || _brandListState$brand === void 0 ? void 0 : _brandListState$brand.length) > 0) {
132
132
  var brands = [];
133
133
  if (searchValue) {
134
134
  var _brandListState$brand2;
135
- brands = brandListState === null || brandListState === void 0 ? void 0 : (_brandListState$brand2 = brandListState.brands) === null || _brandListState$brand2 === void 0 ? void 0 : _brandListState$brand2.filter(function (brand) {
135
+ brands = brandListState === null || brandListState === void 0 || (_brandListState$brand2 = brandListState.brands) === null || _brandListState$brand2 === void 0 ? void 0 : _brandListState$brand2.filter(function (brand) {
136
136
  var _brand$name;
137
137
  return (_brand$name = brand.name) === null || _brand$name === void 0 ? void 0 : _brand$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
138
138
  });
@@ -145,7 +145,7 @@ var BusinessBrandListingUI = function BusinessBrandListingUI(props) {
145
145
  (0, _react.useEffect)(function () {
146
146
  if ((brandList === null || brandList === void 0 ? void 0 : brandList.length) > 0 && selectedBrand) {
147
147
  var _brandListState$brand3;
148
- var brand = brandListState === null || brandListState === void 0 ? void 0 : (_brandListState$brand3 = brandListState.brands) === null || _brandListState$brand3 === void 0 ? void 0 : _brandListState$brand3.find(function (item) {
148
+ var brand = brandListState === null || brandListState === void 0 || (_brandListState$brand3 = brandListState.brands) === null || _brandListState$brand3 === void 0 ? void 0 : _brandListState$brand3.find(function (item) {
149
149
  return item.id === (selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.id);
150
150
  });
151
151
  setSelectedBrand(brand);
@@ -157,7 +157,7 @@ var BusinessBrandListingUI = function BusinessBrandListingUI(props) {
157
157
  var _brandFormState$resul2;
158
158
  setAlertState({
159
159
  open: true,
160
- content: brandFormState === null || brandFormState === void 0 ? void 0 : (_brandFormState$resul2 = brandFormState.result) === null || _brandFormState$resul2 === void 0 ? void 0 : _brandFormState$resul2.result
160
+ content: brandFormState === null || brandFormState === void 0 || (_brandFormState$resul2 = brandFormState.result) === null || _brandFormState$resul2 === void 0 ? void 0 : _brandFormState$resul2.result
161
161
  });
162
162
  }
163
163
  }, [brandFormState === null || brandFormState === void 0 ? void 0 : brandFormState.result]);
@@ -168,7 +168,7 @@ var BusinessBrandListingUI = function BusinessBrandListingUI(props) {
168
168
  if (id) {
169
169
  handleClickBrand(null, Number(id), true);
170
170
  }
171
- }, [brandListState === null || brandListState === void 0 ? void 0 : (_brandListState$brand5 = brandListState.brands) === null || _brandListState$brand5 === void 0 ? void 0 : _brandListState$brand5.length]);
171
+ }, [brandListState === null || brandListState === void 0 || (_brandListState$brand5 = brandListState.brands) === null || _brandListState$brand5 === void 0 ? void 0 : _brandListState$brand5.length]);
172
172
  var handleTabClick = function handleTabClick(tab, isInitialRender) {
173
173
  setSelectedType(tab);
174
174
  if (!isInitialRender) {
@@ -219,7 +219,7 @@ var BusinessBrandListingUI = function BusinessBrandListingUI(props) {
219
219
  height: 20
220
220
  }))))));
221
221
  }) : brandList.map(function (brand) {
222
- var _theme$images, _theme$images$dummies;
222
+ var _theme$images;
223
223
  return /*#__PURE__*/_react.default.createElement(_styles2.BrandBody, {
224
224
  key: brand.id,
225
225
  active: brand.id === (selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.id),
@@ -227,7 +227,7 @@ var BusinessBrandListingUI = function BusinessBrandListingUI(props) {
227
227
  return handleClickBrand(e, brand.id);
228
228
  }
229
229
  }, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.BrandGeneralInfo, null, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles2.Image, {
230
- bgimage: optimizeImage((brand === null || brand === void 0 ? void 0 : brand.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo), 'h_50,c_limit')
230
+ bgimage: optimizeImage((brand === null || brand === void 0 ? void 0 : brand.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_50,c_limit')
231
231
  })), /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", null, brand === null || brand === void 0 ? void 0 : brand.name)))), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.ActionsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.EnableWrapper, {
232
232
  className: "brand_enable_control"
233
233
  }, /*#__PURE__*/_react.default.createElement("span", null, t('ENABLE', 'Enable')), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
@@ -106,8 +106,8 @@ var BusinessDeliveryDetailsUI = function BusinessDeliveryDetailsUI(props) {
106
106
  var _business$delivery_ti, _business$delivery_ti2;
107
107
  setTimeList();
108
108
  setCurDeliveryTime({
109
- hour: business !== null && business !== void 0 && business.delivery_time ? (business === null || business === void 0 ? void 0 : (_business$delivery_ti = business.delivery_time) === null || _business$delivery_ti === void 0 ? void 0 : _business$delivery_ti.split(':')[0]) * 1 + '' : '0',
110
- minute: business !== null && business !== void 0 && business.delivery_time ? (business === null || business === void 0 ? void 0 : (_business$delivery_ti2 = business.delivery_time) === null || _business$delivery_ti2 === void 0 ? void 0 : _business$delivery_ti2.split(':')[1]) * 1 + '' : '0'
109
+ hour: business !== null && business !== void 0 && business.delivery_time ? (business === null || business === void 0 || (_business$delivery_ti = business.delivery_time) === null || _business$delivery_ti === void 0 ? void 0 : _business$delivery_ti.split(':')[0]) * 1 + '' : '0',
110
+ minute: business !== null && business !== void 0 && business.delivery_time ? (business === null || business === void 0 || (_business$delivery_ti2 = business.delivery_time) === null || _business$delivery_ti2 === void 0 ? void 0 : _business$delivery_ti2.split(':')[1]) * 1 + '' : '0'
111
111
  });
112
112
  }, []);
113
113
  (0, _react.useEffect)(function () {
@@ -159,7 +159,7 @@ var BusinessDeliveryDetailsUI = function BusinessDeliveryDetailsUI(props) {
159
159
  isSecondIcon: true,
160
160
  notAsync: true,
161
161
  placeholder: t('SELECT_PRIORITY', 'Select priority'),
162
- defaultValue: (_business$order_defau = business === null || business === void 0 ? void 0 : (_business$order_defau2 = business.order_default_priority) === null || _business$order_defau2 === void 0 ? void 0 : _business$order_defau2.toString()) !== null && _business$order_defau !== void 0 ? _business$order_defau : '',
162
+ defaultValue: (_business$order_defau = business === null || business === void 0 || (_business$order_defau2 = business.order_default_priority) === null || _business$order_defau2 === void 0 ? void 0 : _business$order_defau2.toString()) !== null && _business$order_defau !== void 0 ? _business$order_defau : '',
163
163
  options: priorityList,
164
164
  onChange: function onChange(val) {
165
165
  return handleChangeForm({
@@ -30,7 +30,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
30
30
  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; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  var DriversGroupsListingDetailsUI = function DriversGroupsListingDetailsUI(props) {
33
- var _history$location2, _history$location2$st;
33
+ var _history$location2;
34
34
  var driversGroupsState = props.driversGroupsState,
35
35
  selectedGroupList = props.selectedGroupList,
36
36
  handleSelectGroup = props.handleSelectGroup,
@@ -76,11 +76,11 @@ var DriversGroupsListingDetailsUI = function DriversGroupsListingDetailsUI(props
76
76
  setIsTourOpen(true);
77
77
  };
78
78
  (0, _react.useEffect)(function () {
79
- var _history$location, _history$location$sta;
80
- if ((_history$location = history.location) !== null && _history$location !== void 0 && (_history$location$sta = _history$location.state) !== null && _history$location$sta !== void 0 && _history$location$sta.isFromTourDriversGroup) {
79
+ var _history$location;
80
+ if ((_history$location = history.location) !== null && _history$location !== void 0 && (_history$location = _history$location.state) !== null && _history$location !== void 0 && _history$location.isFromTourDriversGroup) {
81
81
  handleOpenTour();
82
82
  }
83
- }, [(_history$location2 = history.location) === null || _history$location2 === void 0 ? void 0 : (_history$location2$st = _history$location2.state) === null || _history$location2$st === void 0 ? void 0 : _history$location2$st.isFromTourDriversGroup]);
83
+ }, [(_history$location2 = history.location) === null || _history$location2 === void 0 || (_history$location2 = _history$location2.state) === null || _history$location2 === void 0 ? void 0 : _history$location2.isFromTourDriversGroup]);
84
84
  var getDataFromStorage = /*#__PURE__*/function () {
85
85
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
86
86
  var value;
@@ -100,7 +100,7 @@ var BusinessDeliveryZoneDetailsUI = function BusinessDeliveryZoneDetailsUI(props
100
100
  handleTabClick('information');
101
101
  }
102
102
  }, []);
103
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement(_styles.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, zoneState !== null && zoneState !== void 0 && zoneState.zone ? zoneState === null || zoneState === void 0 ? void 0 : (_zoneState$zone = zoneState.zone) === null || _zoneState$zone === void 0 ? void 0 : _zoneState$zone.name : t('ZONE_DELIVERY_SETTINGS', 'Zone delivery settings')), /*#__PURE__*/_react.default.createElement(_styles.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
103
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement(_styles.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, zoneState !== null && zoneState !== void 0 && zoneState.zone ? zoneState === null || zoneState === void 0 || (_zoneState$zone = zoneState.zone) === null || _zoneState$zone === void 0 ? void 0 : _zoneState$zone.name : t('ZONE_DELIVERY_SETTINGS', 'Zone delivery settings')), /*#__PURE__*/_react.default.createElement(_styles.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
104
104
  menuAlign: theme !== null && theme !== void 0 && theme.rtl ? 'left' : 'right',
105
105
  title: /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ThreeDots, null),
106
106
  id: theme !== null && theme !== void 0 && theme.rtl ? 'dropdown-menu-align-left' : 'dropdown-menu-align-right'
@@ -21,7 +21,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
21
21
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  var BusinessDeliveryZoneInformation = function BusinessDeliveryZoneInformation(props) {
24
- var _zone$businesses, _zone$pivot, _ref, _formState$changes$na, _formState$changes2, _formState$changes3, _ref2, _formState$changes$mi, _formState$changes4, _ref3, _formState$changes$pr, _formState$changes5, _configState$configs2, _configState$configs3, _ref4, _formState$changes$da, _formState$changes6, _formState$changes6$d, _zone$data, _configState$configs6, _configState$configs7, _formState$changes7, _formState$changes7$d, _configState$configs8, _configState$configs9, _formState$changes8;
24
+ var _zone$businesses, _zone$pivot, _ref, _formState$changes$na, _formState$changes2, _formState$changes3, _ref2, _formState$changes$mi, _formState$changes4, _ref3, _formState$changes$pr, _formState$changes5, _configState$configs2, _ref4, _formState$changes$da, _formState$changes6, _zone$data, _configState$configs4, _formState$changes7, _configState$configs5, _formState$changes8;
25
25
  var business = props.business,
26
26
  zone = props.zone,
27
27
  businessZones = props.businessZones,
@@ -73,7 +73,7 @@ var BusinessDeliveryZoneInformation = function BusinessDeliveryZoneInformation(p
73
73
  isShowMap = _useState12[0],
74
74
  setIsShowMap = _useState12[1];
75
75
  var kmlRef = (0, _react.useRef)(null);
76
- var isMyZone = zone !== null && zone !== void 0 && (_zone$businesses = zone.businesses) !== null && _zone$businesses !== void 0 && _zone$businesses.length ? (zone === null || zone === void 0 ? void 0 : (_zone$pivot = zone.pivot) === null || _zone$pivot === void 0 ? void 0 : _zone$pivot.business_id) === parseInt(zone === null || zone === void 0 ? void 0 : zone.business_id) : true;
76
+ var isMyZone = zone !== null && zone !== void 0 && (_zone$businesses = zone.businesses) !== null && _zone$businesses !== void 0 && _zone$businesses.length ? (zone === null || zone === void 0 || (_zone$pivot = zone.pivot) === null || _zone$pivot === void 0 ? void 0 : _zone$pivot.business_id) === parseInt(zone === null || zone === void 0 ? void 0 : zone.business_id) : true;
77
77
  var typeOptions = [{
78
78
  value: 1,
79
79
  content: t('CIRCLE', 'Circle')
@@ -154,11 +154,11 @@ var BusinessDeliveryZoneInformation = function BusinessDeliveryZoneInformation(p
154
154
  }
155
155
  }, [clearState]);
156
156
  (0, _react.useEffect)(function () {
157
- var _configState$configs, _configState$configs$;
157
+ var _configState$configs;
158
158
  if (zoneType === 2 || zoneType === 4) return;
159
159
  var content = '<div style="width: 90px; height: 30px">' + '<span>Radius: </span>';
160
160
  content += parseNumber((zoneData === null || zoneData === void 0 ? void 0 : zoneData.radio) || (zoneData === null || zoneData === void 0 ? void 0 : zoneData.distance));
161
- content += "<span>".concat(zoneType === 5 ? configState === null || configState === void 0 ? void 0 : (_configState$configs = configState.configs) === null || _configState$configs === void 0 ? void 0 : (_configState$configs$ = _configState$configs.distance_unit) === null || _configState$configs$ === void 0 ? void 0 : _configState$configs$.value : 'km', "</span>") + '</div>';
161
+ content += "<span>".concat(zoneType === 5 ? configState === null || configState === void 0 || (_configState$configs = configState.configs) === null || _configState$configs === void 0 || (_configState$configs = _configState$configs.distance_unit) === null || _configState$configs === void 0 ? void 0 : _configState$configs.value : 'km', "</span>") + '</div>';
162
162
  setInfoContentString(content);
163
163
  }, [zoneData, zoneType]);
164
164
  (0, _react.useEffect)(function () {
@@ -223,15 +223,15 @@ var BusinessDeliveryZoneInformation = function BusinessDeliveryZoneInformation(p
223
223
  })
224
224
  }))), zoneType === 5 && /*#__PURE__*/_react.default.createElement(_styles2.Row, null, /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('DISTANCE_FROM_STORE', 'Distance from store')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
225
225
  disabled: !isMyZone,
226
- placeholder: "1 - 99 ".concat(configState === null || configState === void 0 ? void 0 : (_configState$configs2 = configState.configs) === null || _configState$configs2 === void 0 ? void 0 : (_configState$configs3 = _configState$configs2.distance_unit) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value),
226
+ placeholder: "1 - 99 ".concat(configState === null || configState === void 0 || (_configState$configs2 = configState.configs) === null || _configState$configs2 === void 0 || (_configState$configs2 = _configState$configs2.distance_unit) === null || _configState$configs2 === void 0 ? void 0 : _configState$configs2.value),
227
227
  name: "distance",
228
- value: (_ref4 = (_formState$changes$da = (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : (_formState$changes6$d = _formState$changes6.data) === null || _formState$changes6$d === void 0 ? void 0 : _formState$changes6$d.distance) !== null && _formState$changes$da !== void 0 ? _formState$changes$da : zone === null || zone === void 0 ? void 0 : (_zone$data = zone.data) === null || _zone$data === void 0 ? void 0 : _zone$data.distance) !== null && _ref4 !== void 0 ? _ref4 : '',
228
+ value: (_ref4 = (_formState$changes$da = (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 || (_formState$changes6 = _formState$changes6.data) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.distance) !== null && _formState$changes$da !== void 0 ? _formState$changes$da : zone === null || zone === void 0 || (_zone$data = zone.data) === null || _zone$data === void 0 ? void 0 : _zone$data.distance) !== null && _ref4 !== void 0 ? _ref4 : '',
229
229
  onInput: function onInput(e) {
230
230
  e.target.value = Number(e.target.value) > 99 || e.target.value === '.' || (e.target.value.match(/\./g) || []).length > 1 ? e.target.value.slice(0, -1) : e.target.value.match("^[".concat(e.target.value === '0' ? '1' : '0', "-9/.]{1,9}$"));
231
231
  },
232
232
  onChange: function onChange(e) {
233
- var _configState$configs4, _configState$configs5;
234
- return handleChangeInput(e, configState === null || configState === void 0 ? void 0 : (_configState$configs4 = configState.configs) === null || _configState$configs4 === void 0 ? void 0 : (_configState$configs5 = _configState$configs4.distance_unit) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value);
233
+ var _configState$configs3;
234
+ return handleChangeInput(e, configState === null || configState === void 0 || (_configState$configs3 = configState.configs) === null || _configState$configs3 === void 0 || (_configState$configs3 = _configState$configs3.distance_unit) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value);
235
235
  },
236
236
  ref: register({
237
237
  required: t('DISTANCE_FROM_STORE', 'Distance from store')
@@ -240,15 +240,15 @@ var BusinessDeliveryZoneInformation = function BusinessDeliveryZoneInformation(p
240
240
  name: "address",
241
241
  defaultValue: business === null || business === void 0 ? void 0 : business.address,
242
242
  disabled: true
243
- })), zoneType !== 4 && isShowMap && (configState !== null && configState !== void 0 && (_configState$configs6 = configState.configs) !== null && _configState$configs6 !== void 0 && (_configState$configs7 = _configState$configs6.google_maps_api_key) !== null && _configState$configs7 !== void 0 && _configState$configs7.value ? /*#__PURE__*/_react.default.createElement(_styles2.WrapperMap, null, zoneType !== 5 && isMyZone && /*#__PURE__*/_react.default.createElement("button", {
243
+ })), zoneType !== 4 && isShowMap && (configState !== null && configState !== void 0 && (_configState$configs4 = configState.configs) !== null && _configState$configs4 !== void 0 && (_configState$configs4 = _configState$configs4.google_maps_api_key) !== null && _configState$configs4 !== void 0 && _configState$configs4.value ? /*#__PURE__*/_react.default.createElement(_styles2.WrapperMap, null, zoneType !== 5 && isMyZone && /*#__PURE__*/_react.default.createElement("button", {
244
244
  type: "button",
245
245
  onClick: function onClick() {
246
246
  return setClearState(true);
247
247
  }
248
248
  }, t('CLEAR', 'Clear')), /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.BusinessZoneGoogleMaps, {
249
- distance: (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : (_formState$changes7$d = _formState$changes7.data) === null || _formState$changes7$d === void 0 ? void 0 : _formState$changes7$d.distance,
249
+ distance: (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 || (_formState$changes7 = _formState$changes7.data) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.distance,
250
250
  disabled: isMyZone,
251
- apiKey: configState === null || configState === void 0 ? void 0 : (_configState$configs8 = configState.configs) === null || _configState$configs8 === void 0 ? void 0 : (_configState$configs9 = _configState$configs8.google_maps_api_key) === null || _configState$configs9 === void 0 ? void 0 : _configState$configs9.value,
251
+ apiKey: configState === null || configState === void 0 || (_configState$configs5 = configState.configs) === null || _configState$configs5 === void 0 || (_configState$configs5 = _configState$configs5.google_maps_api_key) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value,
252
252
  mapControls: googleMapsControls,
253
253
  location: business === null || business === void 0 ? void 0 : business.location,
254
254
  clearState: clearState,
@@ -53,7 +53,7 @@ var BusinessDeliveryZoneList = function BusinessDeliveryZoneList(props) {
53
53
  };
54
54
  var handleOpenZone = function handleOpenZone(e, zone, isInitialRender) {
55
55
  var _e$target;
56
- var isInvalid = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.zone-enabled');
56
+ var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.zone-enabled');
57
57
  if (isInvalid) return;
58
58
  setCurZone(zone);
59
59
  setIsExtendExtraOpen(true);
@@ -69,7 +69,7 @@ var BusinessDeliveryZoneList = function BusinessDeliveryZoneList(props) {
69
69
  var zoneId = query.get('zone');
70
70
  if (zoneId) {
71
71
  var _business$zones;
72
- var initZone = business === null || business === void 0 ? void 0 : (_business$zones = business.zones) === null || _business$zones === void 0 ? void 0 : _business$zones.find(function (zone) {
72
+ var initZone = business === null || business === void 0 || (_business$zones = business.zones) === null || _business$zones === void 0 ? void 0 : _business$zones.find(function (zone) {
73
73
  return zone.id === Number(zoneId);
74
74
  });
75
75
  if (initZone) {
@@ -84,7 +84,7 @@ var BusinessDeliveryZoneList = function BusinessDeliveryZoneList(props) {
84
84
  onChange: function onChange(e) {
85
85
  return handleChangeAllZoneState(e.target.checked);
86
86
  }
87
- }))), /*#__PURE__*/_react.default.createElement("th", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement("th", null, t('MINIMUM', 'Minimum')), /*#__PURE__*/_react.default.createElement("th", null, t('PRICE', 'Price')), /*#__PURE__*/_react.default.createElement("th", null))), business === null || business === void 0 ? void 0 : (_business$zones2 = business.zones) === null || _business$zones2 === void 0 ? void 0 : _business$zones2.filter(function (zone) {
87
+ }))), /*#__PURE__*/_react.default.createElement("th", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement("th", null, t('MINIMUM', 'Minimum')), /*#__PURE__*/_react.default.createElement("th", null, t('PRICE', 'Price')), /*#__PURE__*/_react.default.createElement("th", null))), business === null || business === void 0 || (_business$zones2 = business.zones) === null || _business$zones2 === void 0 ? void 0 : _business$zones2.filter(function (zone) {
88
88
  return (zone === null || zone === void 0 ? void 0 : zone.type) !== 3;
89
89
  }).map(function (zone) {
90
90
  return /*#__PURE__*/_react.default.createElement(_styles2.ZoneTbody, {
@@ -44,7 +44,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
44
44
  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; } }
45
45
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // import { BusinessPublishing } from '../BusinessPublishing'
46
46
  var BusinessDetailsUI = function BusinessDetailsUI(props) {
47
- var _businessState$busine, _businessState$busine2, _businessState$busine3, _businessState$busine4, _businessState$busine5, _businessState$busine6, _businessState$busine7;
47
+ var _businessState$busine, _businessState$busine2, _businessState$busine3, _businessState$busine4, _businessState$busine5, _businessState$busine6;
48
48
  var open = props.open,
49
49
  businessId = props.businessId,
50
50
  businessState = props.businessState,
@@ -100,7 +100,7 @@ var BusinessDetailsUI = function BusinessDetailsUI(props) {
100
100
  _useState10 = _slicedToArray(_useState9, 2),
101
101
  alertState = _useState10[0],
102
102
  setAlertState = _useState10[1];
103
- var spoonityConfig = businessState === null || businessState === void 0 ? void 0 : (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : (_businessState$busine2 = _businessState$busine.configs) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.find(function (config) {
103
+ var spoonityConfig = businessState === null || businessState === void 0 || (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 || (_businessState$busine = _businessState$busine.configs) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.find(function (config) {
104
104
  return config.key === 'spoonity_integration_api_key';
105
105
  });
106
106
  var isAdmin = (user === null || user === void 0 ? void 0 : user.level) === 0;
@@ -219,7 +219,7 @@ var BusinessDetailsUI = function BusinessDetailsUI(props) {
219
219
  handleAddBusinessOwner: handleAddBusinessOwner,
220
220
  formState: formState,
221
221
  setFormState: setFormState,
222
- businessTypes: businessTypes || (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.types),
222
+ businessTypes: businessTypes || (businessState === null || businessState === void 0 || (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.types),
223
223
  handleUpdateBusinessClick: handleUpdateBusinessClick,
224
224
  setBusinessTypes: setBusinessTypes,
225
225
  handleSuccessAddBusinessItem: handleSuccessAddBusinessItem,
@@ -255,8 +255,8 @@ var BusinessDetailsUI = function BusinessDetailsUI(props) {
255
255
  business: businessState === null || businessState === void 0 ? void 0 : businessState.business,
256
256
  handleUpdateBusinessClick: handleUpdateBusinessClick
257
257
  }), selectedItem === 'promotions' && /*#__PURE__*/_react.default.createElement(_BusinessPromotionList.BusinessPromotionList, {
258
- promotions: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.offers,
259
- businessId: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.id,
258
+ promotions: businessState === null || businessState === void 0 || (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.offers,
259
+ businessId: businessState === null || businessState === void 0 || (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.id,
260
260
  business: businessState === null || businessState === void 0 ? void 0 : businessState.business,
261
261
  setIsExtendExtraOpen: setIsExtendExtraOpen,
262
262
  handleSuccessUpdate: handleUpdateBusinessState
@@ -268,8 +268,8 @@ var BusinessDetailsUI = function BusinessDetailsUI(props) {
268
268
  handleUpdateBusinessClick: handleUpdateBusinessClick,
269
269
  handleUpdatePreorderConfigs: handleUpdatePreorderConfigs
270
270
  }), selectedItem === 'custom_fields' && /*#__PURE__*/_react.default.createElement(_BusinessCustomFields.BusinessCustomFields, {
271
- businessId: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.id,
272
- metafields: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine7 = businessState.business) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.metafields,
271
+ businessId: businessState === null || businessState === void 0 || (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.id,
272
+ metafields: businessState === null || businessState === void 0 || (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.metafields,
273
273
  handleSuccessAddMetaFields: function handleSuccessAddMetaFields(result) {
274
274
  return handleSuccessAddBusinessItem('metafields', result);
275
275
  },
@@ -89,7 +89,7 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
89
89
  var handleSubmit = function handleSubmit() {
90
90
  var _formState$changes, _formState$changes2;
91
91
  var errors = [];
92
- if ((formState === null || formState === void 0 ? void 0 : (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.name) !== undefined && !(formState !== null && formState !== void 0 && (_formState$changes2 = formState.changes) !== null && _formState$changes2 !== void 0 && _formState$changes2.name)) {
92
+ if ((formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.name) !== undefined && !(formState !== null && formState !== void 0 && (_formState$changes2 = formState.changes) !== null && _formState$changes2 !== void 0 && _formState$changes2.name)) {
93
93
  errors.push(t('VALIDATION_ERROR_REQUIRED', 'Name is required').replace('_attribute_', t('NAME', 'Name')));
94
94
  }
95
95
  if (errors.length > 0) {
@@ -106,11 +106,11 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
106
106
  var options = businessList === null || businessList === void 0 ? void 0 : businessList.businesses.filter(function (option) {
107
107
  return option === null || option === void 0 ? void 0 : option.name.toLocaleLowerCase().includes(businessSearchVal.toLocaleLowerCase());
108
108
  }).map(function (business) {
109
- var _theme$images, _theme$images$dummies;
109
+ var _theme$images;
110
110
  return {
111
111
  value: business === null || business === void 0 ? void 0 : business.id,
112
112
  content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, /*#__PURE__*/_react.default.createElement(_styles2.Logo, {
113
- src: (business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo)
113
+ src: (business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo)
114
114
  }), business === null || business === void 0 ? void 0 : business.name)
115
115
  };
116
116
  });
@@ -120,9 +120,9 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
120
120
  var _formState$changes3;
121
121
  if (!(businessList !== null && businessList !== void 0 && businessList.loading) && (formState !== null && formState !== void 0 && (_formState$changes3 = formState.changes) !== null && _formState$changes3 !== void 0 && _formState$changes3.business_id || selectedDevice !== null && selectedDevice !== void 0 && selectedDevice.business_id)) {
122
122
  var _businessList$busines;
123
- var owners = businessList === null || businessList === void 0 ? void 0 : (_businessList$busines = businessList.businesses.find(function (business) {
123
+ var owners = businessList === null || businessList === void 0 || (_businessList$busines = businessList.businesses.find(function (business) {
124
124
  var _formState$changes4;
125
- return business.id === ((formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.business_id) || (selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.business_id));
125
+ return business.id === ((formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.business_id) || (selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.business_id));
126
126
  })) === null || _businessList$busines === void 0 ? void 0 : _businessList$busines.owners;
127
127
  if ((owners === null || owners === void 0 ? void 0 : owners.length) > 0) {
128
128
  var options = owners.filter(function (option) {
@@ -138,14 +138,14 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
138
138
  setOwnerOptions(options);
139
139
  }
140
140
  }
141
- }, [userSearchVal, selectedDevice, formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.business_id, businessList]);
141
+ }, [userSearchVal, selectedDevice, formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.business_id, businessList]);
142
142
  (0, _react.useEffect)(function () {
143
143
  var _formState$result;
144
144
  if (formState !== null && formState !== void 0 && (_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.error) {
145
145
  var _formState$result2;
146
146
  setAlertState({
147
147
  open: true,
148
- content: formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
148
+ content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
149
149
  });
150
150
  }
151
151
  }, [formState === null || formState === void 0 ? void 0 : formState.result]);
@@ -159,7 +159,7 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
159
159
  return deleteDevice();
160
160
  }
161
161
  })))), /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
162
- value: (_formState$changes$na = formState === null || formState === void 0 ? void 0 : (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.name,
162
+ value: (_formState$changes$na = formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.name,
163
163
  onChange: function onChange(e) {
164
164
  return handleChangeFormState({
165
165
  name: e.target.value
@@ -170,7 +170,7 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
170
170
  }) : /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
171
171
  options: businessOptions,
172
172
  className: "select",
173
- defaultValue: (_formState$changes$bu = formState === null || formState === void 0 ? void 0 : (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.business_id) !== null && _formState$changes$bu !== void 0 ? _formState$changes$bu : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.business_id,
173
+ defaultValue: (_formState$changes$bu = formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.business_id) !== null && _formState$changes$bu !== void 0 ? _formState$changes$bu : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.business_id,
174
174
  placeholder: t('SELECT_OPTION', 'Select an option'),
175
175
  onChange: function onChange(value) {
176
176
  return handleChangeFormState({
@@ -184,12 +184,12 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
184
184
  handleChangeSearch: function handleChangeSearch(val) {
185
185
  return setBusinessSearchVal(val);
186
186
  }
187
- })), ((formState === null || formState === void 0 ? void 0 : (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.business_id) || (selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.business_id)) && /*#__PURE__*/_react.default.createElement(_styles2.SelectWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('BUSINESS_OWNER', 'Business owner')), businessList !== null && businessList !== void 0 && businessList.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
187
+ })), ((formState === null || formState === void 0 || (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.business_id) || (selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.business_id)) && /*#__PURE__*/_react.default.createElement(_styles2.SelectWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('BUSINESS_OWNER', 'Business owner')), businessList !== null && businessList !== void 0 && businessList.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
188
188
  height: 44
189
189
  }) : /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
190
190
  options: ownerOptions,
191
191
  className: "select",
192
- defaultValue: (_formState$changes$us = formState === null || formState === void 0 ? void 0 : (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.user_id) !== null && _formState$changes$us !== void 0 ? _formState$changes$us : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.user_id,
192
+ defaultValue: (_formState$changes$us = formState === null || formState === void 0 || (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.user_id) !== null && _formState$changes$us !== void 0 ? _formState$changes$us : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.user_id,
193
193
  placeholder: t('SELECT_OPTION', 'Select an option'),
194
194
  onChange: function onChange(value) {
195
195
  return handleChangeFormState({
@@ -204,7 +204,7 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
204
204
  return setUserSearchVal(val);
205
205
  }
206
206
  })), selectedDevice && /*#__PURE__*/_react.default.createElement(_styles2.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('DEVICE_CODE', 'Device Code')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
207
- value: (_formState$changes$co = formState === null || formState === void 0 ? void 0 : (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.code) !== null && _formState$changes$co !== void 0 ? _formState$changes$co : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.code,
207
+ value: (_formState$changes$co = formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.code) !== null && _formState$changes$co !== void 0 ? _formState$changes$co : selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.code,
208
208
  onChange: function onChange(e) {
209
209
  return handleChangeFormState({
210
210
  code: e.target.value
@@ -231,7 +231,7 @@ var BusinessDeviceDetailUI = function BusinessDeviceDetailUI(props) {
231
231
  var BusinessDeviceDetail = function BusinessDeviceDetail(props) {
232
232
  var businessDeviceDetailProps = _objectSpread(_objectSpread({}, props), {}, {
233
233
  UIComponent: BusinessDeviceDetailUI,
234
- propsToFetch: ['id', 'name', 'logo', 'owners']
234
+ propsToFetch: ['id', 'name', 'logo', 'owners', 'address']
235
235
  });
236
236
  return /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.BusinessDeviceDetail, businessDeviceDetailProps);
237
237
  };