ordering-ui-admin-external 1.24.2 → 1.25.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.
- package/_bundles/main.css +12158 -12158
- package/_bundles/{ordering-ui-admin.0c354f3e7da49f56465b.js → ordering-ui-admin.f2522b983a000252b407.js} +2 -2
- package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +16 -3
- package/_modules/components/CartRecovery/RecoveryActionAdd/styles.js +65 -0
- package/_modules/components/CartRecovery/RecoveryActionList/index.js +1 -1
- package/_modules/components/CartRecovery/RecoveryActionList/styles.js +3 -7
- package/_modules/components/CartRecovery/RecoveryActionListing/index.js +21 -2
- package/_modules/components/CartRecovery/RecoveryActionListing/styles.js +1 -1
- package/_modules/components/CartRecovery/RecoveryNotificationList/index.js +6 -2
- package/_modules/components/CartRecovery/RecoveryNotificationList/styles.js +3 -7
- package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +67 -21
- package/_modules/components/CartRecovery/SingleRecoveryNotification/styles.js +1 -1
- package/_modules/components/CartRecovery/index.js +8 -1
- package/_modules/components/Delivery/DriversCompaniesList/index.js +1 -1
- package/_modules/components/Delivery/DriversCompaniesList/styles.js +3 -7
- package/_modules/components/Delivery/DriversGroupsList/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupsList/styles.js +3 -10
- package/_modules/components/Delivery/UsersList/index.js +1 -1
- package/_modules/components/Delivery/UsersList/styles.js +8 -15
- package/_modules/components/Marketing/CampaignList/index.js +1 -1
- package/_modules/components/Marketing/CampaignList/styles.js +3 -7
- package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +1 -0
- package/_modules/components/Marketing/EnterprisePromotionList/index.js +1 -1
- package/_modules/components/Marketing/EnterprisePromotionList/styles.js +4 -8
- package/_modules/components/Marketing/EnterprisePromotionListing/index.js +9 -1
- package/_modules/components/Marketing/EnterprisePromotionRules/index.js +7 -2
- package/_modules/components/Messages/MessagesListing/index.js +8 -2
- package/_modules/components/MyProducts/ContentForm/index.js +0 -1
- package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
- package/_modules/components/OrderingProducts/OrderingProductsListing/styles.js +7 -11
- package/_modules/components/Orders/DeliveriesManager/index.js +1 -0
- package/_modules/components/Orders/DriversList/index.js +10 -9
- package/_modules/components/Orders/DriversList/styles.js +9 -16
- package/_modules/components/Orders/Logistics/index.js +15 -7
- package/_modules/components/Orders/Logistics/styles.js +1 -1
- package/_modules/components/Orders/OrderDetails/index.js +15 -13
- package/_modules/components/Orders/OrderDetailsHeader/index.js +7 -12
- package/_modules/components/Orders/OrderNotification/index.js +33 -1
- package/_modules/components/Orders/OrdersCards/index.js +11 -10
- package/_modules/components/Orders/OrdersCards/styles.js +1 -1
- package/_modules/components/Orders/OrdersTable/index.js +10 -9
- package/_modules/components/Settings/Cms/index.js +1 -1
- package/_modules/components/Settings/Cms/styles.js +3 -7
- package/_modules/components/Settings/CountriesList/index.js +1 -1
- package/_modules/components/Settings/CountriesList/styles.js +3 -7
- package/_modules/components/Settings/DropdownOptionList/index.js +1 -1
- package/_modules/components/Settings/DropdownOptionList/styles.js +3 -7
- package/_modules/components/Settings/LanguageTransTable/index.js +7 -6
- package/_modules/components/Settings/LanguageTransTable/styles.js +3 -7
- package/_modules/components/Settings/PlaceListing/index.js +1 -1
- package/_modules/components/Settings/PlaceListing/styles.js +3 -7
- package/_modules/components/Settings/SettingsList/index.js +1 -1
- package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +202 -0
- package/_modules/components/Shared/HtmlEditor/InsertImage/styles.js +36 -0
- package/_modules/components/Shared/HtmlEditor/InsertLink/index.js +75 -0
- package/_modules/components/Shared/HtmlEditor/InsertLink/styles.js +16 -0
- package/_modules/components/Shared/HtmlEditor/InsertVideo/index.js +56 -0
- package/_modules/components/Shared/HtmlEditor/InsertVideo/styles.js +14 -0
- package/_modules/components/Shared/HtmlEditor/index.js +181 -0
- package/_modules/components/Shared/HtmlEditor/styles.js +18 -0
- package/_modules/components/Shared/index.js +7 -0
- package/_modules/components/Stores/BusinessBrandListing/index.js +1 -1
- package/_modules/components/Stores/BusinessBrandListing/styles.js +3 -6
- package/_modules/components/Stores/BusinessDeliveryPickupMore/styles.js +1 -1
- package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +2 -2
- package/_modules/components/Stores/BusinessDeliveryZoneList/styles.js +4 -8
- package/_modules/components/Stores/BusinessDetail/styles.js +2 -2
- package/_modules/components/Stores/BusinessDetails/index.js +24 -25
- package/_modules/components/Stores/BusinessDeviceListing/index.js +1 -1
- package/_modules/components/Stores/BusinessDeviceListing/styles.js +1 -4
- package/_modules/components/Stores/BusinessMenu/index.js +2 -2
- package/_modules/components/Stores/BusinessMenu/styles.js +3 -5
- package/_modules/components/Stores/BusinessPlaceGroup/index.js +2 -2
- package/_modules/components/Stores/BusinessPlaceGroup/styles.js +3 -7
- package/_modules/components/Stores/BusinessPlaceGroupList/index.js +2 -2
- package/_modules/components/Stores/BusinessPlaceGroupList/styles.js +3 -7
- package/_modules/components/Stores/BusinessProductList/index.js +7 -6
- package/_modules/components/Stores/BusinessProductList/styles.js +3 -5
- package/_modules/components/Stores/BusinessProductsCategories/index.js +6 -5
- package/_modules/components/Stores/BusinessProductsCategories/styles.js +3 -6
- package/_modules/components/Stores/BusinessProductsListing/index.js +9 -6
- package/_modules/components/Stores/BusinessPromotionList/index.js +2 -2
- package/_modules/components/Stores/BusinessPromotionList/styles.js +3 -5
- package/_modules/components/Stores/BusinessSummary/index.js +7 -12
- package/_modules/components/Stores/BusinessesList/index.js +7 -4
- package/_modules/components/Stores/BusinessesList/styles.js +12 -16
- package/_modules/components/Stores/BusinessesListing/index.js +4 -2
- package/_modules/components/Stores/ImportersButton/index.js +2 -0
- package/_modules/components/Stores/ImportersList/index.js +1 -1
- package/_modules/components/Stores/ImportersList/styles.js +4 -9
- package/_modules/components/Stores/ProductDetails/index.js +19 -20
- package/_modules/components/Stores/ProductExtraOptionDetails/index.js +1 -1
- package/_modules/components/Stores/ProductExtraOptionDetails/styles.js +1 -5
- package/_modules/components/Stores/ProductExtras/index.js +2 -2
- package/_modules/components/Stores/ProductExtras/styles.js +3 -7
- package/_modules/components/Stores/ProductIngredient/index.js +2 -2
- package/_modules/components/Stores/ProductIngredient/styles.js +3 -7
- package/_modules/components/Stores/ProductStep/index.js +13 -7
- package/_modules/components/Stores/ProductSummary/index.js +2 -8
- package/_modules/components/Stores/ProductTagsList/index.js +2 -2
- package/_modules/components/Stores/ProductTagsList/styles.js +1 -5
- package/_modules/components/Stores/RestaurantSelectGuide/index.js +18 -9
- package/_modules/components/Stores/SeoOptions/index.js +25 -10
- package/_modules/components/Stores/SingleBusiness/index.js +18 -11
- package/_modules/components/Users/CustomerDetails/index.js +6 -7
- package/_modules/components/Users/CustomersListing/index.js +10 -4
- package/_modules/components/Users/ProfessionalList/index.js +1 -1
- package/_modules/components/Users/ProfessionalList/styles.js +8 -12
- package/_modules/components/Users/UsersList/index.js +1 -1
- package/_modules/components/Users/UsersList/styles.js +11 -15
- package/_modules/index.js +6 -0
- package/_modules/styles/Buttons/index.js +11 -4
- package/_modules/styles/index.js +6 -0
- package/index-template.js +1 -1
- package/package.json +2 -2
- package/src/components/CartRecovery/RecoveryActionAdd/index.js +13 -3
- package/src/components/CartRecovery/RecoveryActionAdd/styles.js +179 -0
- package/src/components/CartRecovery/RecoveryActionList/index.js +4 -5
- package/src/components/CartRecovery/RecoveryActionList/styles.js +0 -6
- package/src/components/CartRecovery/RecoveryActionListing/index.js +25 -6
- package/src/components/CartRecovery/RecoveryActionListing/styles.js +2 -1
- package/src/components/CartRecovery/RecoveryNotificationList/index.js +7 -3
- package/src/components/CartRecovery/RecoveryNotificationList/styles.js +5 -13
- package/src/components/CartRecovery/SingleRecoveryNotification/index.js +91 -42
- package/src/components/CartRecovery/SingleRecoveryNotification/styles.js +2 -2
- package/src/components/CartRecovery/index.js +3 -1
- package/src/components/Delivery/DriversCompaniesList/index.js +3 -4
- package/src/components/Delivery/DriversCompaniesList/styles.js +0 -6
- package/src/components/Delivery/DriversGroupsList/index.js +3 -4
- package/src/components/Delivery/DriversGroupsList/styles.js +0 -12
- package/src/components/Delivery/UsersList/index.js +3 -4
- package/src/components/Delivery/UsersList/styles.js +0 -12
- package/src/components/Marketing/CampaignList/index.js +3 -4
- package/src/components/Marketing/CampaignList/styles.js +0 -6
- package/src/components/Marketing/EnterprisePromotionDetails/index.js +1 -0
- package/src/components/Marketing/EnterprisePromotionList/index.js +3 -4
- package/src/components/Marketing/EnterprisePromotionList/styles.js +0 -7
- package/src/components/Marketing/EnterprisePromotionListing/index.js +6 -1
- package/src/components/Marketing/EnterprisePromotionRules/index.js +7 -2
- package/src/components/Messages/MessagesListing/index.js +3 -0
- package/src/components/MyProducts/ContentForm/index.js +0 -1
- package/src/components/OrderingProducts/OrderingProductsListing/index.js +3 -4
- package/src/components/OrderingProducts/OrderingProductsListing/styles.js +0 -7
- package/src/components/Orders/DeliveriesManager/index.js +1 -0
- package/src/components/Orders/DriversList/index.js +4 -4
- package/src/components/Orders/DriversList/styles.js +0 -10
- package/src/components/Orders/Logistics/index.js +10 -1
- package/src/components/Orders/Logistics/styles.js +6 -0
- package/src/components/Orders/OrderDetails/index.js +11 -13
- package/src/components/Orders/OrderDetailsHeader/index.js +40 -43
- package/src/components/Orders/OrderNotification/index.js +19 -1
- package/src/components/Orders/OrdersCards/index.js +7 -7
- package/src/components/Orders/OrdersCards/styles.js +3 -1
- package/src/components/Orders/OrdersTable/index.js +8 -8
- package/src/components/Settings/Cms/index.js +4 -5
- package/src/components/Settings/Cms/styles.js +0 -6
- package/src/components/Settings/CountriesList/index.js +4 -5
- package/src/components/Settings/CountriesList/styles.js +0 -6
- package/src/components/Settings/DropdownOptionList/index.js +4 -5
- package/src/components/Settings/DropdownOptionList/styles.js +0 -6
- package/src/components/Settings/LanguageTransTable/index.js +4 -4
- package/src/components/Settings/LanguageTransTable/styles.js +0 -6
- package/src/components/Settings/PlaceListing/index.js +4 -5
- package/src/components/Settings/PlaceListing/styles.js +0 -6
- package/src/components/Settings/SettingsList/index.js +88 -88
- package/src/components/Shared/HtmlEditor/InsertImage/index.js +172 -0
- package/src/components/Shared/HtmlEditor/InsertImage/styles.js +136 -0
- package/src/components/Shared/HtmlEditor/InsertLink/index.js +73 -0
- package/src/components/Shared/HtmlEditor/InsertLink/styles.js +34 -0
- package/src/components/Shared/HtmlEditor/InsertVideo/index.js +51 -0
- package/src/components/Shared/HtmlEditor/InsertVideo/styles.js +23 -0
- package/src/components/Shared/HtmlEditor/index.js +172 -0
- package/src/components/Shared/HtmlEditor/styles.js +30 -0
- package/src/components/Shared/index.js +3 -1
- package/src/components/Stores/BusinessBrandListing/index.js +2 -2
- package/src/components/Stores/BusinessBrandListing/styles.js +0 -7
- package/src/components/Stores/BusinessDeliveryPickupMore/styles.js +0 -4
- package/src/components/Stores/BusinessDeliveryZoneList/index.js +9 -7
- package/src/components/Stores/BusinessDeliveryZoneList/styles.js +1 -11
- package/src/components/Stores/BusinessDetail/styles.js +1 -4
- package/src/components/Stores/BusinessDetails/index.js +12 -17
- package/src/components/Stores/BusinessDeviceListing/index.js +2 -2
- package/src/components/Stores/BusinessDeviceListing/styles.js +0 -7
- package/src/components/Stores/BusinessMenu/index.js +9 -7
- package/src/components/Stores/BusinessMenu/styles.js +1 -6
- package/src/components/Stores/BusinessPlaceGroup/index.js +7 -3
- package/src/components/Stores/BusinessPlaceGroup/styles.js +1 -12
- package/src/components/Stores/BusinessPlaceGroupList/index.js +5 -3
- package/src/components/Stores/BusinessPlaceGroupList/styles.js +1 -12
- package/src/components/Stores/BusinessProductList/index.js +9 -6
- package/src/components/Stores/BusinessProductList/styles.js +1 -6
- package/src/components/Stores/BusinessProductsCategories/index.js +10 -7
- package/src/components/Stores/BusinessProductsCategories/styles.js +1 -6
- package/src/components/Stores/BusinessProductsListing/index.js +5 -2
- package/src/components/Stores/BusinessPromotionList/index.js +7 -5
- package/src/components/Stores/BusinessPromotionList/styles.js +1 -5
- package/src/components/Stores/BusinessSummary/index.js +4 -7
- package/src/components/Stores/BusinessesList/index.js +7 -5
- package/src/components/Stores/BusinessesList/styles.js +0 -8
- package/src/components/Stores/BusinessesListing/index.js +3 -1
- package/src/components/Stores/ImportersButton/index.js +2 -0
- package/src/components/Stores/ImportersList/index.js +3 -4
- package/src/components/Stores/ImportersList/styles.js +1 -13
- package/src/components/Stores/ProductDetails/index.js +12 -16
- package/src/components/Stores/ProductExtraOptionDetails/index.js +3 -3
- package/src/components/Stores/ProductExtraOptionDetails/styles.js +0 -9
- package/src/components/Stores/ProductExtras/index.js +9 -7
- package/src/components/Stores/ProductExtras/styles.js +1 -8
- package/src/components/Stores/ProductIngredient/index.js +9 -7
- package/src/components/Stores/ProductIngredient/styles.js +1 -8
- package/src/components/Stores/ProductStep/index.js +25 -4
- package/src/components/Stores/ProductSummary/index.js +3 -7
- package/src/components/Stores/ProductTagsList/index.js +7 -5
- package/src/components/Stores/ProductTagsList/styles.js +0 -7
- package/src/components/Stores/RestaurantSelectGuide/index.js +54 -24
- package/src/components/Stores/SeoOptions/index.js +15 -1
- package/src/components/Stores/SingleBusiness/index.js +9 -3
- package/src/components/Users/CustomerDetails/index.js +6 -8
- package/src/components/Users/CustomersListing/index.js +4 -1
- package/src/components/Users/ProfessionalList/index.js +3 -4
- package/src/components/Users/ProfessionalList/styles.js +0 -7
- package/src/components/Users/UsersList/index.js +3 -4
- package/src/components/Users/UsersList/styles.js +0 -7
- package/src/index.js +2 -1
- package/src/styles/Buttons/index.js +15 -1
- package/src/styles/index.js +2 -1
- package/template/pages/Login/index.js +2 -4
- /package/_bundles/{ordering-ui-admin.0c354f3e7da49f56465b.js.LICENSE.txt → ordering-ui-admin.f2522b983a000252b407.js.LICENSE.txt} +0 -0
|
@@ -191,11 +191,11 @@ var BusinessMenuUI = function BusinessMenuUI(props) {
|
|
|
191
191
|
return handleChangeBusinessMenuActiveState(menu === null || menu === void 0 ? void 0 : menu.id, e.target.checked);
|
|
192
192
|
}
|
|
193
193
|
})), /*#__PURE__*/_react.default.createElement(_styles2.MenuName, null, menu === null || menu === void 0 ? void 0 : menu.name), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ChevronRight, null));
|
|
194
|
-
}), !isSelectedSharedMenus && /*#__PURE__*/_react.default.createElement(_styles2.
|
|
194
|
+
}), !isSelectedSharedMenus && /*#__PURE__*/_react.default.createElement(_styles2.AddMenuButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
195
195
|
onClick: function onClick() {
|
|
196
196
|
return handleOpenOptions('option', {});
|
|
197
197
|
}
|
|
198
|
-
}, t('ADD_MENU', 'Add menu'))), width >= 1000 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showOption === 'option' && /*#__PURE__*/_react.default.createElement(_BusinessMenuOptions.BusinessMenuOptions, {
|
|
198
|
+
}, t('ADD_MENU', 'Add menu')))), width >= 1000 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showOption === 'option' && /*#__PURE__*/_react.default.createElement(_BusinessMenuOptions.BusinessMenuOptions, {
|
|
199
199
|
open: showOption === 'option',
|
|
200
200
|
business: business,
|
|
201
201
|
menu: currentMenu,
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Title = exports.TabsContainer = exports.Tab = exports.SelectButtonGroup = exports.SearchBarWrapper = exports.MeunItem = exports.MenuName = exports.MenuContainer = exports.MainContainer = exports.Header = exports.CheckboxWrapper = exports.
|
|
7
|
+
exports.Title = exports.TabsContainer = exports.Tab = exports.SelectButtonGroup = exports.SearchBarWrapper = exports.MeunItem = exports.MenuName = exports.MenuContainer = exports.MainContainer = exports.Header = exports.CheckboxWrapper = exports.AddMenuButtonWrapper = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -58,10 +58,8 @@ var CheckboxWrapper = _styledComponents.default.div(_templateObject15 || (_templ
|
|
|
58
58
|
return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-left: 20px;\n "]))) : (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-right: 20px;\n "])));
|
|
59
59
|
});
|
|
60
60
|
exports.CheckboxWrapper = CheckboxWrapper;
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
});
|
|
64
|
-
exports.AddMenuButton = AddMenuButton;
|
|
61
|
+
var AddMenuButtonWrapper = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin: 15px 0;\n"])));
|
|
62
|
+
exports.AddMenuButtonWrapper = AddMenuButtonWrapper;
|
|
65
63
|
var TabsContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n border-bottom: 1px solid ", ";\n margin-bottom: 10px;\n"])), function (props) {
|
|
66
64
|
return props.theme.colors.borderColor;
|
|
67
65
|
});
|
|
@@ -203,11 +203,11 @@ var BusinessPlaceGroupUI = function BusinessPlaceGroupUI(props) {
|
|
|
203
203
|
}, place !== null && place !== void 0 && place.enabled ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.CheckSquareFill, {
|
|
204
204
|
className: "active"
|
|
205
205
|
}) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Square, null)), /*#__PURE__*/_react.default.createElement("label", null, place === null || place === void 0 ? void 0 : place.name)), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ChevronRight, null));
|
|
206
|
-
})), placeGroup && /*#__PURE__*/_react.default.createElement(_styles2.
|
|
206
|
+
})), placeGroup && /*#__PURE__*/_react.default.createElement(_styles2.AddBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
207
207
|
onClick: function onClick() {
|
|
208
208
|
return handleOpenModal(null);
|
|
209
209
|
}
|
|
210
|
-
}, t('ADD_OPTION', 'Add option')), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
210
|
+
}, t('ADD_OPTION', 'Add option'))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
211
211
|
color: "primary",
|
|
212
212
|
borderRadius: "8px",
|
|
213
213
|
disabled: Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes).length === 0,
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TableHead = exports.PlaceItemContainer = exports.OptionList = exports.HideSubmitBtn = exports.Header = exports.Content = exports.Container = exports.CheckWrapper = exports.ButtonWrapper = exports.
|
|
7
|
+
exports.TableHead = exports.PlaceItemContainer = exports.OptionList = exports.HideSubmitBtn = exports.Header = exports.Content = exports.Container = exports.CheckWrapper = exports.ButtonWrapper = exports.AddBtnWrapper = exports.ActionSelectorWrapper = exports.ActionBlock = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _polished = require("polished");
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
|
|
@@ -62,12 +62,8 @@ var HideSubmitBtn = _styledComponents.default.button(_templateObject15 || (_temp
|
|
|
62
62
|
exports.HideSubmitBtn = HideSubmitBtn;
|
|
63
63
|
var OptionList = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-top: 35px;\n"])));
|
|
64
64
|
exports.OptionList = OptionList;
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
}, function (props) {
|
|
68
|
-
return props.theme.colors.primary;
|
|
69
|
-
});
|
|
70
|
-
exports.AddBtn = AddBtn;
|
|
65
|
+
var AddBtnWrapper = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin: 10px 0px;\n"])));
|
|
66
|
+
exports.AddBtnWrapper = AddBtnWrapper;
|
|
71
67
|
var CheckWrapper = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n .check-box {\n cursor: pointer !important;\n }\n\n span {\n svg {\n cursor: pointer !important;\n font-size: 16px;\n color: ", ";\n\n &.active {\n color: ", ";\n }\n }\n }\n\n > label {\n margin-bottom: 0;\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-left: 20px;\n ", "\n }\n"])), function (props) {
|
|
72
68
|
return props.theme.colors.secundaryLight;
|
|
73
69
|
}, function (props) {
|
|
@@ -143,11 +143,11 @@ var BusinessPlaceGroupListUI = function BusinessPlaceGroupListUI(props) {
|
|
|
143
143
|
}, placeGroup !== null && placeGroup !== void 0 && placeGroup.enabled ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.CheckSquareFill, {
|
|
144
144
|
className: "active"
|
|
145
145
|
}) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Square, null)), /*#__PURE__*/_react.default.createElement("label", null, placeGroup === null || placeGroup === void 0 ? void 0 : placeGroup.name)), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ChevronRight, null));
|
|
146
|
-
}), /*#__PURE__*/_react.default.createElement(_styles2.
|
|
146
|
+
}), /*#__PURE__*/_react.default.createElement(_styles2.AddBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
147
147
|
onClick: function onClick() {
|
|
148
148
|
return handleOpenDetail(null);
|
|
149
149
|
}
|
|
150
|
-
}, t('ADD_PLACES', 'Add places')))), width >= 1000 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, openDetail && /*#__PURE__*/_react.default.createElement(_BusinessPlaceGroup.BusinessPlaceGroup, {
|
|
150
|
+
}, t('ADD_PLACES', 'Add places'))))), width >= 1000 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, openDetail && /*#__PURE__*/_react.default.createElement(_BusinessPlaceGroup.BusinessPlaceGroup, {
|
|
151
151
|
businessId: business === null || business === void 0 ? void 0 : business.id,
|
|
152
152
|
open: openDetail,
|
|
153
153
|
onClose: handleCloseDetail,
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TableHead = exports.PlaceItemContainer = exports.PlaceContainer = exports.Header = exports.Content = exports.Container = exports.CheckWrapper = exports.
|
|
7
|
+
exports.TableHead = exports.PlaceItemContainer = exports.PlaceContainer = exports.Header = exports.Content = exports.Container = exports.CheckWrapper = exports.AddBtnWrapper = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -26,12 +26,8 @@ var Header = _styledComponents.default.div(_templateObject7 || (_templateObject7
|
|
|
26
26
|
exports.Header = Header;
|
|
27
27
|
var Content = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([""])));
|
|
28
28
|
exports.Content = Content;
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
}, function (props) {
|
|
32
|
-
return props.theme.colors.primary;
|
|
33
|
-
});
|
|
34
|
-
exports.AddBtn = AddBtn;
|
|
29
|
+
var AddBtnWrapper = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin: 10px 0px;\n"])));
|
|
30
|
+
exports.AddBtnWrapper = AddBtnWrapper;
|
|
35
31
|
var TableHead = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n padding-bottom: 8px;\n border-bottom: 1px solid ", ";\n\n label {\n font-weight: 700;\n }\n"])), function (props) {
|
|
36
32
|
return props.theme.colors.secundaryLight;
|
|
37
33
|
});
|
|
@@ -11,7 +11,8 @@ var _Shared = require("../../Shared");
|
|
|
11
11
|
var _SingleBusinessProduct = require("../SingleBusinessProduct");
|
|
12
12
|
var _BusinessSpreadSheet = require("../BusinessSpreadSheet");
|
|
13
13
|
var _BusinessProductAddForm = require("../BusinessProductAddForm");
|
|
14
|
-
var _styles = require("
|
|
14
|
+
var _styles = require("../../../styles");
|
|
15
|
+
var _styles2 = require("./styles");
|
|
15
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -135,7 +136,7 @@ var BusinessProductList = function BusinessProductList(props) {
|
|
|
135
136
|
(0, _react.useEffect)(function () {
|
|
136
137
|
setCurrentPage(1);
|
|
137
138
|
}, [categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.id, isLazyLoadProducts]);
|
|
138
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
139
|
+
return /*#__PURE__*/_react.default.createElement(_styles2.ListContent, null, viewMethod === 'list' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.ProductListContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.BusinessProductListTable, {
|
|
139
140
|
noFixedHeader: !businessState.loading && currentProducts.length <= 4
|
|
140
141
|
}, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.products) && /*#__PURE__*/_react.default.createElement("th", null, t('PRODUCTS', 'Products')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.description) && /*#__PURE__*/_react.default.createElement("th", {
|
|
141
142
|
className: "description"
|
|
@@ -177,17 +178,17 @@ var BusinessProductList = function BusinessProductList(props) {
|
|
|
177
178
|
category: categoryState,
|
|
178
179
|
isLastProduct: currentProducts.length - 1 === i
|
|
179
180
|
}));
|
|
180
|
-
})))), /*#__PURE__*/_react.default.createElement(
|
|
181
|
+
})))), /*#__PURE__*/_react.default.createElement(_styles2.ProductListBottom, null, !businessState.loading && (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine2 = businessState.business) === null || _businessState$busine2 === void 0 ? void 0 : (_businessState$busine3 = _businessState$busine2.categories) === null || _businessState$busine3 === void 0 ? void 0 : _businessState$busine3.length) > 0 && categorySelected && /*#__PURE__*/_react.default.createElement(_styles2.AddProductBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
181
182
|
onClick: function onClick() {
|
|
182
183
|
return handleParentProductAdd(true);
|
|
183
184
|
}
|
|
184
|
-
}, t('ADD_NEW_PRODUCT', 'Add new product')), !businessState.loading && (categoryState === null || categoryState === void 0 ? void 0 : (_categoryState$produc = categoryState.products) === null || _categoryState$produc === void 0 ? void 0 : _categoryState$produc.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
|
|
185
|
+
}, t('ADD_NEW_PRODUCT', 'Add new product'))), !businessState.loading && (categoryState === null || categoryState === void 0 ? void 0 : (_categoryState$produc = categoryState.products) === null || _categoryState$produc === void 0 ? void 0 : _categoryState$produc.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
|
|
185
186
|
currentPage: isLazyLoadProducts ? categoryState === null || categoryState === void 0 ? void 0 : categoryState.pagination.currentPage : currentPage,
|
|
186
187
|
totalPages: isLazyLoadProducts ? Math.ceil((categoryState === null || categoryState === void 0 ? void 0 : (_categoryState$pagina = categoryState.pagination) === null || _categoryState$pagina === void 0 ? void 0 : _categoryState$pagina.totalItems) / productsPerPage) : Math.ceil(categoryState.products.length / productsPerPage),
|
|
187
188
|
handleChangePage: handleChangePage,
|
|
188
189
|
defaultPageSize: productsPerPage,
|
|
189
190
|
handleChangePageSize: handleChangePageSize
|
|
190
|
-
})), !businessState.loading && (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : (_businessState$busine5 = _businessState$busine4.categories) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.length) === 0 && /*#__PURE__*/_react.default.createElement(
|
|
191
|
+
})), !businessState.loading && (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : (_businessState$busine5 = _businessState$busine4.categories) === null || _businessState$busine5 === void 0 ? void 0 : _businessState$busine5.length) === 0 && /*#__PURE__*/_react.default.createElement(_styles2.WrapperNotFound, null, t('CREATE_CATEGORY_BEFORE_PRODUCT', 'Please create a category before adding your products.')), !businessState.loading && (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine6 = businessState.business) === null || _businessState$busine6 === void 0 ? void 0 : (_businessState$busine7 = _businessState$busine6.categories) === null || _businessState$busine7 === void 0 ? void 0 : _businessState$busine7.length) > 0 && !categorySelected && /*#__PURE__*/_react.default.createElement(_styles2.WrapperNotFound, null, t('SELECT_CATEGORY_BEFORE_PRODUCT', 'Please select a category before adding your products.'))), viewMethod === 'spreedsheet' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.ProductListSpreadContainer, null, categoryState.loading || businessState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.BusinessProductListTable, null, _toConsumableArray(Array(15).keys()).map(function (i) {
|
|
191
192
|
return /*#__PURE__*/_react.default.createElement(_SingleBusinessProduct.SingleBusinessProduct, {
|
|
192
193
|
key: i,
|
|
193
194
|
isSkeleton: true,
|
|
@@ -197,7 +198,7 @@ var BusinessProductList = function BusinessProductList(props) {
|
|
|
197
198
|
})) : /*#__PURE__*/_react.default.createElement(_BusinessSpreadSheet.BusinessSpreadSheet, _extends({}, props, {
|
|
198
199
|
business: businessState === null || businessState === void 0 ? void 0 : businessState.business,
|
|
199
200
|
allowSpreadColumns: allowSpreadColumns
|
|
200
|
-
}))), !categoryState.loading && !businessState.loading && categoryState.products.length === 0 && !(searchValue && errorQuantityProducts || !searchValue && !errorQuantityProducts) && /*#__PURE__*/_react.default.createElement(
|
|
201
|
+
}))), !categoryState.loading && !businessState.loading && categoryState.products.length === 0 && !(searchValue && errorQuantityProducts || !searchValue && !errorQuantityProducts) && /*#__PURE__*/_react.default.createElement(_styles2.WrapperNotFound, null, /*#__PURE__*/_react.default.createElement(_Shared.NotFoundSource, {
|
|
201
202
|
content: !searchValue ? t('ERROR_NOT_FOUND_PRODUCTS_TIME', 'No products found at this time') : t('ERROR_NOT_FOUND_PRODUCTS', 'No products found, please change filters.'),
|
|
202
203
|
btnTitle: !searchValue ? t('SEARCH_REDIRECT', 'Go to Businesses') : t('CLEAR_FILTERS', 'Clear filters'),
|
|
203
204
|
onClickButton: function onClickButton() {
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.WrapperNotFound = exports.ProductListSpreadContainer = exports.ProductListContainer = exports.ProductListBottom = exports.ListContent = exports.BusinessProductListTable = exports.
|
|
7
|
+
exports.WrapperNotFound = exports.ProductListSpreadContainer = exports.ProductListContainer = exports.ProductListBottom = exports.ListContent = exports.BusinessProductListTable = exports.AddProductBtnWrapper = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -35,10 +35,8 @@ var BusinessProductListTable = _styledComponents.default.table(_templateObject8
|
|
|
35
35
|
exports.BusinessProductListTable = BusinessProductListTable;
|
|
36
36
|
var WrapperNotFound = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-size: 16px;\n text-align: center;\n font-weight: 500;\n margin: 20px;\n"])));
|
|
37
37
|
exports.WrapperNotFound = WrapperNotFound;
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
});
|
|
41
|
-
exports.AddProductBtn = AddProductBtn;
|
|
38
|
+
var AddProductBtnWrapper = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: 12px;\n margin-bottom: 15px;\n"])));
|
|
39
|
+
exports.AddProductBtnWrapper = AddProductBtnWrapper;
|
|
42
40
|
var ProductListBottom = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n margin-top: 20px;\n \n @media (min-width: 768px) {\n ", "\n }\n"])), function (props) {
|
|
43
41
|
var _props$theme;
|
|
44
42
|
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-right: 30px;\n "]))) : (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-left: 30px;\n "])));
|
|
@@ -8,7 +8,8 @@ exports.BusinessProductsCategories = void 0;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
10
10
|
var _SingleBusinessSubCateogries = require("../SingleBusinessSubCateogries");
|
|
11
|
-
var _styles = require("
|
|
11
|
+
var _styles = require("../../../styles");
|
|
12
|
+
var _styles2 = require("./styles");
|
|
12
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -53,9 +54,9 @@ var BusinessProductsCategories = function BusinessProductsCategories(props) {
|
|
|
53
54
|
window.removeEventListener('click', listener);
|
|
54
55
|
};
|
|
55
56
|
}, [containerRef === null || containerRef === void 0 ? void 0 : containerRef.current, categoryListRef]);
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.CategoryListContainer, {
|
|
57
58
|
ref: containerRef
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.HeaderContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, t('BUSINESS_CATEGORY', 'Business category'))), /*#__PURE__*/_react.default.createElement(_styles2.ListContent, {
|
|
59
60
|
ref: listRef
|
|
60
61
|
}, (businessState === null || businessState === void 0 ? void 0 : businessState.loading) && _toConsumableArray(Array(6).keys()).map(function (i) {
|
|
61
62
|
return /*#__PURE__*/_react.default.createElement(_SingleBusinessSubCateogries.SingleBusinessSubCateogries, {
|
|
@@ -77,11 +78,11 @@ var BusinessProductsCategories = function BusinessProductsCategories(props) {
|
|
|
77
78
|
setDataSelected: setDataSelected,
|
|
78
79
|
isLastCategory: (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine3 = businessState.business) === null || _businessState$busine3 === void 0 ? void 0 : (_businessState$busine4 = _businessState$busine3.categories) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.length) - 1 === i
|
|
79
80
|
}));
|
|
80
|
-
})))), /*#__PURE__*/_react.default.createElement(_styles.
|
|
81
|
+
})))), /*#__PURE__*/_react.default.createElement(_styles2.AddCategoryWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
81
82
|
ref: addButtonRef,
|
|
82
83
|
onClick: function onClick() {
|
|
83
84
|
return handleOpenCategoryDetails();
|
|
84
85
|
}
|
|
85
|
-
}, t('ADD_NEW_CATEGORY', 'Add new category')));
|
|
86
|
+
}, t('ADD_NEW_CATEGORY', 'Add new category'))));
|
|
86
87
|
};
|
|
87
88
|
exports.BusinessProductsCategories = BusinessProductsCategories;
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ListContent = exports.HeaderContainer = exports.CategoryTab = exports.CategoryListContainer = exports.CategoryEnableWrapper = exports.
|
|
7
|
+
exports.ListContent = exports.HeaderContainer = exports.CategoryTab = exports.CategoryListContainer = exports.CategoryEnableWrapper = exports.AddCategoryWrapper = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -18,11 +18,8 @@ var ListContent = _styledComponents.default.div(_templateObject3 || (_templateOb
|
|
|
18
18
|
return props.theme.rtl ? (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding-left: 18px;"]))) : (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-right: 18px;"])));
|
|
19
19
|
});
|
|
20
20
|
exports.ListContent = ListContent;
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
return (_props$theme$colors = props.theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.primary;
|
|
24
|
-
});
|
|
25
|
-
exports.AddCategory = AddCategory;
|
|
21
|
+
var AddCategoryWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 15px 10px;\n"])));
|
|
22
|
+
exports.AddCategoryWrapper = AddCategoryWrapper;
|
|
26
23
|
var CategoryTab = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding: 10px 15px;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-left: ", "px;\n border-radius: 8px;\n\n ", "\n\n &:hover {\n background: ", ";\n }\n"])), function (props) {
|
|
27
24
|
var _props$categorySpace;
|
|
28
25
|
return (_props$categorySpace = props.categorySpace) !== null && _props$categorySpace !== void 0 ? _props$categorySpace : 0;
|
|
@@ -48,7 +48,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
48
48
|
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; } }
|
|
49
49
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
50
50
|
var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
51
|
-
var _businessState$busine5, _businessState$busine16, _businessState$
|
|
51
|
+
var _businessState$busine5, _businessState$busine16, _businessState$busine18, _businessState$busine19, _businessState$busine20, _businessState$busine21;
|
|
52
52
|
var categorySelected = props.categorySelected,
|
|
53
53
|
searchValue = props.searchValue,
|
|
54
54
|
handleChangeCategory = props.handleChangeCategory,
|
|
@@ -323,9 +323,11 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
323
323
|
})), slug && /*#__PURE__*/_react.default.createElement(_styles2.Breadcrumb, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
324
324
|
className: "business",
|
|
325
325
|
onClick: function onClick() {
|
|
326
|
-
|
|
326
|
+
var _businessState$busine17;
|
|
327
|
+
history.replace("".concat(location.pathname, "?id=").concat(businessState === null || businessState === void 0 ? void 0 : (_businessState$busine17 = businessState.business) === null || _businessState$busine17 === void 0 ? void 0 : _businessState$busine17.id));
|
|
328
|
+
setOpenSidebar('business_details');
|
|
327
329
|
}
|
|
328
|
-
}, (selectedBusiness === null || selectedBusiness === void 0 ? void 0 : selectedBusiness.name) || (businessState === null || businessState === void 0 ? void 0 : (_businessState$
|
|
330
|
+
}, (selectedBusiness === null || selectedBusiness === void 0 ? void 0 : selectedBusiness.name) || (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine18 = businessState.business) === null || _businessState$busine18 === void 0 ? void 0 : _businessState$busine18.name)), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ChevronRight, null), /*#__PURE__*/_react.default.createElement("span", null, categorySelected === null || categorySelected === void 0 ? void 0 : categorySelected.name))))), slug && /*#__PURE__*/_react.default.createElement(_styles2.ActionsGroup, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
329
331
|
color: "lightPrimary",
|
|
330
332
|
borderRadius: "8px",
|
|
331
333
|
onClick: function onClick() {
|
|
@@ -338,7 +340,8 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
338
340
|
marginLeft: 5
|
|
339
341
|
}
|
|
340
342
|
})), /*#__PURE__*/_react.default.createElement(_ImportersButton.ImportersButton, {
|
|
341
|
-
customClass: "importerGroup"
|
|
343
|
+
customClass: "importerGroup",
|
|
344
|
+
setOpenSidebar: setOpenSidebar
|
|
342
345
|
}), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
343
346
|
borderRadius: "8px",
|
|
344
347
|
color: "lightPrimary",
|
|
@@ -351,7 +354,7 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
351
354
|
onClick: function onClick() {
|
|
352
355
|
return handleProductAdd(true);
|
|
353
356
|
},
|
|
354
|
-
disabled: (businessState === null || businessState === void 0 ? void 0 : (_businessState$
|
|
357
|
+
disabled: (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine19 = businessState.business) === null || _businessState$busine19 === void 0 ? void 0 : (_businessState$busine20 = _businessState$busine19.categories) === null || _businessState$busine20 === void 0 ? void 0 : _businessState$busine20.length) === 0
|
|
355
358
|
}, t('ADD_PRODUCT', 'Add product')), /*#__PURE__*/_react.default.createElement(_Shared.SearchBar, {
|
|
356
359
|
isCustomLayout: true,
|
|
357
360
|
lazyLoad: true,
|
|
@@ -449,7 +452,7 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
449
452
|
setFees: setFees
|
|
450
453
|
}), openSidebar === 'business_details' && /*#__PURE__*/_react.default.createElement(_BusinessDetails.BusinessDetails, {
|
|
451
454
|
open: openSidebar === 'business_details',
|
|
452
|
-
businessId: (selectedBusiness === null || selectedBusiness === void 0 ? void 0 : selectedBusiness.id) || (businessState === null || businessState === void 0 ? void 0 : (_businessState$
|
|
455
|
+
businessId: (selectedBusiness === null || selectedBusiness === void 0 ? void 0 : selectedBusiness.id) || (businessState === null || businessState === void 0 ? void 0 : (_businessState$busine21 = businessState.business) === null || _businessState$busine21 === void 0 ? void 0 : _businessState$busine21.id),
|
|
453
456
|
handleSucessRemoveBusiness: function handleSucessRemoveBusiness() {
|
|
454
457
|
return handleStoresRedirect();
|
|
455
458
|
}
|
|
@@ -107,11 +107,11 @@ var BusinessPromotionListUI = function BusinessPromotionListUI(props) {
|
|
|
107
107
|
utc: false,
|
|
108
108
|
outputFormat: 'YYYY-MM-DD'
|
|
109
109
|
}))), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ChevronRight, null)))));
|
|
110
|
-
})), /*#__PURE__*/_react.default.createElement(_styles2.
|
|
110
|
+
})), /*#__PURE__*/_react.default.createElement(_styles2.AddNewPromotionButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
111
111
|
onClick: function onClick(e) {
|
|
112
112
|
return handleOpenForm(e, {});
|
|
113
113
|
}
|
|
114
|
-
}, t('ADD_NEW_PROMOTION', 'Add new promotion'))), isShowForm && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, width >= 1000 ? /*#__PURE__*/_react.default.createElement(BusinessPromotion, {
|
|
114
|
+
}, t('ADD_NEW_PROMOTION', 'Add new promotion')))), isShowForm && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, width >= 1000 ? /*#__PURE__*/_react.default.createElement(BusinessPromotion, {
|
|
115
115
|
isCloseButtonShow: true,
|
|
116
116
|
curPromotion: curPromotion,
|
|
117
117
|
selectedTab: selectedTab,
|
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Tab = exports.PromotionsTable = exports.PromotionTypeItem = exports.PromotionTbody = exports.PromotionNameContainer = exports.PromotionEditFormContainer = exports.PromotionDateItem = exports.OptionTabsContainer = exports.MainContainer = exports.InnerTabsContainer = exports.Header = exports.EditTitleHeaderContainer = exports.EditHeader = exports.CloseButtonWrapper = exports.BusinessPromotionsContainer = exports.
|
|
7
|
+
exports.Tab = exports.PromotionsTable = exports.PromotionTypeItem = exports.PromotionTbody = exports.PromotionNameContainer = exports.PromotionEditFormContainer = exports.PromotionDateItem = exports.OptionTabsContainer = exports.MainContainer = exports.InnerTabsContainer = exports.Header = exports.EditTitleHeaderContainer = exports.EditHeader = exports.CloseButtonWrapper = exports.BusinessPromotionsContainer = exports.AddNewPromotionButtonWrapper = exports.ActionSelectorWrapper = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _polished = require("polished");
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38;
|
|
@@ -64,10 +64,8 @@ var PromotionDateItem = _styledComponents.default.div(_templateObject15 || (_tem
|
|
|
64
64
|
return props.theme.colors.secundaryLight;
|
|
65
65
|
});
|
|
66
66
|
exports.PromotionDateItem = PromotionDateItem;
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
});
|
|
70
|
-
exports.AddNewPromotionText = AddNewPromotionText;
|
|
67
|
+
var AddNewPromotionButtonWrapper = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin: 15px 0;\n"])));
|
|
68
|
+
exports.AddNewPromotionButtonWrapper = AddNewPromotionButtonWrapper;
|
|
71
69
|
var PromotionEditFormContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n flex: 1;\n position: relative;\n transition: 0.3s;\n overflow: auto;\n\n @media (min-width: 576px) {\n padding: 25px 20px;\n }\n\n @media (min-width: 1000px) {\n ", "\n }\n"])), function (props) {
|
|
72
70
|
var _props$theme5;
|
|
73
71
|
return (_props$theme5 = props.theme) !== null && _props$theme5 !== void 0 && _props$theme5.rtl ? (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n border-right: 1px solid ", ";\n "])), function (props) {
|
|
@@ -43,7 +43,9 @@ var BusinessSummary = function BusinessSummary(props) {
|
|
|
43
43
|
handleDeleteBusiness = props.handleDeleteBusiness,
|
|
44
44
|
extraOpen = props.extraOpen,
|
|
45
45
|
spoonityConfig = props.spoonityConfig,
|
|
46
|
-
siteState = props.siteState
|
|
46
|
+
siteState = props.siteState,
|
|
47
|
+
isExpand = props.isExpand,
|
|
48
|
+
setIsExpand = props.setIsExpand;
|
|
47
49
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
48
50
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
49
51
|
t = _useLanguage2[1];
|
|
@@ -67,18 +69,14 @@ var BusinessSummary = function BusinessSummary(props) {
|
|
|
67
69
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
68
70
|
selectedView = _useState4[0],
|
|
69
71
|
setSelectedView = _useState4[1];
|
|
70
|
-
var _useState5 = (0, _react.useState)(
|
|
71
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
72
|
-
isExpand = _useState6[0],
|
|
73
|
-
setIsExpand = _useState6[1];
|
|
74
|
-
var _useState7 = (0, _react.useState)({
|
|
72
|
+
var _useState5 = (0, _react.useState)({
|
|
75
73
|
open: false,
|
|
76
74
|
content: null,
|
|
77
75
|
handleOnAccept: null
|
|
78
76
|
}),
|
|
79
|
-
|
|
80
|
-
confirm =
|
|
81
|
-
setConfirm =
|
|
77
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
78
|
+
confirm = _useState6[0],
|
|
79
|
+
setConfirm = _useState6[1];
|
|
82
80
|
var handleOpenCategory = function handleOpenCategory() {
|
|
83
81
|
var _businessState$busine;
|
|
84
82
|
events.emit('go_to_page', {
|
|
@@ -171,9 +169,6 @@ var BusinessSummary = function BusinessSummary(props) {
|
|
|
171
169
|
return !prev;
|
|
172
170
|
});
|
|
173
171
|
};
|
|
174
|
-
(0, _react.useEffect)(function () {
|
|
175
|
-
if (extraOpen) setIsExpand(false);
|
|
176
|
-
}, [extraOpen]);
|
|
177
172
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.BusinessDetailsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.LeftHeader, null, businessState !== null && businessState !== void 0 && businessState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.BusinessName, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
178
173
|
width: 100
|
|
179
174
|
})) : /*#__PURE__*/_react.default.createElement(_styles2.BusinessName, null, businessState === null || businessState === void 0 ? void 0 : (_businessState$busine4 = businessState.business) === null || _businessState$busine4 === void 0 ? void 0 : _businessState$busine4.name), businessState !== null && businessState !== void 0 && businessState.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
@@ -48,7 +48,8 @@ var BusinessesList = function BusinessesList(props) {
|
|
|
48
48
|
handleEnableAllBusiness = props.handleEnableAllBusiness,
|
|
49
49
|
selectedBusinessActiveState = props.selectedBusinessActiveState,
|
|
50
50
|
setBusinessIds = props.setBusinessIds,
|
|
51
|
-
handleGotToAdd = props.handleGotToAdd
|
|
51
|
+
handleGotToAdd = props.handleGotToAdd,
|
|
52
|
+
citiesList = props.citiesList;
|
|
52
53
|
var theme = (0, _styledComponents.useTheme)();
|
|
53
54
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
54
55
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
@@ -181,9 +182,10 @@ var BusinessesList = function BusinessesList(props) {
|
|
|
181
182
|
handleSucessUpdateBusiness: handleSucessUpdateBusiness,
|
|
182
183
|
handleOpenBusinessDetails: handleOpenBusinessDetails,
|
|
183
184
|
businessIds: businessIds,
|
|
184
|
-
handleChangeBusinessIds: handleChangeBusinessIds
|
|
185
|
+
handleChangeBusinessIds: handleChangeBusinessIds,
|
|
186
|
+
citiesList: citiesList
|
|
185
187
|
});
|
|
186
|
-
}))), /*#__PURE__*/_react.default.createElement(_styles2.BusinessListBottomContainer, null, /*#__PURE__*/_react.default.createElement(
|
|
188
|
+
}))), /*#__PURE__*/_react.default.createElement(_styles2.BusinessListBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
187
189
|
onClick: function onClick() {
|
|
188
190
|
return handleGotToAdd();
|
|
189
191
|
}
|
|
@@ -210,7 +212,8 @@ var BusinessesList = function BusinessesList(props) {
|
|
|
210
212
|
handleSucessRemoveBusiness: handleSucessRemoveBusiness,
|
|
211
213
|
handleSucessAddBusiness: handleSucessAddBusiness,
|
|
212
214
|
handleSucessUpdateBusiness: handleSucessUpdateBusiness,
|
|
213
|
-
handleOpenBusinessDetails: handleOpenBusinessDetails
|
|
215
|
+
handleOpenBusinessDetails: handleOpenBusinessDetails,
|
|
216
|
+
citiesList: citiesList
|
|
214
217
|
});
|
|
215
218
|
})), isTutorialMode && !businessList.loading && businessList.businesses.length === 0 && /*#__PURE__*/_react.default.createElement(_styles2.AddFirstStoreContainer, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
216
219
|
src: theme.images.tutorials.businessTutorial1,
|
|
@@ -4,9 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.WrapperPagination = exports.FeaturedWrapper = exports.CheckBoxWrapper = exports.BusinessListTable = exports.BusinessListContainer = exports.BusinessListBottomContainer = exports.BusinessIdWrapper = exports.BusinessCardContainer = exports.
|
|
7
|
+
exports.WrapperPagination = exports.FeaturedWrapper = exports.CheckBoxWrapper = exports.BusinessListTable = exports.BusinessListContainer = exports.BusinessListBottomContainer = exports.BusinessIdWrapper = exports.BusinessCardContainer = exports.AddFirstStoreContainer = exports.ActionWrapper = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -31,34 +31,30 @@ var BusinessCardContainer = _styledComponents.default.div(_templateObject4 || (_
|
|
|
31
31
|
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n transform: translateX(10px);\n "]))) : (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n transform: translateX(-10px);\n "])));
|
|
32
32
|
});
|
|
33
33
|
exports.BusinessCardContainer = BusinessCardContainer;
|
|
34
|
-
var
|
|
35
|
-
return props.theme.colors.primary;
|
|
36
|
-
});
|
|
37
|
-
exports.AddNewButtonLink = AddNewButtonLink;
|
|
38
|
-
var BusinessListBottomContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n"])));
|
|
34
|
+
var BusinessListBottomContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n"])));
|
|
39
35
|
exports.BusinessListBottomContainer = BusinessListBottomContainer;
|
|
40
|
-
var AddFirstStoreContainer = _styledComponents.default.div(
|
|
36
|
+
var AddFirstStoreContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 50px 0 20px 0;\n\n > img {\n width: 200px;\n margin-bottom: 12px;\n }\n\n > button {\n height: 44px;\n }\n\n @media (min-width: 768px) {\n > img {\n width: 370px;\n }\n }\n"])));
|
|
41
37
|
exports.AddFirstStoreContainer = AddFirstStoreContainer;
|
|
42
|
-
var CheckBoxWrapper = _styledComponents.default.div(
|
|
38
|
+
var CheckBoxWrapper = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n ", "\n svg {\n font-size: 16px;\n color: ", ";\n }\n\n ", "\n"])), function (props) {
|
|
43
39
|
var _props$theme2;
|
|
44
|
-
return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(
|
|
40
|
+
return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: 10px;\n "]))) : (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-right: 10px;\n "])));
|
|
45
41
|
}, function (props) {
|
|
46
42
|
return props.theme.colors.secundaryLight;
|
|
47
43
|
}, function (_ref) {
|
|
48
44
|
var isChecked = _ref.isChecked;
|
|
49
|
-
return isChecked && (0, _styledComponents.css)(
|
|
45
|
+
return isChecked && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n svg {\n color: ", ";\n }\n "])), function (props) {
|
|
50
46
|
var _props$theme$colors3;
|
|
51
47
|
return (_props$theme$colors3 = props.theme.colors) === null || _props$theme$colors3 === void 0 ? void 0 : _props$theme$colors3.primary;
|
|
52
48
|
});
|
|
53
49
|
});
|
|
54
50
|
exports.CheckBoxWrapper = CheckBoxWrapper;
|
|
55
|
-
var BusinessIdWrapper = _styledComponents.default.div(
|
|
51
|
+
var BusinessIdWrapper = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
56
52
|
exports.BusinessIdWrapper = BusinessIdWrapper;
|
|
57
|
-
var ActionWrapper = _styledComponents.default.div(
|
|
58
|
-
return props.theme.rtl && (0, _styledComponents.css)(
|
|
53
|
+
var ActionWrapper = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n > label {\n margin-left: 5px;\n ", "\n }\n"])), function (props) {
|
|
54
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
|
|
59
55
|
});
|
|
60
56
|
exports.ActionWrapper = ActionWrapper;
|
|
61
|
-
var FeaturedWrapper = _styledComponents.default.div(
|
|
62
|
-
return props.theme.rtl && (0, _styledComponents.css)(
|
|
57
|
+
var FeaturedWrapper = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n label {\n margin-right: 5px;\n ", "\n }\n"])), function (props) {
|
|
58
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-right: 0px;\n margin-left: 5px;\n "])));
|
|
63
59
|
});
|
|
64
60
|
exports.FeaturedWrapper = FeaturedWrapper;
|
|
@@ -65,7 +65,8 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
65
65
|
handleChangeFilterValues = props.handleChangeFilterValues,
|
|
66
66
|
filterValues = props.filterValues,
|
|
67
67
|
businessTypeSelected = props.businessTypeSelected,
|
|
68
|
-
inActiveBusinesses = props.inActiveBusinesses
|
|
68
|
+
inActiveBusinesses = props.inActiveBusinesses,
|
|
69
|
+
citiesList = props.citiesList;
|
|
69
70
|
var history = (0, _reactRouterDom.useHistory)();
|
|
70
71
|
var query = new URLSearchParams((0, _reactRouterDom.useLocation)().search);
|
|
71
72
|
var theme = (0, _styledComponents.useTheme)();
|
|
@@ -293,7 +294,8 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
293
294
|
handleChangeBusinessIds: handleChangeBusinessIds,
|
|
294
295
|
handleEnableAllBusiness: handleEnableAllBusiness,
|
|
295
296
|
selectedBusinessActiveState: selectedBusinessActiveState,
|
|
296
|
-
handleGotToAdd: handleGotToAdd
|
|
297
|
+
handleGotToAdd: handleGotToAdd,
|
|
298
|
+
citiesList: citiesList
|
|
297
299
|
})), openBusinessDetails && /*#__PURE__*/_react.default.createElement(_BusinessDetails.BusinessDetails, {
|
|
298
300
|
open: openBusinessDetails
|
|
299
301
|
// business={detailsBusiness}
|
|
@@ -22,6 +22,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
22
22
|
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; } }
|
|
23
23
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
24
|
var ImportersButton = function ImportersButton(props) {
|
|
25
|
+
var setOpenSidebar = props.setOpenSidebar;
|
|
25
26
|
var history = (0, _reactRouterDom.useHistory)();
|
|
26
27
|
var query = new URLSearchParams((0, _reactRouterDom.useLocation)().search);
|
|
27
28
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
@@ -36,6 +37,7 @@ var ImportersButton = function ImportersButton(props) {
|
|
|
36
37
|
extraOpen = _useState4[0],
|
|
37
38
|
setExtraOpen = _useState4[1];
|
|
38
39
|
var handleOpenImporters = function handleOpenImporters() {
|
|
40
|
+
setOpenSidebar('importer');
|
|
39
41
|
setOpenImporters(true);
|
|
40
42
|
history.replace("".concat(location.pathname, "?header=importers"));
|
|
41
43
|
};
|
|
@@ -94,7 +94,7 @@ var ImportersList = function ImportersList(props) {
|
|
|
94
94
|
colSpan: "2"
|
|
95
95
|
}, /*#__PURE__*/_react.default.createElement(_styles2.NotFoundWrapper, null, /*#__PURE__*/_react.default.createElement(_Shared.NotFoundSource, {
|
|
96
96
|
content: t('NOT_FOUND_IMPOTERS', "Can't found importers")
|
|
97
|
-
})))))))), /*#__PURE__*/_react.default.createElement(_styles2.ImportersBottomContainer, null, /*#__PURE__*/_react.default.createElement(
|
|
97
|
+
})))))))), /*#__PURE__*/_react.default.createElement(_styles2.ImportersBottomContainer, null, /*#__PURE__*/_react.default.createElement(_styles.LinkButton, {
|
|
98
98
|
onClick: function onClick() {
|
|
99
99
|
return addNewImporter();
|
|
100
100
|
}
|