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
@@ -184,7 +184,7 @@ var ProductGalleryUI = function ProductGalleryUI(props) {
184
184
  accept: "image/png, image/jpeg, image/jpg",
185
185
  disabled: changesState.loading || productGalleryState.loading
186
186
  }, changesState !== null && changesState !== void 0 && (_changesState$changes = changesState.changes) !== null && _changesState$changes !== void 0 && _changesState$changes.file && (changesState === null || changesState === void 0 ? void 0 : changesState.itemId) === photo.id ? /*#__PURE__*/_react.default.createElement("img", {
187
- src: changesState === null || changesState === void 0 ? void 0 : (_changesState$changes2 = changesState.changes) === null || _changesState$changes2 === void 0 ? void 0 : _changesState$changes2.file,
187
+ src: changesState === null || changesState === void 0 || (_changesState$changes2 = changesState.changes) === null || _changesState$changes2 === void 0 ? void 0 : _changesState$changes2.file,
188
188
  alt: "option image",
189
189
  loading: "lazy"
190
190
  }) : (photo === null || photo === void 0 ? void 0 : photo.file) && /*#__PURE__*/_react.default.createElement("img", {
@@ -226,8 +226,8 @@ var ProductGalleryUI = function ProductGalleryUI(props) {
226
226
  },
227
227
  accept: "image/png, image/jpeg, image/jpg",
228
228
  disabled: changesState.loading || productGalleryState.loading
229
- }, (changesState === null || changesState === void 0 ? void 0 : (_changesState$changes3 = changesState.changes) === null || _changesState$changes3 === void 0 ? void 0 : _changesState$changes3.file) && (changesState === null || changesState === void 0 ? void 0 : changesState.itemId) === null && /*#__PURE__*/_react.default.createElement("img", {
230
- src: changesState === null || changesState === void 0 ? void 0 : (_changesState$changes4 = changesState.changes) === null || _changesState$changes4 === void 0 ? void 0 : _changesState$changes4.file,
229
+ }, (changesState === null || changesState === void 0 || (_changesState$changes3 = changesState.changes) === null || _changesState$changes3 === void 0 ? void 0 : _changesState$changes3.file) && (changesState === null || changesState === void 0 ? void 0 : changesState.itemId) === null && /*#__PURE__*/_react.default.createElement("img", {
230
+ src: changesState === null || changesState === void 0 || (_changesState$changes4 = changesState.changes) === null || _changesState$changes4 === void 0 ? void 0 : _changesState$changes4.file,
231
231
  alt: "option image",
232
232
  loading: "lazy"
233
233
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.PlusCircle, null), /*#__PURE__*/_react.default.createElement("p", null, t('DRAG_AND_DROP', 'Drag and drop')))))), /*#__PURE__*/_react.default.createElement(_styles2.GalleryItemBottom, {
@@ -64,7 +64,7 @@ var ProductIngredientDetailsUI = function ProductIngredientDetailsUI(props) {
64
64
  if (ingredientState.loading || Object.keys(changesState).length === 0 || keyCode !== 13) return;
65
65
  if (isAddMode) handleAddIngredient();else handleUpdateIngredient();
66
66
  };
67
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, isAddMode ? t('ADD_INGREDIENT', 'Add ingredient') : (_ref = (_changesState$name = changesState === null || changesState === void 0 ? void 0 : changesState.name) !== null && _changesState$name !== void 0 ? _changesState$name : ingredientState === null || ingredientState === void 0 ? void 0 : (_ingredientState$ingr = ingredientState.ingredient) === null || _ingredientState$ingr === void 0 ? void 0 : _ingredientState$ingr.name) !== null && _ref !== void 0 ? _ref : ''), /*#__PURE__*/_react.default.createElement("div", null, !isAddMode && /*#__PURE__*/_react.default.createElement(_styles2.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
67
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, isAddMode ? t('ADD_INGREDIENT', 'Add ingredient') : (_ref = (_changesState$name = changesState === null || changesState === void 0 ? void 0 : changesState.name) !== null && _changesState$name !== void 0 ? _changesState$name : ingredientState === null || ingredientState === void 0 || (_ingredientState$ingr = ingredientState.ingredient) === null || _ingredientState$ingr === void 0 ? void 0 : _ingredientState$ingr.name) !== null && _ref !== void 0 ? _ref : ''), /*#__PURE__*/_react.default.createElement("div", null, !isAddMode && /*#__PURE__*/_react.default.createElement(_styles2.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
68
68
  className: "product_actions",
69
69
  menuAlign: theme !== null && theme !== void 0 && theme.rtl ? 'left' : 'right',
70
70
  title: /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ThreeDots, null),
@@ -81,7 +81,7 @@ var ProductIngredientDetailsUI = function ProductIngredientDetailsUI(props) {
81
81
  }, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.XLg, null)))), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
82
82
  name: "name",
83
83
  placeholder: t('NAME', 'Name'),
84
- value: (_ref2 = (_changesState$name2 = changesState === null || changesState === void 0 ? void 0 : changesState.name) !== null && _changesState$name2 !== void 0 ? _changesState$name2 : ingredientState === null || ingredientState === void 0 ? void 0 : (_ingredientState$ingr2 = ingredientState.ingredient) === null || _ingredientState$ingr2 === void 0 ? void 0 : _ingredientState$ingr2.name) !== null && _ref2 !== void 0 ? _ref2 : '',
84
+ value: (_ref2 = (_changesState$name2 = changesState === null || changesState === void 0 ? void 0 : changesState.name) !== null && _changesState$name2 !== void 0 ? _changesState$name2 : ingredientState === null || ingredientState === void 0 || (_ingredientState$ingr2 = ingredientState.ingredient) === null || _ingredientState$ingr2 === void 0 ? void 0 : _ingredientState$ingr2.name) !== null && _ref2 !== void 0 ? _ref2 : '',
85
85
  onChange: handleChangeInput,
86
86
  onKeyDown: checkKeyDown
87
87
  })), /*#__PURE__*/_react.default.createElement(_styles.Button, {
@@ -84,7 +84,7 @@ var ProductStepUI = function ProductStepUI(props) {
84
84
  }), step === 3 && option === 2 && (actionState === null || actionState === void 0 ? void 0 : actionState.loading) && /*#__PURE__*/_react.default.createElement(_styles2.ImportMenuContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('WE_ARE_IMPORTING_YOUR_MENU', 'We are importing your menu.')), /*#__PURE__*/_react.default.createElement(_styles2.ImageContent, null, /*#__PURE__*/_react.default.createElement("img", {
85
85
  src: theme.images.general.importMenu,
86
86
  alt: ""
87
- }))), step === 3 && option === 2 && !(actionState !== null && actionState !== void 0 && actionState.loading) && (actionState === null || actionState === void 0 ? void 0 : (_actionState$content = actionState.content) === null || _actionState$content === void 0 ? void 0 : _actionState$content.products) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.ImportMenuContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('YOUR_MENU_HAS_BEEN_IMPORTED', 'Your menu has been imported')), /*#__PURE__*/_react.default.createElement(_styles2.ImageContent, null, /*#__PURE__*/_react.default.createElement("img", {
87
+ }))), step === 3 && option === 2 && !(actionState !== null && actionState !== void 0 && actionState.loading) && (actionState === null || actionState === void 0 || (_actionState$content = actionState.content) === null || _actionState$content === void 0 ? void 0 : _actionState$content.products) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.ImportMenuContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('YOUR_MENU_HAS_BEEN_IMPORTED', 'Your menu has been imported')), /*#__PURE__*/_react.default.createElement(_styles2.ImageContent, null, /*#__PURE__*/_react.default.createElement("img", {
88
88
  src: theme.images.general.importedMenu,
89
89
  alt: ""
90
90
  })), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
@@ -92,7 +92,7 @@ var ProductStepUI = function ProductStepUI(props) {
92
92
  onClick: function onClick() {
93
93
  return handleCheckMenu();
94
94
  }
95
- }, t('CHECK_MENU', 'Check menu')))), step === 3 && option === 2 && !(actionState !== null && actionState !== void 0 && actionState.loading) && (actionState === null || actionState === void 0 ? void 0 : (_actionState$content2 = actionState.content) === null || _actionState$content2 === void 0 ? void 0 : _actionState$content2.products) === 0 && /*#__PURE__*/_react.default.createElement(_styles2.ImportMenuContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('YOUR_MENU_COULDNT__BE_IMPORTED', 'Your menu couldn\'t be imported')), /*#__PURE__*/_react.default.createElement(_styles2.ImageContent, null, /*#__PURE__*/_react.default.createElement("img", {
95
+ }, t('CHECK_MENU', 'Check menu')))), step === 3 && option === 2 && !(actionState !== null && actionState !== void 0 && actionState.loading) && (actionState === null || actionState === void 0 || (_actionState$content2 = actionState.content) === null || _actionState$content2 === void 0 ? void 0 : _actionState$content2.products) === 0 && /*#__PURE__*/_react.default.createElement(_styles2.ImportMenuContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('YOUR_MENU_COULDNT__BE_IMPORTED', 'Your menu couldn\'t be imported')), /*#__PURE__*/_react.default.createElement(_styles2.ImageContent, null, /*#__PURE__*/_react.default.createElement("img", {
96
96
  src: theme.images.general.importMenu,
97
97
  alt: ""
98
98
  })), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
@@ -42,7 +42,8 @@ var ProductSummary = function ProductSummary(props) {
42
42
  handleDeleteProduct = props.handleDeleteProduct,
43
43
  showProductOption = props.showProductOption,
44
44
  isExpand = props.isExpand,
45
- setIsExpand = props.setIsExpand;
45
+ setIsExpand = props.setIsExpand,
46
+ handleDuplicateProduct = props.handleDuplicateProduct;
46
47
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
47
48
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
48
49
  t = _useLanguage2[1];
@@ -128,7 +129,7 @@ var ProductSummary = function ProductSummary(props) {
128
129
  var _productState$product;
129
130
  if (productState !== null && productState !== void 0 && (_productState$product = productState.product) !== null && _productState$product !== void 0 && _productState$product.price) {
130
131
  var _productState$product2, _productState$product3, _productState$product4;
131
- return ((productState === null || productState === void 0 ? void 0 : (_productState$product2 = productState.product) === null || _productState$product2 === void 0 ? void 0 : _productState$product2.price) - (productState === null || productState === void 0 ? void 0 : (_productState$product3 = productState.product) === null || _productState$product3 === void 0 ? void 0 : _productState$product3.cost_price)) * 100 / (productState === null || productState === void 0 ? void 0 : (_productState$product4 = productState.product) === null || _productState$product4 === void 0 ? void 0 : _productState$product4.price);
132
+ return ((productState === null || productState === void 0 || (_productState$product2 = productState.product) === null || _productState$product2 === void 0 ? void 0 : _productState$product2.price) - (productState === null || productState === void 0 || (_productState$product3 = productState.product) === null || _productState$product3 === void 0 ? void 0 : _productState$product3.cost_price)) * 100 / (productState === null || productState === void 0 || (_productState$product4 = productState.product) === null || _productState$product4 === void 0 ? void 0 : _productState$product4.price);
132
133
  } else {
133
134
  return 100;
134
135
  }
@@ -146,8 +147,8 @@ var ProductSummary = function ProductSummary(props) {
146
147
  };
147
148
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.ProductDetailsContainer, {
148
149
  disabled: productState.loading
149
- }, /*#__PURE__*/_react.default.createElement(_styles2.DetailsHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.LeftHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.ProductName, null, productState === null || productState === void 0 ? void 0 : (_productState$product5 = productState.product) === null || _productState$product5 === void 0 ? void 0 : _productState$product5.name), /*#__PURE__*/_react.default.createElement(_Switch.Switch, {
150
- defaultChecked: (productState === null || productState === void 0 ? void 0 : (_productState$product6 = productState.product) === null || _productState$product6 === void 0 ? void 0 : _productState$product6.enabled) || false,
150
+ }, /*#__PURE__*/_react.default.createElement(_styles2.DetailsHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.LeftHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.ProductName, null, productState === null || productState === void 0 || (_productState$product5 = productState.product) === null || _productState$product5 === void 0 ? void 0 : _productState$product5.name), /*#__PURE__*/_react.default.createElement(_Switch.Switch, {
151
+ defaultChecked: (productState === null || productState === void 0 || (_productState$product6 = productState.product) === null || _productState$product6 === void 0 ? void 0 : _productState$product6.enabled) || false,
151
152
  onChange: handleChangeProductActiveState
152
153
  })), /*#__PURE__*/_react.default.createElement(_styles2.RightHeader, null, /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
153
154
  color: "black",
@@ -164,6 +165,8 @@ var ProductSummary = function ProductSummary(props) {
164
165
  return setIsProductPreview(true);
165
166
  }
166
167
  }, t('PREVIEW', 'Preview')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
168
+ onClick: handleDuplicateProduct
169
+ }, t('DUPLICATE', 'Duplicate')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
167
170
  onClick: function onClick() {
168
171
  return handleShowOption('custom_fields');
169
172
  }
@@ -181,8 +184,8 @@ var ProductSummary = function ProductSummary(props) {
181
184
  return isEditMode ? setIsEditMode(false) : actionSidebar(false);
182
185
  }
183
186
  }, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.XLg, null)))), /*#__PURE__*/_react.default.createElement(_styles2.ProductSummaryContent, null, /*#__PURE__*/_react.default.createElement(_styles2.ProductImageWrapper, null, productState !== null && productState !== void 0 && (_productState$product7 = productState.product) !== null && _productState$product7 !== void 0 && _productState$product7.images ? /*#__PURE__*/_react.default.createElement(_styles2.ProductImage, {
184
- bgimage: optimizeImage(productState === null || productState === void 0 ? void 0 : (_productState$product8 = productState.product) === null || _productState$product8 === void 0 ? void 0 : _productState$product8.images, 'h_200,c_limit')
185
- }) : /*#__PURE__*/_react.default.createElement(_BiImage.default, null)), (productState === null || productState === void 0 ? void 0 : (_productState$product9 = productState.product) === null || _productState$product9 === void 0 ? void 0 : _productState$product9.type) !== 'service' && /*#__PURE__*/_react.default.createElement(_styles2.ProductSales, null, /*#__PURE__*/_react.default.createElement(_Shared.ProgressRing, {
187
+ bgimage: optimizeImage(productState === null || productState === void 0 || (_productState$product8 = productState.product) === null || _productState$product8 === void 0 ? void 0 : _productState$product8.images, 'h_200,c_limit')
188
+ }) : /*#__PURE__*/_react.default.createElement(_BiImage.default, null)), (productState === null || productState === void 0 || (_productState$product9 = productState.product) === null || _productState$product9 === void 0 ? void 0 : _productState$product9.type) !== 'service' && /*#__PURE__*/_react.default.createElement(_styles2.ProductSales, null, /*#__PURE__*/_react.default.createElement(_Shared.ProgressRing, {
186
189
  isShowPercent: true,
187
190
  percent: getPercentage(),
188
191
  size: 70,
@@ -193,9 +196,9 @@ var ProductSummary = function ProductSummary(props) {
193
196
  children: true,
194
197
  spin: false,
195
198
  transitionDuration: 200
196
- }), /*#__PURE__*/_react.default.createElement(_styles2.RolWrapper, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice((productState === null || productState === void 0 ? void 0 : (_productState$product10 = productState.product) === null || _productState$product10 === void 0 ? void 0 : _productState$product10.price) - (productState === null || productState === void 0 ? void 0 : (_productState$product11 = productState.product) === null || _productState$product11 === void 0 ? void 0 : _productState$product11.cost_price))), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_SALES_ROI', 'Product sales ROI'))))), /*#__PURE__*/_react.default.createElement(_styles2.ProductDetailsContent, null, (productState === null || productState === void 0 ? void 0 : (_productState$product12 = productState.product) === null || _productState$product12 === void 0 ? void 0 : _productState$product12.type) !== 'service' && /*#__PURE__*/_react.default.createElement(_styles2.ProductDetails, null, /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 ? void 0 : (_productState$product13 = productState.product) === null || _productState$product13 === void 0 ? void 0 : _productState$product13.price)), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_SELLING_PRICE', 'Selling price'))), (productState === null || productState === void 0 ? void 0 : (_productState$product14 = productState.product) === null || _productState$product14 === void 0 ? void 0 : _productState$product14.in_offer) && /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 ? void 0 : (_productState$product15 = productState.product) === null || _productState$product15 === void 0 ? void 0 : _productState$product15.offer_price)), /*#__PURE__*/_react.default.createElement("p", null, t('REGULAR_PRICE', 'Regular Price'))), (productState === null || productState === void 0 ? void 0 : (_productState$product16 = productState.product) === null || _productState$product16 === void 0 ? void 0 : _productState$product16.cost_price) && /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 ? void 0 : (_productState$product17 = productState.product) === null || _productState$product17 === void 0 ? void 0 : _productState$product17.cost_price)), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_COST', 'Product cost'))), (productState === null || productState === void 0 ? void 0 : (_productState$product18 = productState.product) === null || _productState$product18 === void 0 ? void 0 : _productState$product18.cost_offer_price) && /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 ? void 0 : (_productState$product19 = productState.product) === null || _productState$product19 === void 0 ? void 0 : _productState$product19.cost_offer_price)), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_REGULAR_COST', 'Product cost - regular price')))), (productState === null || productState === void 0 ? void 0 : (_productState$product20 = productState.product) === null || _productState$product20 === void 0 ? void 0 : _productState$product20.type) === 'service' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.PriceDuration, null, /*#__PURE__*/_react.default.createElement("span", null, parsePrice(productState === null || productState === void 0 ? void 0 : (_productState$product21 = productState.product) === null || _productState$product21 === void 0 ? void 0 : _productState$product21.price)), /*#__PURE__*/_react.default.createElement("span", {
199
+ }), /*#__PURE__*/_react.default.createElement(_styles2.RolWrapper, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice((productState === null || productState === void 0 || (_productState$product10 = productState.product) === null || _productState$product10 === void 0 ? void 0 : _productState$product10.price) - (productState === null || productState === void 0 || (_productState$product11 = productState.product) === null || _productState$product11 === void 0 ? void 0 : _productState$product11.cost_price))), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_SALES_ROI', 'Product sales ROI'))))), /*#__PURE__*/_react.default.createElement(_styles2.ProductDetailsContent, null, (productState === null || productState === void 0 || (_productState$product12 = productState.product) === null || _productState$product12 === void 0 ? void 0 : _productState$product12.type) !== 'service' && /*#__PURE__*/_react.default.createElement(_styles2.ProductDetails, null, /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 || (_productState$product13 = productState.product) === null || _productState$product13 === void 0 ? void 0 : _productState$product13.price)), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_SELLING_PRICE', 'Selling price'))), (productState === null || productState === void 0 || (_productState$product14 = productState.product) === null || _productState$product14 === void 0 ? void 0 : _productState$product14.in_offer) && /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 || (_productState$product15 = productState.product) === null || _productState$product15 === void 0 ? void 0 : _productState$product15.offer_price)), /*#__PURE__*/_react.default.createElement("p", null, t('REGULAR_PRICE', 'Regular Price'))), (productState === null || productState === void 0 || (_productState$product16 = productState.product) === null || _productState$product16 === void 0 ? void 0 : _productState$product16.cost_price) && /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 || (_productState$product17 = productState.product) === null || _productState$product17 === void 0 ? void 0 : _productState$product17.cost_price)), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_COST', 'Product cost'))), (productState === null || productState === void 0 || (_productState$product18 = productState.product) === null || _productState$product18 === void 0 ? void 0 : _productState$product18.cost_offer_price) && /*#__PURE__*/_react.default.createElement(_styles2.FieldsItem, null, /*#__PURE__*/_react.default.createElement("h4", null, parsePrice(productState === null || productState === void 0 || (_productState$product19 = productState.product) === null || _productState$product19 === void 0 ? void 0 : _productState$product19.cost_offer_price)), /*#__PURE__*/_react.default.createElement("p", null, t('PRODUCT_REGULAR_COST', 'Product cost - regular price')))), (productState === null || productState === void 0 || (_productState$product20 = productState.product) === null || _productState$product20 === void 0 ? void 0 : _productState$product20.type) === 'service' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.PriceDuration, null, /*#__PURE__*/_react.default.createElement("span", null, parsePrice(productState === null || productState === void 0 || (_productState$product21 = productState.product) === null || _productState$product21 === void 0 ? void 0 : _productState$product21.price)), /*#__PURE__*/_react.default.createElement("span", {
197
200
  className: "dot"
198
- }, "\u2022"), /*#__PURE__*/_react.default.createElement("span", null, productState === null || productState === void 0 ? void 0 : (_productState$product22 = productState.product) === null || _productState$product22 === void 0 ? void 0 : _productState$product22.duration, "min")), (productState === null || productState === void 0 ? void 0 : (_productState$product23 = productState.product) === null || _productState$product23 === void 0 ? void 0 : _productState$product23.description) && /*#__PURE__*/_react.default.createElement(_styles2.ProductDescription, null, productState === null || productState === void 0 ? void 0 : (_productState$product24 = productState.product) === null || _productState$product24 === void 0 ? void 0 : _productState$product24.description)), /*#__PURE__*/_react.default.createElement(_styles2.ProductConfigsContainer, null, ((productState === null || productState === void 0 ? void 0 : (_productState$product25 = productState.product) === null || _productState$product25 === void 0 ? void 0 : _productState$product25.type) === 'service' ? serviceConfigOptions : productConfigOptions).map(function (config) {
201
+ }, "\u2022"), /*#__PURE__*/_react.default.createElement("span", null, productState === null || productState === void 0 || (_productState$product22 = productState.product) === null || _productState$product22 === void 0 ? void 0 : _productState$product22.duration, "min")), (productState === null || productState === void 0 || (_productState$product23 = productState.product) === null || _productState$product23 === void 0 ? void 0 : _productState$product23.description) && /*#__PURE__*/_react.default.createElement(_styles2.ProductDescription, null, productState === null || productState === void 0 || (_productState$product24 = productState.product) === null || _productState$product24 === void 0 ? void 0 : _productState$product24.description)), /*#__PURE__*/_react.default.createElement(_styles2.ProductConfigsContainer, null, ((productState === null || productState === void 0 || (_productState$product25 = productState.product) === null || _productState$product25 === void 0 ? void 0 : _productState$product25.type) === 'service' ? serviceConfigOptions : productConfigOptions).map(function (config) {
199
202
  return /*#__PURE__*/_react.default.createElement(_styles2.ProductConfigOption, {
200
203
  key: config.key,
201
204
  active: showOption === config.key,
@@ -183,8 +183,8 @@ var ProductTagDetailsUI = function ProductTagDetailsUI(props) {
183
183
  src: optimizeImage((_tagState$tag3 = tagState.tag) === null || _tagState$tag3 === void 0 ? void 0 : _tagState$tag3.image, 'h_200,c_limit'),
184
184
  alt: "tag image",
185
185
  loading: "lazy"
186
- }) : (formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.image) && /*#__PURE__*/_react.default.createElement("img", {
187
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.image,
186
+ }) : (formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.image) && /*#__PURE__*/_react.default.createElement("img", {
187
+ src: formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.image,
188
188
  alt: "tag image",
189
189
  loading: "lazy"
190
190
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Image, null)))))), /*#__PURE__*/_react.default.createElement(_styles2.FormController, null, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
@@ -60,7 +60,7 @@ var ProductTagsListUI = function ProductTagsListUI(props) {
60
60
  setIsOpenTagDetail = _useState4[1];
61
61
  var handleOpenProductTagDetail = function handleOpenProductTagDetail(e, tag, isInitialRender) {
62
62
  var _e$target;
63
- var isInvalid = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.product-tag-checkbox');
63
+ var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.product-tag-checkbox');
64
64
  if (isInvalid) return;
65
65
  setSelectedTag(tag);
66
66
  setIsExtendExtraOpen(true);
@@ -84,7 +84,7 @@ var ProductVideosUI = function ProductVideosUI(props) {
84
84
  }, [changesState === null || changesState === void 0 ? void 0 : changesState.changes]);
85
85
  var handleAddVideo = function handleAddVideo() {
86
86
  var _changesState$changes;
87
- var _url = changesState === null || changesState === void 0 ? void 0 : (_changesState$changes = changesState.changes) === null || _changesState$changes === void 0 ? void 0 : _changesState$changes.video;
87
+ var _url = changesState === null || changesState === void 0 || (_changesState$changes = changesState.changes) === null || _changesState$changes === void 0 ? void 0 : _changesState$changes.video;
88
88
  var validId = validationVideoId(_url);
89
89
  if (validId) {
90
90
  fetch('https://www.youtube.com/oembed?url=https://youtube.com/watch?v=' + validId + '&format=json').then(function (response) {
@@ -41,7 +41,7 @@ var RestaurantSelectGuide = function RestaurantSelectGuide(props) {
41
41
  var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
42
42
  _useConfig2 = _slicedToArray(_useConfig, 1),
43
43
  configs = _useConfig2[0].configs;
44
- var googleMapsApiKey = configs === null || configs === void 0 ? void 0 : (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
44
+ var googleMapsApiKey = configs === null || configs === void 0 || (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
45
45
  var handleSubmit = function handleSubmit() {
46
46
  setStep(3);
47
47
  handleImport();
@@ -76,7 +76,7 @@ var RestaurantSelectGuide = function RestaurantSelectGuide(props) {
76
76
  },
77
77
  defaultValue: (_orderingBusiness$add = orderingBusiness === null || orderingBusiness === void 0 ? void 0 : orderingBusiness.address) !== null && _orderingBusiness$add !== void 0 ? _orderingBusiness$add : '',
78
78
  autoComplete: "new-password",
79
- countryCode: (configs === null || configs === void 0 ? void 0 : (_configs$country_auto = configs.country_autocomplete) === null || _configs$country_auto === void 0 ? void 0 : _configs$country_auto.value) || '*'
79
+ countryCode: (configs === null || configs === void 0 || (_configs$country_auto = configs.country_autocomplete) === null || _configs$country_auto === void 0 ? void 0 : _configs$country_auto.value) || '*'
80
80
  })), businessListState.loading && /*#__PURE__*/_react.default.createElement(_styles2.SelectWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
81
81
  height: 15,
82
82
  width: 100
@@ -386,14 +386,14 @@ var SelectPosGuideUI = function SelectPosGuideUI(props) {
386
386
  };
387
387
  var handleContinue = function handleContinue() {
388
388
  var _formState$changes, _formState$changes2, _formState$changes3;
389
- if (!(formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.pos) || (formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.pos) === 'other' && hasOther) {
389
+ if (!(formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.pos) || (formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.pos) === 'other' && hasOther) {
390
390
  setAlertState({
391
391
  open: true,
392
392
  content: t('POS_REQUIRED', 'POS is required')
393
393
  });
394
394
  return;
395
395
  }
396
- if ((formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.pos) === 'other') {
396
+ if ((formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.pos) === 'other') {
397
397
  setHasOther(true);
398
398
  return;
399
399
  }
@@ -416,7 +416,7 @@ var SelectPosGuideUI = function SelectPosGuideUI(props) {
416
416
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, !hasOther ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h2", null, t('SELECT_YOUR_POS', 'Select your POS')), /*#__PURE__*/_react.default.createElement(_styles2.SelectPosWrapper, null, /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
417
417
  options: typeOptions,
418
418
  className: "select",
419
- defaultValue: (formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.pos) || '',
419
+ defaultValue: (formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.pos) || '',
420
420
  placeholder: t('SELECT_YOUR_POS', 'Select your POS'),
421
421
  onChange: function onChange(value) {
422
422
  return changeFormState({
@@ -436,7 +436,7 @@ var SelectPosGuideUI = function SelectPosGuideUI(props) {
436
436
  var _formState$changes5;
437
437
  return /*#__PURE__*/_react.default.createElement(_styles2.PosItem, {
438
438
  key: idx,
439
- active: (formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.pos) === item.key,
439
+ active: (formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.pos) === item.key,
440
440
  onClick: function onClick() {
441
441
  return changeFormState({
442
442
  pos: item.key
@@ -28,7 +28,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
28
28
  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; } }
29
29
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
30
30
  var SeoOptions = function SeoOptions(props) {
31
- var _formState$changes3, _formState$result, _formState$changes4, _formState$changes5, _formState$changes6, _formState$result2, _formState$result3, _formState$result3$re, _ref, _formState$changes$se, _formState$changes7, _formState$result4, _formState$result5, _formState$result5$re, _ref2, _formState$changes$se2, _formState$changes8, _formState$result6, _formState$result7, _formState$result7$re, _ref3, _formState$changes$se3, _formState$changes9, _formState$result8, _formState$result9, _formState$result9$re, _ref4, _formState$changes$sl, _formState$changes10;
31
+ var _formState$changes3, _formState$result, _formState$changes4, _formState$changes5, _formState$changes6, _formState$result2, _formState$result3, _ref, _formState$changes$se, _formState$changes7, _formState$result4, _formState$result5, _ref2, _formState$changes$se2, _formState$changes8, _formState$result6, _formState$result7, _ref3, _formState$changes$se3, _formState$changes9, _formState$result8, _formState$result9, _ref4, _formState$changes$sl, _formState$changes10;
32
32
  var data = props.data,
33
33
  formState = props.formState,
34
34
  setFormState = props.setFormState,
@@ -160,7 +160,7 @@ var SeoOptions = function SeoOptions(props) {
160
160
  if (formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.slug) {
161
161
  var _formState$changes2;
162
162
  var format = /[ `!@#$%^&*()+\-=[\]{};':"\\|,.<>/?~]/;
163
- if (format.test(formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.slug)) {
163
+ if (format.test(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.slug)) {
164
164
  setAlertState({
165
165
  open: true,
166
166
  content: [t('SLUG_NOT_ALLOWED_SPECIAL_CHARACTERS', 'The slug is not allowed special characters.')]
@@ -205,18 +205,18 @@ var SeoOptions = function SeoOptions(props) {
205
205
  src: optimizeImage(data === null || data === void 0 ? void 0 : data.seo_image, 'h_200,c_limit'),
206
206
  alt: "business image",
207
207
  loading: "lazy"
208
- }) : (formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.seo_image) && /*#__PURE__*/_react.default.createElement("img", {
209
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.seo_image,
208
+ }) : (formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.seo_image) && /*#__PURE__*/_react.default.createElement("img", {
209
+ src: formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.seo_image,
210
210
  alt: "business image",
211
211
  loading: "lazy"
212
212
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, {
213
- isImage: (formState === null || formState === void 0 ? void 0 : (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.seo_image) || (data === null || data === void 0 ? void 0 : data.seo_image)
213
+ isImage: (formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.seo_image) || (data === null || data === void 0 ? void 0 : data.seo_image)
214
214
  }, /*#__PURE__*/_react.default.createElement(_styles2.CameraWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Camera, null)), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Image, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_DROP', 'Drag and Drop')))))))), /*#__PURE__*/_react.default.createElement(_styles2.UseSameInfoWrapper, null, /*#__PURE__*/_react.default.createElement("span", {
215
215
  onClick: handleUseSameInfo
216
216
  }, t('USE_SAME_PRODUCT_INFORMATION', 'Use the same as main product information'))), /*#__PURE__*/_react.default.createElement(_styles2.WrapperShortDescription, null, /*#__PURE__*/_react.default.createElement("label", null, t('SEO_TITLE', 'SEO Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
217
217
  name: "seo_title",
218
218
  ref: titleRef,
219
- defaultValue: formState !== null && formState !== void 0 && (_formState$result2 = formState.result) !== null && _formState$result2 !== void 0 && _formState$result2.result ? formState === null || formState === void 0 ? void 0 : (_formState$result3 = formState.result) === null || _formState$result3 === void 0 ? void 0 : (_formState$result3$re = _formState$result3.result) === null || _formState$result3$re === void 0 ? void 0 : _formState$result3$re.seo_title : (_ref = (_formState$changes$se = formState === null || formState === void 0 ? void 0 : (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.seo_title) !== null && _formState$changes$se !== void 0 ? _formState$changes$se : data === null || data === void 0 ? void 0 : data.seo_title) !== null && _ref !== void 0 ? _ref : '',
219
+ defaultValue: formState !== null && formState !== void 0 && (_formState$result2 = formState.result) !== null && _formState$result2 !== void 0 && _formState$result2.result ? formState === null || formState === void 0 || (_formState$result3 = formState.result) === null || _formState$result3 === void 0 || (_formState$result3 = _formState$result3.result) === null || _formState$result3 === void 0 ? void 0 : _formState$result3.seo_title : (_ref = (_formState$changes$se = formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.seo_title) !== null && _formState$changes$se !== void 0 ? _formState$changes$se : data === null || data === void 0 ? void 0 : data.seo_title) !== null && _ref !== void 0 ? _ref : '',
220
220
  onChange: function onChange(e) {
221
221
  if (isBusinessSeo) handleChangeInput(e);
222
222
  if (isProductSeo || isCategorySeo) handleProductCategoryChangeInput(e);
@@ -226,7 +226,7 @@ var SeoOptions = function SeoOptions(props) {
226
226
  name: "seo_description",
227
227
  ref: descriptionRef,
228
228
  rows: 4,
229
- defaultValue: formState !== null && formState !== void 0 && (_formState$result4 = formState.result) !== null && _formState$result4 !== void 0 && _formState$result4.result ? formState === null || formState === void 0 ? void 0 : (_formState$result5 = formState.result) === null || _formState$result5 === void 0 ? void 0 : (_formState$result5$re = _formState$result5.result) === null || _formState$result5$re === void 0 ? void 0 : _formState$result5$re.seo_description : (_ref2 = (_formState$changes$se2 = formState === null || formState === void 0 ? void 0 : (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.seo_description) !== null && _formState$changes$se2 !== void 0 ? _formState$changes$se2 : data === null || data === void 0 ? void 0 : data.seo_description) !== null && _ref2 !== void 0 ? _ref2 : '',
229
+ defaultValue: formState !== null && formState !== void 0 && (_formState$result4 = formState.result) !== null && _formState$result4 !== void 0 && _formState$result4.result ? formState === null || formState === void 0 || (_formState$result5 = formState.result) === null || _formState$result5 === void 0 || (_formState$result5 = _formState$result5.result) === null || _formState$result5 === void 0 ? void 0 : _formState$result5.seo_description : (_ref2 = (_formState$changes$se2 = formState === null || formState === void 0 || (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.seo_description) !== null && _formState$changes$se2 !== void 0 ? _formState$changes$se2 : data === null || data === void 0 ? void 0 : data.seo_description) !== null && _ref2 !== void 0 ? _ref2 : '',
230
230
  onChange: function onChange(e) {
231
231
  if (isBusinessSeo) handleChangeInput(e);
232
232
  if (isProductSeo || isCategorySeo) handleProductCategoryChangeInput(e);
@@ -234,7 +234,7 @@ var SeoOptions = function SeoOptions(props) {
234
234
  placeholder: t('SEO_DESCRIPTION', 'SEO Description')
235
235
  })), isProductSeo && /*#__PURE__*/_react.default.createElement(_styles2.WrapperDescription, null, /*#__PURE__*/_react.default.createElement("label", null, t('SEO_KEYWORDS', 'SEO Keywords')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
236
236
  name: "seo_keywords",
237
- defaultValue: formState !== null && formState !== void 0 && (_formState$result6 = formState.result) !== null && _formState$result6 !== void 0 && _formState$result6.result ? formState === null || formState === void 0 ? void 0 : (_formState$result7 = formState.result) === null || _formState$result7 === void 0 ? void 0 : (_formState$result7$re = _formState$result7.result) === null || _formState$result7$re === void 0 ? void 0 : _formState$result7$re.seo_keywords : (_ref3 = (_formState$changes$se3 = formState === null || formState === void 0 ? void 0 : (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.seo_keywords) !== null && _formState$changes$se3 !== void 0 ? _formState$changes$se3 : data === null || data === void 0 ? void 0 : data.seo_keywords) !== null && _ref3 !== void 0 ? _ref3 : '',
237
+ defaultValue: formState !== null && formState !== void 0 && (_formState$result6 = formState.result) !== null && _formState$result6 !== void 0 && _formState$result6.result ? formState === null || formState === void 0 || (_formState$result7 = formState.result) === null || _formState$result7 === void 0 || (_formState$result7 = _formState$result7.result) === null || _formState$result7 === void 0 ? void 0 : _formState$result7.seo_keywords : (_ref3 = (_formState$changes$se3 = formState === null || formState === void 0 || (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.seo_keywords) !== null && _formState$changes$se3 !== void 0 ? _formState$changes$se3 : data === null || data === void 0 ? void 0 : data.seo_keywords) !== null && _ref3 !== void 0 ? _ref3 : '',
238
238
  onChange: function onChange(e) {
239
239
  if (isBusinessSeo) handleChangeInput(e);
240
240
  if (isProductSeo || isCategorySeo) handleProductCategoryChangeInput(e);
@@ -243,7 +243,7 @@ var SeoOptions = function SeoOptions(props) {
243
243
  })), /*#__PURE__*/_react.default.createElement(_styles2.WrapperDescription, null, /*#__PURE__*/_react.default.createElement("label", null, t('SLUG', 'Slug')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
244
244
  name: "slug",
245
245
  placeholder: t('SLUG', 'Slug'),
246
- defaultValue: formState !== null && formState !== void 0 && (_formState$result8 = formState.result) !== null && _formState$result8 !== void 0 && _formState$result8.result ? formState === null || formState === void 0 ? void 0 : (_formState$result9 = formState.result) === null || _formState$result9 === void 0 ? void 0 : (_formState$result9$re = _formState$result9.result) === null || _formState$result9$re === void 0 ? void 0 : _formState$result9$re.slug : (_ref4 = (_formState$changes$sl = formState === null || formState === void 0 ? void 0 : (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.slug) !== null && _formState$changes$sl !== void 0 ? _formState$changes$sl : data === null || data === void 0 ? void 0 : data.slug) !== null && _ref4 !== void 0 ? _ref4 : '',
246
+ defaultValue: formState !== null && formState !== void 0 && (_formState$result8 = formState.result) !== null && _formState$result8 !== void 0 && _formState$result8.result ? formState === null || formState === void 0 || (_formState$result9 = formState.result) === null || _formState$result9 === void 0 || (_formState$result9 = _formState$result9.result) === null || _formState$result9 === void 0 ? void 0 : _formState$result9.slug : (_ref4 = (_formState$changes$sl = formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.slug) !== null && _formState$changes$sl !== void 0 ? _formState$changes$sl : data === null || data === void 0 ? void 0 : data.slug) !== null && _ref4 !== void 0 ? _ref4 : '',
247
247
  onChange: function onChange(e) {
248
248
  if (isBusinessSeo) handleChangeInput(e);
249
249
  if (isProductSeo || isCategorySeo) handleProductCategoryChangeInput(e);
@@ -241,7 +241,7 @@ var ServiceDetail = function ServiceDetail(props) {
241
241
  var _formState$result2;
242
242
  setAlertState({
243
243
  open: true,
244
- content: formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
244
+ content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
245
245
  });
246
246
  }
247
247
  }, [formState === null || formState === void 0 ? void 0 : formState.result]);
@@ -302,8 +302,8 @@ var ServiceDetail = function ServiceDetail(props) {
302
302
  src: optimizeImage(product === null || product === void 0 ? void 0 : product.images, 'h_200,c_limit'),
303
303
  alt: "product image",
304
304
  loading: "lazy"
305
- }) : (formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.images) && /*#__PURE__*/_react.default.createElement("img", {
306
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.images,
305
+ }) : (formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.images) && /*#__PURE__*/_react.default.createElement("img", {
306
+ src: formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.images,
307
307
  alt: "product image",
308
308
  loading: "lazy"
309
309
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_BiImage.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_DROP_IMAGE_HERE', 'Put your image here'))))))), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('Name_V2', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
@@ -316,10 +316,10 @@ var ServiceDetail = function ServiceDetail(props) {
316
316
  }),
317
317
  disabled: formState.loading,
318
318
  autoComplete: "off"
319
- })), ((_formState$changes$ty = formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.type) !== null && _formState$changes$ty !== void 0 ? _formState$changes$ty : product === null || product === void 0 ? void 0 : product.type) === 'service' && /*#__PURE__*/_react.default.createElement(_styles2.FieldRow, null, /*#__PURE__*/_react.default.createElement(_styles2.SelectWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('DURATION', 'Duration')), /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
319
+ })), ((_formState$changes$ty = formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.type) !== null && _formState$changes$ty !== void 0 ? _formState$changes$ty : product === null || product === void 0 ? void 0 : product.type) === 'service' && /*#__PURE__*/_react.default.createElement(_styles2.FieldRow, null, /*#__PURE__*/_react.default.createElement(_styles2.SelectWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('DURATION', 'Duration')), /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
320
320
  options: durationList,
321
321
  className: "select",
322
- defaultValue: isCustom ? 'custom' : (_formState$changes$du = formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.duration) !== null && _formState$changes$du !== void 0 ? _formState$changes$du : product === null || product === void 0 ? void 0 : product.duration,
322
+ defaultValue: isCustom ? 'custom' : (_formState$changes$du = formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.duration) !== null && _formState$changes$du !== void 0 ? _formState$changes$du : product === null || product === void 0 ? void 0 : product.duration,
323
323
  placeholder: t('SELECT_OPTION', 'Select an option'),
324
324
  onChange: function onChange(value) {
325
325
  return handleChangeSelect(value);
@@ -25,7 +25,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
25
25
  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; } }
26
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
27
  var SingleBusinessUI = function SingleBusinessUI(props) {
28
- var _businessState$busine, _businessState$busine3, _businessState$busine4, _businessState$busine5, _theme$images, _theme$images$dummies, _businessState$busine6, _businessState$busine7, _businessState$busine8, _businessState$busine9, _businessState$busine10, _businessState$busine11, _businessState$busine12, _businessState$busine13, _businessState$busine14, _businessState$busine15, _theme$images2, _theme$images2$dummie, _businessState$busine16, _businessState$busine17, _businessState$busine18, _businessState$busine19;
28
+ var _businessState$busine, _businessState$busine3, _businessState$busine4, _businessState$busine5, _theme$images, _businessState$busine6, _businessState$busine7, _businessState$busine8, _businessState$busine9, _businessState$busine10, _businessState$busine11, _businessState$busine12, _businessState$busine13, _theme$images2, _businessState$busine14, _businessState$busine15, _businessState$busine16, _businessState$busine17;
29
29
  var isSkeleton = props.isSkeleton,
30
30
  viewMethod = props.viewMethod,
31
31
  allowColumns = props.allowColumns,
@@ -94,30 +94,30 @@ var SingleBusinessUI = function SingleBusinessUI(props) {
94
94
  }
95
95
  }, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.BusinessIdWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.CheckBoxWrapper, {
96
96
  className: "business-id",
97
- isChecked: businessIds.includes(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.id),
97
+ isChecked: businessIds.includes(businessState === null || businessState === void 0 || (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.id),
98
98
  onClick: function onClick() {
99
99
  var _businessState$busine2;
100
- return handleChangeBusinessIds(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.id);
100
+ return handleChangeBusinessIds(businessState === null || businessState === void 0 || (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.id);
101
101
  }
102
- }, !(businessState !== null && businessState !== void 0 && businessState.loading) && businessIds.includes(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.id) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.CheckSquareFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Square, null)), businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.id)), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.business) && /*#__PURE__*/_react.default.createElement("td", {
102
+ }, !(businessState !== null && businessState !== void 0 && businessState.loading) && businessIds.includes(businessState === null || businessState === void 0 || (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.id) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.CheckSquareFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Square, null)), businessState === null || businessState === void 0 || (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.id)), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.business) && /*#__PURE__*/_react.default.createElement("td", {
103
103
  className: "business"
104
104
  }, /*#__PURE__*/_react.default.createElement(_styles2.BusinessGeneralInfo, null, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles2.Image, {
105
- bgimage: optimizeImage((businessState === null || businessState === void 0 ? void 0 : (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.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')
105
+ bgimage: optimizeImage((businessState === null || businessState === void 0 || (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.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')
106
106
  })), /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", {
107
107
  className: "bold"
108
- }, businessState === null || businessState === void 0 ? void 0 : (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.name), /*#__PURE__*/_react.default.createElement("p", null, getCityName(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine7 = businessState.business) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.city_id))))), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.featured) && /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.FeaturedWrapper, {
108
+ }, businessState === null || businessState === void 0 || (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.name), /*#__PURE__*/_react.default.createElement("p", null, getCityName(businessState === null || businessState === void 0 || (_businessState$busine7 = businessState.business) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.city_id))))), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.featured) && /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.FeaturedWrapper, {
109
109
  className: "featured"
110
110
  }, /*#__PURE__*/_react.default.createElement(_styles.Switch, {
111
- defaultChecked: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine8 = businessState.business) === null || _businessState$busine8 === void 0 ? void 0 : _businessState$busine8.featured,
111
+ defaultChecked: businessState === null || businessState === void 0 || (_businessState$busine8 = businessState.business) === null || _businessState$busine8 === void 0 ? void 0 : _businessState$busine8.featured,
112
112
  onChange: function onChange(enabled) {
113
113
  return handleChangeActiveBusiness(enabled, true);
114
114
  }
115
- }))), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.ratings) && /*#__PURE__*/_react.default.createElement("td", null, (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine9 = businessState.business) === null || _businessState$busine9 === void 0 ? void 0 : (_businessState$busine10 = _businessState$busine9.reviews) === null || _businessState$busine10 === void 0 ? void 0 : _businessState$busine10.total) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", {
115
+ }))), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.ratings) && /*#__PURE__*/_react.default.createElement("td", null, (businessState === null || businessState === void 0 || (_businessState$busine9 = businessState.business) === null || _businessState$busine9 === void 0 || (_businessState$busine9 = _businessState$busine9.reviews) === null || _businessState$busine9 === void 0 ? void 0 : _businessState$busine9.total) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", {
116
116
  className: "star"
117
- }, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.StarFill, null), /*#__PURE__*/_react.default.createElement("span", null, businessState === null || businessState === void 0 ? void 0 : (_businessState$busine11 = businessState.business) === null || _businessState$busine11 === void 0 ? void 0 : (_businessState$busine12 = _businessState$busine11.reviews) === null || _businessState$busine12 === void 0 ? void 0 : _businessState$busine12.total)))), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.BusinessEnableWrapper, {
117
+ }, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.StarFill, null), /*#__PURE__*/_react.default.createElement("span", null, businessState === null || businessState === void 0 || (_businessState$busine10 = businessState.business) === null || _businessState$busine10 === void 0 || (_businessState$busine10 = _businessState$busine10.reviews) === null || _businessState$busine10 === void 0 ? void 0 : _businessState$busine10.total)))), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.BusinessEnableWrapper, {
118
118
  className: "business_enable_control"
119
119
  }, /*#__PURE__*/_react.default.createElement("span", null, t('ENABLE', 'Enable')), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
120
- defaultChecked: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine13 = businessState.business) === null || _businessState$busine13 === void 0 ? void 0 : _businessState$busine13.enabled,
120
+ defaultChecked: businessState === null || businessState === void 0 || (_businessState$busine11 = businessState.business) === null || _businessState$busine11 === void 0 ? void 0 : _businessState$busine11.enabled,
121
121
  onChange: handleChangeActiveBusiness
122
122
  })))))), viewMethod === 'card' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, businessState !== null && businessState !== void 0 && businessState.loading || isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles2.SingleBusinessCardContainer, {
123
123
  isSkeleton: true
@@ -143,13 +143,13 @@ var SingleBusinessUI = function SingleBusinessUI(props) {
143
143
  return handleClickBusiness(e);
144
144
  }
145
145
  }, /*#__PURE__*/_react.default.createElement(_styles2.BusinessHeader, {
146
- bgimage: optimizeImage(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine14 = businessState.business) === null || _businessState$busine14 === void 0 ? void 0 : _businessState$busine14.header, 'h_100,c_limit')
146
+ bgimage: optimizeImage(businessState === null || businessState === void 0 || (_businessState$busine12 = businessState.business) === null || _businessState$busine12 === void 0 ? void 0 : _businessState$busine12.header, 'h_100,c_limit')
147
147
  }, /*#__PURE__*/_react.default.createElement(_styles2.BusinessHeaderContent, null, /*#__PURE__*/_react.default.createElement(_styles2.BusinessLogo, {
148
- bgimage: optimizeImage((businessState === null || businessState === void 0 ? void 0 : (_businessState$busine15 = businessState.business) === null || _businessState$busine15 === void 0 ? void 0 : _businessState$busine15.logo) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.businessLogo), 'h_200,c_limit')
149
- }))), /*#__PURE__*/_react.default.createElement(_styles2.BusinessContent, null, /*#__PURE__*/_react.default.createElement("h1", null, businessState === null || businessState === void 0 ? void 0 : (_businessState$busine16 = businessState.business) === null || _businessState$busine16 === void 0 ? void 0 : _businessState$busine16.name), /*#__PURE__*/_react.default.createElement("p", null, getCityName(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine17 = businessState.business) === null || _businessState$busine17 === void 0 ? void 0 : _businessState$busine17.city_id)), /*#__PURE__*/_react.default.createElement(_styles2.BusinessActionContainer, null, /*#__PURE__*/_react.default.createElement("span", null, t('ID', 'ID'), " ", businessState === null || businessState === void 0 ? void 0 : (_businessState$busine18 = businessState.business) === null || _businessState$busine18 === void 0 ? void 0 : _businessState$busine18.id), /*#__PURE__*/_react.default.createElement(_styles2.BusinessEnableWrapper, {
148
+ bgimage: optimizeImage((businessState === null || businessState === void 0 || (_businessState$busine13 = businessState.business) === null || _businessState$busine13 === void 0 ? void 0 : _businessState$busine13.logo) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 || (_theme$images2 = _theme$images2.dummies) === null || _theme$images2 === void 0 ? void 0 : _theme$images2.businessLogo), 'h_200,c_limit')
149
+ }))), /*#__PURE__*/_react.default.createElement(_styles2.BusinessContent, null, /*#__PURE__*/_react.default.createElement("h1", null, businessState === null || businessState === void 0 || (_businessState$busine14 = businessState.business) === null || _businessState$busine14 === void 0 ? void 0 : _businessState$busine14.name), /*#__PURE__*/_react.default.createElement("p", null, getCityName(businessState === null || businessState === void 0 || (_businessState$busine15 = businessState.business) === null || _businessState$busine15 === void 0 ? void 0 : _businessState$busine15.city_id)), /*#__PURE__*/_react.default.createElement(_styles2.BusinessActionContainer, null, /*#__PURE__*/_react.default.createElement("span", null, t('ID', 'ID'), " ", businessState === null || businessState === void 0 || (_businessState$busine16 = businessState.business) === null || _businessState$busine16 === void 0 ? void 0 : _businessState$busine16.id), /*#__PURE__*/_react.default.createElement(_styles2.BusinessEnableWrapper, {
150
150
  className: "business_enable_control"
151
151
  }, /*#__PURE__*/_react.default.createElement("span", null, t('ENABLE', 'Enable')), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
152
- defaultChecked: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine19 = businessState.business) === null || _businessState$busine19 === void 0 ? void 0 : _businessState$busine19.enabled,
152
+ defaultChecked: businessState === null || businessState === void 0 || (_businessState$busine17 = businessState.business) === null || _businessState$busine17 === void 0 ? void 0 : _businessState$busine17.enabled,
153
153
  onChange: handleChangeActiveBusiness
154
154
  })))))));
155
155
  };
@@ -73,7 +73,7 @@ var SingleBusinessCategoryUI = function SingleBusinessCategoryUI(props) {
73
73
  var _categoryFormState$re2;
74
74
  setAlertState({
75
75
  open: true,
76
- content: categoryFormState === null || categoryFormState === void 0 ? void 0 : (_categoryFormState$re2 = categoryFormState.result) === null || _categoryFormState$re2 === void 0 ? void 0 : _categoryFormState$re2.result
76
+ content: categoryFormState === null || categoryFormState === void 0 || (_categoryFormState$re2 = categoryFormState.result) === null || _categoryFormState$re2 === void 0 ? void 0 : _categoryFormState$re2.result
77
77
  });
78
78
  }
79
79
  }, [categoryFormState === null || categoryFormState === void 0 ? void 0 : categoryFormState.result]);
@@ -92,7 +92,7 @@ var SingleBusinessCategoryUI = function SingleBusinessCategoryUI(props) {
92
92
  disabled: categoryFormState === null || categoryFormState === void 0 ? void 0 : categoryFormState.loading,
93
93
  className: "img-section"
94
94
  }, categoryFormState !== null && categoryFormState !== void 0 && (_categoryFormState$ch = categoryFormState.changes) !== null && _categoryFormState$ch !== void 0 && _categoryFormState$ch.image ? /*#__PURE__*/_react.default.createElement("img", {
95
- src: optimizeImage(categoryFormState === null || categoryFormState === void 0 ? void 0 : (_categoryFormState$ch2 = categoryFormState.changes) === null || _categoryFormState$ch2 === void 0 ? void 0 : _categoryFormState$ch2.image, 'h_50,c_limit'),
95
+ src: optimizeImage(categoryFormState === null || categoryFormState === void 0 || (_categoryFormState$ch2 = categoryFormState.changes) === null || _categoryFormState$ch2 === void 0 ? void 0 : _categoryFormState$ch2.image, 'h_50,c_limit'),
96
96
  alt: "category image",
97
97
  loading: "lazy"
98
98
  }) : /*#__PURE__*/_react.default.createElement(_styles3.UploadWrapper, null, /*#__PURE__*/_react.default.createElement(_BiImage.default, null)))), /*#__PURE__*/_react.default.createElement(_styles2.CategoryContent, null, isSkeleton ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {