ordering-ui-admin-external 1.30.6 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) hide show
  1. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js → ordering-ui-admin.2f5049887bf500c65392.js} +2 -2
  2. package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.js.LICENSE.txt → ordering-ui-admin.2f5049887bf500c65392.js.LICENSE.txt} +1 -1
  3. package/_modules/components/BusinessIntelligence/AnalyticsAvailableTimes/index.js +10 -10
  4. package/_modules/components/BusinessIntelligence/AnalyticsBusinessFilter/index.js +1 -1
  5. package/_modules/components/BusinessIntelligence/AnalyticsBusyTimes/index.js +10 -10
  6. package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +1 -1
  7. package/_modules/components/BusinessIntelligence/AnalyticsCustomerSatisfaction/index.js +10 -10
  8. package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +80 -47
  9. package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +4 -4
  10. package/_modules/components/BusinessIntelligence/AnalyticsOrdersOrSales/index.js +3 -3
  11. package/_modules/components/BusinessIntelligence/AnalyticsOrdersStatus/index.js +1 -1
  12. package/_modules/components/BusinessIntelligence/AnalyticsRegisterUsers/index.js +6 -6
  13. package/_modules/components/BusinessIntelligence/AnalyticsSpendTimes/index.js +12 -12
  14. package/_modules/components/BusinessIntelligence/BusinessAnalytics/index.js +2 -1
  15. package/_modules/components/BusinessIntelligence/BusinessAnalytics/styles.js +6 -4
  16. package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
  17. package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
  18. package/_modules/components/BusinessIntelligence/CountryFilter/index.js +1 -1
  19. package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
  20. package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
  21. package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
  22. package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +16 -15
  23. package/_modules/components/BusinessIntelligence/ReportsAverageSales/styles.js +13 -3
  24. package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
  25. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +27 -26
  26. package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +13 -3
  27. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +12 -11
  28. package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +13 -3
  29. package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +18 -17
  30. package/_modules/components/BusinessIntelligence/ReportsCustomer/styles.js +13 -3
  31. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +12 -11
  32. package/_modules/components/BusinessIntelligence/ReportsDriverDistance/styles.js +13 -3
  33. package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
  34. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +12 -11
  35. package/_modules/components/BusinessIntelligence/ReportsDriverOrder/styles.js +13 -3
  36. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +12 -11
  37. package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +13 -3
  38. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +11 -10
  39. package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +13 -3
  40. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +12 -11
  41. package/_modules/components/BusinessIntelligence/ReportsDriverSpend/styles.js +13 -3
  42. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +12 -11
  43. package/_modules/components/BusinessIntelligence/ReportsGeneralSales/styles.js +13 -3
  44. package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +12 -11
  45. package/_modules/components/BusinessIntelligence/ReportsHeatMap/styles.js +13 -3
  46. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +24 -23
  47. package/_modules/components/BusinessIntelligence/ReportsOrderDistance/styles.js +13 -3
  48. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +18 -17
  49. package/_modules/components/BusinessIntelligence/ReportsOrderStatus/styles.js +13 -3
  50. package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
  51. package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +22 -21
  52. package/_modules/components/BusinessIntelligence/ReportsOrders/styles.js +13 -3
  53. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +11 -10
  54. package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +13 -3
  55. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +20 -19
  56. package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +13 -3
  57. package/_modules/components/BusinessIntelligence/ReportsSales/index.js +22 -21
  58. package/_modules/components/BusinessIntelligence/ReportsSales/styles.js +13 -3
  59. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +11 -10
  60. package/_modules/components/BusinessIntelligence/ReportsSpentTIme/styles.js +13 -3
  61. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +27 -26
  62. package/_modules/components/BusinessIntelligence/ReportsTopDrivers/styles.js +13 -3
  63. package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +17 -16
  64. package/_modules/components/BusinessIntelligence/ReportsUsers/styles.js +13 -3
  65. package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
  66. package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
  67. package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
  68. package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
  69. package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
  70. package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
  71. package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
  72. package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
  73. package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
  74. package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
  75. package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
  76. package/_modules/components/Delivery/AddressForm/index.js +29 -29
  77. package/_modules/components/Delivery/AddressList/index.js +22 -12
  78. package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
  79. package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
  80. package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
  81. package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
  82. package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
  83. package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
  84. package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
  85. package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
  86. package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
  87. package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
  88. package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
  89. package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
  90. package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
  91. package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
  92. package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
  93. package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
  94. package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
  95. package/_modules/components/Delivery/UserAddForm/index.js +13 -13
  96. package/_modules/components/Delivery/UserDetails/index.js +6 -6
  97. package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
  98. package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
  99. package/_modules/components/Home/HomePage/index.js +10 -9
  100. package/_modules/components/LanguageSelector/index.js +1 -1
  101. package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
  102. package/_modules/components/Login/LoginForm/index.js +11 -11
  103. package/_modules/components/Login/ResetPassword/index.js +5 -5
  104. package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
  105. package/_modules/components/Loyalty/GiftCards/index.js +3 -3
  106. package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
  107. package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
  108. package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
  109. package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
  110. package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
  111. package/_modules/components/Marketing/BannerDetails/index.js +5 -5
  112. package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
  113. package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
  114. package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
  115. package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
  116. package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
  117. package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
  118. package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
  119. package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
  120. package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
  121. package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
  122. package/_modules/components/Marketing/CampaignList/index.js +2 -2
  123. package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
  124. package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
  125. package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
  126. package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
  127. package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
  128. package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
  129. package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
  130. package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
  131. package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
  132. package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
  133. package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
  134. package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
  135. package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
  136. package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
  137. package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
  138. package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
  139. package/_modules/components/Marketing/PageBanner/index.js +1 -1
  140. package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
  141. package/_modules/components/Messages/ChatContactList/index.js +2 -2
  142. package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
  143. package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
  144. package/_modules/components/MyProducts/AppResources/index.js +15 -15
  145. package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
  146. package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
  147. package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
  148. package/_modules/components/MyProducts/OrderingWebsite/index.js +39 -32
  149. package/_modules/components/MyProducts/OrderingWebsite/styles.js +1 -1
  150. package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
  151. package/_modules/components/NotNetworkConnectivity/index.js +2 -2
  152. package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
  153. package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
  154. package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
  155. package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
  156. package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
  157. package/_modules/components/Orders/AllInOne/index.js +15 -6
  158. package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
  159. package/_modules/components/Orders/Appointments/index.js +2 -2
  160. package/_modules/components/Orders/CompanySelector/index.js +4 -4
  161. package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
  162. package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
  163. package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
  164. package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
  165. package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +102 -9
  166. package/_modules/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +19 -3
  167. package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
  168. package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
  169. package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +3 -3
  170. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
  171. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
  172. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
  173. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
  174. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
  175. package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
  176. package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
  177. package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
  178. package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
  179. package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
  180. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +22 -10
  181. package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +8 -5
  182. package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
  183. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
  184. package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
  185. package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
  186. package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
  187. package/_modules/components/Orders/DeliveriesManager/index.js +13 -4
  188. package/_modules/components/Orders/DeliveryDashboard/index.js +6 -6
  189. package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
  190. package/_modules/components/Orders/DriversList/index.js +2 -2
  191. package/_modules/components/Orders/DriversLocation/index.js +11 -11
  192. package/_modules/components/Orders/DriversManager/index.js +2 -2
  193. package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
  194. package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
  195. package/_modules/components/Orders/Logistics/index.js +1 -1
  196. package/_modules/components/Orders/Messages/index.js +4 -4
  197. package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
  198. package/_modules/components/Orders/OrderBill/index.js +46 -46
  199. package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
  200. package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
  201. package/_modules/components/Orders/OrderDetails/index.js +6 -6
  202. package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
  203. package/_modules/components/Orders/OrderLogisticInformation/index.js +1 -1
  204. package/_modules/components/Orders/OrderNotification/index.js +47 -18
  205. package/_modules/components/Orders/OrderNotification/styles.js +18 -3
  206. package/_modules/components/Orders/OrderStatusFilterBar/index.js +6 -6
  207. package/_modules/components/Orders/OrderToPrint/index.js +22 -22
  208. package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
  209. package/_modules/components/Orders/OrdersCards/index.js +29 -29
  210. package/_modules/components/Orders/OrdersContentHeader/index.js +13 -4
  211. package/_modules/components/Orders/OrdersContentHeader/styles.js +20 -4
  212. package/_modules/components/Orders/OrdersDashboardList/index.js +34 -5
  213. package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
  214. package/_modules/components/Orders/OrdersFilterGroup/index.js +18 -1
  215. package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
  216. package/_modules/components/Orders/OrdersListing/index.js +9 -3
  217. package/_modules/components/Orders/OrdersManager/index.js +16 -7
  218. package/_modules/components/Orders/OrdersTable/index.js +53 -53
  219. package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
  220. package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
  221. package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
  222. package/_modules/components/Orders/WebsocketStatus/index.js +6 -1
  223. package/_modules/components/PageNotFound/index.js +3 -3
  224. package/_modules/components/Settings/ApiKeysList/index.js +1 -1
  225. package/_modules/components/Settings/CountriesList/index.js +1 -1
  226. package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
  227. package/_modules/components/Settings/EmailSetting/index.js +5 -5
  228. package/_modules/components/Settings/InsertImage/index.js +3 -3
  229. package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
  230. package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
  231. package/_modules/components/Settings/LanguageSetting/index.js +1 -1
  232. package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
  233. package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
  234. package/_modules/components/Settings/NotificationSetting/index.js +6 -6
  235. package/_modules/components/Settings/PlaceListing/index.js +1 -1
  236. package/_modules/components/Settings/Settings/index.js +3 -3
  237. package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
  238. package/_modules/components/Settings/SettingsList/index.js +4 -4
  239. package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
  240. package/_modules/components/Settings/WebhookListSelector/index.js +6 -0
  241. package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
  242. package/_modules/components/Shared/AutoScroll/index.js +4 -4
  243. package/_modules/components/Shared/CitySelector/index.js +1 -1
  244. package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
  245. package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
  246. package/_modules/components/Shared/DragScroll/index.js +5 -5
  247. package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
  248. package/_modules/components/Shared/InputPhoneNumber/index.js +3 -4
  249. package/_modules/components/Shared/NotFoundSource/index.js +2 -2
  250. package/_modules/components/Shared/Personalization/index.js +1 -1
  251. package/_modules/components/Shared/RangeCalendar/index.js +2 -2
  252. package/_modules/components/Shared/Schedule/index.js +6 -6
  253. package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
  254. package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
  255. package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
  256. package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
  257. package/_modules/components/Shared/SelectSites/index.js +1 -1
  258. package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
  259. package/_modules/components/SidebarMenu/index.js +37 -40
  260. package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
  261. package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
  262. package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
  263. package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
  264. package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
  265. package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
  266. package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
  267. package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +7 -3
  268. package/_modules/components/Stores/BusinessAdd/index.js +9 -9
  269. package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
  270. package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
  271. package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
  272. package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
  273. package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
  274. package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
  275. package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
  276. package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
  277. package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
  278. package/_modules/components/Stores/BusinessDetails/index.js +7 -7
  279. package/_modules/components/Stores/BusinessDeviceDetail/index.js +13 -13
  280. package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
  281. package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
  282. package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
  283. package/_modules/components/Stores/BusinessImages/index.js +4 -4
  284. package/_modules/components/Stores/BusinessInformation/index.js +35 -35
  285. package/_modules/components/Stores/BusinessLocation/index.js +7 -7
  286. package/_modules/components/Stores/BusinessMenu/index.js +2 -2
  287. package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
  288. package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
  289. package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
  290. package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
  291. package/_modules/components/Stores/BusinessOwners/index.js +1 -1
  292. package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
  293. package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
  294. package/_modules/components/Stores/BusinessPlace/index.js +1 -1
  295. package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
  296. package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
  297. package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
  298. package/_modules/components/Stores/BusinessPreview/index.js +19 -19
  299. package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
  300. package/_modules/components/Stores/BusinessProductList/index.js +5 -5
  301. package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
  302. package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
  303. package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
  304. package/_modules/components/Stores/BusinessProductsListing/index.js +25 -21
  305. package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
  306. package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
  307. package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
  308. package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
  309. package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
  310. package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
  311. package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
  312. package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
  313. package/_modules/components/Stores/BusinessSummary/index.js +14 -11
  314. package/_modules/components/Stores/BusinessSupport/index.js +2 -2
  315. package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
  316. package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
  317. package/_modules/components/Stores/BusinessTypes/index.js +2 -2
  318. package/_modules/components/Stores/BusinessVideos/index.js +2 -2
  319. package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
  320. package/_modules/components/Stores/BusinessWebhooks/index.js +11 -5
  321. package/_modules/components/Stores/BusinessesListing/index.js +1 -1
  322. package/_modules/components/Stores/ImporterForm/index.js +3 -3
  323. package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
  324. package/_modules/components/Stores/PaymentOption/index.js +11 -11
  325. package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
  326. package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
  327. package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
  328. package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
  329. package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
  330. package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
  331. package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
  332. package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
  333. package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
  334. package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
  335. package/_modules/components/Stores/ProductExtraOptionDetails/index.js +26 -21
  336. package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
  337. package/_modules/components/Stores/ProductExtraOptions/index.js +10 -4
  338. package/_modules/components/Stores/ProductExtraSuboption/index.js +10 -5
  339. package/_modules/components/Stores/ProductExtras/index.js +9 -4
  340. package/_modules/components/Stores/ProductGallery/index.js +3 -3
  341. package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
  342. package/_modules/components/Stores/ProductStep/index.js +2 -2
  343. package/_modules/components/Stores/ProductSummary/index.js +11 -8
  344. package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
  345. package/_modules/components/Stores/ProductTagsList/index.js +1 -1
  346. package/_modules/components/Stores/ProductVideos/index.js +1 -1
  347. package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
  348. package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
  349. package/_modules/components/Stores/SeoOptions/index.js +9 -9
  350. package/_modules/components/Stores/ServiceDetail/index.js +5 -5
  351. package/_modules/components/Stores/SingleBusiness/index.js +14 -14
  352. package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
  353. package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
  354. package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
  355. package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
  356. package/_modules/components/Users/CustomerDetails/index.js +2 -2
  357. package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
  358. package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
  359. package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
  360. package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
  361. package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
  362. package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
  363. package/_modules/components/Users/ProfessionalListing/index.js +1 -1
  364. package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
  365. package/_modules/components/Users/ProfessionalServices/index.js +3 -3
  366. package/_modules/components/Users/UserAddForm/index.js +11 -13
  367. package/_modules/components/Users/UserDetails/index.js +4 -4
  368. package/_modules/components/Users/UserFilterGroup/index.js +2 -2
  369. package/_modules/components/Users/UserFormDetails/index.js +12 -12
  370. package/_modules/components/Users/UserProfileForm/index.js +7 -7
  371. package/_modules/styles/Select/index.js +1 -1
  372. package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
  373. package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
  374. package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
  375. package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
  376. package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
  377. package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
  378. package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
  379. package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
  380. package/_modules/themes/origin/src/components/Header/index.js +3 -3
  381. package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
  382. package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
  383. package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
  384. package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
  385. package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
  386. package/_modules/themes/origin/src/components/Messages/index.js +13 -13
  387. package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
  388. package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
  389. package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
  390. package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
  391. package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
  392. package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
  393. package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
  394. package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
  395. package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
  396. package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
  397. package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
  398. package/_modules/themes/origin/src/components/OverView/index.js +1 -1
  399. package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
  400. package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
  401. package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
  402. package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
  403. package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
  404. package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
  405. package/_modules/utils/index.js +1 -1
  406. package/package.json +2 -2
  407. package/src/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +39 -17
  408. package/src/components/BusinessIntelligence/BusinessAnalytics/index.js +6 -1
  409. package/src/components/BusinessIntelligence/BusinessAnalytics/styles.js +2 -0
  410. package/src/components/BusinessIntelligence/ReportsAverageSales/index.js +15 -7
  411. package/src/components/BusinessIntelligence/ReportsAverageSales/styles.js +34 -0
  412. package/src/components/BusinessIntelligence/ReportsBusinessDistance/index.js +9 -1
  413. package/src/components/BusinessIntelligence/ReportsBusinessDistance/styles.js +34 -0
  414. package/src/components/BusinessIntelligence/ReportsBusinessSpend/index.js +9 -1
  415. package/src/components/BusinessIntelligence/ReportsBusinessSpend/styles.js +34 -0
  416. package/src/components/BusinessIntelligence/ReportsCustomer/index.js +15 -7
  417. package/src/components/BusinessIntelligence/ReportsCustomer/styles.js +34 -0
  418. package/src/components/BusinessIntelligence/ReportsDriverDistance/index.js +10 -2
  419. package/src/components/BusinessIntelligence/ReportsDriverDistance/styles.js +34 -0
  420. package/src/components/BusinessIntelligence/ReportsDriverOrder/index.js +9 -1
  421. package/src/components/BusinessIntelligence/ReportsDriverOrder/styles.js +34 -0
  422. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +9 -1
  423. package/src/components/BusinessIntelligence/ReportsDriverOrderTime/styles.js +34 -0
  424. package/src/components/BusinessIntelligence/ReportsDriverSchedule/index.js +16 -8
  425. package/src/components/BusinessIntelligence/ReportsDriverSchedule/styles.js +34 -0
  426. package/src/components/BusinessIntelligence/ReportsDriverSpend/index.js +9 -1
  427. package/src/components/BusinessIntelligence/ReportsDriverSpend/styles.js +34 -0
  428. package/src/components/BusinessIntelligence/ReportsGeneralSales/index.js +9 -1
  429. package/src/components/BusinessIntelligence/ReportsGeneralSales/styles.js +34 -0
  430. package/src/components/BusinessIntelligence/ReportsHeatMap/index.js +9 -1
  431. package/src/components/BusinessIntelligence/ReportsHeatMap/styles.js +34 -0
  432. package/src/components/BusinessIntelligence/ReportsOrderDistance/index.js +10 -1
  433. package/src/components/BusinessIntelligence/ReportsOrderDistance/styles.js +34 -0
  434. package/src/components/BusinessIntelligence/ReportsOrderStatus/index.js +10 -2
  435. package/src/components/BusinessIntelligence/ReportsOrderStatus/styles.js +34 -0
  436. package/src/components/BusinessIntelligence/ReportsOrders/index.js +9 -1
  437. package/src/components/BusinessIntelligence/ReportsOrders/styles.js +34 -0
  438. package/src/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -1
  439. package/src/components/BusinessIntelligence/ReportsPaymethodSales/styles.js +34 -0
  440. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +9 -1
  441. package/src/components/BusinessIntelligence/ReportsSaleAndCategory/styles.js +34 -0
  442. package/src/components/BusinessIntelligence/ReportsSales/index.js +9 -1
  443. package/src/components/BusinessIntelligence/ReportsSales/styles.js +34 -0
  444. package/src/components/BusinessIntelligence/ReportsSpentTIme/index.js +15 -7
  445. package/src/components/BusinessIntelligence/ReportsSpentTIme/styles.js +34 -0
  446. package/src/components/BusinessIntelligence/ReportsTopDrivers/index.js +9 -2
  447. package/src/components/BusinessIntelligence/ReportsTopDrivers/styles.js +34 -0
  448. package/src/components/BusinessIntelligence/ReportsUsers/index.js +15 -7
  449. package/src/components/BusinessIntelligence/ReportsUsers/styles.js +34 -0
  450. package/src/components/Delivery/AddressList/index.js +11 -1
  451. package/src/components/Home/HomePage/index.js +5 -1
  452. package/src/components/MyProducts/OrderingWebsite/index.js +25 -12
  453. package/src/components/MyProducts/OrderingWebsite/styles.js +0 -2
  454. package/src/components/Orders/AllInOne/index.js +8 -2
  455. package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +118 -6
  456. package/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +56 -0
  457. package/src/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +1 -1
  458. package/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +19 -11
  459. package/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +3 -0
  460. package/src/components/Orders/DeliveriesManager/index.js +8 -2
  461. package/src/components/Orders/DeliveryDashboard/index.js +4 -4
  462. package/src/components/Orders/OrderNotification/index.js +31 -5
  463. package/src/components/Orders/OrderNotification/styles.js +37 -0
  464. package/src/components/Orders/OrderStatusFilterBar/index.js +10 -9
  465. package/src/components/Orders/OrdersContentHeader/index.js +17 -3
  466. package/src/components/Orders/OrdersContentHeader/styles.js +54 -0
  467. package/src/components/Orders/OrdersDashboardList/index.js +6 -1
  468. package/src/components/Orders/OrdersFilterGroup/index.js +16 -0
  469. package/src/components/Orders/OrdersListing/index.js +7 -0
  470. package/src/components/Orders/OrdersManager/index.js +11 -3
  471. package/src/components/Orders/WebsocketStatus/index.js +5 -2
  472. package/src/components/Settings/WebhookListSelector/index.js +3 -1
  473. package/src/components/Shared/InputPhoneNumber/index.js +2 -3
  474. package/src/components/SidebarMenu/index.js +6 -6
  475. package/src/components/Stores/BusinessAdd/ReceiveOrders/index.js +16 -12
  476. package/src/components/Stores/BusinessDeviceDetail/index.js +1 -1
  477. package/src/components/Stores/BusinessProductsListing/index.js +4 -0
  478. package/src/components/Stores/BusinessSummary/index.js +21 -15
  479. package/src/components/Stores/BusinessWebhooks/index.js +3 -1
  480. package/src/components/Stores/ProductExtraOptionDetails/index.js +8 -0
  481. package/src/components/Stores/ProductExtraOptions/index.js +10 -1
  482. package/src/components/Stores/ProductExtraSuboption/index.js +7 -1
  483. package/src/components/Stores/ProductExtras/index.js +6 -1
  484. package/src/components/Stores/ProductSummary/index.js +7 -1
  485. package/src/components/Users/UserAddForm/index.js +0 -2
@@ -30,7 +30,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
30
30
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
33
- var _formState$changes3, _formState$changes5, _formState$changes6, _formState$result3, _formState$changes7, _formState$changes8, _formState$changes9, _formState$changes10, _formState$changes11, _formState$changes12, _formState$changes$in, _formState$changes13, _formState$changes14, _formState$changes15, _product$ribbon, _formState$changes16, _formState$changes16$, _formState$changes17, _formState$changes17$, _product$ribbon2, _formState$changes$ri, _formState$changes18, _formState$changes18$, _product$ribbon3, _formState$changes19, _formState$changes19$, _formState$changes20, _formState$changes20$, _product$ribbon4, _formState$changes$ri2, _formState$changes21, _formState$changes21$, _product$ribbon5;
33
+ var _formState$changes3, _formState$changes5, _formState$changes6, _formState$result3, _formState$changes7, _formState$changes8, _formState$changes9, _formState$changes10, _formState$changes11, _formState$changes12, _formState$changes$in, _formState$changes13, _formState$changes14, _formState$changes15, _product$ribbon, _formState$changes16, _formState$changes17, _product$ribbon2, _formState$changes$ri, _formState$changes18, _product$ribbon3, _formState$changes19, _formState$changes20, _product$ribbon4, _formState$changes$ri2, _formState$changes21, _product$ribbon5;
34
34
  var product = props.product,
35
35
  formState = props.formState,
36
36
  handlechangeImage = props.handlechangeImage,
@@ -190,7 +190,7 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
190
190
  var _formState$result2;
191
191
  setAlertState({
192
192
  open: true,
193
- content: formState === null || formState === void 0 ? void 0 : (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
193
+ content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
194
194
  });
195
195
  }
196
196
  }, [formState === null || formState === void 0 ? void 0 : formState.result]);
@@ -213,18 +213,18 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
213
213
  }, [autoGenerateCode]);
214
214
  (0, _react.useEffect)(function () {
215
215
  var _formState$changes;
216
- if (typeof (formState === null || formState === void 0 ? void 0 : (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.price) !== 'undefined') {
216
+ if (typeof (formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.price) !== 'undefined') {
217
217
  var _formState$changes2;
218
- setMinimumRegualrPrice(parseFloat(formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.price) + 0.01);
218
+ setMinimumRegualrPrice(parseFloat(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.price) + 0.01);
219
219
  return;
220
220
  }
221
221
  if (product !== null && product !== void 0 && product.price) {
222
222
  setMinimumRegualrPrice(parseFloat(product === null || product === void 0 ? void 0 : product.price) + 0.01);
223
223
  }
224
- }, [product === null || product === void 0 ? void 0 : product.price, formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.price]);
224
+ }, [product === null || product === void 0 ? void 0 : product.price, formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.price]);
225
225
  (0, _react.useEffect)(function () {
226
226
  var _formState$changes4;
227
- if (typeof (formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.name) === 'undefined') return;
227
+ if (typeof (formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.name) === 'undefined') return;
228
228
  var generateCode = {
229
229
  target: {
230
230
  name: 'slug',
@@ -232,7 +232,7 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
232
232
  }
233
233
  };
234
234
  handleChangeInput(generateCode);
235
- }, [formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.name]);
235
+ }, [formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.name]);
236
236
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.FormInput, {
237
237
  onSubmit: formMethods.handleSubmit(onSubmit)
238
238
  }, /*#__PURE__*/_react.default.createElement(_styles2.ProductImage, {
@@ -258,8 +258,8 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
258
258
  src: optimizeImage(product === null || product === void 0 ? void 0 : product.images, 'h_200,c_limit'),
259
259
  alt: "product image",
260
260
  loading: "lazy"
261
- }) : (formState === null || formState === void 0 ? void 0 : (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.images) && /*#__PURE__*/_react.default.createElement("img", {
262
- src: formState === null || formState === void 0 ? void 0 : (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.images,
261
+ }) : (formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.images) && /*#__PURE__*/_react.default.createElement("img", {
262
+ src: formState === null || formState === void 0 || (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.images,
263
263
  alt: "product image",
264
264
  loading: "lazy"
265
265
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_BiImage.default, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_DROP_IMAGE_HERE', 'Put your image here'))))))), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('Name_V2', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
@@ -302,11 +302,11 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
302
302
  placeholder: parsePrice(0),
303
303
  defaultValue: product === null || product === void 0 ? void 0 : product.offer_price,
304
304
  ref: formMethods.register({
305
- min: (typeof (formState === null || formState === void 0 ? void 0 : (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.in_offer) === 'undefined' && (product === null || product === void 0 ? void 0 : product.in_offer) || (formState === null || formState === void 0 ? void 0 : (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.in_offer)) && minimumRegualrPrice,
306
- required: typeof (formState === null || formState === void 0 ? void 0 : (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.in_offer) === 'undefined' && product !== null && product !== void 0 && product.in_offer || formState !== null && formState !== void 0 && (_formState$changes12 = formState.changes) !== null && _formState$changes12 !== void 0 && _formState$changes12.in_offer ? t('VALIDATION_ERROR_REQUIRED', 'The Regular Price field is required').replace('_attribute_', t('REGULAR_PRICE', 'Regular Price')) : false
305
+ min: (typeof (formState === null || formState === void 0 || (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.in_offer) === 'undefined' && (product === null || product === void 0 ? void 0 : product.in_offer) || (formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.in_offer)) && minimumRegualrPrice,
306
+ required: typeof (formState === null || formState === void 0 || (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.in_offer) === 'undefined' && product !== null && product !== void 0 && product.in_offer || formState !== null && formState !== void 0 && (_formState$changes12 = formState.changes) !== null && _formState$changes12 !== void 0 && _formState$changes12.in_offer ? t('VALIDATION_ERROR_REQUIRED', 'The Regular Price field is required').replace('_attribute_', t('REGULAR_PRICE', 'Regular Price')) : false
307
307
  }),
308
308
  onChange: handleChangeRegularPrice,
309
- disabled: formState.loading || !((_formState$changes$in = formState === null || formState === void 0 ? void 0 : (_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.in_offer) !== null && _formState$changes$in !== void 0 ? _formState$changes$in : product === null || product === void 0 ? void 0 : product.in_offer),
309
+ disabled: formState.loading || !((_formState$changes$in = formState === null || formState === void 0 || (_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.in_offer) !== null && _formState$changes$in !== void 0 ? _formState$changes$in : product === null || product === void 0 ? void 0 : product.in_offer),
310
310
  autoComplete: "off",
311
311
  onKeyPress: function onKeyPress(e) {
312
312
  if (!/^[0-9.]$/.test(e.key)) {
@@ -328,7 +328,7 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
328
328
  inventoried: val
329
329
  });
330
330
  }
331
- })), (typeof (formState === null || formState === void 0 ? void 0 : (_formState$changes14 = formState.changes) === null || _formState$changes14 === void 0 ? void 0 : _formState$changes14.inventoried) !== 'undefined' ? formState === null || formState === void 0 ? void 0 : (_formState$changes15 = formState.changes) === null || _formState$changes15 === void 0 ? void 0 : _formState$changes15.inventoried : product === null || product === void 0 ? void 0 : product.inventoried) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('QUANTITY', 'Quantity')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
331
+ })), (typeof (formState === null || formState === void 0 || (_formState$changes14 = formState.changes) === null || _formState$changes14 === void 0 ? void 0 : _formState$changes14.inventoried) !== 'undefined' ? formState === null || formState === void 0 || (_formState$changes15 = formState.changes) === null || _formState$changes15 === void 0 ? void 0 : _formState$changes15.inventoried : product === null || product === void 0 ? void 0 : product.inventoried) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('QUANTITY', 'Quantity')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
332
332
  name: "quantity",
333
333
  placeholder: t('QUANTITY', 'Quantity'),
334
334
  defaultValue: product === null || product === void 0 ? void 0 : product.quantity,
@@ -345,14 +345,14 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
345
345
  }
346
346
  }
347
347
  })), /*#__PURE__*/_react.default.createElement(_styles2.InventoryWrapper, null, /*#__PURE__*/_react.default.createElement("span", null, t('RIBBON', 'Ribbon')), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
348
- defaultChecked: (product === null || product === void 0 ? void 0 : (_product$ribbon = product.ribbon) === null || _product$ribbon === void 0 ? void 0 : _product$ribbon.enabled) || false,
348
+ defaultChecked: (product === null || product === void 0 || (_product$ribbon = product.ribbon) === null || _product$ribbon === void 0 ? void 0 : _product$ribbon.enabled) || false,
349
349
  onChange: function onChange(val) {
350
350
  return handleChangeEnable(val);
351
351
  }
352
- })), (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 : product === null || product === void 0 ? void 0 : (_product$ribbon2 = product.ribbon) === null || _product$ribbon2 === void 0 ? void 0 : _product$ribbon2.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, {
352
+ })), (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 : product === null || product === void 0 || (_product$ribbon2 = product.ribbon) === null || _product$ribbon2 === void 0 ? void 0 : _product$ribbon2.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, {
353
353
  name: "text",
354
354
  placeholder: t('TEXT', 'Text'),
355
- 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 : product === null || product === void 0 ? void 0 : (_product$ribbon3 = product.ribbon) === null || _product$ribbon3 === void 0 ? void 0 : _product$ribbon3.text,
355
+ 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 : product === null || product === void 0 || (_product$ribbon3 = product.ribbon) === null || _product$ribbon3 === void 0 ? void 0 : _product$ribbon3.text,
356
356
  onChange: function onChange(e) {
357
357
  return handleChangeRibbon({
358
358
  text: e.target.value
@@ -361,28 +361,28 @@ var ProductDetatilsInformation = function ProductDetatilsInformation(props) {
361
361
  disabled: formState.loading,
362
362
  autoComplete: "off",
363
363
  ref: formMethods.register({
364
- required: product !== null && product !== void 0 && product.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 : product === null || product === void 0 ? void 0 : (_product$ribbon4 = product.ribbon) === null || _product$ribbon4 === void 0 ? void 0 : _product$ribbon4.enabled) ? t('VALIDATION_ERROR_REQUIRED', 'The Ribbon text field is required').replace('_attribute_', t('Ribbon_Text', 'Ribbon text')) : false
364
+ required: product !== null && product !== void 0 && product.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 : product === null || product === void 0 || (_product$ribbon4 = product.ribbon) === null || _product$ribbon4 === void 0 ? void 0 : _product$ribbon4.enabled) ? t('VALIDATION_ERROR_REQUIRED', 'The Ribbon text field is required').replace('_attribute_', t('Ribbon_Text', 'Ribbon text')) : false
365
365
  })
366
366
  })), /*#__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, {
367
- 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 : product === null || product === void 0 ? void 0 : (_product$ribbon5 = product.ribbon) === null || _product$ribbon5 === void 0 ? void 0 : _product$ribbon5.color,
367
+ 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 : product === null || product === void 0 || (_product$ribbon5 = product.ribbon) === null || _product$ribbon5 === void 0 ? void 0 : _product$ribbon5.color,
368
368
  onChangeColor: function onChangeColor(color) {
369
369
  return handleChangeRibbon({
370
370
  color: color
371
371
  });
372
372
  }
373
373
  })), /*#__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) {
374
- var _formState$changes22, _formState$changes22$, _formState$changes23, _formState$changes23$, _product$ribbon6, _formState$changes24, _formState$changes24$, _formState$changes25, _formState$changes25$, _product$ribbon7;
374
+ var _formState$changes22, _formState$changes23, _product$ribbon6, _formState$changes24, _formState$changes25, _product$ribbon7;
375
375
  return /*#__PURE__*/_react.default.createElement(_styles2.ShapeBoxWrapper, {
376
376
  key: i,
377
377
  shapeRect: _utils.shape[key] === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
378
378
  round: _utils.shape[key] === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape),
379
- 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] : (product === null || product === void 0 ? void 0 : (_product$ribbon6 = product.ribbon) === null || _product$ribbon6 === void 0 ? void 0 : _product$ribbon6.shape) === _utils.shape[key],
379
+ 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] : (product === null || product === void 0 || (_product$ribbon6 = product.ribbon) === null || _product$ribbon6 === void 0 ? void 0 : _product$ribbon6.shape) === _utils.shape[key],
380
380
  onClick: function onClick() {
381
381
  return handleChangeRibbon({
382
382
  shape: _utils.shape[key]
383
383
  });
384
384
  }
385
- }, /*#__PURE__*/_react.default.createElement("div", null), (product !== null && product !== void 0 && product.ribbon && 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] : (product === null || product === void 0 ? void 0 : (_product$ribbon7 = product.ribbon) === null || _product$ribbon7 === void 0 ? void 0 : _product$ribbon7.shape) === _utils.shape[key]) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null));
385
+ }, /*#__PURE__*/_react.default.createElement("div", null), (product !== null && product !== void 0 && product.ribbon && 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] : (product === null || product === void 0 || (_product$ribbon7 = product.ribbon) === null || _product$ribbon7 === void 0 ? void 0 : _product$ribbon7.shape) === _utils.shape[key]) ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null));
386
386
  }))))), /*#__PURE__*/_react.default.createElement(_styles2.ActionsForm, null, onCancel && /*#__PURE__*/_react.default.createElement(_styles.Button, {
387
387
  outline: true,
388
388
  borderRadius: "7.6px",
@@ -36,7 +36,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
36
36
  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; } }
37
37
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
38
38
  var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
39
- var _optionState$option2, _settingChangeState$c, _settingChangeState$c2, _optionState$option3, _settingChangeState$c3, _settingChangeState$c4, _optionState$option4, _optionState$option5, _optionState$option5$, _optionState$option7, _optionState$option7$, _changesState$changes3, _optionState$option8, _optionState$option8$, _changesState$changes4, _settingChangeState$c5, _settingChangeState$c6, _optionState$option9, _optionState$option10, _optionState$option11, _changesState$changes5, _settingChangeState$c7, _settingChangeState$c8, _optionState$option12, _optionState$option13, _optionState$option14, _changesState$changes6;
39
+ var _optionState$option2, _settingChangeState$c, _settingChangeState$c2, _optionState$option3, _settingChangeState$c3, _settingChangeState$c4, _optionState$option4, _optionState$option5, _optionState$option7, _changesState$changes3, _optionState$option8, _changesState$changes4, _settingChangeState$c5, _settingChangeState$c6, _optionState$option9, _optionState$option10, _changesState$changes5, _settingChangeState$c7, _settingChangeState$c8, _optionState$option11, _optionState$option12, _changesState$changes6;
40
40
  var optionState = props.optionState,
41
41
  optionChangesState = props.optionChangesState,
42
42
  handleOptionFiles = props.handleOptionFiles,
@@ -65,6 +65,8 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
65
65
  handleChangeItem = props.handleChangeItem,
66
66
  isAddForm = props.isAddForm,
67
67
  setIsAddForm = props.setIsAddForm,
68
+ handleDuplicateOption = props.handleDuplicateOption,
69
+ handleDuplicateSubOption = props.handleDuplicateSubOption,
68
70
  dragoverSubOptionId = props.dragoverSubOptionId,
69
71
  isSubOptionsBottom = props.isSubOptionsBottom,
70
72
  handleDragStart = props.handleDragStart,
@@ -217,8 +219,8 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
217
219
  }, [errors]);
218
220
  (0, _react.useEffect)(function () {
219
221
  var _optionState$option;
220
- setExternalId(optionState === null || optionState === void 0 ? void 0 : (_optionState$option = optionState.option) === null || _optionState$option === void 0 ? void 0 : _optionState$option.external_id);
221
- }, [optionState === null || optionState === void 0 ? void 0 : (_optionState$option2 = optionState.option) === null || _optionState$option2 === void 0 ? void 0 : _optionState$option2.external_id]);
222
+ setExternalId(optionState === null || optionState === void 0 || (_optionState$option = optionState.option) === null || _optionState$option === void 0 ? void 0 : _optionState$option.external_id);
223
+ }, [optionState === null || optionState === void 0 || (_optionState$option2 = optionState.option) === null || _optionState$option2 === void 0 ? void 0 : _optionState$option2.external_id]);
222
224
  return /*#__PURE__*/_react.default.createElement(_styles2.MainContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, t('PRODUCT_OPTION', 'Product option')), /*#__PURE__*/_react.default.createElement(_styles2.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
223
225
  className: "product_actions",
224
226
  menuAlign: theme !== null && theme !== void 0 && theme.rtl ? 'left' : 'right',
@@ -231,6 +233,8 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
231
233
  }));
232
234
  }
233
235
  }, t('CUSTOM_FIELDS', 'Custom Fields')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
236
+ onClick: handleDuplicateOption
237
+ }, t('DUPLICATE', 'Duplicate')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
234
238
  onClick: function onClick() {
235
239
  return setOpenModal(_objectSpread(_objectSpread({}, openModal), {}, {
236
240
  externalId: true
@@ -261,19 +265,19 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
261
265
  header: true
262
266
  }, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, null))), /*#__PURE__*/_react.default.createElement(_styles2.RightSubOptionContent, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
263
267
  header: true
264
- }, /*#__PURE__*/_react.default.createElement("label", null, t('PRICE', 'Price')), /*#__PURE__*/_react.default.createElement(_styles.Input, null)), (typeof (settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c = settingChangeState.changes) === null || _settingChangeState$c === void 0 ? void 0 : _settingChangeState$c.with_half_option) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c2 = settingChangeState.changes) === null || _settingChangeState$c2 === void 0 ? void 0 : _settingChangeState$c2.with_half_option : optionState === null || optionState === void 0 ? void 0 : (_optionState$option3 = optionState.option) === null || _optionState$option3 === void 0 ? void 0 : _optionState$option3.with_half_option) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
268
+ }, /*#__PURE__*/_react.default.createElement("label", null, t('PRICE', 'Price')), /*#__PURE__*/_react.default.createElement(_styles.Input, null)), (typeof (settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c = settingChangeState.changes) === null || _settingChangeState$c === void 0 ? void 0 : _settingChangeState$c.with_half_option) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c2 = settingChangeState.changes) === null || _settingChangeState$c2 === void 0 ? void 0 : _settingChangeState$c2.with_half_option : optionState === null || optionState === void 0 || (_optionState$option3 = optionState.option) === null || _optionState$option3 === void 0 ? void 0 : _optionState$option3.with_half_option) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
265
269
  header: true
266
- }, /*#__PURE__*/_react.default.createElement("label", null, t('HALF_PRICE', 'Half price')), /*#__PURE__*/_react.default.createElement(_styles.Input, null)), (typeof (settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c3 = settingChangeState.changes) === null || _settingChangeState$c3 === void 0 ? void 0 : _settingChangeState$c3.allow_suboption_quantity) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c4 = settingChangeState.changes) === null || _settingChangeState$c4 === void 0 ? void 0 : _settingChangeState$c4.allow_suboption_quantity : optionState === null || optionState === void 0 ? void 0 : (_optionState$option4 = optionState.option) === null || _optionState$option4 === void 0 ? void 0 : _optionState$option4.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
270
+ }, /*#__PURE__*/_react.default.createElement("label", null, t('HALF_PRICE', 'Half price')), /*#__PURE__*/_react.default.createElement(_styles.Input, null)), (typeof (settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c3 = settingChangeState.changes) === null || _settingChangeState$c3 === void 0 ? void 0 : _settingChangeState$c3.allow_suboption_quantity) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c4 = settingChangeState.changes) === null || _settingChangeState$c4 === void 0 ? void 0 : _settingChangeState$c4.allow_suboption_quantity : optionState === null || optionState === void 0 || (_optionState$option4 = optionState.option) === null || _optionState$option4 === void 0 ? void 0 : _optionState$option4.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
267
271
  header: true
268
272
  }, /*#__PURE__*/_react.default.createElement("label", null, t('MAX', 'Max')), /*#__PURE__*/_react.default.createElement(_styles.Input, null)), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
269
273
  header: true
270
274
  }, /*#__PURE__*/_react.default.createElement("label", null, t('PRESELECT', 'Preselect'))), /*#__PURE__*/_react.default.createElement(_styles2.ActionsContainer, {
271
275
  header: true
272
- }))), optionState === null || optionState === void 0 ? void 0 : (_optionState$option5 = optionState.option) === null || _optionState$option5 === void 0 ? void 0 : (_optionState$option5$ = _optionState$option5.suboptions) === null || _optionState$option5$ === void 0 ? void 0 : _optionState$option5$.sort(function (a, b) {
276
+ }))), optionState === null || optionState === void 0 || (_optionState$option5 = optionState.option) === null || _optionState$option5 === void 0 || (_optionState$option5 = _optionState$option5.suboptions) === null || _optionState$option5 === void 0 ? void 0 : _optionState$option5.sort(function (a, b) {
273
277
  return a.rank - b.rank;
274
278
  }).map(function (subOption, index) {
275
279
  var _optionState$option6;
276
- var isLastSubOption = index === (optionState === null || optionState === void 0 ? void 0 : (_optionState$option6 = optionState.option) === null || _optionState$option6 === void 0 ? void 0 : _optionState$option6.suboptions.length) - 1;
280
+ var isLastSubOption = index === (optionState === null || optionState === void 0 || (_optionState$option6 = optionState.option) === null || _optionState$option6 === void 0 ? void 0 : _optionState$option6.suboptions.length) - 1;
277
281
  return /*#__PURE__*/_react.default.createElement(_ProductExtraSuboption.ProductExtraSuboption, {
278
282
  key: subOption.id,
279
283
  subOption: subOption,
@@ -293,7 +297,8 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
293
297
  handleDragStart: handleDragStart,
294
298
  hanldeDragOver: hanldeDragOver,
295
299
  handleDrop: handleDrop,
296
- handleDragEnd: handleDragEnd
300
+ handleDragEnd: handleDragEnd,
301
+ handleDuplicateSubOption: handleDuplicateSubOption
297
302
  });
298
303
  }), isAddForm && /*#__PURE__*/_react.default.createElement(_styles2.AdddSubOptionForm, {
299
304
  onSubmit: handleSubmit(handleAddOption)
@@ -322,11 +327,11 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
322
327
  accept: "image/png, image/jpeg, image/jpg",
323
328
  disabled: optionState.loading
324
329
  }, changesState !== null && changesState !== void 0 && (_changesState$result = changesState.result) !== null && _changesState$result !== void 0 && _changesState$result.image && editSubOptionId === null ? /*#__PURE__*/_react.default.createElement("img", {
325
- src: changesState === null || changesState === void 0 ? void 0 : (_changesState$result2 = changesState.result) === null || _changesState$result2 === void 0 ? void 0 : _changesState$result2.image,
330
+ src: changesState === null || changesState === void 0 || (_changesState$result2 = changesState.result) === null || _changesState$result2 === void 0 ? void 0 : _changesState$result2.image,
326
331
  alt: "sub option image",
327
332
  loading: "lazy"
328
- }) : (changesState === null || changesState === void 0 ? void 0 : (_changesState$changes = changesState.changes) === null || _changesState$changes === void 0 ? void 0 : _changesState$changes.image) && editSubOptionId === null && /*#__PURE__*/_react.default.createElement("img", {
329
- src: changesState === null || changesState === void 0 ? void 0 : (_changesState$changes2 = changesState.changes) === null || _changesState$changes2 === void 0 ? void 0 : _changesState$changes2.image,
333
+ }) : (changesState === null || changesState === void 0 || (_changesState$changes = changesState.changes) === null || _changesState$changes === void 0 ? void 0 : _changesState$changes.image) && editSubOptionId === null && /*#__PURE__*/_react.default.createElement("img", {
334
+ src: changesState === null || changesState === void 0 || (_changesState$changes2 = changesState.changes) === null || _changesState$changes2 === void 0 ? void 0 : _changesState$changes2.image,
330
335
  alt: "sub option image",
331
336
  loading: "lazy"
332
337
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, {
@@ -335,12 +340,12 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
335
340
  },
336
341
  defaultValue: ""
337
342
  }), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
338
- primary: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option7 = optionState.option) === null || _optionState$option7 === void 0 ? void 0 : (_optionState$option7$ = _optionState$option7.suboptions) === null || _optionState$option7$ === void 0 ? void 0 : _optionState$option7$.length) === 0
343
+ primary: (optionState === null || optionState === void 0 || (_optionState$option7 = optionState.option) === null || _optionState$option7 === void 0 || (_optionState$option7 = _optionState$option7.suboptions) === null || _optionState$option7 === void 0 ? void 0 : _optionState$option7.length) === 0
339
344
  }, /*#__PURE__*/_react.default.createElement(_styles.Input, {
340
345
  name: "name",
341
346
  autoComplete: "off",
342
347
  placeholder: t('NAME', 'Name'),
343
- defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 ? void 0 : (_changesState$changes3 = changesState.changes) === null || _changesState$changes3 === void 0 ? void 0 : _changesState$changes3.name) || '',
348
+ defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 || (_changesState$changes3 = changesState.changes) === null || _changesState$changes3 === void 0 ? void 0 : _changesState$changes3.name) || '',
344
349
  ref: register({
345
350
  required: t('NAME_REQUIRED', 'The name is required.')
346
351
  }),
@@ -349,11 +354,11 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
349
354
  },
350
355
  readOnly: optionState === null || optionState === void 0 ? void 0 : optionState.loading
351
356
  }))), /*#__PURE__*/_react.default.createElement(_styles2.RightSubOptionContent, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
352
- primary: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option8 = optionState.option) === null || _optionState$option8 === void 0 ? void 0 : (_optionState$option8$ = _optionState$option8.suboptions) === null || _optionState$option8$ === void 0 ? void 0 : _optionState$option8$.length) === 0
357
+ primary: (optionState === null || optionState === void 0 || (_optionState$option8 = optionState.option) === null || _optionState$option8 === void 0 || (_optionState$option8 = _optionState$option8.suboptions) === null || _optionState$option8 === void 0 ? void 0 : _optionState$option8.length) === 0
353
358
  }, /*#__PURE__*/_react.default.createElement(_styles.Input, {
354
359
  name: "price",
355
360
  placeholder: t('PRICE', 'Price'),
356
- defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 ? void 0 : (_changesState$changes4 = changesState.changes) === null || _changesState$changes4 === void 0 ? void 0 : _changesState$changes4.price) || 0,
361
+ defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 || (_changesState$changes4 = changesState.changes) === null || _changesState$changes4 === void 0 ? void 0 : _changesState$changes4.price) || 0,
357
362
  ref: register(),
358
363
  onKeyPress: function onKeyPress(e) {
359
364
  if (!/^[0-9.]$/.test(e.key)) {
@@ -361,12 +366,12 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
361
366
  }
362
367
  handleEnterAddSuboption(e);
363
368
  }
364
- })), (typeof (settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c5 = settingChangeState.changes) === null || _settingChangeState$c5 === void 0 ? void 0 : _settingChangeState$c5.with_half_option) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c6 = settingChangeState.changes) === null || _settingChangeState$c6 === void 0 ? void 0 : _settingChangeState$c6.with_half_option : optionState === null || optionState === void 0 ? void 0 : (_optionState$option9 = optionState.option) === null || _optionState$option9 === void 0 ? void 0 : _optionState$option9.with_half_option) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
365
- primary: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option10 = optionState.option) === null || _optionState$option10 === void 0 ? void 0 : (_optionState$option11 = _optionState$option10.suboptions) === null || _optionState$option11 === void 0 ? void 0 : _optionState$option11.length) === 0
369
+ })), (typeof (settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c5 = settingChangeState.changes) === null || _settingChangeState$c5 === void 0 ? void 0 : _settingChangeState$c5.with_half_option) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c6 = settingChangeState.changes) === null || _settingChangeState$c6 === void 0 ? void 0 : _settingChangeState$c6.with_half_option : optionState === null || optionState === void 0 || (_optionState$option9 = optionState.option) === null || _optionState$option9 === void 0 ? void 0 : _optionState$option9.with_half_option) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
370
+ primary: (optionState === null || optionState === void 0 || (_optionState$option10 = optionState.option) === null || _optionState$option10 === void 0 || (_optionState$option10 = _optionState$option10.suboptions) === null || _optionState$option10 === void 0 ? void 0 : _optionState$option10.length) === 0
366
371
  }, /*#__PURE__*/_react.default.createElement(_styles.Input, {
367
372
  name: "half_price",
368
373
  placeholder: t('HALF_PRICE', 'Half price'),
369
- defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 ? void 0 : (_changesState$changes5 = changesState.changes) === null || _changesState$changes5 === void 0 ? void 0 : _changesState$changes5.half_price) || '',
374
+ defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 || (_changesState$changes5 = changesState.changes) === null || _changesState$changes5 === void 0 ? void 0 : _changesState$changes5.half_price) || '',
370
375
  ref: register(),
371
376
  onKeyPress: function onKeyPress(e) {
372
377
  if (!/^[0-9.]$/.test(e.key)) {
@@ -374,12 +379,12 @@ var ProductExtraOptionDetailsUI = function ProductExtraOptionDetailsUI(props) {
374
379
  }
375
380
  handleEnterAddSuboption(e);
376
381
  }
377
- })), (typeof (settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c7 = settingChangeState.changes) === null || _settingChangeState$c7 === void 0 ? void 0 : _settingChangeState$c7.allow_suboption_quantity) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c8 = settingChangeState.changes) === null || _settingChangeState$c8 === void 0 ? void 0 : _settingChangeState$c8.allow_suboption_quantity : optionState === null || optionState === void 0 ? void 0 : (_optionState$option12 = optionState.option) === null || _optionState$option12 === void 0 ? void 0 : _optionState$option12.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
378
- primary: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option13 = optionState.option) === null || _optionState$option13 === void 0 ? void 0 : (_optionState$option14 = _optionState$option13.suboptions) === null || _optionState$option14 === void 0 ? void 0 : _optionState$option14.length) === 0
382
+ })), (typeof (settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c7 = settingChangeState.changes) === null || _settingChangeState$c7 === void 0 ? void 0 : _settingChangeState$c7.allow_suboption_quantity) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c8 = settingChangeState.changes) === null || _settingChangeState$c8 === void 0 ? void 0 : _settingChangeState$c8.allow_suboption_quantity : optionState === null || optionState === void 0 || (_optionState$option11 = optionState.option) === null || _optionState$option11 === void 0 ? void 0 : _optionState$option11.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, {
383
+ primary: (optionState === null || optionState === void 0 || (_optionState$option12 = optionState.option) === null || _optionState$option12 === void 0 || (_optionState$option12 = _optionState$option12.suboptions) === null || _optionState$option12 === void 0 ? void 0 : _optionState$option12.length) === 0
379
384
  }, /*#__PURE__*/_react.default.createElement(_styles.Input, {
380
385
  name: "max",
381
386
  placeholder: t('MAX', 'Max'),
382
- defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 ? void 0 : (_changesState$changes6 = changesState.changes) === null || _changesState$changes6 === void 0 ? void 0 : _changesState$changes6.max) || '',
387
+ defaultValue: editSubOptionId === null && (changesState === null || changesState === void 0 || (_changesState$changes6 = changesState.changes) === null || _changesState$changes6 === void 0 ? void 0 : _changesState$changes6.max) || '',
383
388
  ref: register(),
384
389
  onKeyPress: function onKeyPress(e) {
385
390
  if (!/^[0-9.]$/.test(e.key)) {
@@ -63,8 +63,8 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
63
63
  };
64
64
  var handleMaxValidate = function handleMaxValidate() {
65
65
  var _optionChangesState$c, _optionChangesState$c2, _optionState$option, _optionChangesState$c3, _optionChangesState$c4, _optionState$option2;
66
- var max = (_optionChangesState$c = optionChangesState === null || optionChangesState === void 0 ? void 0 : (_optionChangesState$c2 = optionChangesState.changes) === null || _optionChangesState$c2 === void 0 ? void 0 : _optionChangesState$c2.max) !== null && _optionChangesState$c !== void 0 ? _optionChangesState$c : optionState === null || optionState === void 0 ? void 0 : (_optionState$option = optionState.option) === null || _optionState$option === void 0 ? void 0 : _optionState$option.max;
67
- var min = (_optionChangesState$c3 = optionChangesState === null || optionChangesState === void 0 ? void 0 : (_optionChangesState$c4 = optionChangesState.changes) === null || _optionChangesState$c4 === void 0 ? void 0 : _optionChangesState$c4.min) !== null && _optionChangesState$c3 !== void 0 ? _optionChangesState$c3 : optionState === null || optionState === void 0 ? void 0 : (_optionState$option2 = optionState.option) === null || _optionState$option2 === void 0 ? void 0 : _optionState$option2.min;
66
+ var max = (_optionChangesState$c = optionChangesState === null || optionChangesState === void 0 || (_optionChangesState$c2 = optionChangesState.changes) === null || _optionChangesState$c2 === void 0 ? void 0 : _optionChangesState$c2.max) !== null && _optionChangesState$c !== void 0 ? _optionChangesState$c : optionState === null || optionState === void 0 || (_optionState$option = optionState.option) === null || _optionState$option === void 0 ? void 0 : _optionState$option.max;
67
+ var min = (_optionChangesState$c3 = optionChangesState === null || optionChangesState === void 0 || (_optionChangesState$c4 = optionChangesState.changes) === null || _optionChangesState$c4 === void 0 ? void 0 : _optionChangesState$c4.min) !== null && _optionChangesState$c3 !== void 0 ? _optionChangesState$c3 : optionState === null || optionState === void 0 || (_optionState$option2 = optionState.option) === null || _optionState$option2 === void 0 ? void 0 : _optionState$option2.min;
68
68
  if (parseFloat(min) <= parseFloat(max)) return true;else {
69
69
  return t('ERROR_MATCH_MAX_DEFAULT_SUBOPTIONS', 'Max default suboptions length is less than preselected suboptions');
70
70
  }
@@ -84,7 +84,7 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
84
84
  if (!Object.keys((optionChangesState === null || optionChangesState === void 0 ? void 0 : optionChangesState.changes) || {}).length) return;
85
85
  if (optionChangesState !== null && optionChangesState !== void 0 && (_optionChangesState$c5 = optionChangesState.changes) !== null && _optionChangesState$c5 !== void 0 && _optionChangesState$c5.image) {
86
86
  var _optionChangesState$c6;
87
- setValue('image', optionChangesState === null || optionChangesState === void 0 ? void 0 : (_optionChangesState$c6 = optionChangesState.changes) === null || _optionChangesState$c6 === void 0 ? void 0 : _optionChangesState$c6.image);
87
+ setValue('image', optionChangesState === null || optionChangesState === void 0 || (_optionChangesState$c6 = optionChangesState.changes) === null || _optionChangesState$c6 === void 0 ? void 0 : _optionChangesState$c6.image);
88
88
  }
89
89
  clearTimeout(timer);
90
90
  var _timer = setTimeout(function () {
@@ -121,15 +121,15 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
121
121
  accept: "image/png, image/jpeg, image/jpg",
122
122
  disabled: optionState.loading
123
123
  }, optionChangesState !== null && optionChangesState !== void 0 && (_optionChangesState$r = optionChangesState.result) !== null && _optionChangesState$r !== void 0 && _optionChangesState$r.image ? /*#__PURE__*/_react.default.createElement("img", {
124
- src: optionChangesState === null || optionChangesState === void 0 ? void 0 : (_optionChangesState$r2 = optionChangesState.result) === null || _optionChangesState$r2 === void 0 ? void 0 : _optionChangesState$r2.image,
124
+ src: optionChangesState === null || optionChangesState === void 0 || (_optionChangesState$r2 = optionChangesState.result) === null || _optionChangesState$r2 === void 0 ? void 0 : _optionChangesState$r2.image,
125
125
  alt: "sub option image",
126
126
  loading: "lazy"
127
127
  }) : optionChangesState !== null && optionChangesState !== void 0 && (_optionChangesState$c7 = optionChangesState.changes) !== null && _optionChangesState$c7 !== void 0 && _optionChangesState$c7.image ? /*#__PURE__*/_react.default.createElement("img", {
128
- src: optionChangesState === null || optionChangesState === void 0 ? void 0 : (_optionChangesState$c8 = optionChangesState.changes) === null || _optionChangesState$c8 === void 0 ? void 0 : _optionChangesState$c8.image,
128
+ src: optionChangesState === null || optionChangesState === void 0 || (_optionChangesState$c8 = optionChangesState.changes) === null || _optionChangesState$c8 === void 0 ? void 0 : _optionChangesState$c8.image,
129
129
  alt: "product image",
130
130
  loading: "lazy"
131
- }) : (optionState === null || optionState === void 0 ? void 0 : (_optionState$option3 = optionState.option) === null || _optionState$option3 === void 0 ? void 0 : _optionState$option3.image) && /*#__PURE__*/_react.default.createElement("img", {
132
- src: optionState === null || optionState === void 0 ? void 0 : (_optionState$option4 = optionState.option) === null || _optionState$option4 === void 0 ? void 0 : _optionState$option4.image,
131
+ }) : (optionState === null || optionState === void 0 || (_optionState$option3 = optionState.option) === null || _optionState$option3 === void 0 ? void 0 : _optionState$option3.image) && /*#__PURE__*/_react.default.createElement("img", {
132
+ src: optionState === null || optionState === void 0 || (_optionState$option4 = optionState.option) === null || _optionState$option4 === void 0 ? void 0 : _optionState$option4.image,
133
133
  alt: "product image",
134
134
  loading: "lazy"
135
135
  }), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_BiImage.default, null))))));
@@ -182,7 +182,7 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
182
182
  }
183
183
  });
184
184
  },
185
- defaultValue: optionState === null || optionState === void 0 ? void 0 : (_optionState$option7 = optionState.option) === null || _optionState$option7 === void 0 ? void 0 : _optionState$option7.min,
185
+ defaultValue: optionState === null || optionState === void 0 || (_optionState$option7 = optionState.option) === null || _optionState$option7 === void 0 ? void 0 : _optionState$option7.min,
186
186
  rules: {
187
187
  required: t('MIN_PURCHASED_REQUIRED', 'The min is required.'),
188
188
  validate: handleMaxValidate
@@ -212,7 +212,7 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
212
212
  }
213
213
  });
214
214
  },
215
- defaultValue: optionState === null || optionState === void 0 ? void 0 : (_optionState$option9 = optionState.option) === null || _optionState$option9 === void 0 ? void 0 : _optionState$option9.max,
215
+ defaultValue: optionState === null || optionState === void 0 || (_optionState$option9 = optionState.option) === null || _optionState$option9 === void 0 ? void 0 : _optionState$option9.max,
216
216
  rules: {
217
217
  required: t('MAX_PURCHASED_REQUIRED', 'The max is required.')
218
218
  }
@@ -236,7 +236,7 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
236
236
  }
237
237
  }))))), /*#__PURE__*/_react.default.createElement(_styles2.OptionSettings, null, /*#__PURE__*/_react.default.createElement(_styles2.OptionSettingItem, null, /*#__PURE__*/_react.default.createElement(_styles2.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
238
238
  id: "with_half_option",
239
- defaultChecked: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option12 = optionState.option) === null || _optionState$option12 === void 0 ? void 0 : _optionState$option12.with_half_option) || false,
239
+ defaultChecked: (optionState === null || optionState === void 0 || (_optionState$option12 = optionState.option) === null || _optionState$option12 === void 0 ? void 0 : _optionState$option12.with_half_option) || false,
240
240
  onClick: function onClick(e) {
241
241
  return handleOptionSetting('with_half_option', e.target.checked);
242
242
  }
@@ -244,15 +244,15 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
244
244
  htmlFor: "with_half_option"
245
245
  }, t('WITH_HALF_PRICE', 'Allow half option & price')))), /*#__PURE__*/_react.default.createElement(_styles2.OptionSettingItem, null, /*#__PURE__*/_react.default.createElement(_styles2.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
246
246
  id: "allow_suboption_quantity",
247
- defaultChecked: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option13 = optionState.option) === null || _optionState$option13 === void 0 ? void 0 : _optionState$option13.allow_suboption_quantity) || false,
247
+ defaultChecked: (optionState === null || optionState === void 0 || (_optionState$option13 = optionState.option) === null || _optionState$option13 === void 0 ? void 0 : _optionState$option13.allow_suboption_quantity) || false,
248
248
  onClick: function onClick(e) {
249
249
  return handleOptionSetting('allow_suboption_quantity', e.target.checked);
250
250
  }
251
251
  }), /*#__PURE__*/_react.default.createElement("label", {
252
252
  htmlFor: "allow_suboption_quantity"
253
- }, t('SUBOPTION_QUANTITY', 'Allow suboptions quantity'))), (optionState === null || optionState === void 0 ? void 0 : (_optionState$option14 = optionState.option) === null || _optionState$option14 === void 0 ? void 0 : _optionState$option14.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
253
+ }, t('SUBOPTION_QUANTITY', 'Allow suboptions quantity'))), (optionState === null || optionState === void 0 || (_optionState$option14 = optionState.option) === null || _optionState$option14 === void 0 ? void 0 : _optionState$option14.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
254
254
  id: "limit_suboptions_by_max",
255
- defaultChecked: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option15 = optionState.option) === null || _optionState$option15 === void 0 ? void 0 : _optionState$option15.limit_suboptions_by_max) || false,
255
+ defaultChecked: (optionState === null || optionState === void 0 || (_optionState$option15 = optionState.option) === null || _optionState$option15 === void 0 ? void 0 : _optionState$option15.limit_suboptions_by_max) || false,
256
256
  onClick: function onClick(e) {
257
257
  return handleOptionSetting('limit_suboptions_by_max', e.target.checked);
258
258
  }
@@ -260,13 +260,13 @@ var ProductExtraOptionForm = function ProductExtraOptionForm(props) {
260
260
  htmlFor: "limit_suboptions_by_max"
261
261
  }, t('LIMIT_SUBOPTIONS_BY_MAX', 'Limit suboptions by maximum option')))), (conditionalOptions === null || conditionalOptions === void 0 ? void 0 : conditionalOptions.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.OptionSettingItem, null, /*#__PURE__*/_react.default.createElement(_styles2.CheckboxWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
262
262
  id: "conditioned",
263
- defaultChecked: (optionState === null || optionState === void 0 ? void 0 : (_optionState$option16 = optionState.option) === null || _optionState$option16 === void 0 ? void 0 : _optionState$option16.conditioned) || false,
263
+ defaultChecked: (optionState === null || optionState === void 0 || (_optionState$option16 = optionState.option) === null || _optionState$option16 === void 0 ? void 0 : _optionState$option16.conditioned) || false,
264
264
  onClick: function onClick(e) {
265
265
  return handleOptionSetting('conditioned', e.target.checked);
266
266
  }
267
267
  }), /*#__PURE__*/_react.default.createElement("label", {
268
268
  htmlFor: "conditioned"
269
- }, t('CONDITIONAL', 'Conditional'))), (optionState === null || optionState === void 0 ? void 0 : (_optionState$option17 = optionState.option) === null || _optionState$option17 === void 0 ? void 0 : _optionState$option17.conditioned) && /*#__PURE__*/_react.default.createElement(_styles2.SelectboxGroup, null, conditionalOptions.length > 0 && /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
269
+ }, t('CONDITIONAL', 'Conditional'))), (optionState === null || optionState === void 0 || (_optionState$option17 = optionState.option) === null || _optionState$option17 === void 0 ? void 0 : _optionState$option17.conditioned) && /*#__PURE__*/_react.default.createElement(_styles2.SelectboxGroup, null, conditionalOptions.length > 0 && /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
270
270
  options: conditionalOptions,
271
271
  defaultValue: conditionalOptionId,
272
272
  placeholder: t('SELECT_OPTION', 'Select option'),
@@ -61,7 +61,9 @@ var ProductExtraOptionsUI = function ProductExtraOptionsUI(props) {
61
61
  hanldeDragOver = props.hanldeDragOver,
62
62
  handleDrop = props.handleDrop,
63
63
  handleDragEnd = props.handleDragEnd,
64
- handleUpdateExtraState = props.handleUpdateExtraState;
64
+ handleUpdateExtraState = props.handleUpdateExtraState,
65
+ handleDuplicateExtra = props.handleDuplicateExtra,
66
+ setExtraState = props.setExtraState;
65
67
  var theme = (0, _styledComponents.useTheme)();
66
68
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
67
69
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
@@ -258,8 +260,8 @@ var ProductExtraOptionsUI = function ProductExtraOptionsUI(props) {
258
260
  }, [(_extraState$extra4 = extraState.extra) === null || _extraState$extra4 === void 0 ? void 0 : _extraState$extra4.name]);
259
261
  (0, _react.useEffect)(function () {
260
262
  var _extraState$extra5;
261
- setExternalId(extraState === null || extraState === void 0 ? void 0 : (_extraState$extra5 = extraState.extra) === null || _extraState$extra5 === void 0 ? void 0 : _extraState$extra5.external_id);
262
- }, [extraState === null || extraState === void 0 ? void 0 : (_extraState$extra6 = extraState.extra) === null || _extraState$extra6 === void 0 ? void 0 : _extraState$extra6.external_id]);
263
+ setExternalId(extraState === null || extraState === void 0 || (_extraState$extra5 = extraState.extra) === null || _extraState$extra5 === void 0 ? void 0 : _extraState$extra5.external_id);
264
+ }, [extraState === null || extraState === void 0 || (_extraState$extra6 = extraState.extra) === null || _extraState$extra6 === void 0 ? void 0 : _extraState$extra6.external_id]);
263
265
  return /*#__PURE__*/_react.default.createElement(_styles2.MainContainer, {
264
266
  id: "extra_options"
265
267
  }, /*#__PURE__*/_react.default.createElement(_styles2.OptionsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("input", {
@@ -281,6 +283,8 @@ var ProductExtraOptionsUI = function ProductExtraOptionsUI(props) {
281
283
  }));
282
284
  }
283
285
  }, t('CUSTOM_FIELDS', 'Custom Fields')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
286
+ onClick: handleDuplicateExtra
287
+ }, t('DUPLICATE', 'Duplicate')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
284
288
  onClick: function onClick() {
285
289
  return setOpenModal(_objectSpread(_objectSpread({}, openModal), {}, {
286
290
  externalId: true
@@ -468,7 +472,9 @@ var ProductExtraOptionsUI = function ProductExtraOptionsUI(props) {
468
472
  },
469
473
  handleUpdateBusinessState: handleUpdateBusinessState,
470
474
  handleSucccessDeleteOption: handleSucccessDeleteOption,
471
- isMaxError: isMaxError
475
+ isMaxError: isMaxError,
476
+ parentExtraState: extraState,
477
+ setParentExtraState: setExtraState
472
478
  })), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
473
479
  width: "70%",
474
480
  open: openModal === null || openModal === void 0 ? void 0 : openModal.metaField,
@@ -50,7 +50,8 @@ var ProductExtraSuboption = function ProductExtraSuboption(props) {
50
50
  handleDragStart = props.handleDragStart,
51
51
  hanldeDragOver = props.hanldeDragOver,
52
52
  handleDrop = props.handleDrop,
53
- handleDragEnd = props.handleDragEnd;
53
+ handleDragEnd = props.handleDragEnd,
54
+ handleDuplicateSubOption = props.handleDuplicateSubOption;
54
55
  var theme = (0, _styledComponents.useTheme)();
55
56
  var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
56
57
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
@@ -229,11 +230,11 @@ var ProductExtraSuboption = function ProductExtraSuboption(props) {
229
230
  accept: "image/png, image/jpeg, image/jpg",
230
231
  disabled: optionState.loading
231
232
  }, changesState !== null && changesState !== void 0 && (_changesState$result = changesState.result) !== null && _changesState$result !== void 0 && _changesState$result.image && editSubOptionId === subOption.id ? /*#__PURE__*/_react.default.createElement("img", {
232
- src: changesState === null || changesState === void 0 ? void 0 : (_changesState$result2 = changesState.result) === null || _changesState$result2 === void 0 ? void 0 : _changesState$result2.image,
233
+ src: changesState === null || changesState === void 0 || (_changesState$result2 = changesState.result) === null || _changesState$result2 === void 0 ? void 0 : _changesState$result2.image,
233
234
  alt: "sub option image",
234
235
  loading: "lazy"
235
236
  }) : changesState !== null && changesState !== void 0 && (_changesState$changes = changesState.changes) !== null && _changesState$changes !== void 0 && _changesState$changes.image && editSubOptionId === subOption.id ? /*#__PURE__*/_react.default.createElement("img", {
236
- src: changesState === null || changesState === void 0 ? void 0 : (_changesState$changes2 = changesState.changes) === null || _changesState$changes2 === void 0 ? void 0 : _changesState$changes2.image,
237
+ src: changesState === null || changesState === void 0 || (_changesState$changes2 = changesState.changes) === null || _changesState$changes2 === void 0 ? void 0 : _changesState$changes2.image,
237
238
  alt: "sub option image",
238
239
  loading: "lazy"
239
240
  }) : (subOption === null || subOption === void 0 ? void 0 : subOption.image) && /*#__PURE__*/_react.default.createElement("img", {
@@ -287,7 +288,7 @@ var ProductExtraSuboption = function ProductExtraSuboption(props) {
287
288
  rules: {
288
289
  required: t('PRICE_REQUIRED', 'The price is required.')
289
290
  }
290
- })), (typeof (settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c = settingChangeState.changes) === null || _settingChangeState$c === void 0 ? void 0 : _settingChangeState$c.with_half_option) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c2 = settingChangeState.changes) === null || _settingChangeState$c2 === void 0 ? void 0 : _settingChangeState$c2.with_half_option : optionState === null || optionState === void 0 ? void 0 : (_optionState$option = optionState.option) === null || _optionState$option === void 0 ? void 0 : _optionState$option.with_half_option) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
291
+ })), (typeof (settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c = settingChangeState.changes) === null || _settingChangeState$c === void 0 ? void 0 : _settingChangeState$c.with_half_option) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c2 = settingChangeState.changes) === null || _settingChangeState$c2 === void 0 ? void 0 : _settingChangeState$c2.with_half_option : optionState === null || optionState === void 0 || (_optionState$option = optionState.option) === null || _optionState$option === void 0 ? void 0 : _optionState$option.with_half_option) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
291
292
  name: "half_price",
292
293
  control: control,
293
294
  render: function render(_ref3) {
@@ -308,7 +309,7 @@ var ProductExtraSuboption = function ProductExtraSuboption(props) {
308
309
  });
309
310
  },
310
311
  defaultValue: subOption === null || subOption === void 0 ? void 0 : subOption.half_price
311
- })), (typeof (settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c3 = settingChangeState.changes) === null || _settingChangeState$c3 === void 0 ? void 0 : _settingChangeState$c3.allow_suboption_quantity) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 ? void 0 : (_settingChangeState$c4 = settingChangeState.changes) === null || _settingChangeState$c4 === void 0 ? void 0 : _settingChangeState$c4.allow_suboption_quantity : optionState === null || optionState === void 0 ? void 0 : (_optionState$option2 = optionState.option) === null || _optionState$option2 === void 0 ? void 0 : _optionState$option2.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
312
+ })), (typeof (settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c3 = settingChangeState.changes) === null || _settingChangeState$c3 === void 0 ? void 0 : _settingChangeState$c3.allow_suboption_quantity) !== 'undefined' ? settingChangeState === null || settingChangeState === void 0 || (_settingChangeState$c4 = settingChangeState.changes) === null || _settingChangeState$c4 === void 0 ? void 0 : _settingChangeState$c4.allow_suboption_quantity : optionState === null || optionState === void 0 || (_optionState$option2 = optionState.option) === null || _optionState$option2 === void 0 ? void 0 : _optionState$option2.allow_suboption_quantity) && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
312
313
  name: "half_price",
313
314
  control: control,
314
315
  render: function render(_ref4) {
@@ -360,6 +361,10 @@ var ProductExtraSuboption = function ProductExtraSuboption(props) {
360
361
  }));
361
362
  }
362
363
  }, t('CUSTOM_FIELDS', 'Custom fields')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
364
+ onClick: function onClick() {
365
+ return handleDuplicateSubOption(subOption === null || subOption === void 0 ? void 0 : subOption.id);
366
+ }
367
+ }, t('DUPLICATE', 'Duplicate')), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Dropdown.Item, {
363
368
  onClick: function onClick() {
364
369
  return setExternalIdOpen(true);
365
370
  }
@@ -49,7 +49,8 @@ var ProductExtrasUI = function ProductExtrasUI(props) {
49
49
  hanldeDragOver = props.hanldeDragOver,
50
50
  handleDrop = props.handleDrop,
51
51
  handleDragEnd = props.handleDragEnd,
52
- handleUpdateExtraState = props.handleUpdateExtraState;
52
+ handleUpdateExtraState = props.handleUpdateExtraState,
53
+ setExtrasState = props.setExtrasState;
53
54
  var history = (0, _reactRouterDom.useHistory)();
54
55
  var query = new URLSearchParams((0, _reactRouterDom.useLocation)().search);
55
56
  var theme = (0, _styledComponents.useTheme)();
@@ -164,7 +165,7 @@ var ProductExtrasUI = function ProductExtrasUI(props) {
164
165
  var _productState$product4, _extrasState$extras2;
165
166
  setAlertState({
166
167
  open: true,
167
- content: (productState === null || productState === void 0 ? void 0 : (_productState$product4 = productState.product) === null || _productState$product4 === void 0 ? void 0 : _productState$product4.error) || (extrasState === null || extrasState === void 0 ? void 0 : (_extrasState$extras2 = extrasState.extras) === null || _extrasState$extras2 === void 0 ? void 0 : _extrasState$extras2.error)
168
+ content: (productState === null || productState === void 0 || (_productState$product4 = productState.product) === null || _productState$product4 === void 0 ? void 0 : _productState$product4.error) || (extrasState === null || extrasState === void 0 || (_extrasState$extras2 = extrasState.extras) === null || _extrasState$extras2 === void 0 ? void 0 : _extrasState$extras2.error)
168
169
  });
169
170
  }
170
171
  }, [productState, extrasState]);
@@ -248,7 +249,9 @@ var ProductExtrasUI = function ProductExtrasUI(props) {
248
249
  extra: currentExtra,
249
250
  handleChangeExtraName: handleChangeExtraInput,
250
251
  handleUpdateBusinessState: handleUpdateBusinessState,
251
- handleUpdateExtraState: handleUpdateExtraState
252
+ handleUpdateExtraState: handleUpdateExtraState,
253
+ extrasState: extrasState,
254
+ setExtrasState: setExtrasState
252
255
  })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, openExtraDetails && /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
253
256
  width: "80%",
254
257
  open: openExtraDetails,
@@ -265,7 +268,9 @@ var ProductExtrasUI = function ProductExtrasUI(props) {
265
268
  extra: currentExtra,
266
269
  handleChangeExtraName: handleChangeExtraInput,
267
270
  handleUpdateBusinessState: handleUpdateBusinessState,
268
- handleUpdateExtraState: handleUpdateExtraState
271
+ handleUpdateExtraState: handleUpdateExtraState,
272
+ extrasState: extrasState,
273
+ setExtrasState: setExtrasState
269
274
  }))), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
270
275
  title: t('WEB_APPNAME', 'Ordering'),
271
276
  content: alertState.content,