ordering-ui-admin-external 1.8.0 → 1.8.2
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.22db20d62f2d39ead727.js → ordering-ui-admin.6d124ccf494e6442edd6.js} +2 -2
- package/_bundles/{ordering-ui-admin.22db20d62f2d39ead727.js.LICENSE.txt → ordering-ui-admin.6d124ccf494e6442edd6.js.LICENSE.txt} +0 -0
- package/_modules/components/MyProducts/AppLayout/index.js +36 -26
- package/_modules/components/MyProducts/AppLayout/styles.js +12 -15
- package/_modules/components/MyProducts/CallCenterApp/index.js +12 -3
- package/_modules/components/MyProducts/CustomerApp/index.js +21 -4
- package/_modules/components/MyProducts/DriverApp/index.js +23 -6
- package/_modules/components/MyProducts/KioskApp/index.js +21 -5
- package/_modules/components/MyProducts/PosApp/index.js +21 -5
- package/_modules/components/MyProducts/StoreApp/index.js +21 -5
- package/_modules/components/Settings/Settings/index.js +38 -1
- package/_modules/utils/index.js +33 -2
- package/index-template.js +5 -1
- package/package.json +1 -1
- package/src/components/MyProducts/AppLayout/index.js +41 -27
- package/src/components/MyProducts/AppLayout/styles.js +34 -29
- package/src/components/MyProducts/CallCenterApp/index.js +10 -2
- package/src/components/MyProducts/CustomerApp/index.js +14 -3
- package/src/components/MyProducts/DriverApp/index.js +15 -5
- package/src/components/MyProducts/KioskApp/index.js +14 -4
- package/src/components/MyProducts/PosApp/index.js +14 -4
- package/src/components/MyProducts/StoreApp/index.js +14 -4
- package/src/components/Settings/Settings/index.js +39 -1
- package/src/utils/index.js +30 -0
- package/template/assets/images/myProducts/app-store.png +0 -0
- package/template/assets/images/myProducts/driver-app-free.png +0 -0
- package/template/assets/images/myProducts/play-store.png +0 -0
|
File without changes
|
|
@@ -9,7 +9,7 @@ var _orderingComponentsAdminExternal = require("ordering-components-admin-extern
|
|
|
9
9
|
var _InfoShareContext = require("../../../contexts/InfoShareContext");
|
|
10
10
|
var _styles = require("../../../styles");
|
|
11
11
|
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
12
|
-
var
|
|
12
|
+
var _utils = require("../../../utils");
|
|
13
13
|
var _styles2 = require("./styles");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -19,56 +19,66 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
19
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
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
var AppLayout = function AppLayout(props) {
|
|
22
|
-
var appInfo = props.appInfo
|
|
22
|
+
var appInfo = props.appInfo,
|
|
23
|
+
isDriver = props.isDriver;
|
|
23
24
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
24
25
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
25
26
|
t = _useLanguage2[1];
|
|
26
|
-
var theme = (0, _styledComponents.useTheme)();
|
|
27
27
|
var _useInfoShare = (0, _InfoShareContext.useInfoShare)(),
|
|
28
28
|
_useInfoShare2 = _slicedToArray(_useInfoShare, 2),
|
|
29
29
|
isCollapse = _useInfoShare2[0].isCollapse,
|
|
30
30
|
handleMenuCollapse = _useInfoShare2[1].handleMenuCollapse;
|
|
31
|
+
var showMessage = function showMessage(message) {
|
|
32
|
+
(0, _utils.insertIntercom)();
|
|
33
|
+
window.Intercom && window.Intercom('showNewMessage', message);
|
|
34
|
+
};
|
|
31
35
|
return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderTitleContainer, null, isCollapse && /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
32
36
|
color: "black",
|
|
33
37
|
onClick: function onClick() {
|
|
34
38
|
return handleMenuCollapse(false);
|
|
35
39
|
}
|
|
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("h1", null, appInfo.title), /*#__PURE__*/_react.default.createElement("p", null, appInfo.description), /*#__PURE__*/_react.default.createElement(_styles2.BoxWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.AppInfoContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.ImageWrapper,
|
|
40
|
+
}, /*#__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, appInfo.title), /*#__PURE__*/_react.default.createElement("p", null, appInfo.description), /*#__PURE__*/_react.default.createElement(_styles2.BoxWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.AppInfoContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.ImageWrapper, {
|
|
41
|
+
isDriver: isDriver
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
37
43
|
src: appInfo.images.live,
|
|
38
44
|
alt: ""
|
|
39
|
-
})), /*#__PURE__*/_react.default.createElement("h2", null, appInfo.live_title),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
})), /*#__PURE__*/_react.default.createElement("h2", null, appInfo.live_title), (appInfo === null || appInfo === void 0 ? void 0 : appInfo.downloads) && /*#__PURE__*/_react.default.createElement(_styles2.DownLoadWrapper, null, appInfo.downloads.map(function (item) {
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement("img", {
|
|
47
|
+
src: item.icon,
|
|
48
|
+
alt: "",
|
|
49
|
+
key: item.id,
|
|
50
|
+
onClick: function onClick() {
|
|
51
|
+
return window.open(item.link, '_blank');
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
})), (appInfo === null || appInfo === void 0 ? void 0 : appInfo.web_url) && /*#__PURE__*/_react.default.createElement(_styles2.DownloadLink, {
|
|
46
55
|
href: appInfo.web_url,
|
|
47
56
|
target: "_blank",
|
|
48
57
|
isSingle: true,
|
|
49
58
|
className: "download-link"
|
|
50
|
-
}, appInfo.web_link_title)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
}, appInfo.web_link_title), /*#__PURE__*/_react.default.createElement("p", null, appInfo.live_description), (appInfo === null || appInfo === void 0 ? void 0 : appInfo.purchase_message) && /*#__PURE__*/_react.default.createElement(_styles2.ButtonWRapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
60
|
+
color: "primary",
|
|
61
|
+
borderRadius: "8px",
|
|
62
|
+
onClick: function onClick() {
|
|
63
|
+
return showMessage(appInfo === null || appInfo === void 0 ? void 0 : appInfo.purchase_message);
|
|
64
|
+
}
|
|
65
|
+
}, t('PURCHASE_NOW', 'Purchase Now')), (appInfo === null || appInfo === void 0 ? void 0 : appInfo.demo_book_message) && /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
66
|
+
color: "primary",
|
|
67
|
+
outline: true,
|
|
68
|
+
borderRadius: "8px",
|
|
69
|
+
onClick: function onClick() {
|
|
70
|
+
return showMessage(appInfo === null || appInfo === void 0 ? void 0 : appInfo.demo_book_message);
|
|
71
|
+
}
|
|
72
|
+
}, t('BOOK_A_DEMO', 'Book a demo')))), /*#__PURE__*/_react.default.createElement(_styles2.AppInfoContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.ImageWrapper, {
|
|
73
|
+
isDriver: isDriver
|
|
61
74
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
62
|
-
src: theme.images.general.googlePlay,
|
|
63
|
-
alt: "Google play"
|
|
64
|
-
}))))), /*#__PURE__*/_react.default.createElement(_styles2.AppInfoContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.ImageWrapper, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
65
75
|
src: appInfo.images.brand,
|
|
66
76
|
alt: ""
|
|
67
77
|
})), /*#__PURE__*/_react.default.createElement("h2", null, appInfo.brand_title), /*#__PURE__*/_react.default.createElement("p", null, appInfo.brand_description), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWRapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
68
78
|
color: "primary",
|
|
69
79
|
borderRadius: "8px",
|
|
70
80
|
onClick: function onClick() {
|
|
71
|
-
return
|
|
81
|
+
return showMessage(appInfo === null || appInfo === void 0 ? void 0 : appInfo.purchase_message);
|
|
72
82
|
}
|
|
73
83
|
}, t('PURCHASE_NOW', 'Purchase Now')))))));
|
|
74
84
|
};
|
|
@@ -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.ImageWrapper = exports.HeaderTitleContainer = exports.DownloadLink = exports.
|
|
7
|
+
exports.ImageWrapper = exports.HeaderTitleContainer = exports.DownloadLink = exports.DownLoadWrapper = exports.ContentWrapper = exports.Container = exports.ButtonWRapper = exports.BoxWrapper = exports.AppInfoContainer = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
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) } })); }
|
|
@@ -23,19 +23,16 @@ var ContentWrapper = _styledComponents.default.div(_templateObject5 || (_templat
|
|
|
23
23
|
exports.ContentWrapper = ContentWrapper;
|
|
24
24
|
var BoxWrapper = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n @media (min-width: 1024px) {\n flex-direction: row;\n justify-content: space-between;\n }\n"])));
|
|
25
25
|
exports.BoxWrapper = BoxWrapper;
|
|
26
|
-
var AppInfoContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-top: 36px;\n display: flex;\n flex-direction: column;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n padding: 45px 25px;\n\n h2 {\n font-size: 24px;\n margin-top: 0;\n margin-bottom:
|
|
26
|
+
var AppInfoContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-top: 36px;\n display: flex;\n flex-direction: column;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n padding: 45px 25px;\n\n h2 {\n font-size: 24px;\n margin-top: 0;\n margin-bottom: 16px;\n }\n\n p {\n font-size: 14px;\n margin-top: 16px;\n margin-bottom: 0;\n }\n @media (min-width: 1024px) {\n width: calc(50% - 23px);\n h2 {\n font-size: 32px;\n line-height: 48px;\n }\n p {\n font-size: 16px;\n line-height: 24px;\n }\n }\n"])));
|
|
27
27
|
exports.AppInfoContainer = AppInfoContainer;
|
|
28
|
-
var ImageWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n flex: 1;\n margin-bottom: 25px;\n display: flex;\n align-items:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var _props$theme2;
|
|
32
|
-
return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-right: 24px;\n "]))) : (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-left: 24px;\n "])));
|
|
33
|
-
});
|
|
34
|
-
exports.AppStoreLinksWrapper = AppStoreLinksWrapper;
|
|
35
|
-
var DownloadLink = _styledComponents.default.a(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n flex: 1;\n img {\n width: 100%;\n object-fit: cover;\n }\n\n ", "\n"])), function (_ref) {
|
|
36
|
-
var isSingle = _ref.isSingle;
|
|
37
|
-
return isSingle ? (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin: 0 auto;\n text-decoration: underline;\n "]))) : (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n max-width: 200px;\n "])));
|
|
28
|
+
var ImageWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n flex: 1;\n margin-bottom: 25px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n img {\n width: 100%;\n max-width: 430px;\n }\n ", "\n"])), function (_ref) {
|
|
29
|
+
var isDriver = _ref.isDriver;
|
|
30
|
+
return isDriver && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n img {\n max-width: 500px;\n }\n "])));
|
|
38
31
|
});
|
|
32
|
+
exports.ImageWrapper = ImageWrapper;
|
|
33
|
+
var DownloadLink = _styledComponents.default.a(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n text-decoration: underline;\n"])));
|
|
39
34
|
exports.DownloadLink = DownloadLink;
|
|
40
|
-
var ButtonWRapper = _styledComponents.default.div(
|
|
41
|
-
exports.ButtonWRapper = ButtonWRapper;
|
|
35
|
+
var ButtonWRapper = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n padding-top: 15px;\n button {\n height: 44px;\n width: 100%;\n margin-top: 16px;\n }\n\n @media (min-width: 768px) {\n flex-direction: row;\n button {\n width: calc(50% - 10px);\n }\n }\n"])));
|
|
36
|
+
exports.ButtonWRapper = ButtonWRapper;
|
|
37
|
+
var DownLoadWrapper = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n img {\n cursor: pointer;\n &:last-child {\n margin: 0px 15px;\n }\n }\n"])));
|
|
38
|
+
exports.DownLoadWrapper = DownLoadWrapper;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.CallCenterApp = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
10
|
var _styledComponents = require("styled-components");
|
|
10
11
|
var _AppLayout = require("../AppLayout");
|
|
11
|
-
|
|
12
|
+
var _utils = require("../../../utils");
|
|
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); }
|
|
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; }
|
|
12
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
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."); }
|
|
14
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); }
|
|
@@ -33,8 +36,14 @@ var CallCenterApp = function CallCenterApp() {
|
|
|
33
36
|
web_link_title: t('CALL_CENTER', 'Call center'),
|
|
34
37
|
brand_title: t('YOUR_BRANDED_KIOSK', 'Your Branded Kiosk'),
|
|
35
38
|
brand_description: t('CALL_CENTER_BRANDED_DESCRIPTION', 'The Call Center is delivered in less than five working days, fully branded with your guidelines, and ready to be used on any tablet or device you add it to.'),
|
|
36
|
-
|
|
39
|
+
demo_book_message: 'I would like to book a Demo about the Call center , can you assist me?',
|
|
40
|
+
purchase_message: 'I would like to know about the Call center, can you assist me?'
|
|
37
41
|
};
|
|
42
|
+
(0, _react.useEffect)(function () {
|
|
43
|
+
return function () {
|
|
44
|
+
(0, _utils.removeIntercom)();
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
38
47
|
return /*#__PURE__*/_react.default.createElement(_AppLayout.AppLayout, {
|
|
39
48
|
appInfo: appInfo
|
|
40
49
|
});
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.CustomerApp = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
10
|
var _styledComponents = require("styled-components");
|
|
10
11
|
var _AppLayout = require("../AppLayout");
|
|
11
|
-
|
|
12
|
+
var _utils = require("../../../utils");
|
|
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); }
|
|
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; }
|
|
12
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
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."); }
|
|
14
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); }
|
|
@@ -29,11 +32,25 @@ var CustomerApp = function CustomerApp() {
|
|
|
29
32
|
},
|
|
30
33
|
live_title: t('MULTI-STORE-CUSTOMER-APP', 'Multi-store Customer App'),
|
|
31
34
|
live_description: t('FREE_TO_USE_DESCRIPTION', 'This is a branded Ordering.co product. use it with your project, email, and password for free. features might be limited.'),
|
|
32
|
-
|
|
35
|
+
demo_book_message: 'I would like to book a Demo for the customer app , can you assist me?',
|
|
33
36
|
brand_title: t('SINGLE_STORE_CUSTOMER_APP', 'Single Store Customer App'),
|
|
34
37
|
brand_description: t('BRANDED_APP_DESCRIPTION', 'This App is delivered in less than five working days, fully branded with your guidelines, removing all ordering.co presence to give your brand more awareness.'),
|
|
35
|
-
|
|
38
|
+
purchase_message: 'I would like to know about the customer app, can you assist me?',
|
|
39
|
+
downloads: [{
|
|
40
|
+
id: 1,
|
|
41
|
+
icon: theme.images.myProducts.appStoreSmall,
|
|
42
|
+
link: 'https://apps.apple.com/us/app/customer-app-2-0/id1607414555'
|
|
43
|
+
}, {
|
|
44
|
+
id: 2,
|
|
45
|
+
icon: theme.images.myProducts.playStoreSmall,
|
|
46
|
+
link: 'https://play.google.com/store/apps/details?id=com.ordering.onlineorderingappv5&hl=en&gl=US'
|
|
47
|
+
}]
|
|
36
48
|
};
|
|
49
|
+
(0, _react.useEffect)(function () {
|
|
50
|
+
return function () {
|
|
51
|
+
(0, _utils.removeIntercom)();
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
37
54
|
return /*#__PURE__*/_react.default.createElement(_AppLayout.AppLayout, {
|
|
38
55
|
appInfo: appInfo
|
|
39
56
|
});
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.DriverApp = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
10
|
var _styledComponents = require("styled-components");
|
|
10
11
|
var _AppLayout = require("../AppLayout");
|
|
11
|
-
|
|
12
|
+
var _utils = require("../../../utils");
|
|
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); }
|
|
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; }
|
|
12
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
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."); }
|
|
14
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); }
|
|
@@ -29,14 +32,28 @@ var DriverApp = function DriverApp() {
|
|
|
29
32
|
},
|
|
30
33
|
live_title: t('FREE_TO_USE', 'Free to use'),
|
|
31
34
|
live_description: t('FREE_TO_USE_DESCRIPTION', 'This is a branded Ordering.co product. use it with your project, email, and password for free. features might be limited.'),
|
|
32
|
-
apple_store_link: 'https://apps.apple.com/us/app/driver-app-2-0/id1606257815',
|
|
33
|
-
google_play_link: 'https://play.google.com/store/apps/details?id=com.ordering.deliveryv5',
|
|
34
35
|
brand_title: t('YOUR_BRANDED_APP', 'Your Branded App'),
|
|
35
36
|
brand_description: t('BRANDED_APP_DESCRIPTION', 'This App is delivered in less than five working days, fully branded with your guidelines, removing all ordering.co presence to give your brand more awareness.'),
|
|
36
|
-
|
|
37
|
+
demo_book_message: 'I would like to book a Demo about the Driver app , can you assist me?',
|
|
38
|
+
purchase_message: 'I would like to know about the Driver app, can you assist me?',
|
|
39
|
+
downloads: [{
|
|
40
|
+
id: 1,
|
|
41
|
+
icon: theme.images.myProducts.appStoreSmall,
|
|
42
|
+
link: 'https://apps.apple.com/us/app/driver-app-2-0/id1606257815'
|
|
43
|
+
}, {
|
|
44
|
+
id: 2,
|
|
45
|
+
icon: theme.images.myProducts.playStoreSmall,
|
|
46
|
+
link: 'https://play.google.com/store/apps/details?id=com.ordering.deliveryv5'
|
|
47
|
+
}]
|
|
37
48
|
};
|
|
49
|
+
(0, _react.useEffect)(function () {
|
|
50
|
+
return function () {
|
|
51
|
+
(0, _utils.removeIntercom)();
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
38
54
|
return /*#__PURE__*/_react.default.createElement(_AppLayout.AppLayout, {
|
|
39
|
-
appInfo: appInfo
|
|
55
|
+
appInfo: appInfo,
|
|
56
|
+
isDriver: true
|
|
40
57
|
});
|
|
41
58
|
};
|
|
42
59
|
exports.DriverApp = DriverApp;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.KioskApp = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
10
|
var _styledComponents = require("styled-components");
|
|
10
11
|
var _AppLayout = require("../AppLayout");
|
|
11
|
-
|
|
12
|
+
var _utils = require("../../../utils");
|
|
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); }
|
|
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; }
|
|
12
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
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."); }
|
|
14
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); }
|
|
@@ -29,12 +32,25 @@ var KioskApp = function KioskApp() {
|
|
|
29
32
|
},
|
|
30
33
|
live_title: t('LIVE_DEMO', 'Live Demo'),
|
|
31
34
|
live_description: t('APP_LIVE_DEMO_DESCRIPTION', 'This is a branded Ordering.co product. play with it and understand how it works'),
|
|
32
|
-
apple_store_link: 'https://apps.apple.com/us/app/ordering-kiosk-2-0/id1609314960',
|
|
33
|
-
google_play_link: 'https://play.google.com/store/apps/details?id=com.ordering.orderingkioskv5&hl=en&gl=US',
|
|
34
35
|
brand_title: t('YOUR_BRANDED_KIOSK', 'Your Branded Kiosk'),
|
|
35
36
|
brand_description: t('KIOSK_BRANDED_DESCRIPTION', 'This App is delivered in less than five working days, fully branded with your guidelines, and ready to be used on any tablet you add it to.'),
|
|
36
|
-
|
|
37
|
+
demo_book_message: 'I would like to book a Demo about the Kiosk app, can you assist me?',
|
|
38
|
+
purchase_message: 'I would like to know about the Kiosk app, can you assist me?',
|
|
39
|
+
downloads: [{
|
|
40
|
+
id: 1,
|
|
41
|
+
icon: theme.images.myProducts.appStoreSmall,
|
|
42
|
+
link: 'https://apps.apple.com/us/app/ordering-kiosk-2-0/id1615828153'
|
|
43
|
+
}, {
|
|
44
|
+
id: 2,
|
|
45
|
+
icon: theme.images.myProducts.playStoreSmall,
|
|
46
|
+
link: 'https://play.google.com/store/apps/details?id=com.ordering.orderingkioskv5&hl=en&gl=US'
|
|
47
|
+
}]
|
|
37
48
|
};
|
|
49
|
+
(0, _react.useEffect)(function () {
|
|
50
|
+
return function () {
|
|
51
|
+
(0, _utils.removeIntercom)();
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
38
54
|
return /*#__PURE__*/_react.default.createElement(_AppLayout.AppLayout, {
|
|
39
55
|
appInfo: appInfo
|
|
40
56
|
});
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.PosApp = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
10
|
var _styledComponents = require("styled-components");
|
|
10
11
|
var _AppLayout = require("../AppLayout");
|
|
11
|
-
|
|
12
|
+
var _utils = require("../../../utils");
|
|
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); }
|
|
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; }
|
|
12
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
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."); }
|
|
14
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); }
|
|
@@ -29,12 +32,25 @@ var PosApp = function PosApp() {
|
|
|
29
32
|
},
|
|
30
33
|
live_title: t('FREE_TO_USE', 'Free to use'),
|
|
31
34
|
live_description: t('FREE_TO_USE_DESCRIPTION', 'This is a branded Ordering.co product. use it with your project, email, and password for free. features might be limited.'),
|
|
32
|
-
apple_store_link: 'https://apps.apple.com/us/app/ordering-pos-2-0/id1609520468',
|
|
33
|
-
google_play_link: 'https://play.google.com/store/apps/details?id=com.ordering.posv5&hl=en&gl=US',
|
|
34
35
|
brand_title: t('YOUR_BRANDED_POS', 'Your Branded POS'),
|
|
35
36
|
brand_description: t('POS_BRANDED_DESCRIPTION', 'The POS is delivered in less than five working days, fully branded with your guidelines, and ready to be used on any tablet or device you add it to.'),
|
|
36
|
-
|
|
37
|
+
demo_book_message: 'I would like to book a Demo about the POS app , can you assist me?',
|
|
38
|
+
purchase_message: 'I would like to know about the POS app, can you assist me?',
|
|
39
|
+
downloads: [{
|
|
40
|
+
id: 1,
|
|
41
|
+
icon: theme.images.myProducts.appStoreSmall,
|
|
42
|
+
link: 'https://apps.apple.com/us/app/ordering-pos-2-0/id1609520468'
|
|
43
|
+
}, {
|
|
44
|
+
id: 2,
|
|
45
|
+
icon: theme.images.myProducts.playStoreSmall,
|
|
46
|
+
link: 'https://play.google.com/store/apps/details?id=com.ordering.posv5&hl=en&gl=US'
|
|
47
|
+
}]
|
|
37
48
|
};
|
|
49
|
+
(0, _react.useEffect)(function () {
|
|
50
|
+
return function () {
|
|
51
|
+
(0, _utils.removeIntercom)();
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
38
54
|
return /*#__PURE__*/_react.default.createElement(_AppLayout.AppLayout, {
|
|
39
55
|
appInfo: appInfo
|
|
40
56
|
});
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.StoreApp = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
10
|
var _styledComponents = require("styled-components");
|
|
10
11
|
var _AppLayout = require("../AppLayout");
|
|
11
|
-
|
|
12
|
+
var _utils = require("../../../utils");
|
|
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); }
|
|
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; }
|
|
12
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
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."); }
|
|
14
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); }
|
|
@@ -29,12 +32,25 @@ var StoreApp = function StoreApp() {
|
|
|
29
32
|
},
|
|
30
33
|
live_title: t('FREE_TO_USE', 'Free to use'),
|
|
31
34
|
live_description: t('FREE_TO_USE_DESCRIPTION', 'This is a branded Ordering.co product. use it with your project, email, and password for free. features might be limited.'),
|
|
32
|
-
|
|
33
|
-
google_play_link: 'https://play.google.com/store/apps/details?id=com.ordering.storeappv5&pli=1',
|
|
35
|
+
demo_book_message: 'I would like to book a Demo about the Store app , can you assist me?',
|
|
34
36
|
brand_title: t('YOUR_BRANDED_APP', 'Your Branded App'),
|
|
35
37
|
brand_description: t('BRANDED_APP_DESCRIPTION', 'This App is delivered in less than five working days, fully branded with your guidelines, removing all ordering.co presence to give your brand more awareness.'),
|
|
36
|
-
|
|
38
|
+
purchase_message: 'I would like to know about the Store app, can you assist me?',
|
|
39
|
+
downloads: [{
|
|
40
|
+
id: 1,
|
|
41
|
+
icon: theme.images.myProducts.appStoreSmall,
|
|
42
|
+
link: 'https://apps.apple.com/us/app/store-app-2-0/id1608192050'
|
|
43
|
+
}, {
|
|
44
|
+
id: 2,
|
|
45
|
+
icon: theme.images.myProducts.playStoreSmall,
|
|
46
|
+
link: 'https://play.google.com/store/apps/details?id=com.ordering.storeappv5&pli=1'
|
|
47
|
+
}]
|
|
37
48
|
};
|
|
49
|
+
(0, _react.useEffect)(function () {
|
|
50
|
+
return function () {
|
|
51
|
+
(0, _utils.removeIntercom)();
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
38
54
|
return /*#__PURE__*/_react.default.createElement(_AppLayout.AppLayout, {
|
|
39
55
|
appInfo: appInfo
|
|
40
56
|
});
|
|
@@ -18,6 +18,7 @@ var _Shared = require("../../Shared");
|
|
|
18
18
|
var _CheckoutFieldsSetting = require("../CheckoutFieldsSetting");
|
|
19
19
|
var _AddressFieldsSetting = require("../AddressFieldsSetting");
|
|
20
20
|
var _LanguageSetting = require("../LanguageSetting");
|
|
21
|
+
var _MultiCountrySettings = require("../MultiCountrySettings");
|
|
21
22
|
var _styles2 = require("./styles");
|
|
22
23
|
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); }
|
|
23
24
|
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; }
|
|
@@ -36,7 +37,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
36
37
|
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; }
|
|
37
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
38
39
|
var SettingsUI = function SettingsUI(props) {
|
|
39
|
-
var _categoryList$categor2, _theme$images, _theme$images$dummies;
|
|
40
|
+
var _configs$multicountry, _categoryList$categor2, _theme$images, _theme$images$dummies;
|
|
40
41
|
var categoryList = props.categoryList,
|
|
41
42
|
settingsType = props.settingsType,
|
|
42
43
|
handChangeConfig = props.handChangeConfig;
|
|
@@ -44,6 +45,10 @@ var SettingsUI = function SettingsUI(props) {
|
|
|
44
45
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
45
46
|
t = _useLanguage2[1];
|
|
46
47
|
var theme = (0, _styledComponents.useTheme)();
|
|
48
|
+
var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
|
|
49
|
+
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
50
|
+
configs = _useConfig2[0].configs;
|
|
51
|
+
var isMulticountryEnabled = configs === null || configs === void 0 ? void 0 : (_configs$multicountry = configs.multicountry) === null || _configs$multicountry === void 0 ? void 0 : _configs$multicountry.value;
|
|
47
52
|
var _useInfoShare = (0, _InfoShareContext.useInfoShare)(),
|
|
48
53
|
_useInfoShare2 = _slicedToArray(_useInfoShare, 2),
|
|
49
54
|
isCollapse = _useInfoShare2[0].isCollapse,
|
|
@@ -62,6 +67,14 @@ var SettingsUI = function SettingsUI(props) {
|
|
|
62
67
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
63
68
|
isOpenSettingDetails = _useState6[0],
|
|
64
69
|
setIsOpenSettingDetails = _useState6[1];
|
|
70
|
+
var _useState7 = (0, _react.useState)(false),
|
|
71
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
72
|
+
openMultiCountrySettings = _useState8[0],
|
|
73
|
+
setOpenMultiCountrySettings = _useState8[1];
|
|
74
|
+
var _useState9 = (0, _react.useState)(0),
|
|
75
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
76
|
+
moveDistance = _useState10[0],
|
|
77
|
+
setMoveDistance = _useState10[1];
|
|
65
78
|
var category;
|
|
66
79
|
if (search) {
|
|
67
80
|
var data = search.substring(1).split('&');
|
|
@@ -94,6 +107,7 @@ var SettingsUI = function SettingsUI(props) {
|
|
|
94
107
|
};
|
|
95
108
|
var handleOpenDescription = function handleOpenDescription(category) {
|
|
96
109
|
setIsOpenSettingDetails(null);
|
|
110
|
+
setOpenMultiCountrySettings(false);
|
|
97
111
|
setIsOpenDescription(true);
|
|
98
112
|
setSelectedCategory(category);
|
|
99
113
|
onBasicSettingsRedirect({
|
|
@@ -103,6 +117,7 @@ var SettingsUI = function SettingsUI(props) {
|
|
|
103
117
|
};
|
|
104
118
|
var handleOpenSettingDetails = function handleOpenSettingDetails(item) {
|
|
105
119
|
setIsOpenDescription(false);
|
|
120
|
+
setOpenMultiCountrySettings(false);
|
|
106
121
|
setSelectedCategory(null);
|
|
107
122
|
setIsOpenSettingDetails(item);
|
|
108
123
|
};
|
|
@@ -178,6 +193,18 @@ var SettingsUI = function SettingsUI(props) {
|
|
|
178
193
|
description: t('ADDRESS_FIELDS_DESC'),
|
|
179
194
|
icon: /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.GeoAltFill, null),
|
|
180
195
|
active: isOpenSettingDetails === 'address'
|
|
196
|
+
})), isMulticountryEnabled && /*#__PURE__*/_react.default.createElement(_styles2.SettingItemWrapper, {
|
|
197
|
+
className: "col-md-4 col-sm-6",
|
|
198
|
+
onClick: function onClick() {
|
|
199
|
+
setIsOpenDescription(false);
|
|
200
|
+
setIsOpenSettingDetails(null);
|
|
201
|
+
setOpenMultiCountrySettings(true);
|
|
202
|
+
}
|
|
203
|
+
}, /*#__PURE__*/_react.default.createElement(_SettingItemUI.SettingItemUI, {
|
|
204
|
+
title: t('MULTI_COUNTRY_SETTINGS', 'Multi country settings'),
|
|
205
|
+
description: t('MULTI_COUNTRY_SETTINGS_DESC', 'Settings according country'),
|
|
206
|
+
icon: /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.GearFill, null),
|
|
207
|
+
active: openMultiCountrySettings
|
|
181
208
|
}))), categoryList.loading ? _toConsumableArray(Array(12).keys()).map(function (i) {
|
|
182
209
|
return /*#__PURE__*/_react.default.createElement(_styles2.SettingItemWrapper, {
|
|
183
210
|
className: "col-md-4 col-sm-6",
|
|
@@ -209,6 +236,16 @@ var SettingsUI = function SettingsUI(props) {
|
|
|
209
236
|
category: selectedCategory,
|
|
210
237
|
onClose: handleBackRedirect,
|
|
211
238
|
onBasicSettingsRedirect: onBasicSettingsRedirect
|
|
239
|
+
})), openMultiCountrySettings && /*#__PURE__*/_react.default.createElement(_Shared.SideBar, {
|
|
240
|
+
defaultSideBarWidth: 500 + moveDistance,
|
|
241
|
+
moveDistance: moveDistance,
|
|
242
|
+
open: openMultiCountrySettings,
|
|
243
|
+
onClose: function onClose() {
|
|
244
|
+
setMoveDistance(0);
|
|
245
|
+
setOpenMultiCountrySettings(false);
|
|
246
|
+
}
|
|
247
|
+
}, /*#__PURE__*/_react.default.createElement(_MultiCountrySettings.MultiCountrySettings, {
|
|
248
|
+
setMoveDistance: setMoveDistance
|
|
212
249
|
})), isOpenSettingDetails && /*#__PURE__*/_react.default.createElement(_Shared.SideBar, {
|
|
213
250
|
sidebarId: "setting-details",
|
|
214
251
|
defaultSideBarWidth: 550,
|
package/_modules/utils/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.widgetURL = exports.verifyDecimals = exports.stringToSlug = exports.sortInputFields = exports.shape = exports.setStorageItem = exports.scrollTo = exports.ribbonValues = exports.reviewCommentList = exports.removeStorageItem = exports.orderRejectCommentList = exports.optimizeImage = exports.getStorageItem = exports.getStarWidth = exports.getSeconds = exports.getMinutes = exports.getIconCard = exports.getHours = exports.getCurrentDiffDays = exports.getAgoMinutes = exports.formatUrlVideo = exports.formatSeconds = exports.firstLetterCapital = exports.fieldsToSort = exports.convertHoursToMinutes = exports.convertHMS = exports.checkSiteUrl = exports.checkPreSiteUrl = exports.capitalize = exports.bytesConverter = exports.DriverTipsOptions = void 0;
|
|
6
|
+
exports.widgetURL = exports.verifyDecimals = exports.stringToSlug = exports.sortInputFields = exports.shape = exports.setStorageItem = exports.scrollTo = exports.ribbonValues = exports.reviewCommentList = exports.removeStorageItem = exports.removeIntercom = exports.orderRejectCommentList = exports.optimizeImage = exports.insertIntercom = exports.getStorageItem = exports.getStarWidth = exports.getSeconds = exports.getMinutes = exports.getIconCard = exports.getHours = exports.getCurrentDiffDays = exports.getAgoMinutes = exports.formatUrlVideo = exports.formatSeconds = exports.firstLetterCapital = exports.fieldsToSort = exports.convertHoursToMinutes = exports.convertHMS = exports.checkSiteUrl = exports.checkPreSiteUrl = exports.capitalize = exports.bytesConverter = exports.DriverTipsOptions = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _FaCcMastercard = _interopRequireDefault(require("@meronex/icons/fa/FaCcMastercard"));
|
|
9
9
|
var _FaCcVisa = _interopRequireDefault(require("@meronex/icons/fa/FaCcVisa"));
|
|
@@ -396,12 +396,43 @@ var checkSiteUrl = function checkSiteUrl(url, fallback) {
|
|
|
396
396
|
return url[(url === null || url === void 0 ? void 0 : url.length) - 1] === '/' ? url : "".concat(url, "/");
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Function to insert intercom script dynamically
|
|
401
|
+
*/
|
|
402
|
+
exports.checkSiteUrl = checkSiteUrl;
|
|
403
|
+
var insertIntercom = function insertIntercom() {
|
|
404
|
+
if (document.getElementById('intercom-sdk')) return;
|
|
405
|
+
var script = document.createElement('script');
|
|
406
|
+
script.async = true;
|
|
407
|
+
script.id = 'intercom-sdk';
|
|
408
|
+
script.defer = true;
|
|
409
|
+
script.innerHTML = 'window.intercomSettings = { api_base: \'https://api-iam.intercom.io\', app_id: \'o912y2nt\' };(function () { var w = window; var ic = w.Intercom; if (typeof ic === \'function\') { ic(\'reattach_activator\'); ic(\'update\', w.intercomSettings) } else { var d = document; var i = function () { i.c(arguments) }; i.q = []; i.c = function (args) { i.q.push(args) }; w.Intercom = i; var l = function () { var s = d.createElement(\'script\'); s.type = \'text/javascript\'; s.async = true; s.src = \'https://widget.intercom.io/widget/o912y2nt\'; var x = d.getElementsByTagName(\'script\')[0]; x.parentNode.insertBefore(s, x) }; if (document.readyState === \'complete\') { l() } else if (w.attachEvent) { w.attachEvent(\'onload\', l) } else { w.addEventListener(\'load\', l, false) } } })();';
|
|
410
|
+
document.body.appendChild(script);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Function to remove intercom script dynamically
|
|
415
|
+
*/
|
|
416
|
+
exports.insertIntercom = insertIntercom;
|
|
417
|
+
var removeIntercom = function removeIntercom() {
|
|
418
|
+
var intercomSDK = document.getElementById('intercom-sdk');
|
|
419
|
+
var intercomContainer = document.getElementById('intercom-container');
|
|
420
|
+
var intercomFrame = document.getElementById('intercom-frame');
|
|
421
|
+
var intercomLightWeight = document.querySelector('.intercom-lightweight-app');
|
|
422
|
+
intercomSDK && document.body.removeChild(intercomSDK);
|
|
423
|
+
intercomContainer && document.body.removeChild(intercomContainer);
|
|
424
|
+
intercomFrame && document.body.removeChild(intercomFrame);
|
|
425
|
+
intercomLightWeight && document.body.removeChild(intercomLightWeight);
|
|
426
|
+
window.Intercom = null;
|
|
427
|
+
window.intercomSettings = null;
|
|
428
|
+
};
|
|
429
|
+
|
|
399
430
|
/**
|
|
400
431
|
* function to manage review comment list
|
|
401
432
|
* @param {number} param0 type of reviews to return
|
|
402
433
|
* @returns object with reviews dictionary
|
|
403
434
|
*/
|
|
404
|
-
exports.
|
|
435
|
+
exports.removeIntercom = removeIntercom;
|
|
405
436
|
var reviewCommentList = function reviewCommentList(type) {
|
|
406
437
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
407
438
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|