ordering-ui-admin-external 1.5.0 → 1.6.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/{ordering-ui-admin.d4ee01fd9abda5a6348f.js → ordering-ui-admin.0fd83f227d29409cb170.js} +2 -2
- package/_bundles/{ordering-ui-admin.d4ee01fd9abda5a6348f.js.LICENSE.txt → ordering-ui-admin.0fd83f227d29409cb170.js.LICENSE.txt} +1 -1
- package/_modules/components/Delivery/UserFormDetails/index.js +10 -3
- package/_modules/components/Login/LoginForm/index.js +4 -3
- package/_modules/components/Login/ResetPassword/index.js +251 -0
- package/_modules/components/Login/ResetPassword/styles.js +64 -0
- package/_modules/components/Login/index.js +8 -1
- package/_modules/components/Marketing/CampaignDetailContent/index.js +41 -5
- package/_modules/components/Marketing/CampaignDetailGeneral/index.js +2 -2
- package/_modules/components/Marketing/CampaignEmail/index.js +155 -12
- package/_modules/components/Marketing/CampaignEmail/styles.js +18 -4
- package/_modules/components/Marketing/CampaignHeader/index.js +11 -1
- package/_modules/components/Marketing/CampaignHeader/styles.js +25 -6
- package/_modules/components/Marketing/CampaignList/index.js +41 -25
- package/_modules/components/Marketing/CampaignNotification/index.js +14 -1
- package/_modules/components/Marketing/CampaignNotification/styles.js +7 -3
- package/_modules/components/Marketing/CampaignSMS/index.js +14 -1
- package/_modules/components/Marketing/CampaignSMS/styles.js +7 -3
- package/_modules/components/Marketing/CampaignWebHook/index.js +13 -1
- package/_modules/components/Marketing/CampaignWebHook/styles.js +7 -3
- package/_modules/components/MyProducts/BoxLayout/index.js +20 -0
- package/_modules/components/MyProducts/BoxLayout/styles.js +22 -0
- package/_modules/components/MyProducts/CustomerApp/index.js +48 -0
- package/_modules/components/MyProducts/CustomerApp/styles.js +25 -0
- package/_modules/components/MyProducts/DriverApp/index.js +69 -0
- package/_modules/components/MyProducts/DriverApp/styles.js +29 -0
- package/_modules/components/MyProducts/OrderingWebsite/index.js +40 -0
- package/_modules/components/MyProducts/OrderingWebsite/styles.js +29 -0
- package/_modules/components/MyProducts/StoreApp/index.js +69 -0
- package/_modules/components/MyProducts/StoreApp/styles.js +29 -0
- package/_modules/components/MyProducts/index.js +33 -0
- package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +4 -4
- package/_modules/components/Orders/OrdersTable/index.js +8 -9
- package/_modules/components/Profile/ProfilePage/index.js +70 -0
- package/_modules/components/Profile/ProfilePage/styles.js +22 -0
- package/_modules/components/Profile/index.js +12 -0
- package/_modules/components/Settings/InsertLink/index.js +3 -2
- package/_modules/components/Settings/PluginList/index.js +31 -1
- package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
- package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +4 -3
- package/_modules/components/SidebarMenu/index.js +82 -55
- package/_modules/components/SidebarMenu/styles.js +3 -1
- package/_modules/components/Stores/BusinessLocation/index.js +1 -1
- package/_modules/components/Stores/BusinessProductAddForm/index.js +4 -4
- package/_modules/components/Stores/BusinessProductsListing/index.js +7 -0
- package/_modules/components/Stores/BusinessWebhooks/index.js +2 -2
- package/_modules/components/Stores/PaymentOption/index.js +23 -4
- package/_modules/components/Stores/PaymentOptionMethods/index.js +23 -4
- package/_modules/components/Stores/PaymentOptionPaypal/index.js +23 -4
- package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +23 -4
- package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +23 -4
- package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +23 -4
- package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +23 -4
- package/_modules/components/Users/CustomerDetails/index.js +8 -10
- package/_modules/components/Users/CustomersListing/index.js +4 -2
- package/_modules/components/Users/OccupationSelector/index.js +48 -0
- package/_modules/components/Users/OccupationSelector/styles.js +16 -0
- package/_modules/components/Users/OccupationsFilter/index.js +49 -0
- package/_modules/components/Users/OccupationsFilter/styles.js +22 -0
- package/_modules/components/Users/ProfessionalDetail/index.js +47 -8
- package/_modules/components/Users/ProfessionalDetail/styles.js +10 -5
- package/_modules/components/Users/ProfessionalList/index.js +43 -6
- package/_modules/components/Users/ProfessionalList/styles.js +5 -3
- package/_modules/components/Users/ProfessionalListing/index.js +14 -3
- package/_modules/components/Users/ProfessionalSchedule/styles.js +1 -1
- package/_modules/components/Users/UserDetails/index.js +11 -13
- package/_modules/components/Users/UserFormDetails/index.js +8 -1
- package/_modules/components/Users/UserTypeSelector/index.js +7 -0
- package/_modules/components/Users/UsersList/index.js +40 -5
- package/_modules/components/Users/UsersList/styles.js +7 -5
- package/_modules/components/Users/UsersListing/index.js +4 -2
- package/_modules/contexts/ThemeContext/index.js +1 -1
- package/_modules/index.js +38 -0
- package/index-template.js +22 -4
- package/package.json +2 -2
- package/src/components/Delivery/UserFormDetails/index.js +8 -10
- package/src/components/Login/LoginForm/index.js +23 -20
- package/src/components/Login/ResetPassword/index.js +283 -0
- package/src/components/Login/ResetPassword/styles.js +215 -0
- package/src/components/Login/index.js +3 -1
- package/src/components/Marketing/CampaignDetail/index.js +0 -1
- package/src/components/Marketing/CampaignDetailContent/index.js +54 -24
- package/src/components/Marketing/CampaignDetailGeneral/index.js +1 -1
- package/src/components/Marketing/CampaignEmail/index.js +152 -15
- package/src/components/Marketing/CampaignEmail/styles.js +64 -3
- package/src/components/Marketing/CampaignHeader/index.js +19 -3
- package/src/components/Marketing/CampaignHeader/styles.js +77 -0
- package/src/components/Marketing/CampaignList/index.js +75 -65
- package/src/components/Marketing/CampaignNotification/index.js +11 -3
- package/src/components/Marketing/CampaignNotification/styles.js +13 -0
- package/src/components/Marketing/CampaignSMS/index.js +11 -2
- package/src/components/Marketing/CampaignSMS/styles.js +13 -0
- package/src/components/Marketing/CampaignWebHook/index.js +11 -2
- package/src/components/Marketing/CampaignWebHook/styles.js +13 -0
- package/src/components/MyProducts/BoxLayout/index.js +25 -0
- package/src/components/MyProducts/BoxLayout/styles.js +78 -0
- package/src/components/MyProducts/CustomerApp/index.js +52 -0
- package/src/components/MyProducts/CustomerApp/styles.js +59 -0
- package/src/components/MyProducts/DriverApp/index.js +83 -0
- package/src/components/MyProducts/DriverApp/styles.js +104 -0
- package/src/components/MyProducts/OrderingWebsite/index.js +41 -0
- package/src/components/MyProducts/OrderingWebsite/styles.js +104 -0
- package/src/components/MyProducts/StoreApp/index.js +83 -0
- package/src/components/MyProducts/StoreApp/styles.js +104 -0
- package/src/components/MyProducts/index.js +11 -0
- package/src/components/OrderingProducts/OrderingProductDetails/index.js +1 -1
- package/src/components/Orders/OrdersTable/index.js +3 -6
- package/src/components/Profile/ProfilePage/index.js +81 -0
- package/src/components/Profile/ProfilePage/styles.js +64 -0
- package/src/components/Profile/index.js +5 -0
- package/src/components/Settings/InsertLink/index.js +6 -2
- package/src/components/Settings/PluginList/index.js +2 -2
- package/src/components/Settings/SettingsSelectUI/index.js +1 -1
- package/src/components/Shared/ColumnAllowSettingPopover/index.js +11 -7
- package/src/components/SidebarMenu/index.js +120 -58
- package/src/components/SidebarMenu/styles.js +7 -0
- package/src/components/Stores/BusinessLocation/index.js +1 -1
- package/src/components/Stores/BusinessProductAddForm/index.js +2 -2
- package/src/components/Stores/BusinessProductsListing/index.js +8 -0
- package/src/components/Stores/BusinessWebhooks/index.js +2 -2
- package/src/components/Stores/PaymentOption/index.js +12 -2
- package/src/components/Stores/PaymentOptionMethods/index.js +12 -2
- package/src/components/Stores/PaymentOptionPaypal/index.js +12 -2
- package/src/components/Stores/PaymentOptionStripeDirect/index.js +12 -2
- package/src/components/Stores/PaymethodOptionPaypalExpress/index.js +12 -2
- package/src/components/Stores/PaymethodOptionStripeConnect/index.js +12 -2
- package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +12 -2
- package/src/components/Users/CustomerDetails/index.js +1 -1
- package/src/components/Users/CustomersListing/index.js +3 -1
- package/src/components/Users/OccupationSelector/index.js +37 -0
- package/src/components/Users/OccupationSelector/styles.js +18 -0
- package/src/components/Users/OccupationsFilter/index.js +50 -0
- package/src/components/Users/OccupationsFilter/styles.js +32 -0
- package/src/components/Users/ProfessionalDetail/index.js +42 -7
- package/src/components/Users/ProfessionalDetail/styles.js +16 -2
- package/src/components/Users/ProfessionalList/index.js +41 -3
- package/src/components/Users/ProfessionalList/styles.js +5 -0
- package/src/components/Users/ProfessionalListing/index.js +14 -1
- package/src/components/Users/ProfessionalSchedule/styles.js +1 -0
- package/src/components/Users/UserDetails/index.js +1 -1
- package/src/components/Users/UserFormDetails/index.js +11 -2
- package/src/components/Users/UserTypeSelector/index.js +6 -0
- package/src/components/Users/UsersList/index.js +44 -8
- package/src/components/Users/UsersList/styles.js +7 -2
- package/src/components/Users/UsersListing/index.js +4 -2
- package/src/contexts/ThemeContext/index.js +4 -0
- package/src/index.js +17 -1
- package/template/app.js +55 -3
- package/template/assets/images/myProducts/customer-app.png +0 -0
- package/template/assets/images/myProducts/driver-app.png +0 -0
- package/template/assets/images/myProducts/ordering-website.png +0 -0
- package/template/assets/images/myProducts/store-app.png +0 -0
- package/template/components/ListenPageChanges/index.js +7 -1
- package/template/config.json +2 -1
- package/template/helmetdata.json +49 -0
- package/template/pages/CustomerApp/index.js +12 -0
- package/template/pages/DriverApp/index.js +12 -0
- package/template/pages/Login/index.js +7 -1
- package/template/pages/OrderingWebsite/index.js +12 -0
- package/template/pages/Professionals/index.js +2 -1
- package/template/pages/Profile/index.js +12 -0
- package/template/pages/ResetPassword/index.js +42 -0
- package/template/pages/StoreApp/index.js +12 -0
|
@@ -30,6 +30,9 @@ var CampaignWebHook = function CampaignWebHook(props) {
|
|
|
30
30
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
31
31
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
32
32
|
t = _useLanguage2[1];
|
|
33
|
+
var _useEvent = (0, _orderingComponentsAdminExternal.useEvent)(),
|
|
34
|
+
_useEvent2 = _slicedToArray(_useEvent, 1),
|
|
35
|
+
events = _useEvent2[0];
|
|
33
36
|
var _useState = (0, _react.useState)({
|
|
34
37
|
open: false,
|
|
35
38
|
content: []
|
|
@@ -101,7 +104,16 @@ var CampaignWebHook = function CampaignWebHook(props) {
|
|
|
101
104
|
handleUpdateContact();
|
|
102
105
|
}
|
|
103
106
|
};
|
|
104
|
-
|
|
107
|
+
var handleGoToPage = function handleGoToPage() {
|
|
108
|
+
events.emit('go_to_page', {
|
|
109
|
+
page: 'integrations'
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.Description, null, t('INTEGRATION_SETTINGS_LINK_DESC', 'You need to have an Integration first, you can do it here:'), " ", /*#__PURE__*/_react.default.createElement("span", {
|
|
113
|
+
onClick: function onClick() {
|
|
114
|
+
return handleGoToPage();
|
|
115
|
+
}
|
|
116
|
+
}, t('INTEGRATIONS', 'Integrations'))), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
105
117
|
name: "title",
|
|
106
118
|
placeholder: t('TITLE', 'Title'),
|
|
107
119
|
defaultValue: (contactState === null || contactState === void 0 ? void 0 : (_contactState$changes7 = contactState.changes) === null || _contactState$changes7 === void 0 ? void 0 : (_contactState$changes8 = _contactState$changes7.contact_data) === null || _contactState$changes8 === void 0 ? void 0 : _contactState$changes8.title) || '',
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.InputWrapper = exports.Container = exports.ButtonWrapper = void 0;
|
|
6
|
+
exports.InputWrapper = exports.Description = exports.Container = exports.ButtonWrapper = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
8
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
11
|
var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
|
|
@@ -15,4 +15,8 @@ var InputWrapper = _styledComponents.default.div(_templateObject2 || (_templateO
|
|
|
15
15
|
});
|
|
16
16
|
exports.InputWrapper = InputWrapper;
|
|
17
17
|
var ButtonWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: sticky;\n top: 100%;\n padding-bottom: 15px;\n\n button {\n margin-top: 20px;\n height: 44px;\n border-radius: 8px;\n }\n"])));
|
|
18
|
-
exports.ButtonWrapper = ButtonWrapper;
|
|
18
|
+
exports.ButtonWrapper = ButtonWrapper;
|
|
19
|
+
var Description = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: 14px;\n margin: 10px 0px;\n span {\n color: ", ";\n cursor: pointer;\n transition: all 0.3s linear;\n &:hover {\n text-decoration: underline;\n }\n }\n"])), function (props) {
|
|
20
|
+
return props.theme.colors.primary;
|
|
21
|
+
});
|
|
22
|
+
exports.Description = Description;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BoxLayout = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
var BoxLayout = function BoxLayout(props) {
|
|
11
|
+
var photo = props.photo,
|
|
12
|
+
title = props.title,
|
|
13
|
+
description = props.description,
|
|
14
|
+
children = props.children;
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
16
|
+
src: photo,
|
|
17
|
+
alt: ""
|
|
18
|
+
}), /*#__PURE__*/_react.default.createElement(_styles.InfoWrapper, null, /*#__PURE__*/_react.default.createElement("h2", null, title), /*#__PURE__*/_react.default.createElement("p", null, description), children));
|
|
19
|
+
};
|
|
20
|
+
exports.BoxLayout = BoxLayout;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.InfoWrapper = exports.Container = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
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
|
+
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
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 7.6px;\n padding: 0px 20px;\n margin-top: 25px;\n > img {\n width: 100%;\n max-height: 650px;\n object-fit: cover;\n }\n\n @media (min-width: 576px) {\n flex-direction: row;\n padding: 0px 40px;\n img {\n width: 40%;\n }\n }\n\n @media (min-width: 1200px) {\n margin-right: 50px;\n ", "\n }\n"])), function (props) {
|
|
14
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: 50px;\n margin-right: 0px;\n "])));
|
|
15
|
+
});
|
|
16
|
+
exports.Container = Container;
|
|
17
|
+
var InfoWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 20px 0px;\n margin-left: 20px;\n ", "\n\n > h2 {\n font-weight: 700;\n font-size: 32px;\n line-height: 48px;\n margin-top: 0px;\n margin-bottom: 7px;\n text-transform: capitalize;\n }\n\n > p {\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n margin-top: 0px;\n margin-bottom: 30px;\n }\n\n @media (min-width: 576px) {\n margin-left: 45px;\n ", "\n }\n\n @media (min-width: 1440px) {\n > h2 {\n font-size: 36px;\n }\n > p {\n font-size: 18px;\n }\n }\n"])), function (props) {
|
|
18
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-right: 20px;\n margin-left: 0px;\n "])));
|
|
19
|
+
}, function (props) {
|
|
20
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 45px;\n margin-left: 0px;\n "])));
|
|
21
|
+
});
|
|
22
|
+
exports.InfoWrapper = InfoWrapper;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CustomerApp = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
|
+
var _InfoShareContext = require("../../../contexts/InfoShareContext");
|
|
10
|
+
var _styles = require("../../../styles");
|
|
11
|
+
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
12
|
+
var _styledComponents = require("styled-components");
|
|
13
|
+
var _styles2 = require("./styles");
|
|
14
|
+
var _BoxLayout = require("../BoxLayout");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
var CustomerApp = function CustomerApp() {
|
|
23
|
+
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
24
|
+
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
25
|
+
t = _useLanguage2[1];
|
|
26
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
27
|
+
var _useInfoShare = (0, _InfoShareContext.useInfoShare)(),
|
|
28
|
+
_useInfoShare2 = _slicedToArray(_useInfoShare, 2),
|
|
29
|
+
isCollapse = _useInfoShare2[0].isCollapse,
|
|
30
|
+
handleMenuCollapse = _useInfoShare2[1].handleMenuCollapse;
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderTitleContainer, null, isCollapse && /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
32
|
+
color: "black",
|
|
33
|
+
onClick: function onClick() {
|
|
34
|
+
return handleMenuCollapse(false);
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.List, null)), /*#__PURE__*/_react.default.createElement("h1", null, t('MY_PRODUCTS', 'My products'))), /*#__PURE__*/_react.default.createElement(_styles2.ContentWrapper, null, /*#__PURE__*/_react.default.createElement(_BoxLayout.BoxLayout, {
|
|
37
|
+
title: t('CUSTOMER_APP', 'Customer app'),
|
|
38
|
+
photo: theme.images.myProducts.customerApp,
|
|
39
|
+
description: t('CUSTOMER_APP_DESC', 'Give your customers the chance to order from their mobile devices wherever they are, receive push notifications, offers, and much more.')
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
41
|
+
color: "primary",
|
|
42
|
+
borderRadius: "8px",
|
|
43
|
+
onClick: function onClick() {
|
|
44
|
+
return window.open('https://www.ordering.co/ordering-sales', '_blank');
|
|
45
|
+
}
|
|
46
|
+
}, t('REQUEST_APP_NOW', 'Request app now'))))));
|
|
47
|
+
};
|
|
48
|
+
exports.CustomerApp = CustomerApp;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.HeaderTitleContainer = exports.ContentWrapper = exports.Container = exports.ButtonWrapper = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
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
|
+
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
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n padding: 25px 20px;\n box-sizing: border-box;\n transition: all 0.5s;\n max-height: 100vh;\n overflow: auto;\n min-height: 100vh;\n"])));
|
|
14
|
+
exports.Container = Container;
|
|
15
|
+
var HeaderTitleContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > h1 {\n font-weight: 700;\n font-size: 20px;\n color: ", ";\n margin: 0px;\n line-height: 32px;\n }\n\n > button {\n ", "\n\n svg {\n width: 25px;\n height: 25px;\n }\n }\n"])), function (props) {
|
|
16
|
+
return props.theme.colors.headingColor;
|
|
17
|
+
}, function (props) {
|
|
18
|
+
var _props$theme;
|
|
19
|
+
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 8px;\n margin-right: -8px;\n "]))) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-right: 8px;\n margin-left: -8px;\n "])));
|
|
20
|
+
});
|
|
21
|
+
exports.HeaderTitleContainer = HeaderTitleContainer;
|
|
22
|
+
var ContentWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n height: calc(100% - 32px);\n display: flex;\n align-items: center;\n"])));
|
|
23
|
+
exports.ContentWrapper = ContentWrapper;
|
|
24
|
+
var ButtonWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n button {\n width: 100%;\n height: 44px;\n text-transform: capitalize;\n }\n\n @media(min-width: 576px) {\n button {\n width: 260px;\n }\n }\n"])));
|
|
25
|
+
exports.ButtonWrapper = ButtonWrapper;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DriverApp = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
|
+
var _InfoShareContext = require("../../../contexts/InfoShareContext");
|
|
10
|
+
var _styles = require("../../../styles");
|
|
11
|
+
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
12
|
+
var _styledComponents = require("styled-components");
|
|
13
|
+
var _BoxLayout = require("../BoxLayout");
|
|
14
|
+
var _styles2 = require("./styles");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
var DriverApp = function DriverApp() {
|
|
23
|
+
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
24
|
+
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
25
|
+
t = _useLanguage2[1];
|
|
26
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
27
|
+
var _useInfoShare = (0, _InfoShareContext.useInfoShare)(),
|
|
28
|
+
_useInfoShare2 = _slicedToArray(_useInfoShare, 2),
|
|
29
|
+
isCollapse = _useInfoShare2[0].isCollapse,
|
|
30
|
+
handleMenuCollapse = _useInfoShare2[1].handleMenuCollapse;
|
|
31
|
+
var handleOpenURL = function handleOpenURL(url) {
|
|
32
|
+
window.open(url, '_blank');
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderTitleContainer, null, isCollapse && /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
35
|
+
color: "black",
|
|
36
|
+
onClick: function onClick() {
|
|
37
|
+
return handleMenuCollapse(false);
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.List, null)), /*#__PURE__*/_react.default.createElement("h1", null, t('MY_PRODUCTS', 'My products'))), /*#__PURE__*/_react.default.createElement(_styles2.ContentWrapper, null, /*#__PURE__*/_react.default.createElement("h1", null, t('DRIVER_APP', 'Driver app')), /*#__PURE__*/_react.default.createElement("p", null, t('DRIVER_APP_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.')), /*#__PURE__*/_react.default.createElement(_BoxLayout.BoxLayout, {
|
|
40
|
+
title: t('FREE_TO_USE', 'Free to use'),
|
|
41
|
+
description: t('FREE_TO_USE_DESC', 'This app can be used by your fleet with the ordering.co logo.'),
|
|
42
|
+
photo: theme.images.myProducts.driverApp
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.FreeBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
44
|
+
color: "primary",
|
|
45
|
+
borderRadius: "8px",
|
|
46
|
+
outline: true,
|
|
47
|
+
onClick: function onClick() {
|
|
48
|
+
return handleOpenURL('https://apps.apple.com/us/app/driver-app-2-0/id1606257815');
|
|
49
|
+
}
|
|
50
|
+
}, t('DOWNLOAD_APPLE', 'Download apple')), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
51
|
+
color: "primary",
|
|
52
|
+
borderRadius: "8px",
|
|
53
|
+
outline: true,
|
|
54
|
+
onClick: function onClick() {
|
|
55
|
+
return handleOpenURL('https://play.google.com/store/apps/details?id=com.ordering.deliveryv5');
|
|
56
|
+
}
|
|
57
|
+
}, t('DOWNLOAD_GOOGLE', 'Download google')))), /*#__PURE__*/_react.default.createElement(_BoxLayout.BoxLayout, {
|
|
58
|
+
title: t('BRANDED_BY_YOU', 'Branded by you'),
|
|
59
|
+
description: t('BRANDED_BY_YOU_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Id mi quam aenean in faucibus ac integer libero. Eu egestas sit imperdiet at sit adipiscing ullamcorper sed sit.'),
|
|
60
|
+
photo: theme.images.myProducts.driverApp
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.BrandedBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
62
|
+
color: "primary",
|
|
63
|
+
borderRadius: "8px",
|
|
64
|
+
onClick: function onClick() {
|
|
65
|
+
return handleOpenURL('https://www.ordering.co/ordering-sales');
|
|
66
|
+
}
|
|
67
|
+
}, t('REQUEST_APP_NOW', 'Request app now'))))));
|
|
68
|
+
};
|
|
69
|
+
exports.DriverApp = DriverApp;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.HeaderTitleContainer = exports.FreeBtnWrapper = exports.ContentWrapper = exports.Container = exports.BrandedBtnWrapper = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
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
|
+
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
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n padding: 25px 20px;\n box-sizing: border-box;\n transition: all 0.5s;\n max-height: 100vh;\n overflow: auto;\n min-height: 100vh;\n"])));
|
|
14
|
+
exports.Container = Container;
|
|
15
|
+
var HeaderTitleContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > h1 {\n font-weight: 700;\n font-size: 20px;\n color: ", ";\n margin: 0px;\n line-height: 32px;\n }\n\n > button {\n ", "\n\n svg {\n width: 25px;\n height: 25px;\n }\n }\n"])), function (props) {
|
|
16
|
+
return props.theme.colors.headingColor;
|
|
17
|
+
}, function (props) {
|
|
18
|
+
var _props$theme;
|
|
19
|
+
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 8px;\n margin-right: -8px;\n "]))) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-right: 8px;\n margin-left: -8px;\n "])));
|
|
20
|
+
});
|
|
21
|
+
exports.HeaderTitleContainer = HeaderTitleContainer;
|
|
22
|
+
var ContentWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: 27px;\n\n > h1 {\n font-weight: 700;\n font-size: 32px;\n line-height: 48px;\n margin-top: 0px;\n margin-bottom: 7px;\n }\n\n > p {\n margin: 0px;\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n }\n"])));
|
|
23
|
+
exports.ContentWrapper = ContentWrapper;
|
|
24
|
+
var FreeBtnWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n button {\n width: 100%;\n height: 44px;\n text-transform: capitalize;\n &:first-child {\n margin-bottom: 15px;\n }\n }\n\n @media (min-width: 769px) {\n flex-direction: row;\n button {\n width: 180px;\n &:first-child {\n margin-right: 15px;\n margin-bottom: 0px;\n ", "\n }\n }\n }\n\n @media (min-width: 1320px) {\n button {\n width: 260px;\n }\n }\n"])), function (props) {
|
|
25
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right: 0px;\n margin-left: 15px;\n "])));
|
|
26
|
+
});
|
|
27
|
+
exports.FreeBtnWrapper = FreeBtnWrapper;
|
|
28
|
+
var BrandedBtnWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n button {\n width: 100%;\n height: 44px;\n text-transform: capitalize;\n }\n\n @media (min-width: 576px) {\n width: 260px;\n }\n"])));
|
|
29
|
+
exports.BrandedBtnWrapper = BrandedBtnWrapper;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OrderingWebsite = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
|
+
var _InfoShareContext = require("../../../contexts/InfoShareContext");
|
|
10
|
+
var _styles = require("../../../styles");
|
|
11
|
+
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
12
|
+
var _styledComponents = require("styled-components");
|
|
13
|
+
var _styles2 = require("./styles");
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
19
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
var OrderingWebsite = function OrderingWebsite() {
|
|
22
|
+
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
23
|
+
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
24
|
+
t = _useLanguage2[1];
|
|
25
|
+
var _useInfoShare = (0, _InfoShareContext.useInfoShare)(),
|
|
26
|
+
_useInfoShare2 = _slicedToArray(_useInfoShare, 2),
|
|
27
|
+
isCollapse = _useInfoShare2[0].isCollapse,
|
|
28
|
+
handleMenuCollapse = _useInfoShare2[1].handleMenuCollapse;
|
|
29
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderTitleContainer, null, isCollapse && /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
31
|
+
color: "black",
|
|
32
|
+
onClick: function onClick() {
|
|
33
|
+
return handleMenuCollapse(false);
|
|
34
|
+
}
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.List, null)), /*#__PURE__*/_react.default.createElement("h1", null, t('MY_PRODUCTS', 'My products'))), /*#__PURE__*/_react.default.createElement(_styles2.WebsiteWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.InfoWrapper, null, /*#__PURE__*/_react.default.createElement("h1", null, t('ORDERING_WEBSITE', 'Ordering website')), /*#__PURE__*/_react.default.createElement("p", null, t('ORDERING_WEBSITE_DESC', 'This product is included in your project by default.'))), /*#__PURE__*/_react.default.createElement("img", {
|
|
36
|
+
src: theme.images.myProducts.orderingWebsite,
|
|
37
|
+
alt: "ordering-website"
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
exports.OrderingWebsite = OrderingWebsite;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.WebsiteWrapper = exports.InfoWrapper = exports.HeaderTitleContainer = exports.Container = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
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
|
+
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
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n padding: 25px 20px;\n box-sizing: border-box;\n transition: all 0.5s;\n max-height: 100vh;\n overflow: auto;\n"])));
|
|
14
|
+
exports.Container = Container;
|
|
15
|
+
var HeaderTitleContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > h1 {\n font-weight: 700;\n font-size: 20px;\n color: ", ";\n margin: 0px;\n line-height: 32px;\n }\n\n > button {\n ", "\n\n svg {\n width: 25px;\n height: 25px;\n }\n }\n"])), function (props) {
|
|
16
|
+
return props.theme.colors.headingColor;
|
|
17
|
+
}, function (props) {
|
|
18
|
+
var _props$theme;
|
|
19
|
+
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 8px;\n margin-right: -8px;\n "]))) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-right: 8px;\n margin-left: -8px;\n "])));
|
|
20
|
+
});
|
|
21
|
+
exports.HeaderTitleContainer = HeaderTitleContainer;
|
|
22
|
+
var WebsiteWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: 30px;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 7.6px;\n padding: 20px;\n display: flex;\n flex-direction: column;\n\n > img {\n width: 100%;\n margin-top: 20px;\n max-height: 600px;\n object-fit: cover;\n }\n\n @media (min-width: 769px) {\n flex-direction: row;\n padding: 40px;\n\n img {\n margin-top: 0px;\n width: 42%;\n }\n }\n\n @media (min-width: 1200px) {\n img {\n width: 35%;\n }\n margin-right: 50px;\n ", "\n }\n"])), function (props) {
|
|
23
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: 50px;\n margin-right: 0px;\n "])));
|
|
24
|
+
});
|
|
25
|
+
exports.WebsiteWrapper = WebsiteWrapper;
|
|
26
|
+
var InfoWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: center;\n h1 {\n font-weight: 700;\n font-size: 32px;\n line-height: 48px;\n margin-top: 0px;\n margin-bottom: 7px;\n text-transform: capitalize;\n }\n p {\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n margin: 0px;\n }\n\n @media (min-width: 769px) {\n margin-right: 40px;\n ", "\n }\n"])), function (props) {
|
|
27
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-left: 40px;\n margin-right: 0px;\n "])));
|
|
28
|
+
});
|
|
29
|
+
exports.InfoWrapper = InfoWrapper;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StoreApp = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
|
+
var _InfoShareContext = require("../../../contexts/InfoShareContext");
|
|
10
|
+
var _styles = require("../../../styles");
|
|
11
|
+
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
12
|
+
var _styledComponents = require("styled-components");
|
|
13
|
+
var _BoxLayout = require("../BoxLayout");
|
|
14
|
+
var _styles2 = require("./styles");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
var StoreApp = function StoreApp() {
|
|
23
|
+
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
24
|
+
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
25
|
+
t = _useLanguage2[1];
|
|
26
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
27
|
+
var _useInfoShare = (0, _InfoShareContext.useInfoShare)(),
|
|
28
|
+
_useInfoShare2 = _slicedToArray(_useInfoShare, 2),
|
|
29
|
+
isCollapse = _useInfoShare2[0].isCollapse,
|
|
30
|
+
handleMenuCollapse = _useInfoShare2[1].handleMenuCollapse;
|
|
31
|
+
var handleOpenURL = function handleOpenURL(url) {
|
|
32
|
+
window.open(url, '_blank');
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderTitleContainer, null, isCollapse && /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
35
|
+
color: "black",
|
|
36
|
+
onClick: function onClick() {
|
|
37
|
+
return handleMenuCollapse(false);
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.List, null)), /*#__PURE__*/_react.default.createElement("h1", null, t('MY_PRODUCTS', 'My products'))), /*#__PURE__*/_react.default.createElement(_styles2.ContentWrapper, null, /*#__PURE__*/_react.default.createElement("h1", null, t('STORE_APP', 'Store app')), /*#__PURE__*/_react.default.createElement("p", null, t('STORE_APP_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.')), /*#__PURE__*/_react.default.createElement(_BoxLayout.BoxLayout, {
|
|
40
|
+
title: t('FREE_TO_USE', 'Free to use'),
|
|
41
|
+
description: t('FREE_TO_USE_DESC', 'This app can be used by your fleet with the ordering.co logo.'),
|
|
42
|
+
photo: theme.images.myProducts.storeApp
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.FreeBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
44
|
+
color: "primary",
|
|
45
|
+
borderRadius: "8px",
|
|
46
|
+
outline: true,
|
|
47
|
+
onClick: function onClick() {
|
|
48
|
+
return handleOpenURL('https://apps.apple.com/us/app/store-app-2-0/id1608192050');
|
|
49
|
+
}
|
|
50
|
+
}, t('DOWNLOAD_APPLE', 'Download apple')), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
51
|
+
color: "primary",
|
|
52
|
+
borderRadius: "8px",
|
|
53
|
+
outline: true,
|
|
54
|
+
onClick: function onClick() {
|
|
55
|
+
return handleOpenURL('https://play.google.com/store/apps/details?id=com.ordering.storeappv5&pli=1');
|
|
56
|
+
}
|
|
57
|
+
}, t('DOWNLOAD_GOOGLE', 'Download google')))), /*#__PURE__*/_react.default.createElement(_BoxLayout.BoxLayout, {
|
|
58
|
+
title: t('BRANDED_BY_YOU', 'Branded by you'),
|
|
59
|
+
description: t('BRANDED_BY_YOU_DESC', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Id mi quam aenean in faucibus ac integer libero. Eu egestas sit imperdiet at sit adipiscing ullamcorper sed sit.'),
|
|
60
|
+
photo: theme.images.myProducts.storeApp
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.BrandedBtnWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
62
|
+
color: "primary",
|
|
63
|
+
borderRadius: "8px",
|
|
64
|
+
onClick: function onClick() {
|
|
65
|
+
return handleOpenURL('https://www.ordering.co/ordering-sales');
|
|
66
|
+
}
|
|
67
|
+
}, t('REQUEST_APP_NOW', 'Request app now'))))));
|
|
68
|
+
};
|
|
69
|
+
exports.StoreApp = StoreApp;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.HeaderTitleContainer = exports.FreeBtnWrapper = exports.ContentWrapper = exports.Container = exports.BrandedBtnWrapper = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
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
|
+
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
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n padding: 25px 20px;\n box-sizing: border-box;\n transition: all 0.5s;\n max-height: 100vh;\n overflow: auto;\n min-height: 100vh;\n"])));
|
|
14
|
+
exports.Container = Container;
|
|
15
|
+
var HeaderTitleContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n > h1 {\n font-weight: 700;\n font-size: 20px;\n color: ", ";\n margin: 0px;\n line-height: 32px;\n }\n\n > button {\n ", "\n\n svg {\n width: 25px;\n height: 25px;\n }\n }\n"])), function (props) {
|
|
16
|
+
return props.theme.colors.headingColor;
|
|
17
|
+
}, function (props) {
|
|
18
|
+
var _props$theme;
|
|
19
|
+
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 8px;\n margin-right: -8px;\n "]))) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-right: 8px;\n margin-left: -8px;\n "])));
|
|
20
|
+
});
|
|
21
|
+
exports.HeaderTitleContainer = HeaderTitleContainer;
|
|
22
|
+
var ContentWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: 27px;\n\n > h1 {\n font-weight: 700;\n font-size: 32px;\n line-height: 48px;\n margin-top: 0px;\n margin-bottom: 7px;\n }\n\n > p {\n margin: 0px;\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n }\n"])));
|
|
23
|
+
exports.ContentWrapper = ContentWrapper;
|
|
24
|
+
var FreeBtnWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n button {\n width: 100%;\n height: 44px;\n text-transform: capitalize;\n &:first-child {\n margin-bottom: 15px;\n }\n }\n\n @media (min-width: 769px) {\n flex-direction: row;\n button {\n width: 180px;\n &:first-child {\n margin-right: 15px;\n margin-bottom: 0px;\n ", "\n }\n }\n }\n\n @media (min-width: 1320px) {\n button {\n width: 260px;\n }\n }\n"])), function (props) {
|
|
25
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right: 0px;\n margin-left: 15px;\n "])));
|
|
26
|
+
});
|
|
27
|
+
exports.FreeBtnWrapper = FreeBtnWrapper;
|
|
28
|
+
var BrandedBtnWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n button {\n width: 100%;\n height: 44px;\n text-transform: capitalize;\n }\n\n @media (min-width: 576px) {\n width: 260px;\n }\n"])));
|
|
29
|
+
exports.BrandedBtnWrapper = BrandedBtnWrapper;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "CustomerApp", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _CustomerApp.CustomerApp;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DriverApp", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _DriverApp.DriverApp;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "OrderingWebsite", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _OrderingWebsite.OrderingWebsite;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "StoreApp", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _StoreApp.StoreApp;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _OrderingWebsite = require("./OrderingWebsite");
|
|
31
|
+
var _CustomerApp = require("./CustomerApp");
|
|
32
|
+
var _StoreApp = require("./StoreApp");
|
|
33
|
+
var _DriverApp = require("./DriverApp");
|
|
@@ -47,10 +47,10 @@ var OrderingProductDetailsUI = function OrderingProductDetailsUI(props) {
|
|
|
47
47
|
var tabs = [{
|
|
48
48
|
key: 'general',
|
|
49
49
|
content: t('GENERAL', 'General')
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
}, {
|
|
51
|
+
key: 'theme',
|
|
52
|
+
content: t('THEME', 'Theme')
|
|
53
|
+
}];
|
|
54
54
|
var moreOptions = [{
|
|
55
55
|
value: 0,
|
|
56
56
|
content: t('DELETE', 'Delete')
|
|
@@ -14,7 +14,6 @@ var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skelet
|
|
|
14
14
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
15
15
|
var _styledComponents = require("styled-components");
|
|
16
16
|
var _Shared = require("../../Shared");
|
|
17
|
-
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
18
17
|
var _styles = require("./styles");
|
|
19
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
19
|
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); }
|
|
@@ -358,15 +357,14 @@ var OrdersTable = function OrdersTable(props) {
|
|
|
358
357
|
}).map(function (column, i) {
|
|
359
358
|
var _allowColumns$column$, _allowColumns$column, _allowColumns$column2, _theme$images$icons, _allowColumns$column3;
|
|
360
359
|
if (column === 'slaBar') {
|
|
361
|
-
return
|
|
362
|
-
key: "noDragTh-".concat(i)
|
|
363
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.Timestatus, null));
|
|
360
|
+
return;
|
|
364
361
|
}
|
|
365
362
|
if (column === 'orderNumber') {
|
|
366
|
-
var _allowColumns$orderNu, _allowColumns$dateTim;
|
|
363
|
+
var _allowColumns$orderNu, _allowColumns$dateTim, _allowColumns$slaBar;
|
|
367
364
|
return /*#__PURE__*/_react.default.createElement("th", {
|
|
368
365
|
className: !(allowColumns !== null && allowColumns !== void 0 && (_allowColumns$orderNu = allowColumns.orderNumber) !== null && _allowColumns$orderNu !== void 0 && _allowColumns$orderNu.visable || allowColumns !== null && allowColumns !== void 0 && (_allowColumns$dateTim = allowColumns.dateTime) !== null && _allowColumns$dateTim !== void 0 && _allowColumns$dateTim.visable) ? 'orderNo small' : 'orderNo',
|
|
369
|
-
key: "noDragTh-".concat(i)
|
|
366
|
+
key: "noDragTh-".concat(i),
|
|
367
|
+
colSpan: allowColumns !== null && allowColumns !== void 0 && (_allowColumns$slaBar = allowColumns.slaBar) !== null && _allowColumns$slaBar !== void 0 && _allowColumns$slaBar.visable ? 2 : 1
|
|
370
368
|
}, /*#__PURE__*/_react.default.createElement(_styles.CheckBox, {
|
|
371
369
|
isChecked: !orderList.loading && isAllChecked,
|
|
372
370
|
onClick: function onClick() {
|
|
@@ -382,7 +380,8 @@ var OrdersTable = function OrdersTable(props) {
|
|
|
382
380
|
}, /*#__PURE__*/_react.default.createElement(_Shared.ColumnAllowSettingPopover, {
|
|
383
381
|
allowColumns: allowColumns,
|
|
384
382
|
optionsDefault: optionsDefault,
|
|
385
|
-
handleChangeAllowColumns: handleChangeAllowColumns
|
|
383
|
+
handleChangeAllowColumns: handleChangeAllowColumns,
|
|
384
|
+
isOrder: true
|
|
386
385
|
}));
|
|
387
386
|
}
|
|
388
387
|
return (column !== 'timer' || column === 'timer' && (groupStatus === 'pending' || groupStatus === 'inProgress')) && /*#__PURE__*/_react.default.createElement(_styles.DragTh, {
|
|
@@ -409,10 +408,10 @@ var OrdersTable = function OrdersTable(props) {
|
|
|
409
408
|
alt: "six dots"
|
|
410
409
|
}), /*#__PURE__*/_react.default.createElement("span", null, (_allowColumns$column3 = allowColumns[column]) === null || _allowColumns$column3 === void 0 ? void 0 : _allowColumns$column3.title)));
|
|
411
410
|
}))), orderList.loading || !allowColumns ? _toConsumableArray(Array(10).keys()).map(function (i) {
|
|
412
|
-
var _allowColumns$
|
|
411
|
+
var _allowColumns$slaBar2, _allowColumns$orderNu2, _allowColumns$dateTim2, _allowColumns$orderNu3, _allowColumns$dateTim3, _allowColumns$status, _allowColumns$busines, _allowColumns$custome, _allowColumns$driver, _allowColumns$deliver, _allowColumns$status2, _allowColumns$advance, _allowColumns$advance2, _allowColumns$advance3, _allowColumns$total;
|
|
413
412
|
return /*#__PURE__*/_react.default.createElement(_styles.OrderTbody, {
|
|
414
413
|
key: i
|
|
415
|
-
}, /*#__PURE__*/_react.default.createElement("tr", null, (allowColumns === null || allowColumns === void 0 ? void 0 : (_allowColumns$
|
|
414
|
+
}, /*#__PURE__*/_react.default.createElement("tr", null, (allowColumns === null || allowColumns === void 0 ? void 0 : (_allowColumns$slaBar2 = allowColumns.slaBar) === null || _allowColumns$slaBar2 === void 0 ? void 0 : _allowColumns$slaBar2.visable) && /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_styles.Timestatus, null)), /*#__PURE__*/_react.default.createElement("td", {
|
|
416
415
|
className: !(allowColumns !== null && allowColumns !== void 0 && (_allowColumns$orderNu2 = allowColumns.orderNumber) !== null && _allowColumns$orderNu2 !== void 0 && _allowColumns$orderNu2.visable || allowColumns !== null && allowColumns !== void 0 && (_allowColumns$dateTim2 = allowColumns.dateTime) !== null && _allowColumns$dateTim2 !== void 0 && _allowColumns$dateTim2.visable) ? 'orderNo small' : 'orderNo'
|
|
417
416
|
}, /*#__PURE__*/_react.default.createElement(_styles.OrderNumberContainer, null, /*#__PURE__*/_react.default.createElement(_styles.CheckBox, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
418
417
|
width: 25,
|