ordering-ui-admin-external 1.30.6 → 1.30.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js → ordering-ui-admin.a29dbc53a1f823ce0ce5.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js.LICENSE.txt → ordering-ui-admin.a29dbc53a1f823ce0ce5.js.LICENSE.txt} +1 -1
  3. package/_modules/components/BusinessIntelligence/AnalyticsAvailableTimes/index.js +10 -10
  4. package/_modules/components/BusinessIntelligence/AnalyticsBusinessFilter/index.js +1 -1
  5. package/_modules/components/BusinessIntelligence/AnalyticsBusyTimes/index.js +10 -10
  6. package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +1 -1
  7. package/_modules/components/BusinessIntelligence/AnalyticsCustomerSatisfaction/index.js +10 -10
  8. package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +18 -18
  9. package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +4 -4
  10. package/_modules/components/BusinessIntelligence/AnalyticsOrdersOrSales/index.js +3 -3
  11. package/_modules/components/BusinessIntelligence/AnalyticsOrdersStatus/index.js +1 -1
  12. package/_modules/components/BusinessIntelligence/AnalyticsRegisterUsers/index.js +6 -6
  13. package/_modules/components/BusinessIntelligence/AnalyticsSpendTimes/index.js +12 -12
  14. package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
  15. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
  16. package/_modules/components/BusinessIntelligence/CountryFilter/index.js +1 -1
  17. package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
  18. package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
  19. package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
  20. package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +14 -14
  21. package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
  22. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +24 -24
  23. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +9 -9
  24. package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +15 -15
  25. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +8 -8
  26. package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
  27. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +9 -9
  28. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +9 -9
  29. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +7 -7
  30. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +9 -9
  31. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +9 -9
  32. package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +9 -9
  33. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +21 -21
  34. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +14 -14
  35. package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
  36. package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +19 -19
  37. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -9
  38. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +17 -17
  39. package/_modules/components/BusinessIntelligence/ReportsSales/index.js +19 -19
  40. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +8 -8
  41. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +24 -24
  42. package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +14 -14
  43. package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
  44. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
  45. package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
  46. package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
  47. package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
  48. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
  49. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
  50. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
  51. package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
  52. package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
  53. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
  54. package/_modules/components/Delivery/AddressForm/index.js +29 -29
  55. package/_modules/components/Delivery/AddressList/index.js +11 -11
  56. package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
  57. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
  58. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
  59. package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
  60. package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
  61. package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
  62. package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
  63. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
  64. package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
  65. package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
  66. package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
  67. package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
  68. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  69. package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
  70. package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  71. package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
  72. package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
  73. package/_modules/components/Delivery/UserAddForm/index.js +13 -13
  74. package/_modules/components/Delivery/UserDetails/index.js +6 -6
  75. package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
  76. package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
  77. package/_modules/components/Home/HomePage/index.js +7 -7
  78. package/_modules/components/LanguageSelector/index.js +1 -1
  79. package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
  80. package/_modules/components/Login/LoginForm/index.js +11 -11
  81. package/_modules/components/Login/ResetPassword/index.js +5 -5
  82. package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
  83. package/_modules/components/Loyalty/GiftCards/index.js +3 -3
  84. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
  85. package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
  86. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
  87. package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
  88. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
  89. package/_modules/components/Marketing/BannerDetails/index.js +5 -5
  90. package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
  91. package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
  92. package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
  93. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  94. package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
  95. package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
  96. package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
  97. package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
  98. package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
  99. package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
  100. package/_modules/components/Marketing/CampaignList/index.js +2 -2
  101. package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
  102. package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
  103. package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
  104. package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
  105. package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
  106. package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
  107. package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
  108. package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
  109. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
  110. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
  111. package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
  112. package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
  113. package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
  114. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
  115. package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
  116. package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
  117. package/_modules/components/Marketing/PageBanner/index.js +1 -1
  118. package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
  119. package/_modules/components/Messages/ChatContactList/index.js +2 -2
  120. package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
  121. package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
  122. package/_modules/components/MyProducts/AppResources/index.js +15 -15
  123. package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
  124. package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
  125. package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
  126. package/_modules/components/MyProducts/OrderingWebsite/index.js +29 -29
  127. package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
  128. package/_modules/components/NotNetworkConnectivity/index.js +2 -2
  129. package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
  130. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  131. package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
  132. package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
  133. package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
  134. package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
  135. package/_modules/components/Orders/Appointments/index.js +2 -2
  136. package/_modules/components/Orders/CompanySelector/index.js +4 -4
  137. package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
  138. package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
  139. package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
  140. package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
  141. package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
  142. package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
  143. package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +2 -2
  144. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
  145. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
  146. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
  147. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
  148. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
  149. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
  150. package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
  151. package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
  152. package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
  153. package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
  154. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +1 -1
  155. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
  156. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
  157. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
  158. package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
  159. package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
  160. package/_modules/components/Orders/DeliveriesManager/index.js +2 -2
  161. package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
  162. package/_modules/components/Orders/DriversList/index.js +2 -2
  163. package/_modules/components/Orders/DriversLocation/index.js +11 -11
  164. package/_modules/components/Orders/DriversManager/index.js +2 -2
  165. package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
  166. package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
  167. package/_modules/components/Orders/Logistics/index.js +1 -1
  168. package/_modules/components/Orders/Messages/index.js +4 -4
  169. package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
  170. package/_modules/components/Orders/OrderBill/index.js +46 -46
  171. package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
  172. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
  173. package/_modules/components/Orders/OrderDetails/index.js +6 -6
  174. package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
  175. package/_modules/components/Orders/OrderLogisticInformation/index.js +1 -1
  176. package/_modules/components/Orders/OrderNotification/index.js +4 -4
  177. package/_modules/components/Orders/OrderStatusFilterBar/index.js +4 -4
  178. package/_modules/components/Orders/OrderToPrint/index.js +22 -22
  179. package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
  180. package/_modules/components/Orders/OrdersCards/index.js +29 -29
  181. package/_modules/components/Orders/OrdersContentHeader/index.js +3 -3
  182. package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
  183. package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
  184. package/_modules/components/Orders/OrdersListing/index.js +3 -3
  185. package/_modules/components/Orders/OrdersTable/index.js +53 -53
  186. package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
  187. package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
  188. package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
  189. package/_modules/components/PageNotFound/index.js +3 -3
  190. package/_modules/components/Settings/ApiKeysList/index.js +1 -1
  191. package/_modules/components/Settings/CountriesList/index.js +1 -1
  192. package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
  193. package/_modules/components/Settings/EmailSetting/index.js +5 -5
  194. package/_modules/components/Settings/InsertImage/index.js +3 -3
  195. package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
  196. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
  197. package/_modules/components/Settings/LanguageSetting/index.js +1 -1
  198. package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
  199. package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
  200. package/_modules/components/Settings/NotificationSetting/index.js +6 -6
  201. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  202. package/_modules/components/Settings/Settings/index.js +3 -3
  203. package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
  204. package/_modules/components/Settings/SettingsList/index.js +4 -4
  205. package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
  206. package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
  207. package/_modules/components/Shared/AutoScroll/index.js +4 -4
  208. package/_modules/components/Shared/CitySelector/index.js +1 -1
  209. package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
  210. package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
  211. package/_modules/components/Shared/DragScroll/index.js +5 -5
  212. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
  213. package/_modules/components/Shared/InputPhoneNumber/index.js +2 -2
  214. package/_modules/components/Shared/NotFoundSource/index.js +2 -2
  215. package/_modules/components/Shared/Personalization/index.js +1 -1
  216. package/_modules/components/Shared/RangeCalendar/index.js +2 -2
  217. package/_modules/components/Shared/Schedule/index.js +6 -6
  218. package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
  219. package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
  220. package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
  221. package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
  222. package/_modules/components/Shared/SelectSites/index.js +1 -1
  223. package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
  224. package/_modules/components/SidebarMenu/index.js +37 -40
  225. package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
  226. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
  227. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
  228. package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
  229. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
  230. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
  231. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
  232. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +1 -1
  233. package/_modules/components/Stores/BusinessAdd/index.js +9 -9
  234. package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
  235. package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
  236. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
  237. package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
  238. package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
  239. package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
  240. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
  241. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
  242. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
  243. package/_modules/components/Stores/BusinessDetails/index.js +7 -7
  244. package/_modules/components/Stores/BusinessDeviceDetail/index.js +12 -12
  245. package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
  246. package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
  247. package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
  248. package/_modules/components/Stores/BusinessImages/index.js +4 -4
  249. package/_modules/components/Stores/BusinessInformation/index.js +35 -35
  250. package/_modules/components/Stores/BusinessLocation/index.js +7 -7
  251. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  252. package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
  253. package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
  254. package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
  255. package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
  256. package/_modules/components/Stores/BusinessOwners/index.js +1 -1
  257. package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
  258. package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
  259. package/_modules/components/Stores/BusinessPlace/index.js +1 -1
  260. package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
  261. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
  262. package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
  263. package/_modules/components/Stores/BusinessPreview/index.js +19 -19
  264. package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
  265. package/_modules/components/Stores/BusinessProductList/index.js +5 -5
  266. package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
  267. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
  268. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
  269. package/_modules/components/Stores/BusinessProductsListing/index.js +20 -20
  270. package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
  271. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  272. package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
  273. package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
  274. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
  275. package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
  276. package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
  277. package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
  278. package/_modules/components/Stores/BusinessSummary/index.js +8 -8
  279. package/_modules/components/Stores/BusinessSupport/index.js +2 -2
  280. package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
  281. package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
  282. package/_modules/components/Stores/BusinessTypes/index.js +2 -2
  283. package/_modules/components/Stores/BusinessVideos/index.js +2 -2
  284. package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
  285. package/_modules/components/Stores/BusinessWebhooks/index.js +5 -5
  286. package/_modules/components/Stores/BusinessesListing/index.js +1 -1
  287. package/_modules/components/Stores/ImporterForm/index.js +3 -3
  288. package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
  289. package/_modules/components/Stores/PaymentOption/index.js +11 -11
  290. package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
  291. package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
  292. package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
  293. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
  294. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
  295. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
  296. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
  297. package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
  298. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
  299. package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
  300. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +20 -20
  301. package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
  302. package/_modules/components/Stores/ProductExtraOptions/index.js +2 -2
  303. package/_modules/components/Stores/ProductExtraSuboption/index.js +4 -4
  304. package/_modules/components/Stores/ProductExtras/index.js +1 -1
  305. package/_modules/components/Stores/ProductGallery/index.js +3 -3
  306. package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
  307. package/_modules/components/Stores/ProductStep/index.js +2 -2
  308. package/_modules/components/Stores/ProductSummary/index.js +7 -7
  309. package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
  310. package/_modules/components/Stores/ProductTagsList/index.js +1 -1
  311. package/_modules/components/Stores/ProductVideos/index.js +1 -1
  312. package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
  313. package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
  314. package/_modules/components/Stores/SeoOptions/index.js +9 -9
  315. package/_modules/components/Stores/ServiceDetail/index.js +5 -5
  316. package/_modules/components/Stores/SingleBusiness/index.js +14 -14
  317. package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
  318. package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
  319. package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
  320. package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
  321. package/_modules/components/Users/CustomerDetails/index.js +2 -2
  322. package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
  323. package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
  324. package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
  325. package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
  326. package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
  327. package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
  328. package/_modules/components/Users/ProfessionalListing/index.js +1 -1
  329. package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
  330. package/_modules/components/Users/ProfessionalServices/index.js +3 -3
  331. package/_modules/components/Users/UserAddForm/index.js +11 -11
  332. package/_modules/components/Users/UserDetails/index.js +4 -4
  333. package/_modules/components/Users/UserFilterGroup/index.js +2 -2
  334. package/_modules/components/Users/UserFormDetails/index.js +12 -12
  335. package/_modules/components/Users/UserProfileForm/index.js +7 -7
  336. package/_modules/styles/Select/index.js +1 -1
  337. package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
  338. package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
  339. package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
  340. package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
  341. package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
  342. package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
  343. package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
  344. package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
  345. package/_modules/themes/origin/src/components/Header/index.js +3 -3
  346. package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
  347. package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
  348. package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
  349. package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
  350. package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
  351. package/_modules/themes/origin/src/components/Messages/index.js +13 -13
  352. package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
  353. package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
  354. package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
  355. package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
  356. package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
  357. package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
  358. package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
  359. package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
  360. package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
  361. package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
  362. package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
  363. package/_modules/themes/origin/src/components/OverView/index.js +1 -1
  364. package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
  365. package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
  366. package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
  367. package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
  368. package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
  369. package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
  370. package/_modules/utils/index.js +1 -1
  371. package/package.json +1 -1
  372. package/src/components/SidebarMenu/index.js +6 -6
  373. package/template/config.json +1 -1
@@ -44,7 +44,7 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
44
44
  var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
45
45
  _useConfig2 = _slicedToArray(_useConfig, 1),
46
46
  configs = _useConfig2[0].configs;
47
- var isAdvancedOffersActivated = configs === null || configs === void 0 ? void 0 : (_configs$advanced_off = configs.advanced_offers_module) === null || _configs$advanced_off === void 0 ? void 0 : _configs$advanced_off.value;
47
+ var isAdvancedOffersActivated = configs === null || configs === void 0 || (_configs$advanced_off = configs.advanced_offers_module) === null || _configs$advanced_off === void 0 ? void 0 : _configs$advanced_off.value;
48
48
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
49
49
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
50
50
  t = _useLanguage2[1];
@@ -140,7 +140,7 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
140
140
  });
141
141
  return;
142
142
  }
143
- if ((formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.type) === 2 && (!((_formState$changes4 = formState.changes) !== null && _formState$changes4 !== void 0 && _formState$changes4.coupon) && !(promotionState !== null && promotionState !== void 0 && (_promotionState$promo2 = promotionState.promotion) !== null && _promotionState$promo2 !== void 0 && _promotionState$promo2.coupon) || ((_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.coupon) === '')) {
143
+ if ((formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.type) === 2 && (!((_formState$changes4 = formState.changes) !== null && _formState$changes4 !== void 0 && _formState$changes4.coupon) && !(promotionState !== null && promotionState !== void 0 && (_promotionState$promo2 = promotionState.promotion) !== null && _promotionState$promo2 !== void 0 && _promotionState$promo2.coupon) || ((_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.coupon) === '')) {
144
144
  setAlertState({
145
145
  open: true,
146
146
  content: t('VALIDATION_ERROR_COUPON_REQUIRED', 'The field Coupon is required')
@@ -160,15 +160,15 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
160
160
  if (!(formState !== null && formState !== void 0 && (_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.error)) return;
161
161
  setAlertState({
162
162
  open: true,
163
- content: formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
163
+ content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
164
164
  });
165
- }, [formState === null || formState === void 0 ? void 0 : (_formState$result3 = formState.result) === null || _formState$result3 === void 0 ? void 0 : _formState$result3.error]);
165
+ }, [formState === null || formState === void 0 || (_formState$result3 = formState.result) === null || _formState$result3 === void 0 ? void 0 : _formState$result3.error]);
166
166
  (0, _react.useEffect)(function () {
167
167
  if (Object.keys(promotionState === null || promotionState === void 0 ? void 0 : promotionState.promotion).length) {
168
168
  var _promotionState$promo3, _promotionState$promo4;
169
169
  setDateRange([{
170
- startDate: new Date(promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.start),
171
- endDate: new Date(promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo4 = promotionState.promotion) === null || _promotionState$promo4 === void 0 ? void 0 : _promotionState$promo4.end),
170
+ startDate: new Date(promotionState === null || promotionState === void 0 || (_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.start),
171
+ endDate: new Date(promotionState === null || promotionState === void 0 || (_promotionState$promo4 = promotionState.promotion) === null || _promotionState$promo4 === void 0 ? void 0 : _promotionState$promo4.end),
172
172
  key: 'selection'
173
173
  }]);
174
174
  } else {
@@ -197,25 +197,25 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
197
197
  accept: "image/png, image/jpeg, image/jpg",
198
198
  disabled: formState.loading
199
199
  }, !((_formState$changes6 = formState.changes) !== null && _formState$changes6 !== void 0 && _formState$changes6.image) || formState.result.error ? promotionState !== null && promotionState !== void 0 && (_promotionState$promo5 = promotionState.promotion) !== null && _promotionState$promo5 !== void 0 && _promotionState$promo5.image ? /*#__PURE__*/_react.default.createElement("img", {
200
- src: promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo6 = promotionState.promotion) === null || _promotionState$promo6 === void 0 ? void 0 : _promotionState$promo6.image,
200
+ src: promotionState === null || promotionState === void 0 || (_promotionState$promo6 = promotionState.promotion) === null || _promotionState$promo6 === void 0 ? void 0 : _promotionState$promo6.image,
201
201
  alt: "promotion image",
202
202
  width: "90px",
203
203
  height: "90px",
204
204
  loading: "lazy"
205
- }) : /*#__PURE__*/_react.default.createElement(_styles3.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.CardImage, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_AND_DROP', 'Drag and drop'))) : (formState === null || formState === void 0 ? void 0 : (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.image) && /*#__PURE__*/_react.default.createElement("img", {
206
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.image,
205
+ }) : /*#__PURE__*/_react.default.createElement(_styles3.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.CardImage, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_AND_DROP', 'Drag and drop'))) : (formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.image) && /*#__PURE__*/_react.default.createElement("img", {
206
+ src: formState === null || formState === void 0 || (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.image,
207
207
  alt: "promotion image",
208
208
  loading: "lazy"
209
209
  }))), /*#__PURE__*/_react.default.createElement(_styles3.Camera, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Camera, null)))), /*#__PURE__*/_react.default.createElement(_styles3.ItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
210
210
  name: "name",
211
- value: (_ref = (_formState$changes$na = (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo7 = promotionState.promotion) === null || _promotionState$promo7 === void 0 ? void 0 : _promotionState$promo7.name) !== null && _ref !== void 0 ? _ref : '',
211
+ value: (_ref = (_formState$changes$na = (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : promotionState === null || promotionState === void 0 || (_promotionState$promo7 = promotionState.promotion) === null || _promotionState$promo7 === void 0 ? void 0 : _promotionState$promo7.name) !== null && _ref !== void 0 ? _ref : '',
212
212
  placeholder: t('NAME', 'Name'),
213
213
  onChange: function onChange(e) {
214
214
  return handleChangeInput(e);
215
215
  }
216
- })), !isAdvancedOffersActivated && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((formState === null || formState === void 0 ? void 0 : (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.type) === 2 || !(formState !== null && formState !== void 0 && (_formState$changes11 = formState.changes) !== null && _formState$changes11 !== void 0 && _formState$changes11.type) && (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo8 = promotionState.promotion) === null || _promotionState$promo8 === void 0 ? void 0 : _promotionState$promo8.type) === 2) && /*#__PURE__*/_react.default.createElement(_styles3.ItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('COUPON', 'Coupon')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
216
+ })), !isAdvancedOffersActivated && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.type) === 2 || !(formState !== null && formState !== void 0 && (_formState$changes11 = formState.changes) !== null && _formState$changes11 !== void 0 && _formState$changes11.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo8 = promotionState.promotion) === null || _promotionState$promo8 === void 0 ? void 0 : _promotionState$promo8.type) === 2) && /*#__PURE__*/_react.default.createElement(_styles3.ItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('COUPON', 'Coupon')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
217
217
  name: "coupon",
218
- value: (_ref2 = (_formState$changes$co = (_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.coupon) !== null && _formState$changes$co !== void 0 ? _formState$changes$co : promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo9 = promotionState.promotion) === null || _promotionState$promo9 === void 0 ? void 0 : _promotionState$promo9.coupon) !== null && _ref2 !== void 0 ? _ref2 : '',
218
+ value: (_ref2 = (_formState$changes$co = (_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.coupon) !== null && _formState$changes$co !== void 0 ? _formState$changes$co : promotionState === null || promotionState === void 0 || (_promotionState$promo9 = promotionState.promotion) === null || _promotionState$promo9 === void 0 ? void 0 : _promotionState$promo9.coupon) !== null && _ref2 !== void 0 ? _ref2 : '',
219
219
  placeholder: t('COUPON_CODE', 'Coupon code'),
220
220
  onChange: function onChange(e) {
221
221
  return handleChangeInput(e);
@@ -223,7 +223,7 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
223
223
  }))), /*#__PURE__*/_react.default.createElement(_styles3.ItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('DESCRIPTION', 'Description')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
224
224
  rows: 3,
225
225
  name: "description",
226
- value: (_ref3 = (_formState$changes$de = (_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.description) !== null && _formState$changes$de !== void 0 ? _formState$changes$de : promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo10 = promotionState.promotion) === null || _promotionState$promo10 === void 0 ? void 0 : _promotionState$promo10.description) !== null && _ref3 !== void 0 ? _ref3 : '',
226
+ value: (_ref3 = (_formState$changes$de = (_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.description) !== null && _formState$changes$de !== void 0 ? _formState$changes$de : promotionState === null || promotionState === void 0 || (_promotionState$promo10 = promotionState.promotion) === null || _promotionState$promo10 === void 0 ? void 0 : _promotionState$promo10.description) !== null && _ref3 !== void 0 ? _ref3 : '',
227
227
  onChange: function onChange(e) {
228
228
  return handleChangeInput(e);
229
229
  },
@@ -253,20 +253,20 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
253
253
  });
254
254
  }
255
255
  })), !isAdvancedOffersActivated && /*#__PURE__*/_react.default.createElement(_styles3.PromotionTypeContainer, null, /*#__PURE__*/_react.default.createElement(_styles3.PromotionTypeWrapper, {
256
- active: formState !== null && formState !== void 0 && (_formState$changes16 = formState.changes) !== null && _formState$changes16 !== void 0 && _formState$changes16.type ? (formState === null || formState === void 0 ? void 0 : (_formState$changes17 = formState.changes) === null || _formState$changes17 === void 0 ? void 0 : _formState$changes17.type) === 2 : (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo12 = promotionState.promotion) === null || _promotionState$promo12 === void 0 ? void 0 : _promotionState$promo12.type) === 2,
256
+ active: formState !== null && formState !== void 0 && (_formState$changes16 = formState.changes) !== null && _formState$changes16 !== void 0 && _formState$changes16.type ? (formState === null || formState === void 0 || (_formState$changes17 = formState.changes) === null || _formState$changes17 === void 0 ? void 0 : _formState$changes17.type) === 2 : (promotionState === null || promotionState === void 0 || (_promotionState$promo12 = promotionState.promotion) === null || _promotionState$promo12 === void 0 ? void 0 : _promotionState$promo12.type) === 2,
257
257
  onClick: function onClick() {
258
258
  return handleChangeItem({
259
259
  type: 2
260
260
  });
261
261
  }
262
- }, (formState !== null && formState !== void 0 && (_formState$changes18 = formState.changes) !== null && _formState$changes18 !== void 0 && _formState$changes18.type ? (formState === null || formState === void 0 ? void 0 : (_formState$changes19 = formState.changes) === null || _formState$changes19 === void 0 ? void 0 : _formState$changes19.type) === 2 : (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo13 = promotionState.promotion) === null || _promotionState$promo13 === void 0 ? void 0 : _promotionState$promo13.type) === 2) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('COUPON', 'Coupon'))), /*#__PURE__*/_react.default.createElement(_styles3.PromotionTypeWrapper, {
263
- active: formState !== null && formState !== void 0 && (_formState$changes20 = formState.changes) !== null && _formState$changes20 !== void 0 && _formState$changes20.type ? (formState === null || formState === void 0 ? void 0 : (_formState$changes21 = formState.changes) === null || _formState$changes21 === void 0 ? void 0 : _formState$changes21.type) === 1 : (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo14 = promotionState.promotion) === null || _promotionState$promo14 === void 0 ? void 0 : _promotionState$promo14.type) === 1,
262
+ }, (formState !== null && formState !== void 0 && (_formState$changes18 = formState.changes) !== null && _formState$changes18 !== void 0 && _formState$changes18.type ? (formState === null || formState === void 0 || (_formState$changes19 = formState.changes) === null || _formState$changes19 === void 0 ? void 0 : _formState$changes19.type) === 2 : (promotionState === null || promotionState === void 0 || (_promotionState$promo13 = promotionState.promotion) === null || _promotionState$promo13 === void 0 ? void 0 : _promotionState$promo13.type) === 2) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('COUPON', 'Coupon'))), /*#__PURE__*/_react.default.createElement(_styles3.PromotionTypeWrapper, {
263
+ active: formState !== null && formState !== void 0 && (_formState$changes20 = formState.changes) !== null && _formState$changes20 !== void 0 && _formState$changes20.type ? (formState === null || formState === void 0 || (_formState$changes21 = formState.changes) === null || _formState$changes21 === void 0 ? void 0 : _formState$changes21.type) === 1 : (promotionState === null || promotionState === void 0 || (_promotionState$promo14 = promotionState.promotion) === null || _promotionState$promo14 === void 0 ? void 0 : _promotionState$promo14.type) === 1,
264
264
  onClick: function onClick() {
265
265
  return handleChangeItem({
266
266
  type: 1
267
267
  });
268
268
  }
269
- }, (formState !== null && formState !== void 0 && (_formState$changes22 = formState.changes) !== null && _formState$changes22 !== void 0 && _formState$changes22.type ? (formState === null || formState === void 0 ? void 0 : (_formState$changes23 = formState.changes) === null || _formState$changes23 === void 0 ? void 0 : _formState$changes23.type) === 1 : (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo15 = promotionState.promotion) === null || _promotionState$promo15 === void 0 ? void 0 : _promotionState$promo15.type) === 1) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('DISCOUNT', 'Discount')))), /*#__PURE__*/_react.default.createElement(_styles3.DiscountContainer, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('DISCOUNT_TYPE', 'Discount type')), /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
269
+ }, (formState !== null && formState !== void 0 && (_formState$changes22 = formState.changes) !== null && _formState$changes22 !== void 0 && _formState$changes22.type ? (formState === null || formState === void 0 || (_formState$changes23 = formState.changes) === null || _formState$changes23 === void 0 ? void 0 : _formState$changes23.type) === 1 : (promotionState === null || promotionState === void 0 || (_promotionState$promo15 = promotionState.promotion) === null || _promotionState$promo15 === void 0 ? void 0 : _promotionState$promo15.type) === 1) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('DISCOUNT', 'Discount')))), /*#__PURE__*/_react.default.createElement(_styles3.DiscountContainer, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('DISCOUNT_TYPE', 'Discount type')), /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
270
270
  defaultValue: (_formState$changes$ra = formState.changes.rate_type) !== null && _formState$changes$ra !== void 0 ? _formState$changes$ra : promotionState.promotion.rate_type,
271
271
  options: discountTypes,
272
272
  onChange: function onChange(val) {
@@ -277,7 +277,7 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
277
277
  })), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('VALUE', 'Value')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
278
278
  type: "number",
279
279
  name: "rate",
280
- value: (_ref4 = (_formState$changes$ra2 = (_formState$changes24 = formState.changes) === null || _formState$changes24 === void 0 ? void 0 : _formState$changes24.rate) !== null && _formState$changes$ra2 !== void 0 ? _formState$changes$ra2 : promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo16 = promotionState.promotion) === null || _promotionState$promo16 === void 0 ? void 0 : _promotionState$promo16.rate) !== null && _ref4 !== void 0 ? _ref4 : '',
280
+ value: (_ref4 = (_formState$changes$ra2 = (_formState$changes24 = formState.changes) === null || _formState$changes24 === void 0 ? void 0 : _formState$changes24.rate) !== null && _formState$changes$ra2 !== void 0 ? _formState$changes$ra2 : promotionState === null || promotionState === void 0 || (_promotionState$promo16 = promotionState.promotion) === null || _promotionState$promo16 === void 0 ? void 0 : _promotionState$promo16.rate) !== null && _ref4 !== void 0 ? _ref4 : '',
281
281
  onChange: function onChange(e) {
282
282
  return handleChangeInput(e);
283
283
  },
@@ -285,7 +285,7 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
285
285
  }))), /*#__PURE__*/_react.default.createElement(_styles3.MinimumLimitContainer, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('MINIMUN_PURCHASED', 'Minimum purchase')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
286
286
  type: "number",
287
287
  name: "minimum",
288
- value: (_ref5 = (_formState$changes$mi = (_formState$changes25 = formState.changes) === null || _formState$changes25 === void 0 ? void 0 : _formState$changes25.minimum) !== null && _formState$changes$mi !== void 0 ? _formState$changes$mi : promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo17 = promotionState.promotion) === null || _promotionState$promo17 === void 0 ? void 0 : _promotionState$promo17.minimum) !== null && _ref5 !== void 0 ? _ref5 : '',
288
+ value: (_ref5 = (_formState$changes$mi = (_formState$changes25 = formState.changes) === null || _formState$changes25 === void 0 ? void 0 : _formState$changes25.minimum) !== null && _formState$changes$mi !== void 0 ? _formState$changes$mi : promotionState === null || promotionState === void 0 || (_promotionState$promo17 = promotionState.promotion) === null || _promotionState$promo17 === void 0 ? void 0 : _promotionState$promo17.minimum) !== null && _ref5 !== void 0 ? _ref5 : '',
289
289
  onChange: function onChange(e) {
290
290
  return handleChangeInput(e);
291
291
  },
@@ -293,19 +293,19 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
293
293
  })), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles3.Label, null, t('LIMIT', 'Limit')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
294
294
  type: "number",
295
295
  name: "limit",
296
- value: (_ref6 = (_formState$changes$li = (_formState$changes26 = formState.changes) === null || _formState$changes26 === void 0 ? void 0 : _formState$changes26.limit) !== null && _formState$changes$li !== void 0 ? _formState$changes$li : promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo18 = promotionState.promotion) === null || _promotionState$promo18 === void 0 ? void 0 : _promotionState$promo18.limit) !== null && _ref6 !== void 0 ? _ref6 : '',
296
+ value: (_ref6 = (_formState$changes$li = (_formState$changes26 = formState.changes) === null || _formState$changes26 === void 0 ? void 0 : _formState$changes26.limit) !== null && _formState$changes$li !== void 0 ? _formState$changes$li : promotionState === null || promotionState === void 0 || (_promotionState$promo18 = promotionState.promotion) === null || _promotionState$promo18 === void 0 ? void 0 : _promotionState$promo18.limit) !== null && _ref6 !== void 0 ? _ref6 : '',
297
297
  onChange: function onChange(e) {
298
298
  return handleChangeInput(e);
299
299
  },
300
300
  placeholder: 0
301
301
  }))), isAdvancedOffersActivated && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles3.SectionTitle, null, t('QUESTION_HOW_GOING_APPLIED', 'How it\'s going to be applied?')), /*#__PURE__*/_react.default.createElement(_styles3.CouponContainer, null, /*#__PURE__*/_react.default.createElement(_styles3.CouponHeader, {
302
- active: ((_formState$changes27 = formState.changes) === null || _formState$changes27 === void 0 ? void 0 : _formState$changes27.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo19 = promotionState.promotion) === null || _promotionState$promo19 === void 0 ? void 0 : _promotionState$promo19.type) === 2,
302
+ active: ((_formState$changes27 = formState.changes) === null || _formState$changes27 === void 0 ? void 0 : _formState$changes27.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo19 = promotionState.promotion) === null || _promotionState$promo19 === void 0 ? void 0 : _promotionState$promo19.type) === 2,
303
303
  onClick: function onClick() {
304
304
  return handleChangeItem({
305
305
  type: 2
306
306
  });
307
307
  }
308
- }, ((_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo20 = promotionState.promotion) === null || _promotionState$promo20 === void 0 ? void 0 : _promotionState$promo20.type) === 2 ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('COUPON', 'Coupon'))), (((_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo21 = promotionState.promotion) === null || _promotionState$promo21 === void 0 ? void 0 : _promotionState$promo21.type) === 2) && /*#__PURE__*/_react.default.createElement(_styles3.CouponContent, null, /*#__PURE__*/_react.default.createElement(_styles3.ShowInCartContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
308
+ }, ((_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo20 = promotionState.promotion) === null || _promotionState$promo20 === void 0 ? void 0 : _promotionState$promo20.type) === 2 ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('COUPON', 'Coupon'))), (((_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo21 = promotionState.promotion) === null || _promotionState$promo21 === void 0 ? void 0 : _promotionState$promo21.type) === 2) && /*#__PURE__*/_react.default.createElement(_styles3.CouponContent, null, /*#__PURE__*/_react.default.createElement(_styles3.ShowInCartContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
309
309
  checked: typeof ((_formState$changes30 = formState.changes) === null || _formState$changes30 === void 0 ? void 0 : _formState$changes30.public) !== 'undefined' ? (_formState$changes31 = formState.changes) === null || _formState$changes31 === void 0 ? void 0 : _formState$changes31.public : (_promotionState$promo22 = promotionState.promotion) === null || _promotionState$promo22 === void 0 ? void 0 : _promotionState$promo22.public,
310
310
  onChange: function onChange(e) {
311
311
  return handleChangeItem({
@@ -314,20 +314,20 @@ var BusinessPromotionGeneralFormUI = function BusinessPromotionGeneralFormUI(pro
314
314
  }
315
315
  }), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", null, t('SHOW_IN_CART', 'Show in cart')), /*#__PURE__*/_react.default.createElement("p", null, t('PLEASE_INDICATE_COUPON_FOR_CART', 'Please indicate if you want the coupon to be seen in the cart or hidden')))), /*#__PURE__*/_react.default.createElement(_styles3.CouponCodeContainer, null, /*#__PURE__*/_react.default.createElement("label", null, t('COUPON_CODE', 'Coupon code')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
316
316
  name: "coupon",
317
- value: (_ref7 = (_formState$changes$co2 = (_formState$changes32 = formState.changes) === null || _formState$changes32 === void 0 ? void 0 : _formState$changes32.coupon) !== null && _formState$changes$co2 !== void 0 ? _formState$changes$co2 : promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo23 = promotionState.promotion) === null || _promotionState$promo23 === void 0 ? void 0 : _promotionState$promo23.coupon) !== null && _ref7 !== void 0 ? _ref7 : '',
317
+ value: (_ref7 = (_formState$changes$co2 = (_formState$changes32 = formState.changes) === null || _formState$changes32 === void 0 ? void 0 : _formState$changes32.coupon) !== null && _formState$changes$co2 !== void 0 ? _formState$changes$co2 : promotionState === null || promotionState === void 0 || (_promotionState$promo23 = promotionState.promotion) === null || _promotionState$promo23 === void 0 ? void 0 : _promotionState$promo23.coupon) !== null && _ref7 !== void 0 ? _ref7 : '',
318
318
  onChange: function onChange(e) {
319
319
  return handleChangeItem({
320
320
  coupon: e.target.value.replace(/\s+/g, '')
321
321
  });
322
322
  }
323
323
  })))), /*#__PURE__*/_react.default.createElement(_styles3.DiscountOption, null, /*#__PURE__*/_react.default.createElement(_styles3.CouponHeader, {
324
- active: ((_formState$changes33 = formState.changes) === null || _formState$changes33 === void 0 ? void 0 : _formState$changes33.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo24 = promotionState.promotion) === null || _promotionState$promo24 === void 0 ? void 0 : _promotionState$promo24.type) === 1,
324
+ active: ((_formState$changes33 = formState.changes) === null || _formState$changes33 === void 0 ? void 0 : _formState$changes33.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo24 = promotionState.promotion) === null || _promotionState$promo24 === void 0 ? void 0 : _promotionState$promo24.type) === 1,
325
325
  onClick: function onClick() {
326
326
  return handleChangeItem({
327
327
  type: 1
328
328
  });
329
329
  }
330
- }, ((_formState$changes34 = formState.changes) === null || _formState$changes34 === void 0 ? void 0 : _formState$changes34.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo25 = promotionState.promotion) === null || _promotionState$promo25 === void 0 ? void 0 : _promotionState$promo25.type) === 1 ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('DISCOUNT', 'discount'))), (((_formState$changes35 = formState.changes) === null || _formState$changes35 === void 0 ? void 0 : _formState$changes35.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 ? void 0 : (_promotionState$promo26 = promotionState.promotion) === null || _promotionState$promo26 === void 0 ? void 0 : _promotionState$promo26.type) === 1) && /*#__PURE__*/_react.default.createElement(_styles3.AutomaticDiscountEnableWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
330
+ }, ((_formState$changes34 = formState.changes) === null || _formState$changes34 === void 0 ? void 0 : _formState$changes34.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo25 = promotionState.promotion) === null || _promotionState$promo25 === void 0 ? void 0 : _promotionState$promo25.type) === 1 ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('DISCOUNT', 'discount'))), (((_formState$changes35 = formState.changes) === null || _formState$changes35 === void 0 ? void 0 : _formState$changes35.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo26 = promotionState.promotion) === null || _promotionState$promo26 === void 0 ? void 0 : _promotionState$promo26.type) === 1) && /*#__PURE__*/_react.default.createElement(_styles3.AutomaticDiscountEnableWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
331
331
  checked: typeof ((_formState$changes36 = formState.changes) === null || _formState$changes36 === void 0 ? void 0 : _formState$changes36.auto) !== 'undefined' ? (_formState$changes37 = formState.changes) === null || _formState$changes37 === void 0 ? void 0 : _formState$changes37.auto : (_promotionState$promo27 = promotionState.promotion) === null || _promotionState$promo27 === void 0 ? void 0 : _promotionState$promo27.auto,
332
332
  onChange: function onChange(e) {
333
333
  return handleChangeItem({
@@ -77,8 +77,8 @@ var BusinessQRCodeOption = function BusinessQRCodeOption(props) {
77
77
  });
78
78
  return;
79
79
  }
80
- var storeUrl = siteState !== null && siteState !== void 0 && (_siteState$site = siteState.site) !== null && _siteState$site !== void 0 && _siteState$site.domain && (siteState === null || siteState === void 0 ? void 0 : (_siteState$site2 = siteState.site) === null || _siteState$site2 === void 0 ? void 0 : _siteState$site2.ssl_process_status) === 'ended' ? "https://".concat(siteState === null || siteState === void 0 ? void 0 : (_siteState$site3 = siteState.site) === null || _siteState$site3 === void 0 ? void 0 : _siteState$site3.domain, "/store/").concat(business === null || business === void 0 ? void 0 : business.slug) : configs !== null && configs !== void 0 && (_configs$site_url = configs.site_url) !== null && _configs$site_url !== void 0 && _configs$site_url.value ? "".concat((0, _utils.checkSiteUrl)(configs === null || configs === void 0 ? void 0 : (_configs$site_url2 = configs.site_url) === null || _configs$site_url2 === void 0 ? void 0 : _configs$site_url2.value), "store/").concat(business === null || business === void 0 ? void 0 : business.slug) : "https://".concat(ordering.project, ".tryordering.com/store/").concat(business === null || business === void 0 ? void 0 : business.slug);
81
- var tsNumber = (item === null || item === void 0 ? void 0 : item.key) !== 'pick_up' ? (item === null || item === void 0 ? void 0 : item.key) === 'eat_in' ? "&table_number=".concat(numberRef === null || numberRef === void 0 ? void 0 : (_numberRef$current2 = numberRef.current) === null || _numberRef$current2 === void 0 ? void 0 : _numberRef$current2.value) : "&spot_number=".concat(numberRef === null || numberRef === void 0 ? void 0 : (_numberRef$current3 = numberRef.current) === null || _numberRef$current3 === void 0 ? void 0 : _numberRef$current3.value) : '';
80
+ var storeUrl = siteState !== null && siteState !== void 0 && (_siteState$site = siteState.site) !== null && _siteState$site !== void 0 && _siteState$site.domain && (siteState === null || siteState === void 0 || (_siteState$site2 = siteState.site) === null || _siteState$site2 === void 0 ? void 0 : _siteState$site2.ssl_process_status) === 'ended' ? "https://".concat(siteState === null || siteState === void 0 || (_siteState$site3 = siteState.site) === null || _siteState$site3 === void 0 ? void 0 : _siteState$site3.domain, "/store/").concat(business === null || business === void 0 ? void 0 : business.slug) : configs !== null && configs !== void 0 && (_configs$site_url = configs.site_url) !== null && _configs$site_url !== void 0 && _configs$site_url.value ? "".concat((0, _utils.checkSiteUrl)(configs === null || configs === void 0 || (_configs$site_url2 = configs.site_url) === null || _configs$site_url2 === void 0 ? void 0 : _configs$site_url2.value), "store/").concat(business === null || business === void 0 ? void 0 : business.slug) : "https://".concat(ordering.project, ".tryordering.com/store/").concat(business === null || business === void 0 ? void 0 : business.slug);
81
+ var tsNumber = (item === null || item === void 0 ? void 0 : item.key) !== 'pick_up' ? (item === null || item === void 0 ? void 0 : item.key) === 'eat_in' ? "&table_number=".concat(numberRef === null || numberRef === void 0 || (_numberRef$current2 = numberRef.current) === null || _numberRef$current2 === void 0 ? void 0 : _numberRef$current2.value) : "&spot_number=".concat(numberRef === null || numberRef === void 0 || (_numberRef$current3 = numberRef.current) === null || _numberRef$current3 === void 0 ? void 0 : _numberRef$current3.value) : '';
82
82
  var compltedUrl = "".concat(storeUrl, "?order_type=").concat(item.value).concat(tsNumber);
83
83
  setCode(compltedUrl);
84
84
  };
@@ -87,7 +87,7 @@ var BusinessSalesChannel = function BusinessSalesChannel(props) {
87
87
  };
88
88
  var storeUrl = (0, _react.useMemo)(function () {
89
89
  var _siteState$site, _siteState$site2, _siteState$site3;
90
- return siteState !== null && siteState !== void 0 && (_siteState$site = siteState.site) !== null && _siteState$site !== void 0 && _siteState$site.domain && (siteState === null || siteState === void 0 ? void 0 : (_siteState$site2 = siteState.site) === null || _siteState$site2 === void 0 ? void 0 : _siteState$site2.ssl_process_status) === 'ended' && (siteState === null || siteState === void 0 ? void 0 : siteState.ssl_status) !== 'error' ? "https://".concat(siteState === null || siteState === void 0 ? void 0 : (_siteState$site3 = siteState.site) === null || _siteState$site3 === void 0 ? void 0 : _siteState$site3.domain, "/store/").concat(business === null || business === void 0 ? void 0 : business.slug) : "https://".concat(ordering.project, ".tryordering.com/store/").concat(business === null || business === void 0 ? void 0 : business.slug);
90
+ return siteState !== null && siteState !== void 0 && (_siteState$site = siteState.site) !== null && _siteState$site !== void 0 && _siteState$site.domain && (siteState === null || siteState === void 0 || (_siteState$site2 = siteState.site) === null || _siteState$site2 === void 0 ? void 0 : _siteState$site2.ssl_process_status) === 'ended' && (siteState === null || siteState === void 0 ? void 0 : siteState.ssl_status) !== 'error' ? "https://".concat(siteState === null || siteState === void 0 || (_siteState$site3 = siteState.site) === null || _siteState$site3 === void 0 ? void 0 : _siteState$site3.domain, "/store/").concat(business === null || business === void 0 ? void 0 : business.slug) : "https://".concat(ordering.project, ".tryordering.com/store/").concat(business === null || business === void 0 ? void 0 : business.slug);
91
91
  }, [siteState, business]);
92
92
  return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.SalesContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, t('SALES_CHANNELS', 'Sales channels')), socialList.map(function (item, i) {
93
93
  return /*#__PURE__*/_react.default.createElement(_styles2.SocialBlock, {
@@ -111,7 +111,7 @@ var BusinessessListingUI = function BusinessessListingUI(props) {
111
111
  }, /*#__PURE__*/_react.default.createElement("img", {
112
112
  src: optimizeImage(business === null || business === void 0 ? void 0 : business.logo, 'h_50,c_limit'),
113
113
  alt: ""
114
- }), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, business === null || business === void 0 ? void 0 : business.name), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 ? void 0 : (_business$city = business.city) === null || _business$city === void 0 ? void 0 : _business$city.name)));
114
+ }), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, business === null || business === void 0 ? void 0 : business.name), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 || (_business$city = business.city) === null || _business$city === void 0 ? void 0 : _business$city.name)));
115
115
  }))), pagination && (pagination === null || pagination === void 0 ? void 0 : pagination.total) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.WrapperPagination, {
116
116
  className: "pagination-container"
117
117
  }, (pagination === null || pagination === void 0 ? void 0 : pagination.total) && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
@@ -132,8 +132,8 @@ var BusinessServiceProfessionalsUI = function BusinessServiceProfessionalsUI(pro
132
132
  width: 16,
133
133
  height: 16
134
134
  }));
135
- })) : usersList === null || usersList === void 0 ? void 0 : (_usersList$users = usersList.users) === null || _usersList$users === void 0 ? void 0 : _usersList$users.map(function (user, i) {
136
- var _theme$images, _theme$images$dummies;
135
+ })) : usersList === null || usersList === void 0 || (_usersList$users = usersList.users) === null || _usersList$users === void 0 ? void 0 : _usersList$users.map(function (user, i) {
136
+ var _theme$images;
137
137
  return /*#__PURE__*/_react.default.createElement(_styles2.ProfessionalItemContainer, {
138
138
  key: i,
139
139
  onClick: function onClick(e) {
@@ -143,7 +143,7 @@ var BusinessServiceProfessionalsUI = function BusinessServiceProfessionalsUI(pro
143
143
  }, /*#__PURE__*/_react.default.createElement(_styles2.CheckWrapper, null, /*#__PURE__*/_react.default.createElement("label", {
144
144
  htmlFor: user === null || user === void 0 ? void 0 : user.id
145
145
  }, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles2.Image, {
146
- bgimage: optimizeImage((user === null || user === void 0 ? void 0 : user.photo) || ((_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))
146
+ bgimage: optimizeImage((user === null || user === void 0 ? void 0 : user.photo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo))
147
147
  })), /*#__PURE__*/_react.default.createElement(_styles2.UserInfo, null, /*#__PURE__*/_react.default.createElement("h3", null, user === null || user === void 0 ? void 0 : user.name), /*#__PURE__*/_react.default.createElement("p", null, user === null || user === void 0 ? void 0 : user.email)))), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ChevronRight, null));
148
148
  }), /*#__PURE__*/_react.default.createElement(_styles2.BottomWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.AddBtn, {
149
149
  onClick: function onClick() {
@@ -24,7 +24,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
24
24
  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; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  var BusinessSharedMenuProductDetailsUI = function BusinessSharedMenuProductDetailsUI(props) {
27
- var _ref, _formState$changes$pr, _formState$changes, _productState$product, _ref2, _formState$changes$qu, _formState$changes2, _productState$product2, _productState$product3, _productState$product4;
27
+ var _ref, _formState$changes$pr, _formState$changes, _productState$product, _ref2, _formState$changes$qu, _formState$changes2, _productState$product2, _productState$product3;
28
28
  var productState = props.productState,
29
29
  formState = props.formState,
30
30
  handleChangeInput = props.handleChangeInput,
@@ -80,7 +80,7 @@ var BusinessSharedMenuProductDetailsUI = function BusinessSharedMenuProductDetai
80
80
  return /*#__PURE__*/_react.default.createElement(_styles2.DetailsContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, productState.product.name), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('PRICE', 'Price')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
81
81
  placeholder: "$0.00",
82
82
  name: "price",
83
- value: (_ref = (_formState$changes$pr = formState === null || formState === void 0 ? void 0 : (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.price) !== null && _formState$changes$pr !== void 0 ? _formState$changes$pr : (_productState$product = productState.product) === null || _productState$product === void 0 ? void 0 : _productState$product.price) !== null && _ref !== void 0 ? _ref : '',
83
+ value: (_ref = (_formState$changes$pr = formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.price) !== null && _formState$changes$pr !== void 0 ? _formState$changes$pr : (_productState$product = productState.product) === null || _productState$product === void 0 ? void 0 : _productState$product.price) !== null && _ref !== void 0 ? _ref : '',
84
84
  onChange: function onChange(e) {
85
85
  return handleChangeInput(e);
86
86
  },
@@ -99,7 +99,7 @@ var BusinessSharedMenuProductDetailsUI = function BusinessSharedMenuProductDetai
99
99
  })), /*#__PURE__*/_react.default.createElement(_styles2.QuantityWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Input, {
100
100
  placeholder: "0",
101
101
  name: "quantity",
102
- value: (_ref2 = (_formState$changes$qu = formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.quantity) !== null && _formState$changes$qu !== void 0 ? _formState$changes$qu : (_productState$product2 = productState.product) === null || _productState$product2 === void 0 ? void 0 : _productState$product2.quantity) !== null && _ref2 !== void 0 ? _ref2 : '',
102
+ value: (_ref2 = (_formState$changes$qu = formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.quantity) !== null && _formState$changes$qu !== void 0 ? _formState$changes$qu : (_productState$product2 = productState.product) === null || _productState$product2 === void 0 ? void 0 : _productState$product2.quantity) !== null && _ref2 !== void 0 ? _ref2 : '',
103
103
  onChange: function onChange(e) {
104
104
  return handleChangeInput(e);
105
105
  },
@@ -122,7 +122,7 @@ var BusinessSharedMenuProductDetailsUI = function BusinessSharedMenuProductDetai
122
122
  upselling: enabled
123
123
  });
124
124
  }
125
- })), ((_productState$product3 = productState.product) === null || _productState$product3 === void 0 ? void 0 : (_productState$product4 = _productState$product3.extras) === null || _productState$product4 === void 0 ? void 0 : _productState$product4.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.SearchbarWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('PRODUCT_OPTIONS', 'Product options')), /*#__PURE__*/_react.default.createElement(_Shared.SearchBar, {
125
+ })), ((_productState$product3 = productState.product) === null || _productState$product3 === void 0 || (_productState$product3 = _productState$product3.extras) === null || _productState$product3 === void 0 ? void 0 : _productState$product3.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.SearchbarWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('PRODUCT_OPTIONS', 'Product options')), /*#__PURE__*/_react.default.createElement(_Shared.SearchBar, {
126
126
  placeholder: t('SEARCH', 'Search'),
127
127
  isCustomLayout: true,
128
128
  search: searchValue,
@@ -54,7 +54,7 @@ var BusinessSharedMenuProductsUI = function BusinessSharedMenuProductsUI(props)
54
54
  setIsOpenDetails = _useState6[1];
55
55
  var handleOpenProduct = function handleOpenProduct(e, product, isInitialRender) {
56
56
  var _e$target;
57
- var isInvalid = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.product_checkbox');
57
+ var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.product_checkbox');
58
58
  if (isInvalid) return;
59
59
  setIsOpenSharedProduct(true);
60
60
  setCurrentProduct(product);
@@ -93,7 +93,7 @@ var BusinessSpreadSheetUI = function BusinessSpreadSheetUI(props) {
93
93
  var _spreadSheetState$res2;
94
94
  setAlertState({
95
95
  open: true,
96
- content: spreadSheetState === null || spreadSheetState === void 0 ? void 0 : (_spreadSheetState$res2 = spreadSheetState.result) === null || _spreadSheetState$res2 === void 0 ? void 0 : _spreadSheetState$res2.result
96
+ content: spreadSheetState === null || spreadSheetState === void 0 || (_spreadSheetState$res2 = spreadSheetState.result) === null || _spreadSheetState$res2 === void 0 ? void 0 : _spreadSheetState$res2.result
97
97
  });
98
98
  }
99
99
  }, [spreadSheetState === null || spreadSheetState === void 0 ? void 0 : spreadSheetState.result]);
@@ -33,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
33
33
  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; } }
34
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
35
  var BusinessSummary = function BusinessSummary(props) {
36
- var _businessState$busine5, _businessState$busine6, _businessState$busine7, _businessState$busine8, _theme$images, _theme$images$dummies, _businessState$busine9;
36
+ var _businessState$busine5, _businessState$busine6, _businessState$busine7, _businessState$busine8, _theme$images, _businessState$busine9;
37
37
  var isAdmin = props.isAdmin,
38
38
  businessState = props.businessState,
39
39
  actionSidebar = props.actionSidebar,
@@ -86,13 +86,13 @@ var BusinessSummary = function BusinessSummary(props) {
86
86
  events.emit('go_to_page', {
87
87
  page: 'store',
88
88
  params: {
89
- store: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.slug
89
+ store: businessState === null || businessState === void 0 || (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.slug
90
90
  }
91
91
  });
92
92
  };
93
93
  var handleOpenSite = function handleOpenSite() {
94
94
  var _siteState$site, _siteState$site2, _siteState$site3, _businessState$busine2, _configs$site_url, _configs$site_url2, _businessState$busine3, _businessState$busine4;
95
- var storeUrl = siteState !== null && siteState !== void 0 && (_siteState$site = siteState.site) !== null && _siteState$site !== void 0 && _siteState$site.domain && (siteState === null || siteState === void 0 ? void 0 : (_siteState$site2 = siteState.site) === null || _siteState$site2 === void 0 ? void 0 : _siteState$site2.ssl_process_status) === 'ended' ? "https://".concat(siteState === null || siteState === void 0 ? void 0 : (_siteState$site3 = siteState.site) === null || _siteState$site3 === void 0 ? void 0 : _siteState$site3.domain, "/store/").concat(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.slug) : configs !== null && configs !== void 0 && (_configs$site_url = configs.site_url) !== null && _configs$site_url !== void 0 && _configs$site_url.value ? "".concat((0, _utils.checkSiteUrl)(configs === null || configs === void 0 ? void 0 : (_configs$site_url2 = configs.site_url) === null || _configs$site_url2 === void 0 ? void 0 : _configs$site_url2.value), "store/").concat(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.slug) : "https://".concat(ordering.project, ".tryordering.com/store/").concat(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.slug);
95
+ var storeUrl = siteState !== null && siteState !== void 0 && (_siteState$site = siteState.site) !== null && _siteState$site !== void 0 && _siteState$site.domain && (siteState === null || siteState === void 0 || (_siteState$site2 = siteState.site) === null || _siteState$site2 === void 0 ? void 0 : _siteState$site2.ssl_process_status) === 'ended' ? "https://".concat(siteState === null || siteState === void 0 || (_siteState$site3 = siteState.site) === null || _siteState$site3 === void 0 ? void 0 : _siteState$site3.domain, "/store/").concat(businessState === null || businessState === void 0 || (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.slug) : configs !== null && configs !== void 0 && (_configs$site_url = configs.site_url) !== null && _configs$site_url !== void 0 && _configs$site_url.value ? "".concat((0, _utils.checkSiteUrl)(configs === null || configs === void 0 || (_configs$site_url2 = configs.site_url) === null || _configs$site_url2 === void 0 ? void 0 : _configs$site_url2.value), "store/").concat(businessState === null || businessState === void 0 || (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.slug) : "https://".concat(ordering.project, ".tryordering.com/store/").concat(businessState === null || businessState === void 0 || (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.slug);
96
96
  window.open(storeUrl, '_blank');
97
97
  };
98
98
  var itemsExcluded = !!spoonityConfig ? ['publishing', 'personalization'] : ['publishing', 'spoonity_key', 'personalization'];
@@ -175,10 +175,10 @@ var BusinessSummary = function BusinessSummary(props) {
175
175
  };
176
176
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.BusinessDetailsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.LeftHeader, null, businessState !== null && businessState !== void 0 && businessState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.BusinessName, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
177
177
  width: 100
178
- })) : /*#__PURE__*/_react.default.createElement(_styles2.BusinessName, null, businessState === null || businessState === void 0 ? void 0 : (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.name), businessState !== null && businessState !== void 0 && businessState.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
178
+ })) : /*#__PURE__*/_react.default.createElement(_styles2.BusinessName, null, businessState === null || businessState === void 0 || (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.name), businessState !== null && businessState !== void 0 && businessState.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
179
179
  width: 50
180
180
  }) : /*#__PURE__*/_react.default.createElement(_styles.Switch, {
181
- defaultChecked: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.enabled,
181
+ defaultChecked: businessState === null || businessState === void 0 || (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.enabled,
182
182
  onChange: handleChangeActiveBusiness
183
183
  })), /*#__PURE__*/_react.default.createElement(_styles2.RightHeader, null, /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
184
184
  disabled: true
@@ -223,9 +223,9 @@ var BusinessSummary = function BusinessSummary(props) {
223
223
  width: 60,
224
224
  height: 60
225
225
  }))) : /*#__PURE__*/_react.default.createElement(_styles2.BusinessHeader, {
226
- bgimage: optimizeImage(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine7 = businessState.business) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.header, 'h_200,c_limit')
226
+ bgimage: optimizeImage(businessState === null || businessState === void 0 || (_businessState$busine7 = businessState.business) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.header, 'h_200,c_limit')
227
227
  }, /*#__PURE__*/_react.default.createElement(_styles2.BusinessLogo, {
228
- bgimage: optimizeImage((businessState === null || businessState === void 0 ? void 0 : (_businessState$busine8 = businessState.business) === null || _businessState$busine8 === void 0 ? void 0 : _businessState$busine8.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_100,c_limit')
228
+ bgimage: optimizeImage((businessState === null || businessState === void 0 || (_businessState$busine8 = businessState.business) === null || _businessState$busine8 === void 0 ? void 0 : _businessState$busine8.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_100,c_limit')
229
229
  })), /*#__PURE__*/_react.default.createElement(_styles2.BusinessDetailsContent, null, /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
230
230
  color: "lightPrimary",
231
231
  borderRadius: "8px",
@@ -239,7 +239,7 @@ var BusinessSummary = function BusinessSummary(props) {
239
239
  disabled: businessState === null || businessState === void 0 ? void 0 : businessState.loading
240
240
  }, t('STORE_WEBSITE', 'Store website'))), /*#__PURE__*/_react.default.createElement(_styles2.BusinessDescription, null, businessState !== null && businessState !== void 0 && businessState.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
241
241
  width: 300
242
- }) : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine9 = businessState.business) === null || _businessState$busine9 === void 0 ? void 0 : _businessState$busine9.description), /*#__PURE__*/_react.default.createElement(_styles2.BusinessConfigsContainer, {
242
+ }) : businessState === null || businessState === void 0 || (_businessState$busine9 = businessState.business) === null || _businessState$busine9 === void 0 ? void 0 : _businessState$busine9.description), /*#__PURE__*/_react.default.createElement(_styles2.BusinessConfigsContainer, {
243
243
  isLoading: businessState === null || businessState === void 0 ? void 0 : businessState.loading
244
244
  }, (isAdmin ? !!spoonityConfig ? businessConfigs : businessConfigs.filter(function (configs) {
245
245
  return configs.key !== 'spoonity_key';
@@ -18,7 +18,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
18
18
  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; } }
19
19
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  var BusinessSupport = function BusinessSupport(props) {
21
- var _businessState$busine, _businessState$busine2;
21
+ var _businessState$busine;
22
22
  var businessState = props.businessState;
23
23
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
24
24
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
@@ -26,7 +26,7 @@ var BusinessSupport = function BusinessSupport(props) {
26
26
  var _useUtils = (0, _orderingComponentsAdminExternal.useUtils)(),
27
27
  _useUtils2 = _slicedToArray(_useUtils, 1),
28
28
  getTimeAgo = _useUtils2[0].getTimeAgo;
29
- return /*#__PURE__*/_react.default.createElement(_styles2.BusinessSupportContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, t('PRODUCT_DETAILS', 'Product details')), /*#__PURE__*/_react.default.createElement(_styles2.BusinessOwnersContainer, null, businessState === null || businessState === void 0 ? void 0 : (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 ? void 0 : (_businessState$busine2 = _businessState$busine.owners) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.map(function (owner) {
29
+ return /*#__PURE__*/_react.default.createElement(_styles2.BusinessSupportContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, t('PRODUCT_DETAILS', 'Product details')), /*#__PURE__*/_react.default.createElement(_styles2.BusinessOwnersContainer, null, businessState === null || businessState === void 0 || (_businessState$busine = businessState.business) === null || _businessState$busine === void 0 || (_businessState$busine = _businessState$busine.owners) === null || _businessState$busine === void 0 ? void 0 : _businessState$busine.map(function (owner) {
30
30
  return /*#__PURE__*/_react.default.createElement(_styles2.BusinessOwnerInfo, {
31
31
  key: owner.id
32
32
  }, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, null, owner !== null && owner !== void 0 && owner.photo ? /*#__PURE__*/_react.default.createElement(_styles2.Image, {
@@ -99,8 +99,8 @@ var BusinessSyncStoreUI = function BusinessSyncStoreUI(props) {
99
99
  marginRight: 10
100
100
  }
101
101
  }));
102
- })) : /*#__PURE__*/_react.default.createElement(_styles.BusinessListWrapper, null, (businessList === null || businessList === void 0 ? void 0 : (_businessList$busines = businessList.businesses) === null || _businessList$busines === void 0 ? void 0 : _businessList$busines.length) > 0 ? businessList === null || businessList === void 0 ? void 0 : businessList.businesses.map(function (business, i) {
103
- var _theme$images, _theme$images$dummies;
102
+ })) : /*#__PURE__*/_react.default.createElement(_styles.BusinessListWrapper, null, (businessList === null || businessList === void 0 || (_businessList$busines = businessList.businesses) === null || _businessList$busines === void 0 ? void 0 : _businessList$busines.length) > 0 ? businessList === null || businessList === void 0 ? void 0 : businessList.businesses.map(function (business, i) {
103
+ var _theme$images;
104
104
  return /*#__PURE__*/_react.default.createElement(_styles.BusinessItemContainer, {
105
105
  key: i,
106
106
  active: (selectedBusiness === null || selectedBusiness === void 0 ? void 0 : selectedBusiness.id) === (business === null || business === void 0 ? void 0 : business.id),
@@ -111,7 +111,7 @@ var BusinessSyncStoreUI = function BusinessSyncStoreUI(props) {
111
111
  }, /*#__PURE__*/_react.default.createElement("label", {
112
112
  htmlFor: business === null || business === void 0 ? void 0 : business.id
113
113
  }, /*#__PURE__*/_react.default.createElement(_styles.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles.Image, {
114
- bgimage: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo))
114
+ bgimage: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo))
115
115
  })), /*#__PURE__*/_react.default.createElement(_styles.BusinessName, null, business === null || business === void 0 ? void 0 : business.name)), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ChevronRight, null));
116
116
  }) : /*#__PURE__*/_react.default.createElement(_Shared.NotFoundSource, null), (pagination === null || pagination === void 0 ? void 0 : pagination.total) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
117
117
  currentPage: pagination.currentPage,
@@ -150,7 +150,7 @@ var BusinessTypeDetailUI = function BusinessTypeDetailUI(props) {
150
150
  });
151
151
  }
152
152
  }, [formMethods.errors]);
153
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, businessTypeState !== null && businessTypeState !== void 0 && businessTypeState.businessType ? (_ref = (_typeFormState$change = (_typeFormState$change2 = typeFormState.changes) === null || _typeFormState$change2 === void 0 ? void 0 : _typeFormState$change2.name) !== null && _typeFormState$change !== void 0 ? _typeFormState$change : businessTypeState === null || businessTypeState === void 0 ? void 0 : (_businessTypeState$bu = businessTypeState.businessType) === null || _businessTypeState$bu === void 0 ? void 0 : _businessTypeState$bu.name) !== null && _ref !== void 0 ? _ref : '' : t(t('ADD_NEW_BUSINESS_CATEGORY', 'Add new business category'))), /*#__PURE__*/_react.default.createElement(_styles2.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
153
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, businessTypeState !== null && businessTypeState !== void 0 && businessTypeState.businessType ? (_ref = (_typeFormState$change = (_typeFormState$change2 = typeFormState.changes) === null || _typeFormState$change2 === void 0 ? void 0 : _typeFormState$change2.name) !== null && _typeFormState$change !== void 0 ? _typeFormState$change : businessTypeState === null || businessTypeState === void 0 || (_businessTypeState$bu = businessTypeState.businessType) === null || _businessTypeState$bu === void 0 ? void 0 : _businessTypeState$bu.name) !== null && _ref !== void 0 ? _ref : '' : t(t('ADD_NEW_BUSINESS_CATEGORY', 'Add new business category'))), /*#__PURE__*/_react.default.createElement(_styles2.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
154
154
  menuAlign: theme !== null && theme !== void 0 && theme.rtl ? 'left' : 'right',
155
155
  title: /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ThreeDots, null),
156
156
  id: theme !== null && theme !== void 0 && theme.rtl ? 'dropdown-menu-align-left' : 'dropdown-menu-align-right'
@@ -179,18 +179,18 @@ var BusinessTypeDetailUI = function BusinessTypeDetailUI(props) {
179
179
  },
180
180
  accept: "image/png, image/jpeg, image/jpg",
181
181
  disabled: typeFormState.loading
182
- }, !((_typeFormState$change3 = typeFormState.changes) !== null && _typeFormState$change3 !== void 0 && _typeFormState$change3.image) || typeFormState.error ? (businessTypeState === null || businessTypeState === void 0 ? void 0 : (_businessTypeState$bu2 = businessTypeState.businessType) === null || _businessTypeState$bu2 === void 0 ? void 0 : _businessTypeState$bu2.image) && /*#__PURE__*/_react.default.createElement("img", {
183
- src: optimizeImage(businessTypeState === null || businessTypeState === void 0 ? void 0 : (_businessTypeState$bu3 = businessTypeState.businessType) === null || _businessTypeState$bu3 === void 0 ? void 0 : _businessTypeState$bu3.image, 'h_200,c_limit'),
182
+ }, !((_typeFormState$change3 = typeFormState.changes) !== null && _typeFormState$change3 !== void 0 && _typeFormState$change3.image) || typeFormState.error ? (businessTypeState === null || businessTypeState === void 0 || (_businessTypeState$bu2 = businessTypeState.businessType) === null || _businessTypeState$bu2 === void 0 ? void 0 : _businessTypeState$bu2.image) && /*#__PURE__*/_react.default.createElement("img", {
183
+ src: optimizeImage(businessTypeState === null || businessTypeState === void 0 || (_businessTypeState$bu3 = businessTypeState.businessType) === null || _businessTypeState$bu3 === void 0 ? void 0 : _businessTypeState$bu3.image, 'h_200,c_limit'),
184
184
  alt: "tag image",
185
185
  loading: "lazy"
186
- }) : (typeFormState === null || typeFormState === void 0 ? void 0 : (_typeFormState$change4 = typeFormState.changes) === null || _typeFormState$change4 === void 0 ? void 0 : _typeFormState$change4.image) && /*#__PURE__*/_react.default.createElement("img", {
187
- src: typeFormState === null || typeFormState === void 0 ? void 0 : (_typeFormState$change5 = typeFormState.changes) === null || _typeFormState$change5 === void 0 ? void 0 : _typeFormState$change5.image,
186
+ }) : (typeFormState === null || typeFormState === void 0 || (_typeFormState$change4 = typeFormState.changes) === null || _typeFormState$change4 === void 0 ? void 0 : _typeFormState$change4.image) && /*#__PURE__*/_react.default.createElement("img", {
187
+ src: typeFormState === null || typeFormState === void 0 || (_typeFormState$change5 = typeFormState.changes) === null || _typeFormState$change5 === void 0 ? void 0 : _typeFormState$change5.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, {
191
191
  name: "name",
192
192
  placeholder: t('NAME', 'Name'),
193
- value: (_ref2 = (_typeFormState$change6 = (_typeFormState$change7 = typeFormState.changes) === null || _typeFormState$change7 === void 0 ? void 0 : _typeFormState$change7.name) !== null && _typeFormState$change6 !== void 0 ? _typeFormState$change6 : businessTypeState === null || businessTypeState === void 0 ? void 0 : (_businessTypeState$bu4 = businessTypeState.businessType) === null || _businessTypeState$bu4 === void 0 ? void 0 : _businessTypeState$bu4.name) !== null && _ref2 !== void 0 ? _ref2 : '',
193
+ value: (_ref2 = (_typeFormState$change6 = (_typeFormState$change7 = typeFormState.changes) === null || _typeFormState$change7 === void 0 ? void 0 : _typeFormState$change7.name) !== null && _typeFormState$change6 !== void 0 ? _typeFormState$change6 : businessTypeState === null || businessTypeState === void 0 || (_businessTypeState$bu4 = businessTypeState.businessType) === null || _businessTypeState$bu4 === void 0 ? void 0 : _businessTypeState$bu4.name) !== null && _ref2 !== void 0 ? _ref2 : '',
194
194
  onChange: function onChange(e) {
195
195
  return handleChangeInput(e);
196
196
  },
@@ -77,7 +77,7 @@ var BusinessTypes = function BusinessTypes(props) {
77
77
  setIsOpenTypeDetail = _useState12[1];
78
78
  var handleOpenBusinessTypeDetail = function handleOpenBusinessTypeDetail(category, e) {
79
79
  var _e$target;
80
- var isInvalid = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.business-type-checkbox');
80
+ var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.business-type-checkbox');
81
81
  if (isInvalid) return;
82
82
  setSelectedBusinessType(category);
83
83
  setIsExtendExtraOpen(true);
@@ -149,7 +149,7 @@ var BusinessTypes = function BusinessTypes(props) {
149
149
  (0, _react.useEffect)(function () {
150
150
  var updatedBusinessTypes = businessTypes.filter(function (type) {
151
151
  var _type$name;
152
- return type === null || type === void 0 ? void 0 : (_type$name = type.name) === null || _type$name === void 0 ? void 0 : _type$name.toLowerCase().includes(searchVal === null || searchVal === void 0 ? void 0 : searchVal.toLowerCase());
152
+ return type === null || type === void 0 || (_type$name = type.name) === null || _type$name === void 0 ? void 0 : _type$name.toLowerCase().includes(searchVal === null || searchVal === void 0 ? void 0 : searchVal.toLowerCase());
153
153
  });
154
154
  setFilteredBusinessTypes(_toConsumableArray(updatedBusinessTypes));
155
155
  }, [businessTypes, searchVal]);
@@ -73,7 +73,7 @@ var BusinessVideosUI = function BusinessVideosUI(props) {
73
73
  var _formState$result2;
74
74
  setAlertState({
75
75
  open: true,
76
- content: formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
76
+ content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
77
77
  });
78
78
  }
79
79
  }, [formState]);
@@ -92,7 +92,7 @@ var BusinessVideosUI = function BusinessVideosUI(props) {
92
92
  }, t('DELETE', 'Delete')));
93
93
  }), /*#__PURE__*/_react.default.createElement(_styles2.BusinessAddVideoWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Input, {
94
94
  placeholder: t('VIDEO_URL', 'Video url'),
95
- value: (_formState$changes$vi = formState === null || formState === void 0 ? void 0 : (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.video) !== null && _formState$changes$vi !== void 0 ? _formState$changes$vi : '',
95
+ value: (_formState$changes$vi = formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.video) !== null && _formState$changes$vi !== void 0 ? _formState$changes$vi : '',
96
96
  onChange: function onChange(e) {
97
97
  return handleChangeBusinessVideo(e);
98
98
  },
@@ -56,8 +56,8 @@ var BusinessWalletsListUI = function BusinessWalletsListUI(props) {
56
56
  _useState6 = _slicedToArray(_useState5, 2),
57
57
  options = _useState6[0],
58
58
  setOptions = _useState6[1];
59
- var isWalletCashEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$wallet_cash_ = configs.wallet_cash_enabled) === null || _configs$wallet_cash_ === void 0 ? void 0 : _configs$wallet_cash_.value) === '1';
60
- var isWalletPointsEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$wallet_credi = configs.wallet_credit_point_enabled) === null || _configs$wallet_credi === void 0 ? void 0 : _configs$wallet_credi.value) === '1';
59
+ var isWalletCashEnabled = (configs === null || configs === void 0 || (_configs$wallet_cash_ = configs.wallet_cash_enabled) === null || _configs$wallet_cash_ === void 0 ? void 0 : _configs$wallet_cash_.value) === '1';
60
+ var isWalletPointsEnabled = (configs === null || configs === void 0 || (_configs$wallet_credi = configs.wallet_credit_point_enabled) === null || _configs$wallet_credi === void 0 ? void 0 : _configs$wallet_credi.value) === '1';
61
61
  var walletsEnabled = {
62
62
  wallet_cash_enabled: isWalletCashEnabled,
63
63
  wallet_credit_point_enabled: isWalletPointsEnabled && loyaltyPlanState.created