ordering-ui-admin-external 1.13.3 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/_bundles/{ordering-ui-admin.a97f0d1801ec4a89a98e.js → ordering-ui-admin.1a09d41a4e6cd3d1e1cf.js} +2 -2
  2. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +2 -1
  3. package/_modules/components/BusinessIntelligence/InvoiceBusinessManager/styles.js +1 -1
  4. package/_modules/components/BusinessIntelligence/InvoiceDriverManager/styles.js +1 -1
  5. package/_modules/components/BusinessIntelligence/InvoiceManager/index.js +2 -1
  6. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +6 -3
  7. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +15 -1
  8. package/_modules/components/CartRecovery/OpenCartsDetail/styles.js +1 -1
  9. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +18 -1
  10. package/_modules/components/CartRecovery/RecoveryActionDetail/styles.js +4 -4
  11. package/_modules/components/CartRecovery/RecoveryActionList/styles.js +1 -3
  12. package/_modules/components/Delivery/DeliveryUsersListing/index.js +2 -1
  13. package/_modules/components/Delivery/DriversCompaniesList/styles.js +1 -1
  14. package/_modules/components/Delivery/DriversCompanyDetailsForm/index.js +21 -2
  15. package/_modules/components/Delivery/DriversCompanyDetailsForm/styles.js +8 -6
  16. package/_modules/components/Delivery/DriversGroupDetails/index.js +20 -2
  17. package/_modules/components/Delivery/DriversGroupDetails/styles.js +6 -4
  18. package/_modules/components/Delivery/DriversGroupsList/index.js +5 -5
  19. package/_modules/components/Delivery/DriversGroupsList/styles.js +1 -1
  20. package/_modules/components/Delivery/UserAddForm/index.js +1 -1
  21. package/_modules/components/Delivery/UserDetails/index.js +20 -2
  22. package/_modules/components/Delivery/UserDetails/styles.js +6 -4
  23. package/_modules/components/Delivery/UserDetailsLateralBar/styles.js +1 -1
  24. package/_modules/components/Delivery/UserProfileForm/index.js +1 -1
  25. package/_modules/components/Delivery/UsersList/styles.js +1 -1
  26. package/_modules/components/Login/LoginForm/index.js +49 -7
  27. package/_modules/components/Login/LoginForm/styles.js +18 -14
  28. package/_modules/components/Loyalty/GiftCardDetail/index.js +285 -0
  29. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +1 -1
  30. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +1 -1
  31. package/_modules/components/Loyalty/PointsWalletBusinessList/styles.js +3 -3
  32. package/_modules/components/Loyalty/PointsWalletLevels/styles.js +1 -3
  33. package/_modules/components/Loyalty/RewardsPrograms/index.js +45 -28
  34. package/_modules/components/Loyalty/RewardsPrograms/styles.js +18 -3
  35. package/_modules/components/Loyalty/Wallet/index.js +109 -0
  36. package/_modules/components/Loyalty/{PointsWallet → Wallet}/styles.js +15 -9
  37. package/_modules/components/Loyalty/index.js +7 -7
  38. package/_modules/components/Marketing/BannerDetails/styles.js +1 -1
  39. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  40. package/_modules/components/Marketing/CampaignDetail/index.js +20 -1
  41. package/_modules/components/Marketing/CampaignDetail/styles.js +4 -4
  42. package/_modules/components/Marketing/CampaignList/styles.js +1 -3
  43. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +17 -2
  44. package/_modules/components/Marketing/EnterprisePromotionDetails/styles.js +7 -5
  45. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +1 -1
  46. package/_modules/components/Marketing/EnterprisePromotionList/styles.js +1 -3
  47. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +1 -0
  48. package/_modules/components/Marketing/PageBanner/index.js +21 -7
  49. package/_modules/components/Marketing/PageBanner/styles.js +26 -24
  50. package/_modules/components/MyProducts/AdvancedSettings/ImageBox.js +151 -0
  51. package/_modules/components/MyProducts/OrderingWebsite/index.js +1 -1
  52. package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +20 -2
  53. package/_modules/components/OrderingProducts/OrderingProductDetails/styles.js +15 -13
  54. package/_modules/components/OrderingProducts/OrderingProductsListing/styles.js +1 -3
  55. package/_modules/components/OrderingProducts/SiteTheme/ThemeImage.js +1 -1
  56. package/_modules/components/Orders/Messages/index.js +10 -2
  57. package/_modules/components/Orders/Messages/styles.js +64 -62
  58. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +0 -1
  59. package/_modules/components/Orders/OrderDetailsHeader/index.js +30 -3
  60. package/_modules/components/Orders/OrdersFilterGroup/index.js +6 -10
  61. package/_modules/components/Orders/OrdersLateralBar/index.js +22 -5
  62. package/_modules/components/Orders/OrdersLateralBar/styles.js +2 -2
  63. package/_modules/components/Settings/ApiKeysList/styles.js +10 -7
  64. package/_modules/components/Settings/Cms/styles.js +1 -1
  65. package/_modules/components/Settings/CountriesList/index.js +5 -4
  66. package/_modules/components/Settings/CountriesList/styles.js +1 -1
  67. package/_modules/components/Settings/Deliverect/index.js +15 -1
  68. package/_modules/components/Settings/DoordashConnect/index.js +15 -1
  69. package/_modules/components/Settings/DropdownOptionList/index.js +2 -1
  70. package/_modules/components/Settings/DropdownOptionList/styles.js +1 -1
  71. package/_modules/components/Settings/IntegrationListing/index.js +6 -3
  72. package/_modules/components/Settings/ItsaCheckmate/index.js +15 -1
  73. package/_modules/components/Settings/LalamoveConnect/index.js +15 -1
  74. package/_modules/components/Settings/LanguageTransTable/styles.js +1 -1
  75. package/_modules/components/Settings/PickerExpress/index.js +15 -1
  76. package/_modules/components/Settings/PlaceListing/index.js +2 -1
  77. package/_modules/components/Settings/PlaceListing/styles.js +1 -1
  78. package/_modules/components/Settings/PluginList/styles.js +20 -17
  79. package/_modules/components/Settings/Settings/index.js +2 -1
  80. package/_modules/components/Settings/SettingsDetail/index.js +15 -1
  81. package/_modules/components/Settings/SettingsDetail/styles.js +13 -11
  82. package/_modules/components/Settings/SettingsImage/index.js +1 -1
  83. package/_modules/components/Settings/SitesAuthSettings/index.js +20 -1
  84. package/_modules/components/Settings/SitesAuthSettings/styles.js +10 -6
  85. package/_modules/components/Settings/WebhookList/styles.js +14 -11
  86. package/_modules/components/Shared/Modal/index.js +5 -3
  87. package/_modules/components/Shared/ProtectedRoute/index.js +6 -1
  88. package/_modules/components/Shared/SideBar/index.js +22 -3
  89. package/_modules/components/Shared/SideBar/styles.js +10 -8
  90. package/_modules/components/SidebarMenu/index.js +16 -18
  91. package/_modules/components/Stores/AddBusinessForm/index.js +1 -1
  92. package/_modules/components/Stores/BusinessAdd/Images/index.js +1 -1
  93. package/_modules/components/Stores/BusinessAdd/Photos/index.js +1 -1
  94. package/_modules/components/Stores/BusinessAddStore/index.js +1 -2
  95. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +8 -3
  96. package/_modules/components/Stores/BusinessBrandListing/index.js +17 -2
  97. package/_modules/components/Stores/BusinessBrandListing/styles.js +35 -33
  98. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
  99. package/_modules/components/Stores/BusinessDetails/index.js +6 -1
  100. package/_modules/components/Stores/BusinessFilterGroup/index.js +110 -0
  101. package/_modules/components/Stores/BusinessFilterGroup/styles.js +37 -0
  102. package/_modules/components/Stores/BusinessInformation/index.js +1 -1
  103. package/_modules/components/Stores/BusinessOrderingChannels/index.js +1 -1
  104. package/_modules/components/Stores/BusinessProductAddForm/index.js +5 -5
  105. package/_modules/components/Stores/BusinessProductList/index.js +2 -1
  106. package/_modules/components/Stores/BusinessProductList/styles.js +1 -3
  107. package/_modules/components/Stores/BusinessProductsCategories/styles.js +2 -4
  108. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +22 -4
  109. package/_modules/components/Stores/BusinessProductsCategoyDetails/styles.js +1 -1
  110. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +11 -23
  111. package/_modules/components/Stores/BusinessProductsListing/index.js +3 -2
  112. package/_modules/components/Stores/BusinessPromotionList/styles.js +1 -1
  113. package/_modules/components/Stores/BusinessSalesChannel/index.js +142 -0
  114. package/_modules/components/Stores/BusinessSalesChannel/styles.js +26 -0
  115. package/_modules/components/Stores/BusinessSalesFacebook/FacebookPost.js +31 -0
  116. package/_modules/components/Stores/BusinessSalesFacebook/FacebookProfile.js +45 -0
  117. package/_modules/components/Stores/BusinessSalesFacebook/index.js +77 -0
  118. package/_modules/components/Stores/BusinessSalesFacebook/styles.js +58 -0
  119. package/_modules/components/Stores/BusinessSalesGoogle/index.js +85 -0
  120. package/_modules/components/Stores/BusinessSalesGoogle/styles.js +44 -0
  121. package/_modules/components/Stores/BusinessSalesInstagram/AdvancedInstagram.js +58 -0
  122. package/_modules/components/Stores/BusinessSalesInstagram/GeneralInstagram.js +51 -0
  123. package/_modules/components/{Loyalty/PointsWallet → Stores/BusinessSalesInstagram}/index.js +62 -44
  124. package/_modules/components/Stores/BusinessSalesInstagram/styles.js +63 -0
  125. package/_modules/components/Stores/BusinessSalesTiktok/index.js +100 -0
  126. package/_modules/components/Stores/BusinessSalesTiktok/styles.js +37 -0
  127. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +1 -0
  128. package/_modules/components/Stores/BusinessSummary/index.js +33 -6
  129. package/_modules/components/Stores/BusinessTypeDetail/index.js +1 -1
  130. package/_modules/components/Stores/BusinessesList/styles.js +1 -1
  131. package/_modules/components/Stores/BusinessesListing/index.js +12 -6
  132. package/_modules/components/Stores/BusinessesListingHeader/index.js +33 -3
  133. package/_modules/components/Stores/BusinessesListingHeader/styles.js +5 -2
  134. package/_modules/components/Stores/ImportersButton/index.js +2 -1
  135. package/_modules/components/Stores/PaymentOption/index.js +4 -10
  136. package/_modules/components/Stores/PaymentOptionMethods/index.js +47 -24
  137. package/_modules/components/Stores/PaymentOptionPaypal/index.js +47 -24
  138. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +47 -24
  139. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +50 -25
  140. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +47 -24
  141. package/_modules/components/Stores/ProductDetails/index.js +2 -1
  142. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +30 -11
  143. package/_modules/components/Stores/ProductDetailsAdvanced/styles.js +10 -7
  144. package/_modules/components/Stores/ProductDetatilsInformation/index.js +10 -34
  145. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +1 -1
  146. package/_modules/components/Stores/ProductExtraOptions/index.js +1 -1
  147. package/_modules/components/Stores/ProductExtraSuboption/index.js +1 -1
  148. package/_modules/components/Stores/ProductGallery/index.js +1 -1
  149. package/_modules/components/Stores/ProductSummary/index.js +23 -2
  150. package/_modules/components/Stores/ProductTagDetails/index.js +1 -1
  151. package/_modules/components/Stores/SeoOptions/index.js +14 -16
  152. package/_modules/components/Stores/SeoOptions/styles.js +3 -3
  153. package/_modules/components/Stores/ServiceDetail/index.js +1 -1
  154. package/_modules/components/Stores/WizardBusiness/index.js +2 -1
  155. package/_modules/components/Stores/index.js +7 -0
  156. package/_modules/components/Users/CustomerDetails/index.js +24 -2
  157. package/_modules/components/Users/CustomerDetails/styles.js +16 -19
  158. package/_modules/components/Users/CustomersListing/index.js +39 -4
  159. package/_modules/components/Users/CustomersListing/styles.js +1 -1
  160. package/_modules/components/Users/OccupationSelector/index.js +1 -1
  161. package/_modules/components/Users/ProfessionalDetail/index.js +19 -3
  162. package/_modules/components/Users/ProfessionalDetail/styles.js +11 -9
  163. package/_modules/components/Users/ProfessionalList/styles.js +1 -1
  164. package/_modules/components/Users/ProfessionalListing/index.js +8 -3
  165. package/_modules/components/Users/UserAddForm/index.js +1 -1
  166. package/_modules/components/Users/UserDetails/index.js +27 -10
  167. package/_modules/components/Users/UserDetails/styles.js +20 -13
  168. package/_modules/components/Users/UserDetailsLateralBar/styles.js +1 -1
  169. package/_modules/components/Users/UserFilterGroup/index.js +307 -0
  170. package/_modules/components/Users/UserFilterGroup/styles.js +37 -0
  171. package/_modules/components/Users/UserProfileForm/index.js +1 -1
  172. package/_modules/components/Users/UsersExportCSV/index.js +33 -1
  173. package/_modules/components/Users/UsersList/index.js +5 -2
  174. package/_modules/components/Users/UsersList/styles.js +20 -5
  175. package/_modules/components/Users/UsersListing/index.js +9 -3
  176. package/_modules/components/Users/UsersListingHeader/index.js +39 -4
  177. package/_modules/components/Users/UsersListingHeader/styles.js +1 -1
  178. package/_modules/components/Users/index.js +7 -0
  179. package/_modules/config/constants.js +281 -41
  180. package/_modules/index.js +6 -6
  181. package/index-template.js +72 -0
  182. package/package.json +2 -2
  183. package/src/components/BusinessIntelligence/BusinessReviewList/index.js +1 -0
  184. package/src/components/BusinessIntelligence/InvoiceBusinessManager/styles.js +2 -2
  185. package/src/components/BusinessIntelligence/InvoiceDriverManager/styles.js +2 -2
  186. package/src/components/BusinessIntelligence/InvoiceManager/index.js +1 -0
  187. package/src/components/BusinessIntelligence/UsersReviewList/index.js +5 -2
  188. package/src/components/CartRecovery/OpenCartsDetail/index.js +17 -1
  189. package/src/components/CartRecovery/OpenCartsDetail/styles.js +3 -1
  190. package/src/components/CartRecovery/RecoveryActionDetail/index.js +24 -6
  191. package/src/components/CartRecovery/RecoveryActionDetail/styles.js +2 -3
  192. package/src/components/CartRecovery/RecoveryActionList/styles.js +1 -5
  193. package/src/components/Delivery/DeliveryUsersListing/index.js +1 -0
  194. package/src/components/Delivery/DriversCompaniesList/styles.js +1 -1
  195. package/src/components/Delivery/DriversCompanyDetailsForm/index.js +38 -15
  196. package/src/components/Delivery/DriversCompanyDetailsForm/styles.js +9 -5
  197. package/src/components/Delivery/DriversGroupDetails/index.js +48 -18
  198. package/src/components/Delivery/DriversGroupDetails/styles.js +5 -1
  199. package/src/components/Delivery/DriversGroupsList/index.js +8 -6
  200. package/src/components/Delivery/DriversGroupsList/styles.js +1 -1
  201. package/src/components/Delivery/UserAddForm/index.js +1 -1
  202. package/src/components/Delivery/UserDetails/index.js +43 -21
  203. package/src/components/Delivery/UserDetails/styles.js +8 -2
  204. package/src/components/Delivery/UserDetailsLateralBar/styles.js +0 -1
  205. package/src/components/Delivery/UserProfileForm/index.js +1 -1
  206. package/src/components/Delivery/UsersList/styles.js +1 -1
  207. package/src/components/Login/LoginForm/index.js +92 -32
  208. package/src/components/Login/LoginForm/styles.js +16 -0
  209. package/src/components/Loyalty/GiftCardDetail/index.js +287 -0
  210. package/src/components/Loyalty/LoyaltyLevelDetail/index.js +1 -1
  211. package/src/components/Loyalty/PointsWalletBusinessList/index.js +1 -1
  212. package/src/components/Loyalty/PointsWalletBusinessList/styles.js +9 -1
  213. package/src/components/Loyalty/PointsWalletLevels/styles.js +1 -6
  214. package/src/components/Loyalty/RewardsPrograms/index.js +63 -36
  215. package/src/components/Loyalty/RewardsPrograms/styles.js +57 -0
  216. package/src/components/Loyalty/Wallet/index.js +115 -0
  217. package/src/components/Loyalty/{PointsWallet → Wallet}/styles.js +17 -0
  218. package/src/components/Loyalty/index.js +2 -2
  219. package/src/components/Marketing/BannerDetails/styles.js +1 -0
  220. package/src/components/Marketing/BannerImageDetails/index.js +1 -1
  221. package/src/components/Marketing/CampaignDetail/index.js +25 -5
  222. package/src/components/Marketing/CampaignDetail/styles.js +2 -4
  223. package/src/components/Marketing/CampaignList/styles.js +1 -5
  224. package/src/components/Marketing/EnterprisePromotionDetails/index.js +35 -17
  225. package/src/components/Marketing/EnterprisePromotionDetails/styles.js +7 -3
  226. package/src/components/Marketing/EnterprisePromotionGeneralDetails/index.js +1 -1
  227. package/src/components/Marketing/EnterprisePromotionList/styles.js +1 -4
  228. package/src/components/Marketing/EnterprisePromotionRules/index.js +1 -0
  229. package/src/components/Marketing/PageBanner/index.js +28 -10
  230. package/src/components/Marketing/PageBanner/styles.js +15 -8
  231. package/src/components/MyProducts/AdvancedSettings/ImageBox.js +112 -0
  232. package/src/components/MyProducts/OrderingWebsite/index.js +1 -1
  233. package/src/components/OrderingProducts/OrderingProductDetails/index.js +34 -12
  234. package/src/components/OrderingProducts/OrderingProductDetails/styles.js +8 -3
  235. package/src/components/OrderingProducts/OrderingProductsListing/styles.js +1 -5
  236. package/src/components/OrderingProducts/SiteTheme/ThemeImage.js +1 -1
  237. package/src/components/Orders/Messages/index.js +104 -84
  238. package/src/components/Orders/Messages/styles.js +20 -0
  239. package/src/components/Orders/OrderDashboardSLASetting/index.js +0 -1
  240. package/src/components/Orders/OrderDetailsHeader/index.js +30 -3
  241. package/src/components/Orders/OrdersFilterGroup/index.js +6 -6
  242. package/src/components/Orders/OrdersLateralBar/index.js +20 -2
  243. package/src/components/Orders/OrdersLateralBar/styles.js +3 -1
  244. package/src/components/Settings/ApiKeysList/styles.js +8 -0
  245. package/src/components/Settings/Cms/styles.js +1 -1
  246. package/src/components/Settings/CountriesList/index.js +4 -3
  247. package/src/components/Settings/CountriesList/styles.js +1 -1
  248. package/src/components/Settings/Deliverect/index.js +17 -1
  249. package/src/components/Settings/DoordashConnect/index.js +17 -1
  250. package/src/components/Settings/DropdownOptionList/index.js +1 -0
  251. package/src/components/Settings/DropdownOptionList/styles.js +1 -1
  252. package/src/components/Settings/IntegrationListing/index.js +3 -0
  253. package/src/components/Settings/ItsaCheckmate/index.js +17 -1
  254. package/src/components/Settings/LalamoveConnect/index.js +17 -1
  255. package/src/components/Settings/LanguageTransTable/styles.js +1 -1
  256. package/src/components/Settings/PickerExpress/index.js +17 -1
  257. package/src/components/Settings/PlaceListing/index.js +1 -0
  258. package/src/components/Settings/PlaceListing/styles.js +1 -1
  259. package/src/components/Settings/PluginList/styles.js +8 -0
  260. package/src/components/Settings/Settings/index.js +1 -0
  261. package/src/components/Settings/SettingsDetail/index.js +18 -1
  262. package/src/components/Settings/SettingsDetail/styles.js +9 -0
  263. package/src/components/Settings/SettingsImage/index.js +1 -1
  264. package/src/components/Settings/SitesAuthSettings/index.js +26 -2
  265. package/src/components/Settings/SitesAuthSettings/styles.js +14 -1
  266. package/src/components/Settings/WebhookList/styles.js +8 -0
  267. package/src/components/Shared/Modal/index.js +8 -3
  268. package/src/components/Shared/ProtectedRoute/index.js +7 -1
  269. package/src/components/Shared/SideBar/index.js +30 -10
  270. package/src/components/Shared/SideBar/styles.js +13 -14
  271. package/src/components/SidebarMenu/index.js +3 -6
  272. package/src/components/Stores/AddBusinessForm/index.js +1 -1
  273. package/src/components/Stores/BusinessAdd/Images/index.js +1 -1
  274. package/src/components/Stores/BusinessAdd/Photos/index.js +1 -1
  275. package/src/components/Stores/BusinessAddStore/index.js +0 -1
  276. package/src/components/Stores/BusinessBrandGENDetail/index.js +19 -18
  277. package/src/components/Stores/BusinessBrandListing/index.js +29 -11
  278. package/src/components/Stores/BusinessBrandListing/styles.js +7 -3
  279. package/src/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
  280. package/src/components/Stores/BusinessDetails/index.js +8 -0
  281. package/src/components/Stores/BusinessFilterGroup/index.js +168 -0
  282. package/src/components/Stores/BusinessFilterGroup/styles.js +116 -0
  283. package/src/components/Stores/BusinessInformation/index.js +1 -1
  284. package/src/components/Stores/BusinessOrderingChannels/index.js +4 -2
  285. package/src/components/Stores/BusinessProductAddForm/index.js +2 -2
  286. package/src/components/Stores/BusinessProductList/index.js +1 -0
  287. package/src/components/Stores/BusinessProductList/styles.js +1 -4
  288. package/src/components/Stores/BusinessProductsCategories/styles.js +1 -5
  289. package/src/components/Stores/BusinessProductsCategoyDetails/index.js +23 -3
  290. package/src/components/Stores/BusinessProductsCategoyDetails/styles.js +2 -2
  291. package/src/components/Stores/BusinessProductsCategoyInfo/index.js +18 -47
  292. package/src/components/Stores/BusinessProductsListing/index.js +13 -10
  293. package/src/components/Stores/BusinessPromotionList/styles.js +1 -1
  294. package/src/components/Stores/BusinessSalesChannel/index.js +165 -0
  295. package/src/components/Stores/BusinessSalesChannel/styles.js +75 -0
  296. package/src/components/Stores/BusinessSalesFacebook/FacebookPost.js +29 -0
  297. package/src/components/Stores/BusinessSalesFacebook/FacebookProfile.js +51 -0
  298. package/src/components/Stores/BusinessSalesFacebook/index.js +81 -0
  299. package/src/components/Stores/BusinessSalesFacebook/styles.js +135 -0
  300. package/src/components/Stores/BusinessSalesGoogle/index.js +88 -0
  301. package/src/components/Stores/BusinessSalesGoogle/styles.js +119 -0
  302. package/src/components/Stores/BusinessSalesInstagram/AdvancedInstagram.js +54 -0
  303. package/src/components/Stores/BusinessSalesInstagram/GeneralInstagram.js +53 -0
  304. package/src/components/Stores/BusinessSalesInstagram/index.js +81 -0
  305. package/src/components/Stores/BusinessSalesInstagram/styles.js +157 -0
  306. package/src/components/Stores/BusinessSalesTiktok/index.js +116 -0
  307. package/src/components/Stores/BusinessSalesTiktok/styles.js +100 -0
  308. package/src/components/Stores/BusinessServiceProfessionals/index.js +1 -0
  309. package/src/components/Stores/BusinessSummary/index.js +32 -3
  310. package/src/components/Stores/BusinessTypeDetail/index.js +1 -1
  311. package/src/components/Stores/BusinessesList/styles.js +1 -1
  312. package/src/components/Stores/BusinessesListing/index.js +24 -11
  313. package/src/components/Stores/BusinessesListingHeader/index.js +25 -4
  314. package/src/components/Stores/BusinessesListingHeader/styles.js +13 -1
  315. package/src/components/Stores/ImportersButton/index.js +1 -0
  316. package/src/components/Stores/PaymentOption/index.js +4 -6
  317. package/src/components/Stores/PaymentOptionMethods/index.js +42 -21
  318. package/src/components/Stores/PaymentOptionPaypal/index.js +42 -21
  319. package/src/components/Stores/PaymentOptionStripeDirect/index.js +42 -21
  320. package/src/components/Stores/PaymethodOptionStripeConnect/index.js +45 -22
  321. package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +42 -21
  322. package/src/components/Stores/ProductDetails/index.js +1 -0
  323. package/src/components/Stores/ProductDetailsAdvanced/index.js +18 -0
  324. package/src/components/Stores/ProductDetailsAdvanced/styles.js +5 -0
  325. package/src/components/Stores/ProductDetatilsInformation/index.js +2 -48
  326. package/src/components/Stores/ProductExtraOptionDetails/index.js +1 -1
  327. package/src/components/Stores/ProductExtraOptions/index.js +1 -1
  328. package/src/components/Stores/ProductExtraSuboption/index.js +1 -1
  329. package/src/components/Stores/ProductGallery/index.js +1 -1
  330. package/src/components/Stores/ProductSummary/index.js +24 -3
  331. package/src/components/Stores/ProductTagDetails/index.js +1 -1
  332. package/src/components/Stores/SeoOptions/index.js +18 -12
  333. package/src/components/Stores/SeoOptions/styles.js +5 -14
  334. package/src/components/Stores/ServiceDetail/index.js +1 -1
  335. package/src/components/Stores/WizardBusiness/index.js +1 -0
  336. package/src/components/Stores/index.js +2 -0
  337. package/src/components/Users/CustomerDetails/index.js +39 -14
  338. package/src/components/Users/CustomerDetails/styles.js +2 -5
  339. package/src/components/Users/CustomersListing/index.js +32 -15
  340. package/src/components/Users/CustomersListing/styles.js +1 -1
  341. package/src/components/Users/OccupationSelector/index.js +1 -1
  342. package/src/components/Users/ProfessionalDetail/index.js +43 -23
  343. package/src/components/Users/ProfessionalDetail/styles.js +5 -0
  344. package/src/components/Users/ProfessionalList/styles.js +1 -1
  345. package/src/components/Users/ProfessionalListing/index.js +6 -1
  346. package/src/components/Users/UserAddForm/index.js +1 -1
  347. package/src/components/Users/UserDetails/index.js +34 -17
  348. package/src/components/Users/UserDetails/styles.js +17 -2
  349. package/src/components/Users/UserDetailsLateralBar/styles.js +0 -1
  350. package/src/components/Users/UserFilterGroup/index.js +306 -0
  351. package/src/components/Users/UserFilterGroup/styles.js +116 -0
  352. package/src/components/Users/UserProfileForm/index.js +1 -1
  353. package/src/components/Users/UsersExportCSV/index.js +19 -1
  354. package/src/components/Users/UsersList/index.js +9 -2
  355. package/src/components/Users/UsersList/styles.js +28 -1
  356. package/src/components/Users/UsersListing/index.js +7 -1
  357. package/src/components/Users/UsersListingHeader/index.js +66 -33
  358. package/src/components/Users/UsersListingHeader/styles.js +4 -0
  359. package/src/components/Users/index.js +2 -0
  360. package/src/config/constants.js +1215 -244
  361. package/src/index.js +2 -2
  362. package/template/assets/images/icons/business-google.svg +26 -0
  363. package/template/assets/images/icons/facebook.svg +11 -0
  364. package/template/assets/images/icons/instagram.svg +19 -0
  365. package/template/assets/images/icons/tiktok.svg +11 -0
  366. package/template/assets/images/salesChannels/facebook-post-step1.png +0 -0
  367. package/template/assets/images/salesChannels/facebook-post-step2.png +0 -0
  368. package/template/assets/images/salesChannels/facebook-profile-step2.png +0 -0
  369. package/template/assets/images/salesChannels/facebook-profile-step3-1.png +0 -0
  370. package/template/assets/images/salesChannels/facebook-profile-step3-2.png +0 -0
  371. package/template/assets/images/salesChannels/facebook-profile-step4.png +0 -0
  372. package/template/assets/images/salesChannels/facebook-profile-step5.png +0 -0
  373. package/template/assets/images/salesChannels/google-step1.png +0 -0
  374. package/template/assets/images/salesChannels/google-step2.png +0 -0
  375. package/template/assets/images/salesChannels/google-step3.png +0 -0
  376. package/template/assets/images/salesChannels/instagram-advanced-step31.png +0 -0
  377. package/template/assets/images/salesChannels/instagram-advanced-step32.png +0 -0
  378. package/template/assets/images/salesChannels/instagram-advanced-step41.png +0 -0
  379. package/template/assets/images/salesChannels/instagram-advanced-step42.png +0 -0
  380. package/template/assets/images/salesChannels/instagram-general-step2.png +0 -0
  381. package/template/assets/images/salesChannels/instagram-general-step3.png +0 -0
  382. package/template/assets/images/salesChannels/instagram-general-step4.png +0 -0
  383. package/template/assets/images/salesChannels/instagram-general-step5.png +0 -0
  384. package/template/assets/images/salesChannels/instagram-general-step6.png +0 -0
  385. package/template/assets/images/salesChannels/tiktok-step1.png +0 -0
  386. package/template/assets/images/salesChannels/tiktok-step10.png +0 -0
  387. package/template/assets/images/salesChannels/tiktok-step2.png +0 -0
  388. package/template/assets/images/salesChannels/tiktok-step3.png +0 -0
  389. package/template/assets/images/salesChannels/tiktok-step4.png +0 -0
  390. package/template/assets/images/salesChannels/tiktok-step5.png +0 -0
  391. package/template/assets/images/salesChannels/tiktok-step6.png +0 -0
  392. package/template/assets/images/salesChannels/tiktok-step7.png +0 -0
  393. package/template/assets/images/salesChannels/tiktok-step8.png +0 -0
  394. package/template/assets/images/salesChannels/tiktok-step9.png +0 -0
  395. package/template/pages/CustomersList/index.js +1 -1
  396. package/template/pages/Login/index.js +7 -1
  397. package/src/components/Loyalty/PointsWallet/index.js +0 -71
  398. /package/_bundles/{ordering-ui-admin.a97f0d1801ec4a89a98e.js.LICENSE.txt → ordering-ui-admin.1a09d41a4e6cd3d1e1cf.js.LICENSE.txt} +0 -0
@@ -0,0 +1,88 @@
1
+ import React, { useEffect, useState } from 'react'
2
+ import { useLanguage } from 'ordering-components-admin-external'
3
+ import { useWindowSize } from '../../../hooks/useWindowSize'
4
+ import { IconButton, Input } from '../../../styles'
5
+ import { XLg, Files } from 'react-bootstrap-icons'
6
+ import { useTheme } from 'styled-components'
7
+ import {
8
+ Container,
9
+ Header,
10
+ LeftHeader,
11
+ Step,
12
+ LinkText,
13
+ CopyInputWrapper
14
+ } from './styles'
15
+
16
+ export const BusinessSalesGoogle = (props) => {
17
+ const { onClose, socialItem, businessSlug } = props
18
+
19
+ const { width } = useWindowSize()
20
+ const [, t] = useLanguage()
21
+ const theme = useTheme()
22
+
23
+ const [isMenuOpen, setIsMenuOpen] = useState(false)
24
+
25
+ const actionSidebar = (value) => {
26
+ if (!value) {
27
+ onClose && onClose()
28
+ }
29
+ setIsMenuOpen(value)
30
+ document.getElementById('businessSocial').style.width = value
31
+ ? width > 1000 ? '500px' : '100%'
32
+ : '0'
33
+ }
34
+
35
+ useEffect(() => {
36
+ if (isMenuOpen) {
37
+ if (width < 1000) {
38
+ document.getElementById('businessSocial').style.width = '100%'
39
+ } else {
40
+ document.getElementById('businessSocial').style.width = '500px'
41
+ }
42
+ }
43
+ }, [width])
44
+
45
+ useEffect(() => {
46
+ if (!open) return
47
+ actionSidebar(true)
48
+ }, [open])
49
+
50
+ return (
51
+ <Container id='businessSocial'>
52
+ <Header>
53
+ <LeftHeader>
54
+ <img src={socialItem.icon} alt='' />
55
+ <h2>{socialItem.name}</h2>
56
+ </LeftHeader>
57
+ <IconButton onClick={onClose} color='black'>
58
+ <XLg />
59
+ </IconButton>
60
+ </Header>
61
+ <p>{t('BUSINESS_GOOGLE_DESC', 'Lorem ipsum dolor sit amet consectetur. Vitae odio aliquam adipiscing vitae. Nulla sed integer congue gravida lobortis tristique condimentum fusce tincidunt.')}</p>
62
+ <LinkText>
63
+ <a href='https://www.google.com/intl/es/business/sign-up' target='_blank' rel='noopener noreferrer'>https://www.google.com/intl/es/business/sign-up</a>
64
+ </LinkText>
65
+ <Step>
66
+ <h3>{t('STEP', 'Step')} 1</h3>
67
+ <p>{t('BUSINESS_GOOGLE_STEP1_DESC', 'On Google My Business, access your Locations page.')}</p>
68
+ <img src={theme.images.salesChannels.googleStep1} alt='' />
69
+ </Step>
70
+ <Step>
71
+ <h3>{t('STEP', 'Step')} 2</h3>
72
+ <p>{t('BUSINESS_GOOGLE_STEP2_DESC', 'Then click on info section on the sidebar inside your location.')}</p>
73
+ <img src={theme.images.salesChannels.googleStep2} alt='' />
74
+ </Step>
75
+ <Step>
76
+ <h3>{t('STEP', 'Step')} 3</h3>
77
+ <p>{t('BUSINESS_GOOGLE_STEP3_DESC', 'Scroll down and find Order ahead links and Menu link fields. Paste the link below.')}</p>
78
+ <CopyInputWrapper isBottom>
79
+ <Input
80
+ defaultValue='https://yourbusinessname.com/store/storename'
81
+ disabled
82
+ />
83
+ </CopyInputWrapper>
84
+ <img src={theme.images.salesChannels.googleStep3} alt='' />
85
+ </Step>
86
+ </Container>
87
+ )
88
+ }
@@ -0,0 +1,119 @@
1
+ import styled, { css } from 'styled-components'
2
+
3
+ export const Container = styled.div`
4
+ padding: 20px;
5
+ overflow: auto;
6
+ transition: 0.3s;
7
+ box-sizing: border-box;
8
+ display: flex;
9
+ flex-direction: column;
10
+
11
+ > p {
12
+ font-weight: 400;
13
+ font-size: 14px;
14
+ line-height: 24px;
15
+ color: ${props => props.theme.colors.lightGray};
16
+ margin-bottom: 15px;
17
+ margin-top: 0;
18
+ }
19
+
20
+ @media (min-width: 1000px) {
21
+ width: 0;
22
+ ${props => props.theme?.rtl ? css`
23
+ border-right: 1px solid ${props => props.theme.colors.borderColor};
24
+ ` : css`
25
+ border-left: 1px solid ${props => props.theme.colors.borderColor};
26
+ `}
27
+ }
28
+ `
29
+
30
+ export const LinkText = styled.div`
31
+ margin-bottom: 23px;
32
+ a {
33
+ color: ${props => props.theme.colors.primary};
34
+ text-decoration: none;
35
+ &:hover {
36
+ text-decoration: underline;
37
+ }
38
+ }
39
+ `
40
+
41
+ export const Header = styled.div`
42
+ display: flex;
43
+ justify-content: space-between;
44
+ margin-bottom: 25px;
45
+ `
46
+
47
+ export const LeftHeader = styled.div`
48
+ display: flex;
49
+ align-items: center;
50
+
51
+ img {
52
+ width: 32px;
53
+ height: 32px;
54
+ object-fit: cover;
55
+ margin-right: 18px;
56
+ ${props => props.theme.rtl && css`
57
+ margin-left: 18px;
58
+ margin-right: 0;
59
+ `}
60
+ }
61
+
62
+ h2 {
63
+ font-weight: 700;
64
+ font-size: 20px;
65
+ line-height: 30px;
66
+ margin: 0;
67
+ }
68
+ `
69
+
70
+ export const Step = styled.div`
71
+ margin-bottom: 27px;
72
+ h3 {
73
+ font-weight: 600;
74
+ font-size: 16px;
75
+ line-height: 24px;
76
+ margin-top: 0;
77
+ margin-bottom: 12px;
78
+ }
79
+ p {
80
+ font-weight: 400;
81
+ font-size: 14px;
82
+ line-height: 24px;
83
+ margin-top: 0;
84
+ margin-bottom: 20px;
85
+ color: ${props => props.theme.colors.lightGray};
86
+ }
87
+ img {
88
+ width: 100%;
89
+ }
90
+
91
+ @media (min-width: 576px) {
92
+ img {
93
+ display: block;
94
+ width: 90%;
95
+ margin-left: auto;
96
+ margin-right: auto;
97
+ margin-bottom: 24px;
98
+ }
99
+ }
100
+ `
101
+
102
+ export const CopyInputWrapper = styled.div`
103
+ display: flex;
104
+ align-items: center;
105
+ input {
106
+ flex: 1;
107
+ height: 44px;
108
+ }
109
+ button {
110
+ margin-left: 15px;
111
+ ${props => props.theme.rtl && css`
112
+ margin-left: 0;
113
+ margin-right: 15px;
114
+ `}
115
+ }
116
+ ${({ isBottom }) => isBottom && css`
117
+ margin-bottom: 24px;
118
+ `}
119
+ `
@@ -0,0 +1,54 @@
1
+ import React from 'react'
2
+ import { useLanguage } from 'ordering-components-admin-external'
3
+ import { useTheme } from 'styled-components'
4
+ import { Input } from '../../../styles'
5
+ import {
6
+ InstagramAdvancedContainer,
7
+ Step,
8
+ CopyInputWrapper,
9
+ ImageWrapper
10
+ } from './styles'
11
+
12
+ export const AdvancedInstagram = (props) => {
13
+ const [, t] = useLanguage()
14
+ const theme = useTheme()
15
+
16
+ return (
17
+ <InstagramAdvancedContainer>
18
+ <p>{t('BUSINESS_INSTAGRAM_ADVANCED_DESC', 'This setting is if your Instagram account has 10K followers or you are already an Instagram partner.')}</p>
19
+ <Step>
20
+ <h3>{t('STEP', 'Step')} 1</h3>
21
+ <p
22
+ dangerouslySetInnerHTML={{ __html: t('BUSINESS_INSTAGRAM_GENERAL_STEP2_DESC', 'Open your Instagram profile and tap on <strong>Edit Profile.</strong>') }}
23
+ />
24
+ <img src={theme.images.salesChannels.instagramGeneralStep2} alt='' />
25
+ </Step>
26
+ <Step>
27
+ <h3>{t('STEP', 'Step')} 2</h3>
28
+ <p
29
+ dangerouslySetInnerHTML={{ __html: t('BUSINESS_INSTAGRAM_ADVANCED_STEP3_DESC', 'Click on <strong>Action buttons</strong> and then select the button you need.') }}
30
+ />
31
+ <ImageWrapper>
32
+ <img src={theme.images.salesChannels.instagramAdvancedStep31} alt='' />
33
+ <img src={theme.images.salesChannels.instagramAdvancedStep32} alt='' />
34
+ </ImageWrapper>
35
+ </Step>
36
+ <Step>
37
+ <h3>{t('STEP', 'Step')} 3</h3>
38
+ <p
39
+ dangerouslySetInnerHTML={{ __html: t('BUSINESS_INSTAGRAM_ADVANCED_STEP4_DESC', 'Now, select <strong>Your business</strong>, and paste the following link. Then, tap on <strong>Done</strong>') }}
40
+ />
41
+ <CopyInputWrapper isBottom>
42
+ <Input
43
+ defaultValue='https://yourbusinessname.com/store/storename'
44
+ disabled
45
+ />
46
+ </CopyInputWrapper>
47
+ <ImageWrapper>
48
+ <img src={theme.images.salesChannels.instagramAdvancedStep41} alt='' />
49
+ <img src={theme.images.salesChannels.instagramAdvancedStep42} alt='' />
50
+ </ImageWrapper>
51
+ </Step>
52
+ </InstagramAdvancedContainer>
53
+ )
54
+ }
@@ -0,0 +1,53 @@
1
+ import React from 'react'
2
+ import { useLanguage } from 'ordering-components-admin-external'
3
+ import { useTheme } from 'styled-components'
4
+ import { Input } from '../../../styles'
5
+ import {
6
+ InstagramGeneralContainer,
7
+ Step,
8
+ CopyInputWrapper
9
+ } from './styles'
10
+
11
+ export const GeneralInstagram = ({ businessSlug }) => {
12
+ const [, t] = useLanguage()
13
+ const theme = useTheme()
14
+
15
+ return (
16
+ <InstagramGeneralContainer>
17
+ <p>{t('BUSINESS_INSTAGRAM_GENERAL_DESC', 'Lorem ipsum dolor sit amet consectetur. Vitae odio aliquam adipiscing vitae. Nulla sed integer congue gravida lobortis tristique condimentum fusce tincidunt.')}</p>
18
+ <Step>
19
+ <h3>{t('STEP', 'Step')} 1</h3>
20
+ <p
21
+ dangerouslySetInnerHTML={{ __html: t('BUSINESS_INSTAGRAM_GENERAL_STEP2_DESC', 'Open your Instagram profile and tap on <strong>Edit Profile.<strong>') }}
22
+ />
23
+ <img src={theme.images.salesChannels.instagramGeneralStep2} alt='' />
24
+ </Step>
25
+ <Step>
26
+ <h3>{t('STEP', 'Step')} 2</h3>
27
+ <p>{t('BUSINESS_INSTAGRAM_GENERAL_STEP3_DESC', 'On the Edit Profile screen, click on the Links option.')}</p>
28
+ <img src={theme.images.salesChannels.instagramGeneralStep3} alt='' />
29
+ </Step>
30
+ <Step>
31
+ <h3>{t('STEP', 'Step')} 3</h3>
32
+ <p>{t('BUSINESS_INSTAGRAM_GENERAL_STEP4_DESC', 'Add your business link, or if you already have a link, you can edit it; click on that option.')}</p>
33
+ <img src={theme.images.salesChannels.instagramGeneralStep4} alt='' />
34
+ </Step>
35
+ <Step>
36
+ <h3>{t('STEP', 'Step')} 4</h3>
37
+ <p>{t('BUSINESS_INSTAGRAM_GENERAL_STEP5_DESC', 'Just add this link to the website field:')}</p>
38
+ <CopyInputWrapper isBottom>
39
+ <Input
40
+ defaultValue='https://yourbusinessname.com/store/storename'
41
+ disabled
42
+ />
43
+ </CopyInputWrapper>
44
+ <img src={theme.images.salesChannels.instagramGeneralStep5} alt='' />
45
+ </Step>
46
+ <Step>
47
+ <h3>{t('STEP', 'Step')} 5</h3>
48
+ <p>{t('BUSINESS_INSTAGRAM_GENERAL_STEP6_DESC', 'Done; it will appear this way on your Instagram account.')}</p>
49
+ <img src={theme.images.salesChannels.instagramGeneralStep6} alt='' />
50
+ </Step>
51
+ </InstagramGeneralContainer>
52
+ )
53
+ }
@@ -0,0 +1,81 @@
1
+ import React, { useEffect, useState } from 'react'
2
+ import { useWindowSize } from '../../../hooks/useWindowSize'
3
+ import { useLanguage } from 'ordering-components-admin-external'
4
+ import { IconButton } from '../../../styles'
5
+ import { XLg } from 'react-bootstrap-icons'
6
+ import { GeneralInstagram } from './GeneralInstagram'
7
+ import { AdvancedInstagram } from './AdvancedInstagram'
8
+ import {
9
+ Container,
10
+ Header,
11
+ LeftHeader,
12
+ Tabs,
13
+ Tab
14
+ } from './styles'
15
+
16
+ export const BusinessSalesInstagram = (props) => {
17
+ const { onClose, socialItem, businessSlug } = props
18
+
19
+ const { width } = useWindowSize()
20
+ const [, t] = useLanguage()
21
+
22
+ const [isMenuOpen, setIsMenuOpen] = useState(false)
23
+ const [selectedTab, setSelectedTab] = useState('general')
24
+
25
+ const tabList = [
26
+ { key: 'general', title: t('GENERAL', 'General') },
27
+ { key: 'advanced', title: t('ADVANCED', 'Advanced') }
28
+ ]
29
+
30
+ const actionSidebar = (value) => {
31
+ if (!value) {
32
+ onClose && onClose()
33
+ }
34
+ setIsMenuOpen(value)
35
+ document.getElementById('businessSocial').style.width = value
36
+ ? width > 1000 ? '500px' : '100%'
37
+ : '0'
38
+ }
39
+
40
+ useEffect(() => {
41
+ if (isMenuOpen) {
42
+ if (width < 1000) {
43
+ document.getElementById('businessSocial').style.width = '100%'
44
+ } else {
45
+ document.getElementById('businessSocial').style.width = '500px'
46
+ }
47
+ }
48
+ }, [width])
49
+
50
+ useEffect(() => {
51
+ if (!open) return
52
+ actionSidebar(true)
53
+ }, [open])
54
+
55
+ return (
56
+ <Container id='businessSocial'>
57
+ <Header>
58
+ <LeftHeader>
59
+ <img src={socialItem.icon} alt='' />
60
+ <h2>{socialItem.name}</h2>
61
+ </LeftHeader>
62
+ <IconButton onClick={onClose} color='black'>
63
+ <XLg />
64
+ </IconButton>
65
+ </Header>
66
+ <Tabs>
67
+ {tabList.map(item => (
68
+ <Tab
69
+ key={item.key}
70
+ onClick={() => setSelectedTab(item.key)}
71
+ active={selectedTab === item.key}
72
+ >
73
+ {item.title}
74
+ </Tab>
75
+ ))}
76
+ </Tabs>
77
+ {selectedTab === 'general' && <GeneralInstagram businessSlug={businessSlug} />}
78
+ {selectedTab === 'advanced' && <AdvancedInstagram businessSlug={businessSlug} />}
79
+ </Container>
80
+ )
81
+ }
@@ -0,0 +1,157 @@
1
+ import styled, { css } from 'styled-components'
2
+
3
+ export const Container = styled.div`
4
+ padding: 20px;
5
+ overflow: auto;
6
+ transition: 0.3s;
7
+ box-sizing: border-box;
8
+ display: flex;
9
+ flex-direction: column;
10
+
11
+ @media (min-width: 1000px) {
12
+ width: 0;
13
+ ${props => props.theme?.rtl ? css`
14
+ border-right: 1px solid ${props => props.theme.colors.borderColor};
15
+ ` : css`
16
+ border-left: 1px solid ${props => props.theme.colors.borderColor};
17
+ `}
18
+ }
19
+ `
20
+
21
+ export const Header = styled.div`
22
+ display: flex;
23
+ justify-content: space-between;
24
+ margin-bottom: 25px;
25
+ `
26
+
27
+ export const LeftHeader = styled.div`
28
+ display: flex;
29
+ align-items: center;
30
+
31
+ img {
32
+ width: 32px;
33
+ height: 32px;
34
+ object-fit: cover;
35
+ margin-right: 18px;
36
+ ${props => props.theme.rtl && css`
37
+ margin-left: 18px;
38
+ margin-right: 0;
39
+ `}
40
+ }
41
+
42
+ h2 {
43
+ font-weight: 700;
44
+ font-size: 20px;
45
+ line-height: 30px;
46
+ margin: 0;
47
+ }
48
+ `
49
+
50
+ export const Tabs = styled.div`
51
+ display: flex;
52
+ margin-bottom: 24px;
53
+ border-bottom: 1px solid ${props => props.theme.colors.borderColor};
54
+ `
55
+
56
+ export const Tab = styled.div`
57
+ padding-bottom: 13px;
58
+ margin-right: 30px;
59
+ font-weight: 400;
60
+ font-size: 14px;
61
+ line-height: 21px;
62
+ color: ${props => props.theme.colors.lightGray};
63
+ cursor: pointer;
64
+ ${props => props.theme.rtl && css`
65
+ margin-left: 30px;
66
+ margin-right: 0;
67
+ `}
68
+
69
+ ${({ active }) => active && css`
70
+ font-weight: 600;
71
+ color: ${props => props.theme.colors.headingColor};
72
+ border-bottom: 1px solid ${props => props.theme.colors.headingColor};
73
+ `}
74
+ `
75
+
76
+ export const InstagramGeneralContainer = styled.div`
77
+ > p {
78
+ font-weight: 400;
79
+ font-size: 14px;
80
+ line-height: 24px;
81
+ color: ${props => props.theme.colors.lightGray};
82
+ margin-bottom: 23px;
83
+ margin-top: 0;
84
+ }
85
+ `
86
+
87
+ export const Step = styled.div`
88
+ margin-bottom: 27px;
89
+ h3 {
90
+ font-weight: 600;
91
+ font-size: 16px;
92
+ line-height: 24px;
93
+ margin-top: 0;
94
+ margin-bottom: 12px;
95
+ }
96
+ p {
97
+ font-weight: 400;
98
+ font-size: 14px;
99
+ line-height: 24px;
100
+ margin-top: 0;
101
+ margin-bottom: 20px;
102
+ color: ${props => props.theme.colors.lightGray};
103
+ }
104
+ > img {
105
+ width: 100%;
106
+ }
107
+
108
+ @media (min-width: 576px) {
109
+ > img {
110
+ display: block;
111
+ width: 90%;
112
+ margin-left: auto;
113
+ margin-right: auto;
114
+ margin-bottom: 24px;
115
+ }
116
+ }
117
+ `
118
+
119
+ export const CopyInputWrapper = styled.div`
120
+ display: flex;
121
+ align-items: center;
122
+ input {
123
+ flex: 1;
124
+ height: 44px;
125
+ }
126
+ button {
127
+ margin-left: 15px;
128
+ ${props => props.theme.rtl && css`
129
+ margin-left: 0;
130
+ margin-right: 15px;
131
+ `}
132
+ }
133
+ ${({ isBottom }) => isBottom && css`
134
+ margin-bottom: 24px;
135
+ `}
136
+ `
137
+
138
+ export const InstagramAdvancedContainer = styled(InstagramGeneralContainer)``
139
+
140
+ export const ImageWrapper = styled.div`
141
+ display: flex;
142
+ align-items: center;
143
+ justify-content: space-between;
144
+ flex-direction: column;
145
+ img {
146
+ width: 100%;
147
+ margin-bottom: 15px;
148
+ }
149
+
150
+ @media (min-width: 576px) {
151
+ flex-direction: row;
152
+ img {
153
+ width: 48%;
154
+ margin-bottom: 0px;
155
+ }
156
+ }
157
+ `
@@ -0,0 +1,116 @@
1
+ import React, { useEffect, useState } from 'react'
2
+ import { useLanguage } from 'ordering-components-admin-external'
3
+ import { useWindowSize } from '../../../hooks/useWindowSize'
4
+ import { IconButton } from '../../../styles'
5
+ import { XLg } from 'react-bootstrap-icons'
6
+ import { useTheme } from 'styled-components'
7
+ import {
8
+ Container,
9
+ Header,
10
+ LeftHeader,
11
+ Step,
12
+ LinkText
13
+ } from './styles'
14
+
15
+ export const BusinessSalesTiktok = (props) => {
16
+ const { onClose, socialItem } = props
17
+
18
+ const { width } = useWindowSize()
19
+ const [, t] = useLanguage()
20
+ const theme = useTheme()
21
+
22
+ const [isMenuOpen, setIsMenuOpen] = useState(false)
23
+
24
+ const actionSidebar = (value) => {
25
+ if (!value) {
26
+ onClose && onClose()
27
+ }
28
+ setIsMenuOpen(value)
29
+ document.getElementById('businessSocial').style.width = value
30
+ ? width > 1000 ? '500px' : '100%'
31
+ : '0'
32
+ }
33
+
34
+ useEffect(() => {
35
+ if (isMenuOpen) {
36
+ if (width < 1000) {
37
+ document.getElementById('businessSocial').style.width = '100%'
38
+ } else {
39
+ document.getElementById('businessSocial').style.width = '500px'
40
+ }
41
+ }
42
+ }, [width])
43
+
44
+ useEffect(() => {
45
+ if (!open) return
46
+ actionSidebar(true)
47
+ }, [open])
48
+
49
+ return (
50
+ <Container id='businessSocial'>
51
+ <Header>
52
+ <LeftHeader>
53
+ <img src={socialItem.icon} alt='' />
54
+ <h2>{socialItem.name}</h2>
55
+ </LeftHeader>
56
+ <IconButton onClick={onClose} color='black'>
57
+ <XLg />
58
+ </IconButton>
59
+ </Header>
60
+ <p>{t('BUSINESS_TIKTOK_DESC', 'On TikTok, we must create a catalog; for this, we will click on the button: Add Catalog. A pop-up will appear that we will fill in with the information you request.')}</p>
61
+ <LinkText>
62
+ <a href='https://ads.tiktok.com/i18n/home' target='_blank' rel='noopener noreferrer'>https://ads.tiktok.com/i18n/home</a>
63
+ </LinkText>
64
+ <Step>
65
+ <h3>{t('STEP', 'Step')} 1</h3>
66
+ <p>{t('BUSINESS_TIKTOK_STEP1_DESC', 'Please put the name of the Catalog that we are creating.')}</p>
67
+ <img src={theme.images.salesChannels.tiktokStep1} alt='' />
68
+ </Step>
69
+ <Step>
70
+ <h3>{t('STEP', 'Step')} 2</h3>
71
+ <p>{t('BUSINESS_TIKTOK_STEP2_DESC', 'Then click on the Business Center account. If you already have one created, select the one you need; if not, click Create.')}</p>
72
+ <img src={theme.images.salesChannels.tiktokStep2} alt='' />
73
+ </Step>
74
+ <Step>
75
+ <h3>{t('STEP', 'Step')} 3</h3>
76
+ <p>{t('BUSINESS_TIKTOK_STEP3_DESC', 'Write the name of your Business Center, select the Time Zone, and click the Create button.')}</p>
77
+ <img src={theme.images.salesChannels.tiktokStep3} alt='' />
78
+ </Step>
79
+ <Step>
80
+ <h3>{t('STEP', 'Step')} 4</h3>
81
+ <p>{t('BUSINESS_TIKTOK_STEP4_DESC', 'Then click again on the Business Center field, and the one you just created will appear, select it.')}</p>
82
+ <img src={theme.images.salesChannels.tiktokStep4} alt='' />
83
+ </Step>
84
+ <Step>
85
+ <h3>{t('STEP', 'Step')} 5</h3>
86
+ <p>{t('BUSINESS_TIKTOK_STEP5_DESC', 'Click on the Industry field and select the option that appears, in this case, E-commerce.')}</p>
87
+ <img src={theme.images.salesChannels.tiktokStep5} alt='' />
88
+ </Step>
89
+ <Step>
90
+ <h3>{t('STEP', 'Step')} 6</h3>
91
+ <p>{t('BUSINESS_TIKTOK_STEP6_DESC', 'Select the Default location and Default Currency according to your need, and click the Create button.')}</p>
92
+ <img src={theme.images.salesChannels.tiktokStep6} alt='' />
93
+ </Step>
94
+ <Step>
95
+ <h3>{t('STEP', 'Step')} 7</h3>
96
+ <p>{t('BUSINESS_TIKTOK_STEP7_DESC', 'TikTok will show you a brief tour of your Dashboard so you can get to know it.')}</p>
97
+ <img src={theme.images.salesChannels.tiktokStep7} alt='' />
98
+ </Step>
99
+ <Step>
100
+ <h3>{t('STEP', 'Step')} 8</h3>
101
+ <p>{t('BUSINESS_TIKTOK_STEP8_DESC', 'After watching the tutorial, TikTok will enable your Dashboard to start uploading the things you need, and the first thing you\'ll do is add products. Just click on the Products option in the Sidebar and click on the Add Products button.')}</p>
102
+ <img src={theme.images.salesChannels.tiktokStep8} alt='' />
103
+ </Step>
104
+ <Step>
105
+ <h3>{t('STEP', 'Step')} 9</h3>
106
+ <p>{t('BUSINESS_TIKTOK_STEP9_DESC', 'Select the option you like the most to upload your products; when you choose it, click Next.')}</p>
107
+ <img src={theme.images.salesChannels.tiktokStep9} alt='' />
108
+ </Step>
109
+ <Step>
110
+ <h3>{t('STEP', 'Step')} 10</h3>
111
+ <p>{t('BUSINESS_TIKTOK_STEP10_DESC', 'Fill in the requested fields; click on the Import button when ready.')}</p>
112
+ <img src={theme.images.salesChannels.tiktokStep10} alt='' />
113
+ </Step>
114
+ </Container>
115
+ )
116
+ }