ordering-ui-admin-external 1.30.5 → 1.30.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/_bundles/{ordering-ui-admin.d23ef912a8c0e75e18e5.js → ordering-ui-admin.a29dbc53a1f823ce0ce5.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.d23ef912a8c0e75e18e5.js.LICENSE.txt → ordering-ui-admin.a29dbc53a1f823ce0ce5.js.LICENSE.txt} +1 -1
  3. package/_modules/components/BusinessIntelligence/AnalyticsAvailableTimes/index.js +10 -10
  4. package/_modules/components/BusinessIntelligence/AnalyticsBusinessFilter/index.js +1 -1
  5. package/_modules/components/BusinessIntelligence/AnalyticsBusyTimes/index.js +10 -10
  6. package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +1 -1
  7. package/_modules/components/BusinessIntelligence/AnalyticsCustomerSatisfaction/index.js +10 -10
  8. package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +18 -18
  9. package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +4 -4
  10. package/_modules/components/BusinessIntelligence/AnalyticsOrdersOrSales/index.js +3 -3
  11. package/_modules/components/BusinessIntelligence/AnalyticsOrdersStatus/index.js +1 -1
  12. package/_modules/components/BusinessIntelligence/AnalyticsRegisterUsers/index.js +6 -6
  13. package/_modules/components/BusinessIntelligence/AnalyticsSpendTimes/index.js +12 -12
  14. package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
  15. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
  16. package/_modules/components/BusinessIntelligence/CountryFilter/index.js +4 -2
  17. package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
  18. package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
  19. package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
  20. package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +14 -14
  21. package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
  22. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +41 -36
  23. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +22 -17
  24. package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +15 -15
  25. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +30 -25
  26. package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
  27. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +22 -17
  28. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +22 -17
  29. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +7 -7
  30. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +22 -17
  31. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +24 -19
  32. package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +37 -32
  33. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +38 -33
  34. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +34 -29
  35. package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
  36. package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +37 -32
  37. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -9
  38. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +30 -25
  39. package/_modules/components/BusinessIntelligence/ReportsSales/index.js +36 -31
  40. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +8 -8
  41. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +25 -26
  42. package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +14 -14
  43. package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
  44. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
  45. package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
  46. package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
  47. package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
  48. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
  49. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
  50. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
  51. package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
  52. package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
  53. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
  54. package/_modules/components/Delivery/AddressForm/index.js +29 -29
  55. package/_modules/components/Delivery/AddressList/index.js +11 -11
  56. package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
  57. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
  58. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
  59. package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
  60. package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
  61. package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
  62. package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
  63. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
  64. package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
  65. package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
  66. package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
  67. package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
  68. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  69. package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
  70. package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  71. package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
  72. package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
  73. package/_modules/components/Delivery/UserAddForm/index.js +13 -13
  74. package/_modules/components/Delivery/UserDetails/index.js +6 -6
  75. package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
  76. package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
  77. package/_modules/components/Home/HomePage/index.js +7 -7
  78. package/_modules/components/LanguageSelector/index.js +1 -1
  79. package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
  80. package/_modules/components/Login/LoginForm/index.js +11 -11
  81. package/_modules/components/Login/ResetPassword/index.js +5 -5
  82. package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
  83. package/_modules/components/Loyalty/GiftCards/index.js +3 -3
  84. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
  85. package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
  86. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
  87. package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
  88. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
  89. package/_modules/components/Marketing/BannerDetails/index.js +5 -5
  90. package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
  91. package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
  92. package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
  93. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  94. package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
  95. package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
  96. package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
  97. package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
  98. package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
  99. package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
  100. package/_modules/components/Marketing/CampaignList/index.js +2 -2
  101. package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
  102. package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
  103. package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
  104. package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
  105. package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
  106. package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
  107. package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
  108. package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
  109. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
  110. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
  111. package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
  112. package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
  113. package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
  114. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
  115. package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
  116. package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
  117. package/_modules/components/Marketing/PageBanner/index.js +1 -1
  118. package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
  119. package/_modules/components/Messages/ChatContactList/index.js +2 -2
  120. package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
  121. package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
  122. package/_modules/components/MyProducts/AppResources/index.js +15 -15
  123. package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
  124. package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
  125. package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
  126. package/_modules/components/MyProducts/OrderingWebsite/index.js +29 -29
  127. package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
  128. package/_modules/components/NotNetworkConnectivity/index.js +2 -2
  129. package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
  130. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  131. package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
  132. package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
  133. package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
  134. package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
  135. package/_modules/components/Orders/Appointments/index.js +2 -2
  136. package/_modules/components/Orders/CompanySelector/index.js +4 -4
  137. package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
  138. package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
  139. package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
  140. package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
  141. package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
  142. package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
  143. package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +2 -2
  144. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
  145. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
  146. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
  147. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
  148. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
  149. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
  150. package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
  151. package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
  152. package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
  153. package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
  154. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +1 -1
  155. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
  156. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
  157. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
  158. package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
  159. package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
  160. package/_modules/components/Orders/DeliveriesManager/index.js +2 -2
  161. package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
  162. package/_modules/components/Orders/DriversList/index.js +2 -2
  163. package/_modules/components/Orders/DriversLocation/index.js +11 -11
  164. package/_modules/components/Orders/DriversManager/index.js +2 -2
  165. package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
  166. package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
  167. package/_modules/components/Orders/Logistics/index.js +1 -1
  168. package/_modules/components/Orders/Messages/index.js +4 -4
  169. package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
  170. package/_modules/components/Orders/OrderBill/index.js +46 -46
  171. package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
  172. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
  173. package/_modules/components/Orders/OrderDetails/index.js +6 -6
  174. package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
  175. package/_modules/components/Orders/OrderLogisticInformation/index.js +2 -4
  176. package/_modules/components/Orders/OrderNotification/index.js +4 -4
  177. package/_modules/components/Orders/OrderStatusFilterBar/index.js +4 -4
  178. package/_modules/components/Orders/OrderToPrint/index.js +22 -22
  179. package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
  180. package/_modules/components/Orders/OrdersCards/index.js +29 -29
  181. package/_modules/components/Orders/OrdersContentHeader/index.js +3 -3
  182. package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
  183. package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
  184. package/_modules/components/Orders/OrdersListing/index.js +3 -3
  185. package/_modules/components/Orders/OrdersTable/index.js +54 -54
  186. package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
  187. package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
  188. package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
  189. package/_modules/components/PageNotFound/index.js +3 -3
  190. package/_modules/components/Settings/ApiKeysList/index.js +1 -1
  191. package/_modules/components/Settings/CountriesList/index.js +1 -1
  192. package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
  193. package/_modules/components/Settings/EmailSetting/index.js +5 -5
  194. package/_modules/components/Settings/InsertImage/index.js +3 -3
  195. package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
  196. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
  197. package/_modules/components/Settings/LanguageSetting/index.js +1 -1
  198. package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
  199. package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
  200. package/_modules/components/Settings/NotificationSetting/index.js +6 -6
  201. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  202. package/_modules/components/Settings/Settings/index.js +3 -3
  203. package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
  204. package/_modules/components/Settings/SettingsList/index.js +4 -4
  205. package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
  206. package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
  207. package/_modules/components/Shared/AutoScroll/index.js +4 -4
  208. package/_modules/components/Shared/CitySelector/index.js +1 -1
  209. package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
  210. package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
  211. package/_modules/components/Shared/DragScroll/index.js +5 -5
  212. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
  213. package/_modules/components/Shared/InputPhoneNumber/index.js +2 -2
  214. package/_modules/components/Shared/NotFoundSource/index.js +2 -2
  215. package/_modules/components/Shared/Personalization/index.js +1 -1
  216. package/_modules/components/Shared/RangeCalendar/index.js +2 -2
  217. package/_modules/components/Shared/Schedule/index.js +6 -6
  218. package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
  219. package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
  220. package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
  221. package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
  222. package/_modules/components/Shared/SelectSites/index.js +1 -1
  223. package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
  224. package/_modules/components/SidebarMenu/index.js +37 -40
  225. package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
  226. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
  227. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
  228. package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
  229. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
  230. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
  231. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
  232. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +1 -1
  233. package/_modules/components/Stores/BusinessAdd/index.js +9 -9
  234. package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
  235. package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
  236. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
  237. package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
  238. package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
  239. package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
  240. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
  241. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
  242. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
  243. package/_modules/components/Stores/BusinessDetails/index.js +7 -7
  244. package/_modules/components/Stores/BusinessDeviceDetail/index.js +12 -12
  245. package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
  246. package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
  247. package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
  248. package/_modules/components/Stores/BusinessImages/index.js +4 -4
  249. package/_modules/components/Stores/BusinessInformation/index.js +35 -35
  250. package/_modules/components/Stores/BusinessLocation/index.js +7 -7
  251. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  252. package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
  253. package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
  254. package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
  255. package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
  256. package/_modules/components/Stores/BusinessOwners/index.js +1 -1
  257. package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
  258. package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
  259. package/_modules/components/Stores/BusinessPlace/index.js +1 -1
  260. package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
  261. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
  262. package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
  263. package/_modules/components/Stores/BusinessPreview/index.js +19 -19
  264. package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
  265. package/_modules/components/Stores/BusinessProductList/index.js +5 -5
  266. package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
  267. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
  268. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
  269. package/_modules/components/Stores/BusinessProductsListing/index.js +20 -20
  270. package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
  271. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  272. package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
  273. package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
  274. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
  275. package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
  276. package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
  277. package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
  278. package/_modules/components/Stores/BusinessSummary/index.js +8 -8
  279. package/_modules/components/Stores/BusinessSupport/index.js +2 -2
  280. package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
  281. package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
  282. package/_modules/components/Stores/BusinessTypes/index.js +2 -2
  283. package/_modules/components/Stores/BusinessVideos/index.js +2 -2
  284. package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
  285. package/_modules/components/Stores/BusinessWebhooks/index.js +5 -5
  286. package/_modules/components/Stores/BusinessesListing/index.js +1 -1
  287. package/_modules/components/Stores/ImporterForm/index.js +3 -3
  288. package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
  289. package/_modules/components/Stores/PaymentOption/index.js +11 -11
  290. package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
  291. package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
  292. package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
  293. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
  294. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
  295. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
  296. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
  297. package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
  298. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
  299. package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
  300. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +20 -20
  301. package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
  302. package/_modules/components/Stores/ProductExtraOptions/index.js +2 -2
  303. package/_modules/components/Stores/ProductExtraSuboption/index.js +4 -4
  304. package/_modules/components/Stores/ProductExtras/index.js +1 -1
  305. package/_modules/components/Stores/ProductGallery/index.js +3 -3
  306. package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
  307. package/_modules/components/Stores/ProductStep/index.js +2 -2
  308. package/_modules/components/Stores/ProductSummary/index.js +7 -7
  309. package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
  310. package/_modules/components/Stores/ProductTagsList/index.js +1 -1
  311. package/_modules/components/Stores/ProductVideos/index.js +1 -1
  312. package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
  313. package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
  314. package/_modules/components/Stores/SeoOptions/index.js +9 -9
  315. package/_modules/components/Stores/ServiceDetail/index.js +5 -5
  316. package/_modules/components/Stores/SingleBusiness/index.js +14 -14
  317. package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
  318. package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
  319. package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
  320. package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
  321. package/_modules/components/Users/CustomerDetails/index.js +2 -2
  322. package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
  323. package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
  324. package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
  325. package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
  326. package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
  327. package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
  328. package/_modules/components/Users/ProfessionalListing/index.js +1 -1
  329. package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
  330. package/_modules/components/Users/ProfessionalServices/index.js +3 -3
  331. package/_modules/components/Users/UserAddForm/index.js +11 -11
  332. package/_modules/components/Users/UserDetails/index.js +4 -4
  333. package/_modules/components/Users/UserFilterGroup/index.js +2 -2
  334. package/_modules/components/Users/UserFormDetails/index.js +12 -12
  335. package/_modules/components/Users/UserProfileForm/index.js +7 -7
  336. package/_modules/styles/Select/index.js +1 -1
  337. package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
  338. package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
  339. package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
  340. package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
  341. package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
  342. package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
  343. package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
  344. package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
  345. package/_modules/themes/origin/src/components/Header/index.js +3 -3
  346. package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
  347. package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
  348. package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
  349. package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
  350. package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
  351. package/_modules/themes/origin/src/components/Messages/index.js +13 -13
  352. package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
  353. package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
  354. package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
  355. package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
  356. package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
  357. package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
  358. package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
  359. package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
  360. package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
  361. package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
  362. package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
  363. package/_modules/themes/origin/src/components/OverView/index.js +1 -1
  364. package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
  365. package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
  366. package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
  367. package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
  368. package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
  369. package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
  370. package/_modules/utils/index.js +1 -1
  371. package/package.json +2 -2
  372. package/src/components/BusinessIntelligence/CountryFilter/index.js +3 -1
  373. package/src/components/BusinessIntelligence/ReportsBusinessDistance/index.js +16 -11
  374. package/src/components/BusinessIntelligence/ReportsBusinessSpend/index.js +16 -11
  375. package/src/components/BusinessIntelligence/ReportsDriverDistance/index.js +16 -11
  376. package/src/components/BusinessIntelligence/ReportsDriverOrder/index.js +16 -11
  377. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +16 -11
  378. package/src/components/BusinessIntelligence/ReportsDriverSpend/index.js +16 -11
  379. package/src/components/BusinessIntelligence/ReportsGeneralSales/index.js +16 -11
  380. package/src/components/BusinessIntelligence/ReportsHeatMap/index.js +16 -11
  381. package/src/components/BusinessIntelligence/ReportsOrderDistance/index.js +16 -11
  382. package/src/components/BusinessIntelligence/ReportsOrderStatus/index.js +16 -11
  383. package/src/components/BusinessIntelligence/ReportsOrders/index.js +16 -11
  384. package/src/components/BusinessIntelligence/ReportsPaymethodSales/index.js +7 -7
  385. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +16 -11
  386. package/src/components/BusinessIntelligence/ReportsSales/index.js +16 -11
  387. package/src/components/BusinessIntelligence/ReportsTopDrivers/index.js +7 -8
  388. package/src/components/Orders/OrderLogisticInformation/index.js +1 -1
  389. package/src/components/Orders/OrdersTable/index.js +0 -1
  390. package/src/components/SidebarMenu/index.js +6 -6
  391. package/template/config.json +1 -1
@@ -108,7 +108,7 @@ var BusinessDeviceListingUI = function BusinessDeviceListingUI(props) {
108
108
  };
109
109
  var handleClickBrand = function handleClickBrand(e, brandId, isInitialRender) {
110
110
  var _e$target;
111
- var isInvalid = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.brand_enable_control');
111
+ var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.brand_enable_control');
112
112
  if (isInvalid) return;
113
113
  handleOpenSideBar(brandId);
114
114
  if (!isInitialRender) {
@@ -120,11 +120,11 @@ var BusinessDeviceListingUI = function BusinessDeviceListingUI(props) {
120
120
  };
121
121
  (0, _react.useEffect)(function () {
122
122
  var _deviceListState$devi;
123
- if ((deviceListState === null || deviceListState === void 0 ? void 0 : (_deviceListState$devi = deviceListState.devices) === null || _deviceListState$devi === void 0 ? void 0 : _deviceListState$devi.length) > 0) {
123
+ if ((deviceListState === null || deviceListState === void 0 || (_deviceListState$devi = deviceListState.devices) === null || _deviceListState$devi === void 0 ? void 0 : _deviceListState$devi.length) > 0) {
124
124
  var devices = [];
125
125
  if (searchValue) {
126
126
  var _deviceListState$devi2;
127
- devices = deviceListState === null || deviceListState === void 0 ? void 0 : (_deviceListState$devi2 = deviceListState.devices) === null || _deviceListState$devi2 === void 0 ? void 0 : _deviceListState$devi2.filter(function (device) {
127
+ devices = deviceListState === null || deviceListState === void 0 || (_deviceListState$devi2 = deviceListState.devices) === null || _deviceListState$devi2 === void 0 ? void 0 : _deviceListState$devi2.filter(function (device) {
128
128
  var _device$name;
129
129
  return (_device$name = device.name) === null || _device$name === void 0 ? void 0 : _device$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
130
130
  });
@@ -137,7 +137,7 @@ var BusinessDeviceListingUI = function BusinessDeviceListingUI(props) {
137
137
  (0, _react.useEffect)(function () {
138
138
  if ((deviceList === null || deviceList === void 0 ? void 0 : deviceList.length) > 0 && selectedDevice) {
139
139
  var _deviceListState$devi3;
140
- var device = deviceListState === null || deviceListState === void 0 ? void 0 : (_deviceListState$devi3 = deviceListState.devices) === null || _deviceListState$devi3 === void 0 ? void 0 : _deviceListState$devi3.find(function (item) {
140
+ var device = deviceListState === null || deviceListState === void 0 || (_deviceListState$devi3 = deviceListState.devices) === null || _deviceListState$devi3 === void 0 ? void 0 : _deviceListState$devi3.find(function (item) {
141
141
  return item.id === (selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.id);
142
142
  });
143
143
  setSelectedDevice(device);
@@ -184,7 +184,7 @@ var BusinessDeviceListingUI = function BusinessDeviceListingUI(props) {
184
184
  height: 20
185
185
  }))))), /*#__PURE__*/_react.default.createElement("td", null)));
186
186
  }) : deviceList.map(function (device) {
187
- var _device$business, _theme$images, _theme$images$dummies, _device$business2, _device$business3;
187
+ var _device$business, _theme$images, _device$business2, _device$business3;
188
188
  return /*#__PURE__*/_react.default.createElement(_styles2.BrandBody, {
189
189
  key: device.id,
190
190
  active: device.id === (selectedDevice === null || selectedDevice === void 0 ? void 0 : selectedDevice.id),
@@ -192,8 +192,8 @@ var BusinessDeviceListingUI = function BusinessDeviceListingUI(props) {
192
192
  return handleClickBrand(e, device.id);
193
193
  }
194
194
  }, /*#__PURE__*/_react.default.createElement("tr", null, (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.device_name) && /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", null, device === null || device === void 0 ? void 0 : device.name))), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.business) && /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles2.BrandGeneralInfo, null, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles2.Image, {
195
- bgimage: optimizeImage((device === null || device === void 0 ? void 0 : (_device$business = device.business) === null || _device$business === void 0 ? void 0 : _device$business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.businessLogo), 'h_50,c_limit')
196
- })), /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", null, device === null || device === void 0 ? void 0 : (_device$business2 = device.business) === null || _device$business2 === void 0 ? void 0 : _device$business2.name), /*#__PURE__*/_react.default.createElement("span", null, device === null || device === void 0 ? void 0 : (_device$business3 = device.business) === null || _device$business3 === void 0 ? void 0 : _device$business3.address)))), /*#__PURE__*/_react.default.createElement("td", null)));
195
+ bgimage: optimizeImage((device === null || device === void 0 || (_device$business = device.business) === null || _device$business === void 0 ? void 0 : _device$business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_50,c_limit')
196
+ })), /*#__PURE__*/_react.default.createElement(_styles2.InfoBlock, null, /*#__PURE__*/_react.default.createElement("p", null, device === null || device === void 0 || (_device$business2 = device.business) === null || _device$business2 === void 0 ? void 0 : _device$business2.name), /*#__PURE__*/_react.default.createElement("span", null, device === null || device === void 0 || (_device$business3 = device.business) === null || _device$business3 === void 0 ? void 0 : _device$business3.address)))), /*#__PURE__*/_react.default.createElement("td", null)));
197
197
  }))), /*#__PURE__*/_react.default.createElement(_styles2.BrandListBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
198
198
  onClick: function onClick() {
199
199
  return handleOpenSideBar();
@@ -30,7 +30,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
30
30
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  var BusinessFrontLayout = function BusinessFrontLayout(props) {
33
- var _configState$configs, _configState$configs$;
33
+ var _configState$configs;
34
34
  var formState = props.formState,
35
35
  handleUpdateBusinessClick = props.handleUpdateBusinessClick,
36
36
  business = props.business,
@@ -41,7 +41,7 @@ var BusinessFrontLayout = function BusinessFrontLayout(props) {
41
41
  var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
42
42
  _useConfig2 = _slicedToArray(_useConfig, 1),
43
43
  configState = _useConfig2[0];
44
- var useParentCategory = configState === null || configState === void 0 ? void 0 : (_configState$configs = configState.configs) === null || _configState$configs === void 0 ? void 0 : (_configState$configs$ = _configState$configs.use_parent_category) === null || _configState$configs$ === void 0 ? void 0 : _configState$configs$.value;
44
+ var useParentCategory = configState === null || configState === void 0 || (_configState$configs = configState.configs) === null || _configState$configs === void 0 || (_configState$configs = _configState$configs.use_parent_category) === null || _configState$configs === void 0 ? void 0 : _configState$configs.value;
45
45
  var _useState = (0, _react.useState)(''),
46
46
  _useState2 = _slicedToArray(_useState, 2),
47
47
  selectedOption = _useState2[0],
@@ -51,7 +51,7 @@ var BusinessGprsPrintersUI = function BusinessGprsPrintersUI(props) {
51
51
  };
52
52
  (0, _react.useEffect)(function () {
53
53
  var _printersListState$pr;
54
- if ((printersListState === null || printersListState === void 0 ? void 0 : (_printersListState$pr = printersListState.printers) === null || _printersListState$pr === void 0 ? void 0 : _printersListState$pr.length) === 0) return;
54
+ if ((printersListState === null || printersListState === void 0 || (_printersListState$pr = printersListState.printers) === null || _printersListState$pr === void 0 ? void 0 : _printersListState$pr.length) === 0) return;
55
55
  var _printers = [];
56
56
  var _iterator = _createForOfIteratorHelper(printersListState === null || printersListState === void 0 ? void 0 : printersListState.printers),
57
57
  _step;
@@ -105,7 +105,7 @@ var BusinessImagesUI = function BusinessImagesUI(props) {
105
105
  var _formState$result2;
106
106
  setAlertState({
107
107
  open: true,
108
- content: formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
108
+ content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
109
109
  });
110
110
  }
111
111
  }, [formState]);
@@ -139,12 +139,12 @@ var BusinessImagesUI = function BusinessImagesUI(props) {
139
139
  },
140
140
  accept: "image/png, image/jpeg, image/jpg",
141
141
  disabled: formState.loading
142
- }, formState.loading ? /*#__PURE__*/_react.default.createElement(_styles.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : (formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.file) && /*#__PURE__*/_react.default.createElement("img", {
143
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.file,
142
+ }, formState.loading ? /*#__PURE__*/_react.default.createElement(_styles.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : (formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.file) && /*#__PURE__*/_react.default.createElement("img", {
143
+ src: formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.file,
144
144
  alt: "header image",
145
145
  loading: "lazy"
146
146
  }), /*#__PURE__*/_react.default.createElement(_styles.UploadImageIconContainer, {
147
- isImage: formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.file
147
+ isImage: formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.file
148
148
  }, /*#__PURE__*/_react.default.createElement(_styles.CameraWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Camera, null)), /*#__PURE__*/_react.default.createElement(_styles.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Image, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_DROP', 'Darg and Drop'))))))), /*#__PURE__*/_react.default.createElement(_styles.BusinessImagesContainer, null, /*#__PURE__*/_react.default.createElement(_Shared.DragScroll, null, businessPhotos.map(function (photo) {
149
149
  return /*#__PURE__*/_react.default.createElement(_styles.Tab, {
150
150
  key: photo.id
@@ -30,7 +30,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
30
30
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  var BusinessInformationUI = function BusinessInformationUI(props) {
33
- var _formState$changes5, _formState$result3, _businessState$busine2, _businessState$busine3, _formState$changes6, _formState$changes7, _formState$changes8, _formState$result4, _businessState$busine4, _businessState$busine5, _formState$changes9, _formState$changes10, _formState$changes$na, _formState$changes11, _businessState$busine6, _formState$changes$ex, _formState$changes12, _businessState$busine7, _formState$changes$de, _formState$changes13, _businessState$busine8, _formState$changes$ph, _formState$changes14, _businessState$busine9, _formState$changes$ce, _formState$changes15, _businessState$busine10, _businessState$busine11, _businessState$busine12, _businessState$busine13, _formState$changes16, _formState$changes16$, _formState$changes17, _formState$changes17$, _businessState$busine14, _businessState$busine15, _formState$changes$ri, _formState$changes18, _formState$changes18$, _businessState$busine16, _businessState$busine17, _businessState$busine18, _formState$changes19, _formState$changes19$, _formState$changes20, _formState$changes20$, _businessState$busine19, _businessState$busine20, _formState$changes$ri2, _formState$changes21, _formState$changes21$, _businessState$busine21, _businessState$busine22, _formState$changes$fa, _formState$changes28, _businessState$busine29, _formState$changes$in, _formState$changes29, _businessState$busine30, _formState$changes$ti, _formState$changes30, _businessState$busine31, _formState$changes$pi, _formState$changes31, _businessState$busine32, _formState$changes$wh, _formState$changes32, _businessState$busine33, _formState$changes$sn, _formState$changes33, _businessState$busine34;
33
+ var _formState$changes5, _formState$result3, _businessState$busine2, _businessState$busine3, _formState$changes6, _formState$changes7, _formState$changes8, _formState$result4, _businessState$busine4, _businessState$busine5, _formState$changes9, _formState$changes10, _formState$changes$na, _formState$changes11, _businessState$busine6, _formState$changes$ex, _formState$changes12, _businessState$busine7, _formState$changes$de, _formState$changes13, _businessState$busine8, _formState$changes$ph, _formState$changes14, _businessState$busine9, _formState$changes$ce, _formState$changes15, _businessState$busine10, _businessState$busine11, _businessState$busine12, _formState$changes16, _formState$changes17, _businessState$busine13, _formState$changes$ri, _formState$changes18, _businessState$busine14, _businessState$busine15, _formState$changes19, _formState$changes20, _businessState$busine16, _formState$changes$ri2, _formState$changes21, _businessState$busine17, _formState$changes$fa, _formState$changes28, _businessState$busine22, _formState$changes$in, _formState$changes29, _businessState$busine23, _formState$changes$ti, _formState$changes30, _businessState$busine24, _formState$changes$pi, _formState$changes31, _businessState$busine25, _formState$changes$wh, _formState$changes32, _businessState$busine26, _formState$changes$sn, _formState$changes33, _businessState$busine27;
34
34
  var formState = props.formState,
35
35
  businessState = props.businessState,
36
36
  handlechangeImage = props.handlechangeImage,
@@ -133,14 +133,14 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
133
133
  var onSubmit = function onSubmit() {
134
134
  if (Object.keys(formState.changes).length > 0) {
135
135
  var _formState$changes, _formState$changes2, _formState$changes3, _formState$changes4;
136
- if (formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.whatsapp_number && (formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.whatsapp_number.search(/^https:\/\/wa\.me\/\+?\d+$/)) === -1) {
136
+ if (formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.whatsapp_number && (formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.whatsapp_number.search(/^https:\/\/wa\.me\/\+?\d+$/)) === -1) {
137
137
  setAlertState({
138
138
  open: true,
139
139
  content: t('WHATS_APP_NUMBER_NOT_VALID', 'Whatsapp number is not valid')
140
140
  });
141
141
  return;
142
142
  }
143
- if (formState !== null && formState !== void 0 && (_formState$changes3 = formState.changes) !== null && _formState$changes3 !== void 0 && _formState$changes3.tiktok_profile && (formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.tiktok_profile.search(/^https:\/\/www\.tiktok\.com\/@.+$/)) === -1) {
143
+ if (formState !== null && formState !== void 0 && (_formState$changes3 = formState.changes) !== null && _formState$changes3 !== void 0 && _formState$changes3.tiktok_profile && (formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.tiktok_profile.search(/^https:\/\/www\.tiktok\.com\/@.+$/)) === -1) {
144
144
  setAlertState({
145
145
  open: true,
146
146
  content: t('TIKTOK_USERNAME_NOT_VALID', 'TikTok user name is not valid')
@@ -186,7 +186,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
186
186
  var _formState$result2;
187
187
  setAlertState({
188
188
  open: true,
189
- content: formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
189
+ content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
190
190
  });
191
191
  }
192
192
  }, [formState === null || formState === void 0 ? void 0 : formState.result]);
@@ -211,12 +211,12 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
211
211
  },
212
212
  accept: "image/png, image/jpeg, image/jpg",
213
213
  disabled: formState.loading
214
- }, formState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : !((_formState$changes5 = formState.changes) !== null && _formState$changes5 !== void 0 && _formState$changes5.header) || ((_formState$result3 = formState.result) === null || _formState$result3 === void 0 ? void 0 : _formState$result3.result) === 'Network Error' || formState.result.error ? (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.header) && /*#__PURE__*/_react.default.createElement("img", {
215
- src: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.header,
214
+ }, formState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : !((_formState$changes5 = formState.changes) !== null && _formState$changes5 !== void 0 && _formState$changes5.header) || ((_formState$result3 = formState.result) === null || _formState$result3 === void 0 ? void 0 : _formState$result3.result) === 'Network Error' || formState.result.error ? (businessState === null || businessState === void 0 || (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : _businessState$busine2.header) && /*#__PURE__*/_react.default.createElement("img", {
215
+ src: businessState === null || businessState === void 0 || (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.header,
216
216
  alt: "header image",
217
217
  loading: "lazy"
218
- }) : (formState === null || formState === void 0 ? void 0 : (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.header) && /*#__PURE__*/_react.default.createElement("img", {
219
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.header,
218
+ }) : (formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.header) && /*#__PURE__*/_react.default.createElement("img", {
219
+ src: formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.header,
220
220
  alt: "header image",
221
221
  loading: "lazy"
222
222
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_BiImage.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_DROP_IMAGE_HERE', 'Put your image here'))))))), /*#__PURE__*/_react.default.createElement(_styles2.LogoImage, {
@@ -238,12 +238,12 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
238
238
  },
239
239
  accept: "image/png, image/jpeg, image/jpg",
240
240
  disabled: formState.loading
241
- }, formState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : !((_formState$changes8 = formState.changes) !== null && _formState$changes8 !== void 0 && _formState$changes8.logo) || ((_formState$result4 = formState.result) === null || _formState$result4 === void 0 ? void 0 : _formState$result4.result) === 'Network Error' || formState.result.error ? (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.logo) && /*#__PURE__*/_react.default.createElement("img", {
242
- src: businessState === null || businessState === void 0 ? void 0 : (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.logo,
241
+ }, formState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, null)) : !((_formState$changes8 = formState.changes) !== null && _formState$changes8 !== void 0 && _formState$changes8.logo) || ((_formState$result4 = formState.result) === null || _formState$result4 === void 0 ? void 0 : _formState$result4.result) === 'Network Error' || formState.result.error ? (businessState === null || businessState === void 0 || (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.logo) && /*#__PURE__*/_react.default.createElement("img", {
242
+ src: businessState === null || businessState === void 0 || (_businessState$busine5 = businessState.business) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.logo,
243
243
  alt: "logo image",
244
244
  loading: "lazy"
245
- }) : (formState === null || formState === void 0 ? void 0 : (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.logo) && /*#__PURE__*/_react.default.createElement("img", {
246
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.logo,
245
+ }) : (formState === null || formState === void 0 || (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.logo) && /*#__PURE__*/_react.default.createElement("img", {
246
+ src: formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.logo,
247
247
  alt: "logo image",
248
248
  loading: "lazy"
249
249
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, {
@@ -253,7 +253,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
253
253
  }, /*#__PURE__*/_react.default.createElement(_BiImage.default, null)))))), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
254
254
  name: "name",
255
255
  placeholder: t('Name', 'name'),
256
- defaultValue: (_formState$changes$na = formState === null || formState === void 0 ? void 0 : (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.name,
256
+ defaultValue: (_formState$changes$na = formState === null || formState === void 0 || (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : businessState === null || businessState === void 0 || (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : _businessState$busine6.name,
257
257
  onChange: handleChangeInput,
258
258
  ref: formMethods.register({
259
259
  required: t('BUSINESS_NAME_REQUIRED', 'Business name is required')
@@ -263,7 +263,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
263
263
  })), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('EXTERNAL_ID', 'External Id')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
264
264
  name: "external_id",
265
265
  placeholder: t('EXTERNAL_ID', 'External Id'),
266
- defaultValue: (_formState$changes$ex = formState === null || formState === void 0 ? void 0 : (_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.external_id) !== null && _formState$changes$ex !== void 0 ? _formState$changes$ex : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine7 = businessState.business) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.external_id,
266
+ defaultValue: (_formState$changes$ex = formState === null || formState === void 0 || (_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.external_id) !== null && _formState$changes$ex !== void 0 ? _formState$changes$ex : businessState === null || businessState === void 0 || (_businessState$busine7 = businessState.business) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.external_id,
267
267
  onChange: handleChangeInput,
268
268
  disabled: formState.loading,
269
269
  autoComplete: "off",
@@ -275,38 +275,38 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
275
275
  })), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('SHORT_DESCRIPTION', 'Short description')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
276
276
  name: "description",
277
277
  placeholder: t('TYPE_BUSINESS_SHORT_DESCRIPTION', 'Write a little description'),
278
- defaultValue: (_formState$changes$de = formState === null || formState === void 0 ? void 0 : (_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.description) !== null && _formState$changes$de !== void 0 ? _formState$changes$de : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine8 = businessState.business) === null || _businessState$busine8 === void 0 ? void 0 : _businessState$busine8.description,
278
+ defaultValue: (_formState$changes$de = formState === null || formState === void 0 || (_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.description) !== null && _formState$changes$de !== void 0 ? _formState$changes$de : businessState === null || businessState === void 0 || (_businessState$busine8 = businessState.business) === null || _businessState$busine8 === void 0 ? void 0 : _businessState$busine8.description,
279
279
  onChange: handleChangeInput,
280
280
  disabled: formState.loading,
281
281
  autoComplete: "off"
282
282
  })), /*#__PURE__*/_react.default.createElement(_styles2.PhoneWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('PHONE_NUMBER', 'Phone number')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
283
283
  name: "phone",
284
284
  placeholder: "(000) 0000 000",
285
- defaultValue: (_formState$changes$ph = formState === null || formState === void 0 ? void 0 : (_formState$changes14 = formState.changes) === null || _formState$changes14 === void 0 ? void 0 : _formState$changes14.phone) !== null && _formState$changes$ph !== void 0 ? _formState$changes$ph : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine9 = businessState.business) === null || _businessState$busine9 === void 0 ? void 0 : _businessState$busine9.phone,
285
+ defaultValue: (_formState$changes$ph = formState === null || formState === void 0 || (_formState$changes14 = formState.changes) === null || _formState$changes14 === void 0 ? void 0 : _formState$changes14.phone) !== null && _formState$changes$ph !== void 0 ? _formState$changes$ph : businessState === null || businessState === void 0 || (_businessState$busine9 = businessState.business) === null || _businessState$busine9 === void 0 ? void 0 : _businessState$busine9.phone,
286
286
  onChange: handleChangeInput,
287
287
  disabled: formState.loading,
288
288
  autoComplete: "off"
289
289
  })), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MOBILE_NUMBER', 'Mobile number'), " ", /*#__PURE__*/_react.default.createElement("span", null, t('OPTIONAL', 'Optional'))), /*#__PURE__*/_react.default.createElement(_styles.Input, {
290
290
  name: "cellphone",
291
291
  placeholder: "(000) 0000 000",
292
- defaultValue: (_formState$changes$ce = formState === null || formState === void 0 ? void 0 : (_formState$changes15 = formState.changes) === null || _formState$changes15 === void 0 ? void 0 : _formState$changes15.cellphone) !== null && _formState$changes$ce !== void 0 ? _formState$changes$ce : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine10 = businessState.business) === null || _businessState$busine10 === void 0 ? void 0 : _businessState$busine10.cellphone,
292
+ defaultValue: (_formState$changes$ce = formState === null || formState === void 0 || (_formState$changes15 = formState.changes) === null || _formState$changes15 === void 0 ? void 0 : _formState$changes15.cellphone) !== null && _formState$changes$ce !== void 0 ? _formState$changes$ce : businessState === null || businessState === void 0 || (_businessState$busine10 = businessState.business) === null || _businessState$busine10 === void 0 ? void 0 : _businessState$busine10.cellphone,
293
293
  onChange: handleChangeInput,
294
294
  disabled: formState.loading,
295
295
  autoComplete: "off"
296
296
  }))), /*#__PURE__*/_react.default.createElement(_styles2.SwitchWrapper, null, /*#__PURE__*/_react.default.createElement("span", null, t('FEATURED', 'Featured')), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
297
- defaultChecked: (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine11 = businessState.business) === null || _businessState$busine11 === void 0 ? void 0 : _businessState$busine11.featured) || false,
297
+ defaultChecked: (businessState === null || businessState === void 0 || (_businessState$busine11 = businessState.business) === null || _businessState$busine11 === void 0 ? void 0 : _businessState$busine11.featured) || false,
298
298
  onChange: function onChange(val) {
299
299
  return handleChangeSwtich('featured', val);
300
300
  }
301
301
  })), /*#__PURE__*/_react.default.createElement(_styles2.RibbonSwitchWrapper, null, /*#__PURE__*/_react.default.createElement("span", null, t('RIBBON', 'Ribbon')), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
302
- defaultChecked: (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine12 = businessState.business) === null || _businessState$busine12 === void 0 ? void 0 : (_businessState$busine13 = _businessState$busine12.ribbon) === null || _businessState$busine13 === void 0 ? void 0 : _businessState$busine13.enabled) || false,
302
+ defaultChecked: (businessState === null || businessState === void 0 || (_businessState$busine12 = businessState.business) === null || _businessState$busine12 === void 0 || (_businessState$busine12 = _businessState$busine12.ribbon) === null || _businessState$busine12 === void 0 ? void 0 : _businessState$busine12.enabled) || false,
303
303
  onChange: function onChange(val) {
304
304
  return handleChangeEnable(val);
305
305
  }
306
- })), (typeof (formState === null || formState === void 0 ? void 0 : (_formState$changes16 = formState.changes) === null || _formState$changes16 === void 0 ? void 0 : (_formState$changes16$ = _formState$changes16.ribbon) === null || _formState$changes16$ === void 0 ? void 0 : _formState$changes16$.enabled) !== 'undefined' ? formState === null || formState === void 0 ? void 0 : (_formState$changes17 = formState.changes) === null || _formState$changes17 === void 0 ? void 0 : (_formState$changes17$ = _formState$changes17.ribbon) === null || _formState$changes17$ === void 0 ? void 0 : _formState$changes17$.enabled : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine14 = businessState.business) === null || _businessState$busine14 === void 0 ? void 0 : (_businessState$busine15 = _businessState$busine14.ribbon) === null || _businessState$busine15 === void 0 ? void 0 : _businessState$busine15.enabled) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TEXT', 'Text')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
306
+ })), (typeof (formState === null || formState === void 0 || (_formState$changes16 = formState.changes) === null || _formState$changes16 === void 0 || (_formState$changes16 = _formState$changes16.ribbon) === null || _formState$changes16 === void 0 ? void 0 : _formState$changes16.enabled) !== 'undefined' ? formState === null || formState === void 0 || (_formState$changes17 = formState.changes) === null || _formState$changes17 === void 0 || (_formState$changes17 = _formState$changes17.ribbon) === null || _formState$changes17 === void 0 ? void 0 : _formState$changes17.enabled : businessState === null || businessState === void 0 || (_businessState$busine13 = businessState.business) === null || _businessState$busine13 === void 0 || (_businessState$busine13 = _businessState$busine13.ribbon) === null || _businessState$busine13 === void 0 ? void 0 : _businessState$busine13.enabled) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TEXT', 'Text')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
307
307
  name: "text",
308
308
  placeholder: t('TEXT', 'Text'),
309
- defaultValue: (_formState$changes$ri = formState === null || formState === void 0 ? void 0 : (_formState$changes18 = formState.changes) === null || _formState$changes18 === void 0 ? void 0 : (_formState$changes18$ = _formState$changes18.ribbon) === null || _formState$changes18$ === void 0 ? void 0 : _formState$changes18$.text) !== null && _formState$changes$ri !== void 0 ? _formState$changes$ri : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine16 = businessState.business) === null || _businessState$busine16 === void 0 ? void 0 : (_businessState$busine17 = _businessState$busine16.ribbon) === null || _businessState$busine17 === void 0 ? void 0 : _businessState$busine17.text,
309
+ defaultValue: (_formState$changes$ri = formState === null || formState === void 0 || (_formState$changes18 = formState.changes) === null || _formState$changes18 === void 0 || (_formState$changes18 = _formState$changes18.ribbon) === null || _formState$changes18 === void 0 ? void 0 : _formState$changes18.text) !== null && _formState$changes$ri !== void 0 ? _formState$changes$ri : businessState === null || businessState === void 0 || (_businessState$busine14 = businessState.business) === null || _businessState$busine14 === void 0 || (_businessState$busine14 = _businessState$busine14.ribbon) === null || _businessState$busine14 === void 0 ? void 0 : _businessState$busine14.text,
310
310
  onChange: function onChange(e) {
311
311
  return handleChangeRibbon({
312
312
  text: e.target.value
@@ -315,39 +315,39 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
315
315
  disabled: formState.loading,
316
316
  autoComplete: "off",
317
317
  ref: formMethods.register({
318
- required: businessState !== null && businessState !== void 0 && (_businessState$busine18 = businessState.business) !== null && _businessState$busine18 !== void 0 && _businessState$busine18.ribbon && (typeof (formState === null || formState === void 0 ? void 0 : (_formState$changes19 = formState.changes) === null || _formState$changes19 === void 0 ? void 0 : (_formState$changes19$ = _formState$changes19.ribbon) === null || _formState$changes19$ === void 0 ? void 0 : _formState$changes19$.enabled) !== 'undefined' ? formState === null || formState === void 0 ? void 0 : (_formState$changes20 = formState.changes) === null || _formState$changes20 === void 0 ? void 0 : (_formState$changes20$ = _formState$changes20.ribbon) === null || _formState$changes20$ === void 0 ? void 0 : _formState$changes20$.enabled : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine19 = businessState.business) === null || _businessState$busine19 === void 0 ? void 0 : (_businessState$busine20 = _businessState$busine19.ribbon) === null || _businessState$busine20 === void 0 ? void 0 : _businessState$busine20.enabled) ? t('VALIDATION_ERROR_REQUIRED', 'The Ribbon text field is required').replace('_attribute_', t('Ribbon_Text', 'Ribbon text')) : false
318
+ required: businessState !== null && businessState !== void 0 && (_businessState$busine15 = businessState.business) !== null && _businessState$busine15 !== void 0 && _businessState$busine15.ribbon && (typeof (formState === null || formState === void 0 || (_formState$changes19 = formState.changes) === null || _formState$changes19 === void 0 || (_formState$changes19 = _formState$changes19.ribbon) === null || _formState$changes19 === void 0 ? void 0 : _formState$changes19.enabled) !== 'undefined' ? formState === null || formState === void 0 || (_formState$changes20 = formState.changes) === null || _formState$changes20 === void 0 || (_formState$changes20 = _formState$changes20.ribbon) === null || _formState$changes20 === void 0 ? void 0 : _formState$changes20.enabled : businessState === null || businessState === void 0 || (_businessState$busine16 = businessState.business) === null || _businessState$busine16 === void 0 || (_businessState$busine16 = _businessState$busine16.ribbon) === null || _businessState$busine16 === void 0 ? void 0 : _businessState$busine16.enabled) ? t('VALIDATION_ERROR_REQUIRED', 'The Ribbon text field is required').replace('_attribute_', t('Ribbon_Text', 'Ribbon text')) : false
319
319
  })
320
320
  })), /*#__PURE__*/_react.default.createElement(_styles2.ColorShapeWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.ColorWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('COLOR', 'Color')), /*#__PURE__*/_react.default.createElement(_Shared.ColorPicker, {
321
- defaultColor: (_formState$changes$ri2 = formState === null || formState === void 0 ? void 0 : (_formState$changes21 = formState.changes) === null || _formState$changes21 === void 0 ? void 0 : (_formState$changes21$ = _formState$changes21.ribbon) === null || _formState$changes21$ === void 0 ? void 0 : _formState$changes21$.color) !== null && _formState$changes$ri2 !== void 0 ? _formState$changes$ri2 : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine21 = businessState.business) === null || _businessState$busine21 === void 0 ? void 0 : (_businessState$busine22 = _businessState$busine21.ribbon) === null || _businessState$busine22 === void 0 ? void 0 : _businessState$busine22.color,
321
+ defaultColor: (_formState$changes$ri2 = formState === null || formState === void 0 || (_formState$changes21 = formState.changes) === null || _formState$changes21 === void 0 || (_formState$changes21 = _formState$changes21.ribbon) === null || _formState$changes21 === void 0 ? void 0 : _formState$changes21.color) !== null && _formState$changes$ri2 !== void 0 ? _formState$changes$ri2 : businessState === null || businessState === void 0 || (_businessState$busine17 = businessState.business) === null || _businessState$busine17 === void 0 || (_businessState$busine17 = _businessState$busine17.ribbon) === null || _businessState$busine17 === void 0 ? void 0 : _businessState$busine17.color,
322
322
  onChangeColor: function onChangeColor(color) {
323
323
  return handleChangeRibbon({
324
324
  color: color
325
325
  });
326
326
  }
327
327
  })), /*#__PURE__*/_react.default.createElement(_styles2.ShapeWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('SHAPE', 'Shape')), /*#__PURE__*/_react.default.createElement(_styles2.ShapeContentWrapper, null, _utils.shape && Object.keys(_utils.shape).map(function (key, i) {
328
- var _formState$changes22, _formState$changes22$, _formState$changes23, _formState$changes23$, _businessState$busine23, _businessState$busine24, _formState$changes24, _formState$changes24$, _formState$changes25, _formState$changes25$, _businessState$busine25, _businessState$busine26;
328
+ var _formState$changes22, _formState$changes23, _businessState$busine18, _formState$changes24, _formState$changes25, _businessState$busine19;
329
329
  return /*#__PURE__*/_react.default.createElement(_styles2.ShapeBoxWrapper, {
330
330
  key: i,
331
331
  shapeRect: _utils.shape[key] === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
332
332
  round: _utils.shape[key] === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape),
333
- active: formState !== null && formState !== void 0 && (_formState$changes22 = formState.changes) !== null && _formState$changes22 !== void 0 && (_formState$changes22$ = _formState$changes22.ribbon) !== null && _formState$changes22$ !== void 0 && _formState$changes22$.shape ? (formState === null || formState === void 0 ? void 0 : (_formState$changes23 = formState.changes) === null || _formState$changes23 === void 0 ? void 0 : (_formState$changes23$ = _formState$changes23.ribbon) === null || _formState$changes23$ === void 0 ? void 0 : _formState$changes23$.shape) === _utils.shape[key] : (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine23 = businessState.business) === null || _businessState$busine23 === void 0 ? void 0 : (_businessState$busine24 = _businessState$busine23.ribbon) === null || _businessState$busine24 === void 0 ? void 0 : _businessState$busine24.shape) === _utils.shape[key],
333
+ active: formState !== null && formState !== void 0 && (_formState$changes22 = formState.changes) !== null && _formState$changes22 !== void 0 && (_formState$changes22 = _formState$changes22.ribbon) !== null && _formState$changes22 !== void 0 && _formState$changes22.shape ? (formState === null || formState === void 0 || (_formState$changes23 = formState.changes) === null || _formState$changes23 === void 0 || (_formState$changes23 = _formState$changes23.ribbon) === null || _formState$changes23 === void 0 ? void 0 : _formState$changes23.shape) === _utils.shape[key] : (businessState === null || businessState === void 0 || (_businessState$busine18 = businessState.business) === null || _businessState$busine18 === void 0 || (_businessState$busine18 = _businessState$busine18.ribbon) === null || _businessState$busine18 === void 0 ? void 0 : _businessState$busine18.shape) === _utils.shape[key],
334
334
  onClick: function onClick() {
335
335
  return handleChangeRibbon({
336
336
  shape: _utils.shape[key]
337
337
  });
338
338
  }
339
- }, /*#__PURE__*/_react.default.createElement("div", null), (formState !== null && formState !== void 0 && (_formState$changes24 = formState.changes) !== null && _formState$changes24 !== void 0 && (_formState$changes24$ = _formState$changes24.ribbon) !== null && _formState$changes24$ !== void 0 && _formState$changes24$.shape ? (formState === null || formState === void 0 ? void 0 : (_formState$changes25 = formState.changes) === null || _formState$changes25 === void 0 ? void 0 : (_formState$changes25$ = _formState$changes25.ribbon) === null || _formState$changes25$ === void 0 ? void 0 : _formState$changes25$.shape) === _utils.shape[key] : (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine25 = businessState.business) === null || _businessState$busine25 === void 0 ? void 0 : (_businessState$busine26 = _businessState$busine25.ribbon) === null || _businessState$busine26 === void 0 ? void 0 : _businessState$busine26.shape) === _utils.shape[key]) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null));
339
+ }, /*#__PURE__*/_react.default.createElement("div", null), (formState !== null && formState !== void 0 && (_formState$changes24 = formState.changes) !== null && _formState$changes24 !== void 0 && (_formState$changes24 = _formState$changes24.ribbon) !== null && _formState$changes24 !== void 0 && _formState$changes24.shape ? (formState === null || formState === void 0 || (_formState$changes25 = formState.changes) === null || _formState$changes25 === void 0 || (_formState$changes25 = _formState$changes25.ribbon) === null || _formState$changes25 === void 0 ? void 0 : _formState$changes25.shape) === _utils.shape[key] : (businessState === null || businessState === void 0 || (_businessState$busine19 = businessState.business) === null || _businessState$busine19 === void 0 || (_businessState$busine19 = _businessState$busine19.ribbon) === null || _businessState$busine19 === void 0 ? void 0 : _businessState$busine19.shape) === _utils.shape[key]) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null));
340
340
  }))))), /*#__PURE__*/_react.default.createElement(_styles2.PriceFilterWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('PRICE_FILTER', 'Price filter')), /*#__PURE__*/_react.default.createElement(_styles2.PriceFilterListWrapper, null, priceList.map(function (item, i) {
341
- var _formState$changes$pr, _formState$changes26, _businessState$busine27, _formState$changes$pr2, _formState$changes27, _businessState$busine28;
341
+ var _formState$changes$pr, _formState$changes26, _businessState$busine20, _formState$changes$pr2, _formState$changes27, _businessState$busine21;
342
342
  return /*#__PURE__*/_react.default.createElement(_styles2.PriceFilterItem, {
343
343
  key: i,
344
344
  onClick: function onClick() {
345
345
  return handleChangeSwtich('price_level', item.key);
346
346
  },
347
- active: ((_formState$changes$pr = formState === null || formState === void 0 ? void 0 : (_formState$changes26 = formState.changes) === null || _formState$changes26 === void 0 ? void 0 : _formState$changes26.price_level) !== null && _formState$changes$pr !== void 0 ? _formState$changes$pr : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine27 = businessState.business) === null || _businessState$busine27 === void 0 ? void 0 : _businessState$busine27.price_level) === item.key
348
- }, ((_formState$changes$pr2 = formState === null || formState === void 0 ? void 0 : (_formState$changes27 = formState.changes) === null || _formState$changes27 === void 0 ? void 0 : _formState$changes27.price_level) !== null && _formState$changes$pr2 !== void 0 ? _formState$changes$pr2 : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine28 = businessState.business) === null || _businessState$busine28 === void 0 ? void 0 : _businessState$busine28.price_level) === item.key ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, item.value));
347
+ active: ((_formState$changes$pr = formState === null || formState === void 0 || (_formState$changes26 = formState.changes) === null || _formState$changes26 === void 0 ? void 0 : _formState$changes26.price_level) !== null && _formState$changes$pr !== void 0 ? _formState$changes$pr : businessState === null || businessState === void 0 || (_businessState$busine20 = businessState.business) === null || _businessState$busine20 === void 0 ? void 0 : _businessState$busine20.price_level) === item.key
348
+ }, ((_formState$changes$pr2 = formState === null || formState === void 0 || (_formState$changes27 = formState.changes) === null || _formState$changes27 === void 0 ? void 0 : _formState$changes27.price_level) !== null && _formState$changes$pr2 !== void 0 ? _formState$changes$pr2 : businessState === null || businessState === void 0 || (_businessState$busine21 = businessState.business) === null || _businessState$busine21 === void 0 ? void 0 : _businessState$busine21.price_level) === item.key ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, item.value));
349
349
  }))), /*#__PURE__*/_react.default.createElement(_styles2.SocialWrapper, null, /*#__PURE__*/_react.default.createElement("h2", null, t('SOCIAL_NETWORKS', 'Social networks')), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SocialItemHeader, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Facebook, null)), /*#__PURE__*/_react.default.createElement("span", null, t('FACEBOOK', 'Facebook'))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemContent, null, /*#__PURE__*/_react.default.createElement(ConvertInput, {
350
- value: (_formState$changes$fa = formState === null || formState === void 0 ? void 0 : (_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.facebook_profile) !== null && _formState$changes$fa !== void 0 ? _formState$changes$fa : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine29 = businessState.business) === null || _businessState$busine29 === void 0 ? void 0 : _businessState$busine29.facebook_profile,
350
+ value: (_formState$changes$fa = formState === null || formState === void 0 || (_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.facebook_profile) !== null && _formState$changes$fa !== void 0 ? _formState$changes$fa : businessState === null || businessState === void 0 || (_businessState$busine22 = businessState.business) === null || _businessState$busine22 === void 0 ? void 0 : _businessState$busine22.facebook_profile,
351
351
  handleChangeValue: function handleChangeValue(val) {
352
352
  return handleChangeSwtich('facebook_profile', val);
353
353
  },
@@ -355,7 +355,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
355
355
  placeholder: t('USER_OR_URL', 'User or url'),
356
356
  name: "facebook_profile"
357
357
  }))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SocialItemHeader, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Instagram, null)), /*#__PURE__*/_react.default.createElement("span", null, t('INSTAGRAM', 'Instagram'))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemContent, null, /*#__PURE__*/_react.default.createElement(ConvertInput, {
358
- value: (_formState$changes$in = formState === null || formState === void 0 ? void 0 : (_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.instagram_profile) !== null && _formState$changes$in !== void 0 ? _formState$changes$in : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine30 = businessState.business) === null || _businessState$busine30 === void 0 ? void 0 : _businessState$busine30.instagram_profile,
358
+ value: (_formState$changes$in = formState === null || formState === void 0 || (_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.instagram_profile) !== null && _formState$changes$in !== void 0 ? _formState$changes$in : businessState === null || businessState === void 0 || (_businessState$busine23 = businessState.business) === null || _businessState$busine23 === void 0 ? void 0 : _businessState$busine23.instagram_profile,
359
359
  handleChangeValue: function handleChangeValue(val) {
360
360
  return handleChangeSwtich('instagram_profile', val);
361
361
  },
@@ -363,7 +363,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
363
363
  placeholder: t('USER_OR_URL', 'User or url'),
364
364
  name: "instagram_profile"
365
365
  }))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SocialItemHeader, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Tiktok, null)), /*#__PURE__*/_react.default.createElement("span", null, t('TIK_TOK', 'Tik tok'))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemContent, null, /*#__PURE__*/_react.default.createElement(ConvertInput, {
366
- value: (_formState$changes$ti = formState === null || formState === void 0 ? void 0 : (_formState$changes30 = formState.changes) === null || _formState$changes30 === void 0 ? void 0 : _formState$changes30.tiktok_profile) !== null && _formState$changes$ti !== void 0 ? _formState$changes$ti : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine31 = businessState.business) === null || _businessState$busine31 === void 0 ? void 0 : _businessState$busine31.tiktok_profile,
366
+ value: (_formState$changes$ti = formState === null || formState === void 0 || (_formState$changes30 = formState.changes) === null || _formState$changes30 === void 0 ? void 0 : _formState$changes30.tiktok_profile) !== null && _formState$changes$ti !== void 0 ? _formState$changes$ti : businessState === null || businessState === void 0 || (_businessState$busine24 = businessState.business) === null || _businessState$busine24 === void 0 ? void 0 : _businessState$busine24.tiktok_profile,
367
367
  handleChangeValue: function handleChangeValue(val) {
368
368
  return handleChangeSwtich('tiktok_profile', val);
369
369
  },
@@ -371,7 +371,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
371
371
  placeholder: t('USER_OR_URL', 'User or url'),
372
372
  name: "tiktok_profile"
373
373
  }))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SocialItemHeader, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Pinterest, null)), /*#__PURE__*/_react.default.createElement("span", null, t('PINTEREST', 'Pinterest'))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemContent, null, /*#__PURE__*/_react.default.createElement(ConvertInput, {
374
- value: (_formState$changes$pi = formState === null || formState === void 0 ? void 0 : (_formState$changes31 = formState.changes) === null || _formState$changes31 === void 0 ? void 0 : _formState$changes31.pinterest_profile) !== null && _formState$changes$pi !== void 0 ? _formState$changes$pi : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine32 = businessState.business) === null || _businessState$busine32 === void 0 ? void 0 : _businessState$busine32.pinterest_profile,
374
+ value: (_formState$changes$pi = formState === null || formState === void 0 || (_formState$changes31 = formState.changes) === null || _formState$changes31 === void 0 ? void 0 : _formState$changes31.pinterest_profile) !== null && _formState$changes$pi !== void 0 ? _formState$changes$pi : businessState === null || businessState === void 0 || (_businessState$busine25 = businessState.business) === null || _businessState$busine25 === void 0 ? void 0 : _businessState$busine25.pinterest_profile,
375
375
  handleChangeValue: function handleChangeValue(val) {
376
376
  return handleChangeSwtich('pinterest_profile', val);
377
377
  },
@@ -379,7 +379,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
379
379
  placeholder: t('USER_OR_URL', 'User or url'),
380
380
  name: "pinterest_profile"
381
381
  }))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SocialItemHeader, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Whatsapp, null)), /*#__PURE__*/_react.default.createElement("span", null, t('WHATSAPP', 'Whatsapp'))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemContent, null, /*#__PURE__*/_react.default.createElement(ConvertInput, {
382
- value: (_formState$changes$wh = formState === null || formState === void 0 ? void 0 : (_formState$changes32 = formState.changes) === null || _formState$changes32 === void 0 ? void 0 : _formState$changes32.whatsapp_number) !== null && _formState$changes$wh !== void 0 ? _formState$changes$wh : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine33 = businessState.business) === null || _businessState$busine33 === void 0 ? void 0 : _businessState$busine33.whatsapp_number,
382
+ value: (_formState$changes$wh = formState === null || formState === void 0 || (_formState$changes32 = formState.changes) === null || _formState$changes32 === void 0 ? void 0 : _formState$changes32.whatsapp_number) !== null && _formState$changes$wh !== void 0 ? _formState$changes$wh : businessState === null || businessState === void 0 || (_businessState$busine26 = businessState.business) === null || _businessState$busine26 === void 0 ? void 0 : _businessState$busine26.whatsapp_number,
383
383
  handleChangeValue: function handleChangeValue(val) {
384
384
  return handleChangeSwtich('whatsapp_number', val);
385
385
  },
@@ -387,7 +387,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
387
387
  placeholder: t('PHONE_NUMBER', 'Phone number'),
388
388
  name: "whatsapp_number"
389
389
  }))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SocialItemHeader, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Snapchat, null)), /*#__PURE__*/_react.default.createElement("span", null, t('SNAPCHAT', 'Snapchat'))), /*#__PURE__*/_react.default.createElement(_styles2.SocialItemContent, null, /*#__PURE__*/_react.default.createElement(ConvertInput, {
390
- value: (_formState$changes$sn = formState === null || formState === void 0 ? void 0 : (_formState$changes33 = formState.changes) === null || _formState$changes33 === void 0 ? void 0 : _formState$changes33.snapchat_profile) !== null && _formState$changes$sn !== void 0 ? _formState$changes$sn : businessState === null || businessState === void 0 ? void 0 : (_businessState$busine34 = businessState.business) === null || _businessState$busine34 === void 0 ? void 0 : _businessState$busine34.snapchat_profile,
390
+ value: (_formState$changes$sn = formState === null || formState === void 0 || (_formState$changes33 = formState.changes) === null || _formState$changes33 === void 0 ? void 0 : _formState$changes33.snapchat_profile) !== null && _formState$changes$sn !== void 0 ? _formState$changes$sn : businessState === null || businessState === void 0 || (_businessState$busine27 = businessState.business) === null || _businessState$busine27 === void 0 ? void 0 : _businessState$busine27.snapchat_profile,
391
391
  handleChangeValue: function handleChangeValue(val) {
392
392
  return handleChangeSwtich('snapchat_profile', val);
393
393
  },
@@ -27,7 +27,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
27
27
  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; } }
28
28
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
29
  var BusinessLocation = function BusinessLocation(props) {
30
- var _configs$google_maps_, _configs$google_maps_2, _ref2, _formState$changes$ti, _formState$changes, _formState$result, _formState$result2, _formState$result2$re, _ref3, _formState$changes$ad, _formState$changes2, _configs$country_auto, _formState$result3, _formState$result4, _formState$result4$re, _ref4, _formState$changes$ad2, _formState$changes3;
30
+ var _configs$google_maps_, _configs$google_maps_2, _ref2, _formState$changes$ti, _formState$changes, _formState$result, _formState$result2, _ref3, _formState$changes$ad, _formState$changes2, _configs$country_auto, _formState$result3, _formState$result4, _ref4, _formState$changes$ad2, _formState$changes3;
31
31
  var business = props.business,
32
32
  formState = props.formState,
33
33
  setFormState = props.setFormState,
@@ -38,7 +38,7 @@ var BusinessLocation = function BusinessLocation(props) {
38
38
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
39
39
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
40
40
  t = _useLanguage2[1];
41
- var googleMapsApiKey = configs === null || configs === void 0 ? void 0 : (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
41
+ var googleMapsApiKey = configs === null || configs === void 0 || (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
42
42
  var _useState = (0, _react.useState)(),
43
43
  _useState2 = _slicedToArray(_useState, 2),
44
44
  location = _useState2[0],
@@ -96,7 +96,7 @@ var BusinessLocation = function BusinessLocation(props) {
96
96
  date = new Date();
97
97
  timestamp = Math.floor(date.getTime() / 1000);
98
98
  timezoneApiKey = googleMapsApiKey === 'AIzaSyBvsSkMYPSDSkdk7YFrSf5FoGonIzr6fJ0' ? 'AIzaSyCYPCOfiTo9jxuxLWnWTup6mmICPxfLegI' : googleMapsApiKey;
99
- url = "https://maps.googleapis.com/maps/api/timezone/json?location=".concat(address === null || address === void 0 ? void 0 : (_address$location = address.location) === null || _address$location === void 0 ? void 0 : _address$location.lat, ",").concat(address === null || address === void 0 ? void 0 : (_address$location2 = address.location) === null || _address$location2 === void 0 ? void 0 : _address$location2.lng, "&timestamp=").concat(timestamp, "&key=").concat(timezoneApiKey);
99
+ url = "https://maps.googleapis.com/maps/api/timezone/json?location=".concat(address === null || address === void 0 || (_address$location = address.location) === null || _address$location === void 0 ? void 0 : _address$location.lat, ",").concat(address === null || address === void 0 || (_address$location2 = address.location) === null || _address$location2 === void 0 ? void 0 : _address$location2.lng, "&timestamp=").concat(timestamp, "&key=").concat(timezoneApiKey);
100
100
  _context.next = 6;
101
101
  return fetch(url, {
102
102
  method: 'GET'
@@ -151,7 +151,7 @@ var BusinessLocation = function BusinessLocation(props) {
151
151
  setLocation(_objectSpread({}, business === null || business === void 0 ? void 0 : business.location));
152
152
  }, [business === null || business === void 0 ? void 0 : business.location]);
153
153
  return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, location && /*#__PURE__*/_react.default.createElement(_styles2.WrapperMap, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.GoogleMapsMap, {
154
- apiKey: configs === null || configs === void 0 ? void 0 : (_configs$google_maps_2 = configs.google_maps_api_key) === null || _configs$google_maps_2 === void 0 ? void 0 : _configs$google_maps_2.value,
154
+ apiKey: configs === null || configs === void 0 || (_configs$google_maps_2 = configs.google_maps_api_key) === null || _configs$google_maps_2 === void 0 ? void 0 : _configs$google_maps_2.value,
155
155
  location: location,
156
156
  mapControls: googleMapsControls,
157
157
  handleChangeCenter: handleChangeCenter,
@@ -172,12 +172,12 @@ var BusinessLocation = function BusinessLocation(props) {
172
172
  onChange: function onChange(e) {
173
173
  handleChangeInput(e.target.value);
174
174
  },
175
- defaultValue: formState !== null && formState !== void 0 && (_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.result ? formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : (_formState$result2$re = _formState$result2.result) === null || _formState$result2$re === void 0 ? void 0 : _formState$result2$re.address : (_ref3 = (_formState$changes$ad = formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.address) !== null && _formState$changes$ad !== void 0 ? _formState$changes$ad : business === null || business === void 0 ? void 0 : business.address) !== null && _ref3 !== void 0 ? _ref3 : '',
175
+ defaultValue: formState !== null && formState !== void 0 && (_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.result ? formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 || (_formState$result2 = _formState$result2.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.address : (_ref3 = (_formState$changes$ad = formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.address) !== null && _formState$changes$ad !== void 0 ? _formState$changes$ad : business === null || business === void 0 ? void 0 : business.address) !== null && _ref3 !== void 0 ? _ref3 : '',
176
176
  autoComplete: "new-password",
177
- countryCode: (configs === null || configs === void 0 ? void 0 : (_configs$country_auto = configs.country_autocomplete) === null || _configs$country_auto === void 0 ? void 0 : _configs$country_auto.value) || '*'
177
+ countryCode: (configs === null || configs === void 0 || (_configs$country_auto = configs.country_autocomplete) === null || _configs$country_auto === void 0 ? void 0 : _configs$country_auto.value) || '*'
178
178
  })), /*#__PURE__*/_react.default.createElement(_styles2.WrapperAddressnotes, null, /*#__PURE__*/_react.default.createElement("label", null, t('ADDRESS_NOTES', 'Address notes')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
179
179
  rows: 4,
180
- defaultValue: formState !== null && formState !== void 0 && (_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.result ? formState === null || formState === void 0 ? void 0 : (_formState$result4 = formState.result) === null || _formState$result4 === void 0 ? void 0 : (_formState$result4$re = _formState$result4.result) === null || _formState$result4$re === void 0 ? void 0 : _formState$result4$re.address_notes : (_ref4 = (_formState$changes$ad2 = formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.address_notes) !== null && _formState$changes$ad2 !== void 0 ? _formState$changes$ad2 : business === null || business === void 0 ? void 0 : business.address_notes) !== null && _ref4 !== void 0 ? _ref4 : '',
180
+ defaultValue: formState !== null && formState !== void 0 && (_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.result ? formState === null || formState === void 0 || (_formState$result4 = formState.result) === null || _formState$result4 === void 0 || (_formState$result4 = _formState$result4.result) === null || _formState$result4 === void 0 ? void 0 : _formState$result4.address_notes : (_ref4 = (_formState$changes$ad2 = formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.address_notes) !== null && _formState$changes$ad2 !== void 0 ? _formState$changes$ad2 : business === null || business === void 0 ? void 0 : business.address_notes) !== null && _ref4 !== void 0 ? _ref4 : '',
181
181
  onChange: function onChange(e) {
182
182
  return handleChangeTextarea(e.target.value);
183
183
  },
@@ -99,7 +99,7 @@ var BusinessMenuUI = function BusinessMenuUI(props) {
99
99
  };
100
100
  var handleOpenEdit = function handleOpenEdit(e, menu, isInitialRender) {
101
101
  var _e$target;
102
- var isInvalid = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.business_checkbox_control');
102
+ var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.business_checkbox_control');
103
103
  if (isInvalid) return;
104
104
  handleOpenOptions('option', menu);
105
105
  if (!isInitialRender) {
@@ -113,7 +113,7 @@ var BusinessMenuUI = function BusinessMenuUI(props) {
113
113
  var updatedMenus = _toConsumableArray(isSelectedSharedMenus ? businessMenusState === null || businessMenusState === void 0 ? void 0 : businessMenusState.menusShared : businessMenusState === null || businessMenusState === void 0 ? void 0 : businessMenusState.menus);
114
114
  var filteredMenus = updatedMenus.filter(function (menu) {
115
115
  var _menu$name;
116
- return menu === null || menu === void 0 ? void 0 : (_menu$name = menu.name) === null || _menu$name === void 0 ? void 0 : _menu$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
116
+ return menu === null || menu === void 0 || (_menu$name = menu.name) === null || _menu$name === void 0 ? void 0 : _menu$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
117
117
  });
118
118
  setMenuList(filteredMenus);
119
119
  }, [JSON.stringify(businessMenusState.menus), JSON.stringify(businessMenusState.menusShared), searchValue, isSelectedSharedMenus]);