ordering-ui-admin-external 1.8.5 → 1.10.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.66a745752c35fb204c80.js → ordering-ui-admin.e741ec718656ba6908ef.js} +2 -2
- package/_bundles/{ordering-ui-admin.66a745752c35fb204c80.js.LICENSE.txt → ordering-ui-admin.e741ec718656ba6908ef.js.LICENSE.txt} +0 -0
- package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +2 -1
- package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +2 -1
- package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +23 -5
- package/_modules/components/Delivery/DriversGroupDetails/index.js +6 -9
- package/_modules/components/Delivery/UsersList/index.js +2 -1
- package/_modules/components/MyProducts/OrderingWebsite/index.js +50 -8
- package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +2 -1
- package/_modules/components/Orders/OrderBill/index.js +17 -17
- package/_modules/components/Profile/ProfilePage/index.js +3 -1
- package/_modules/components/Profile/ProfilePage/styles.js +23 -6
- package/_modules/components/Settings/Deliverect/index.js +103 -0
- package/_modules/components/Settings/Deliverect/styles.js +115 -0
- package/_modules/components/Settings/DoordashConnect/index.js +1 -1
- package/_modules/components/Settings/IntegrationListing/index.js +41 -2
- package/_modules/components/Settings/IntegrationListing/styles.js +7 -4
- package/_modules/components/Settings/ItsaCheckmate/index.js +112 -0
- package/_modules/components/Settings/ItsaCheckmate/styles.js +118 -0
- package/_modules/components/Settings/PickerExpress/index.js +178 -0
- package/_modules/components/Settings/PickerExpress/styles.js +111 -0
- package/_modules/components/Settings/index.js +8 -1
- package/_modules/components/Shared/Modal/styles.js +1 -1
- package/_modules/components/SidebarMenu/index.js +14 -1
- package/_modules/components/SidebarMenu/styles.js +9 -3
- package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +95 -0
- package/_modules/components/Stores/BusinessAdd/BusinessDetails/styles.js +43 -0
- package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +233 -0
- package/_modules/components/Stores/BusinessAdd/DeliveryZone/styles.js +40 -0
- package/_modules/components/Stores/BusinessAdd/Images/index.js +181 -0
- package/_modules/components/Stores/BusinessAdd/Images/styles.js +42 -0
- package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +53 -0
- package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/styles.js +31 -0
- package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +43 -0
- package/_modules/components/Stores/BusinessAdd/OtherDetails/styles.js +25 -0
- package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +48 -0
- package/_modules/components/Stores/BusinessAdd/PaymentMethods/styles.js +31 -0
- package/_modules/components/Stores/BusinessAdd/Photos/index.js +174 -0
- package/_modules/components/Stores/BusinessAdd/Photos/styles.js +46 -0
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +48 -0
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/styles.js +24 -0
- package/_modules/components/Stores/BusinessAdd/Schedule/index.js +31 -0
- package/_modules/components/Stores/BusinessAdd/Schedule/styles.js +14 -0
- package/_modules/components/Stores/BusinessAdd/index.js +170 -0
- package/_modules/components/Stores/BusinessAdd/styles.js +29 -0
- package/_modules/components/Stores/BusinessDeliveryDetails/styles.js +1 -1
- package/_modules/components/Stores/BusinessDeliveryPickupMore/index.js +4 -0
- package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
- package/_modules/components/Stores/BusinessPickupDetails/styles.js +1 -1
- package/_modules/components/Stores/BusinessProductAddForm/index.js +5 -5
- package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +1 -6
- package/_modules/components/Stores/BusinessProductsListing/index.js +38 -14
- package/_modules/components/Stores/BusinessesList/index.js +5 -3
- package/_modules/components/Stores/BusinessesListing/index.js +51 -26
- package/_modules/components/Stores/BusinessesListing/styles.js +22 -15
- package/_modules/components/Stores/BusinessesListingHeader/index.js +6 -5
- package/_modules/components/Stores/ProductStartGuide/index.js +69 -0
- package/_modules/components/Stores/ProductStartGuide/styles.js +28 -0
- package/_modules/components/Stores/ProductStep/index.js +92 -0
- package/_modules/components/Stores/ProductStep/styles.js +18 -0
- package/_modules/components/Stores/RestaurantSelectGuide/index.js +104 -0
- package/_modules/components/Stores/RestaurantSelectGuide/styles.js +44 -0
- package/_modules/components/Stores/index.js +36 -1
- package/_modules/components/Users/ProfessionalAddForm/index.js +16 -3
- package/_modules/components/Users/ProfessionalList/index.js +2 -1
- package/_modules/components/Users/ProfessionalListing/index.js +2 -0
- package/_modules/components/Users/ProfessionalSchedule/Schedule/index.js +36 -0
- package/_modules/components/Users/ProfessionalSchedule/index.js +10 -120
- package/_modules/components/Users/ProfessionalSchedule/styles.js +4 -16
- package/_modules/components/Users/UserFormDetails/index.js +1 -1
- package/_modules/components/Users/UsersList/index.js +5 -4
- package/_modules/components/Users/UsersListingHeader/index.js +5 -2
- package/_modules/components/Users/UsersListingHeader/styles.js +18 -3
- package/_modules/index.js +36 -0
- package/index-template.js +64 -2
- package/package.json +2 -2
- package/src/components/BusinessIntelligence/BusinessReviewList/index.js +1 -0
- package/src/components/BusinessIntelligence/UsersReviewList/index.js +1 -0
- package/src/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +20 -0
- package/src/components/Delivery/DriversGroupDetails/index.js +7 -7
- package/src/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
- package/src/components/Delivery/UsersList/index.js +1 -0
- package/src/components/MyProducts/OrderingWebsite/index.js +45 -3
- package/src/components/OrderingProducts/OrderingProductsListing/index.js +1 -0
- package/src/components/Orders/OrderBill/index.js +20 -22
- package/src/components/Profile/ProfilePage/index.js +16 -2
- package/src/components/Profile/ProfilePage/styles.js +67 -1
- package/src/components/Settings/Deliverect/index.js +149 -0
- package/src/components/Settings/Deliverect/styles.js +344 -0
- package/src/components/Settings/DoordashConnect/index.js +1 -1
- package/src/components/Settings/IntegrationListing/index.js +47 -13
- package/src/components/Settings/IntegrationListing/styles.js +7 -1
- package/src/components/Settings/ItsaCheckmate/index.js +170 -0
- package/src/components/Settings/ItsaCheckmate/styles.js +366 -0
- package/src/components/Settings/PickerExpress/index.js +222 -0
- package/src/components/Settings/PickerExpress/styles.js +330 -0
- package/src/components/Settings/index.js +3 -1
- package/src/components/Shared/Modal/styles.js +1 -1
- package/src/components/SidebarMenu/index.js +21 -3
- package/src/components/SidebarMenu/styles.js +26 -0
- package/src/components/Stores/BusinessAdd/BusinessDetails/index.js +106 -0
- package/src/components/Stores/BusinessAdd/BusinessDetails/styles.js +107 -0
- package/src/components/Stores/BusinessAdd/DeliveryZone/index.js +250 -0
- package/src/components/Stores/BusinessAdd/DeliveryZone/styles.js +101 -0
- package/src/components/Stores/BusinessAdd/Images/index.js +168 -0
- package/src/components/Stores/BusinessAdd/Images/styles.js +94 -0
- package/src/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +43 -0
- package/src/components/Stores/BusinessAdd/OrderTypePriceLevel/styles.js +70 -0
- package/src/components/Stores/BusinessAdd/OtherDetails/index.js +51 -0
- package/src/components/Stores/BusinessAdd/OtherDetails/styles.js +49 -0
- package/src/components/Stores/BusinessAdd/PaymentMethods/index.js +39 -0
- package/src/components/Stores/BusinessAdd/PaymentMethods/styles.js +46 -0
- package/src/components/Stores/BusinessAdd/Photos/index.js +156 -0
- package/src/components/Stores/BusinessAdd/Photos/styles.js +108 -0
- package/src/components/Stores/BusinessAdd/ReceiveOrders/index.js +46 -0
- package/src/components/Stores/BusinessAdd/ReceiveOrders/styles.js +69 -0
- package/src/components/Stores/BusinessAdd/Schedule/index.js +23 -0
- package/src/components/Stores/BusinessAdd/Schedule/styles.js +14 -0
- package/src/components/Stores/BusinessAdd/index.js +184 -0
- package/src/components/Stores/BusinessAdd/styles.js +85 -0
- package/src/components/Stores/BusinessDeliveryDetails/styles.js +1 -0
- package/src/components/Stores/BusinessDeliveryPickupMore/index.js +9 -1
- package/src/components/Stores/BusinessDeliveryZoneInformation/index.js +8 -10
- package/src/components/Stores/BusinessPickupDetails/styles.js +1 -0
- package/src/components/Stores/BusinessProductAddForm/index.js +13 -11
- package/src/components/Stores/BusinessProductsCategoyInfo/index.js +4 -7
- package/src/components/Stores/BusinessProductsListing/index.js +20 -0
- package/src/components/Stores/BusinessesList/index.js +4 -2
- package/src/components/Stores/BusinessesListing/index.js +101 -67
- package/src/components/Stores/BusinessesListing/styles.js +36 -0
- package/src/components/Stores/BusinessesListingHeader/index.js +58 -51
- package/src/components/Stores/ProductStartGuide/index.js +60 -0
- package/src/components/Stores/ProductStartGuide/styles.js +62 -0
- package/src/components/Stores/ProductStep/index.js +84 -0
- package/src/components/Stores/ProductStep/styles.js +29 -0
- package/src/components/Stores/RestaurantSelectGuide/index.js +119 -0
- package/src/components/Stores/RestaurantSelectGuide/styles.js +150 -0
- package/src/components/Stores/index.js +11 -1
- package/src/components/Users/ProfessionalAddForm/index.js +11 -1
- package/src/components/Users/ProfessionalList/index.js +1 -0
- package/src/components/Users/ProfessionalListing/index.js +2 -0
- package/src/components/Users/ProfessionalSchedule/Schedule/index.js +32 -0
- package/src/components/Users/ProfessionalSchedule/index.js +9 -49
- package/src/components/Users/ProfessionalSchedule/styles.js +0 -49
- package/src/components/Users/UserFormDetails/index.js +1 -1
- package/src/components/Users/UsersList/index.js +4 -2
- package/src/components/Users/UsersListingHeader/index.js +17 -2
- package/src/components/Users/UsersListingHeader/styles.js +59 -0
- package/src/index.js +14 -2
- package/template/app.js +4 -0
- package/template/assets/images/dummies/no-businesses.png +0 -0
- package/template/assets/images/import-menu.png +0 -0
- package/template/assets/images/imported-menu.png +0 -0
- package/template/assets/images/picker-express.png +0 -0
- package/template/components/ListenPageChanges/index.js +1 -0
- package/template/config.json +1 -1
- package/template/helmetdata.json +7 -0
- package/template/pages/BusinessAdd/index.js +11 -0
|
@@ -0,0 +1,178 @@
|
|
|
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.PickerExpress = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
10
|
+
var _styles = require("../../../styles");
|
|
11
|
+
var _Shared = require("../../Shared");
|
|
12
|
+
var _BsArrowRight = _interopRequireDefault(require("@meronex/icons/bs/BsArrowRight"));
|
|
13
|
+
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
14
|
+
var _useWindowSize2 = require("../../../hooks/useWindowSize");
|
|
15
|
+
var _styles2 = require("./styles");
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
+
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; }
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
+
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."); }
|
|
26
|
+
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); }
|
|
27
|
+
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; }
|
|
28
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
29
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
30
|
+
var PickerExpressUI = function PickerExpressUI(props) {
|
|
31
|
+
var actionState = props.actionState,
|
|
32
|
+
onClose = props.onClose;
|
|
33
|
+
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
34
|
+
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
35
|
+
t = _useLanguage2[1];
|
|
36
|
+
var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),
|
|
37
|
+
width = _useWindowSize.width;
|
|
38
|
+
var _useState = (0, _react.useState)({
|
|
39
|
+
open: false,
|
|
40
|
+
content: []
|
|
41
|
+
}),
|
|
42
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
43
|
+
alertState = _useState2[0],
|
|
44
|
+
setAlertState = _useState2[1];
|
|
45
|
+
var _useState3 = (0, _react.useState)({
|
|
46
|
+
open: false,
|
|
47
|
+
content: null,
|
|
48
|
+
handleOnAccept: null
|
|
49
|
+
}),
|
|
50
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
51
|
+
confirm = _useState4[0],
|
|
52
|
+
setConfirm = _useState4[1];
|
|
53
|
+
var _useState5 = (0, _react.useState)(false),
|
|
54
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
55
|
+
settingsOpen = _useState6[0],
|
|
56
|
+
setSettingsOpen = _useState6[1];
|
|
57
|
+
var toggleMainContent = function toggleMainContent() {
|
|
58
|
+
if (width <= 500) {
|
|
59
|
+
document.getElementById('catDescription').style.width = '100vw';
|
|
60
|
+
} else {
|
|
61
|
+
if (settingsOpen && width >= 1000) {
|
|
62
|
+
document.getElementById('catDescription').style.width = '1000px';
|
|
63
|
+
} else {
|
|
64
|
+
document.getElementById('catDescription').style.width = '500px';
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var handleGoToLink = function handleGoToLink(link) {
|
|
69
|
+
window.open(link, '_blank');
|
|
70
|
+
};
|
|
71
|
+
(0, _react.useEffect)(function () {
|
|
72
|
+
if (!(actionState !== null && actionState !== void 0 && actionState.error)) return;
|
|
73
|
+
setAlertState({
|
|
74
|
+
open: true,
|
|
75
|
+
content: actionState === null || actionState === void 0 ? void 0 : actionState.error
|
|
76
|
+
});
|
|
77
|
+
}, [actionState === null || actionState === void 0 ? void 0 : actionState.error]);
|
|
78
|
+
(0, _react.useEffect)(function () {
|
|
79
|
+
if (width < 1000) return;
|
|
80
|
+
if (settingsOpen) {
|
|
81
|
+
document.getElementById('catDescription').style.width = '1000px';
|
|
82
|
+
} else {
|
|
83
|
+
toggleMainContent();
|
|
84
|
+
}
|
|
85
|
+
}, [settingsOpen]);
|
|
86
|
+
(0, _react.useEffect)(function () {
|
|
87
|
+
toggleMainContent();
|
|
88
|
+
}, [width]);
|
|
89
|
+
var LalaMoveConnectDescription = function LalaMoveConnectDescription() {
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement(_styles2.CategoryExtraContent, null, /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
91
|
+
color: "black",
|
|
92
|
+
onClick: function onClick() {
|
|
93
|
+
return setSettingsOpen(false);
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.XLg, null)), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, t('MORE_INFO', 'More Info'))), /*#__PURE__*/_react.default.createElement(_styles2.SettingListConatiner, null, /*#__PURE__*/_react.default.createElement(_Shared.DragScroll, null, /*#__PURE__*/_react.default.createElement(_styles2.Tab, {
|
|
96
|
+
active: true
|
|
97
|
+
}, t('GENERAL', 'General')))), /*#__PURE__*/_react.default.createElement(_styles2.Paragraph, null, /*#__PURE__*/_react.default.createElement("h2", null, t('REQUIREMENTS', 'Requirements')), /*#__PURE__*/_react.default.createElement("p", null, t('PICKER_EXPRESS_CONNECT_REQUIREMENTS', 'For this integration to work you need: \n' + '1.- Picker Express account. \n' + '2.- The advanced logistics module must be active. \n' + '3.- Package of Ordering.'))), /*#__PURE__*/_react.default.createElement(_styles2.Paragraph, null, /*#__PURE__*/_react.default.createElement("h2", null, t('ARTICLE', 'Article')), /*#__PURE__*/_react.default.createElement("p", null, t('PICKER_EXPRESS_CONNECT_ARTICLE', 'To connect with Picker Express, you’ll have to use plugins, put in your Picker Express credentials, connect your Picker Express account, and create a driver company inside this dashboard; follow the next article step by step and get this connected in less than 5 minutes.')), /*#__PURE__*/_react.default.createElement("a", {
|
|
98
|
+
onClick: function onClick() {
|
|
99
|
+
return handleGoToLink(t('PICKER_EXPRESS_CONNECT_ARTICLE_LINK', 'https://support.ordering.co/hc/en-us/articles/10673894748941'));
|
|
100
|
+
}
|
|
101
|
+
}, t('VIEW_ARTICLE', 'View Article'))), /*#__PURE__*/_react.default.createElement(_styles2.Paragraph, null, /*#__PURE__*/_react.default.createElement("h2", null, t('SUPPORT', 'Support')), /*#__PURE__*/_react.default.createElement("p", null, t('PICKER_EXPRESS_CONNECT_SUPPORT', 'Are you having trouble connecting this?')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("a", {
|
|
102
|
+
onClick: function onClick() {
|
|
103
|
+
return handleGoToLink(t('PICKER_EXPRESS_CONNECT_SUPPORT_LINK', 'https://www.ordering.co/contact-ordering'));
|
|
104
|
+
}
|
|
105
|
+
}, t('CONTACT_US', 'Contact us')), "; ", /*#__PURE__*/_react.default.createElement("span", null, t('WE_ARE_HAPPY_TO_HELP', 'we are happy to help.')))), /*#__PURE__*/_react.default.createElement(_styles2.Paragraph, null, /*#__PURE__*/_react.default.createElement("h2", null, t('PRICE_INSTALATION', 'Price and installation time.')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("span", {
|
|
106
|
+
className: "bold"
|
|
107
|
+
}, t('PICKER_EXPRESS_CONNECT_PRICE', '$99 monthly')), " | ", t('PICKER_EXPRESS_CONNECT_INSTALLATION', 'less than 24 hrs to get it installed in your project.'))), /*#__PURE__*/_react.default.createElement(_styles2.PurchaseWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
108
|
+
outline: true,
|
|
109
|
+
color: "primary",
|
|
110
|
+
onClick: function onClick() {
|
|
111
|
+
return handleGoToLink(t('PURCHASE_INTEGRATION_LINK', 'https://www.ordering.co/ordering-sales'));
|
|
112
|
+
}
|
|
113
|
+
}, t('PURCHASE_INTEGRATION', 'Purchase Integration')))));
|
|
114
|
+
};
|
|
115
|
+
return /*#__PURE__*/_react.default.createElement(_styles2.Container, {
|
|
116
|
+
id: "catDescription"
|
|
117
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.PickerExpressContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.DescriptionHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderIcons, null, /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
118
|
+
color: "black",
|
|
119
|
+
onClick: onClose
|
|
120
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.XLg, null)))), /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, t('CONNECT_WITH_PICKER_EXPRESS', 'Connect with Picker Express')), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
121
|
+
color: "lightPrimary"
|
|
122
|
+
}, t('NEW', 'New'))), /*#__PURE__*/_react.default.createElement(_styles2.Description, null, t('CONNECT_WITH_PICKER_EXPRESS_DESCRIPTION', 'If you have already worked with Pickerexpress or are running your business with Pickerexpress and Ordering simultaneously, this integration will help you connect both platforms and assign orders through them, making your job easy and automated.')), /*#__PURE__*/_react.default.createElement(_styles2.AllSetting, {
|
|
123
|
+
onClick: function onClick() {
|
|
124
|
+
return setSettingsOpen(true);
|
|
125
|
+
}
|
|
126
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, t('SETTINGS', 'All settings')), /*#__PURE__*/_react.default.createElement(_BsArrowRight.default, null))), settingsOpen && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, width >= 1000 ? /*#__PURE__*/_react.default.createElement(LalaMoveConnectDescription, null) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
127
|
+
width: "70%",
|
|
128
|
+
height: "90vh",
|
|
129
|
+
open: true,
|
|
130
|
+
padding: "0px",
|
|
131
|
+
onClose: function onClose() {
|
|
132
|
+
return setSettingsOpen(false);
|
|
133
|
+
},
|
|
134
|
+
hideCloseDefault: true
|
|
135
|
+
}, /*#__PURE__*/_react.default.createElement(LalaMoveConnectDescription, null)))), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
|
|
136
|
+
title: t('WEB_APPNAME', 'Ordering'),
|
|
137
|
+
content: alertState.content,
|
|
138
|
+
acceptText: t('ACCEPT', 'Accept'),
|
|
139
|
+
open: alertState.open,
|
|
140
|
+
onClose: function onClose() {
|
|
141
|
+
return setAlertState({
|
|
142
|
+
open: false,
|
|
143
|
+
content: []
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
onAccept: function onAccept() {
|
|
147
|
+
return setAlertState({
|
|
148
|
+
open: false,
|
|
149
|
+
content: []
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
closeOnBackdrop: false
|
|
153
|
+
}), /*#__PURE__*/_react.default.createElement(_Shared.Confirm, {
|
|
154
|
+
title: t('WEB_APPNAME', 'Ordering'),
|
|
155
|
+
content: confirm.content,
|
|
156
|
+
acceptText: t('ACCEPT', 'Accept'),
|
|
157
|
+
open: confirm.open,
|
|
158
|
+
onClose: function onClose() {
|
|
159
|
+
return setConfirm(_objectSpread(_objectSpread({}, confirm), {}, {
|
|
160
|
+
open: false
|
|
161
|
+
}));
|
|
162
|
+
},
|
|
163
|
+
onCancel: function onCancel() {
|
|
164
|
+
return setConfirm(_objectSpread(_objectSpread({}, confirm), {}, {
|
|
165
|
+
open: false
|
|
166
|
+
}));
|
|
167
|
+
},
|
|
168
|
+
onAccept: confirm.handleOnAccept,
|
|
169
|
+
closeOnBackdrop: false
|
|
170
|
+
}));
|
|
171
|
+
};
|
|
172
|
+
var PickerExpress = function PickerExpress(props) {
|
|
173
|
+
var apiKeysProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
174
|
+
UIComponent: PickerExpressUI
|
|
175
|
+
});
|
|
176
|
+
return /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.ApiKeysList, apiKeysProps);
|
|
177
|
+
};
|
|
178
|
+
exports.PickerExpress = PickerExpress;
|
|
@@ -0,0 +1,111 @@
|
|
|
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.Tab = exports.SettingListConatiner = exports.PurchaseWrapper = exports.PickerExpressContainer = exports.Paragraph = exports.HeaderIcons = exports.Header = exports.DropdownButtonWrapper = exports.DescriptionHeader = exports.Description = exports.Container = exports.CategoryExtraContent = exports.ApiKeysListTable = exports.AllSetting = exports.AddNewButton = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36;
|
|
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 PickerExpressContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 26px 20px;\n box-sizing: border-box;\n width: 100%;\n overflow-x: hidden;\n position: relative;\n\n @media (min-width: 768px) {\n padding: 26px 40px;\n }\n"])));
|
|
14
|
+
exports.PickerExpressContainer = PickerExpressContainer;
|
|
15
|
+
var Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-bottom: 30px;\n\n ", "\n\n h1 {\n font-size: 20px;\n font-weight: 700;\n margin: 0px;\n text-transform: capitalize;\n }\n\n button {\n line-height: 12px;\n height: 16px;\n font-size: 10px;\n margin-left: 15px;\n padding: 2px 8px;\n border-radius: 50px;\n ", "\n }\n"])), function (props) {
|
|
16
|
+
var _props$theme;
|
|
17
|
+
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 35px;\n "]))) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-right: 35px;\n "])));
|
|
18
|
+
}, function (props) {
|
|
19
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 15px;\n margin-left: 0px;\n "])));
|
|
20
|
+
});
|
|
21
|
+
exports.Header = Header;
|
|
22
|
+
var ApiKeysListTable = _styledComponents.default.table(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n margin-top: 25px;\n\n thead {\n border-bottom: 1px solid ", ";\n th {\n padding: 10px 0;\n &:last-child {\n padding-left: 20px;\n padding-right: 20px;\n }\n }\n }\n tr {\n width: 100%;\n th,\n td {\n font-size: 12px;\n word-break: break-all;\n\n &:last-child {\n width: 100px;\n > div {\n padding-left: 20px;\n padding-right: 20px;\n }\n }\n }\n }\n\n tbody {\n border-bottom: 1px solid ", ";\n td {\n padding-top: 9px;\n padding-bottom: 9px;\n\n &:last-child {\n > div {\n display: flex;\n justify-content: flex-end;\n }\n }\n }\n }\n"])), function (props) {
|
|
23
|
+
return props.theme.colors.secundaryLight;
|
|
24
|
+
}, function (props) {
|
|
25
|
+
return props.theme.colors.borderColor;
|
|
26
|
+
});
|
|
27
|
+
exports.ApiKeysListTable = ApiKeysListTable;
|
|
28
|
+
var DropdownButtonWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", "\n padding: 5px 20px;\n button {\n background: transparent !important;\n border: none;\n padding: 0px;\n &:active,\n &:focus {\n border-color: unset !important;\n box-shadow: none !important;\n }\n svg {\n color: ", ";\n }\n\n &:after {\n display: none;\n }\n }\n\n .show {\n button {\n background: ", " !important;\n border-color: unset !important;\n box-shadow: none !important;\n }\n >div {\n border: 1px solid ", ";\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n }\n }\n\n > div {\n > div {\n border-radius: 8px;\n .dropdown-item {\n font-size: 12px;\n color: ", ";\n }\n .dropdown-item:last-child {\n color: #E63757;\n }\n }\n }\n"])), function (props) {
|
|
29
|
+
var _props$theme2;
|
|
30
|
+
return props !== null && props !== void 0 && (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-right: 1px solid ", ";\n "])), function (props) {
|
|
31
|
+
return props.theme.colors.borderColor;
|
|
32
|
+
}) : (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border-left: 1px solid ", ";\n "])), function (props) {
|
|
33
|
+
return props.theme.colors.borderColor;
|
|
34
|
+
});
|
|
35
|
+
}, function (props) {
|
|
36
|
+
return props.theme.colors.headingColor;
|
|
37
|
+
}, function (props) {
|
|
38
|
+
return props.theme.colors.secundary;
|
|
39
|
+
}, function (props) {
|
|
40
|
+
return props.theme.colors.borderColor;
|
|
41
|
+
}, function (props) {
|
|
42
|
+
return props.theme.colors.headingColor;
|
|
43
|
+
});
|
|
44
|
+
exports.DropdownButtonWrapper = DropdownButtonWrapper;
|
|
45
|
+
var AddNewButton = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n cursor: pointer;\n font-size: 12px;\n color: ", ";\n margin: 20px 0;\n width: fit-content;\n\n &:hover {\n color: ", ";\n }\n"])), function (props) {
|
|
46
|
+
return props.theme.colors.lightGray;
|
|
47
|
+
}, function (props) {
|
|
48
|
+
return props.theme.colors.primary;
|
|
49
|
+
});
|
|
50
|
+
exports.AddNewButton = AddNewButton;
|
|
51
|
+
var AllSetting = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n user-select: none;\n cursor: pointer;\n margin-top: 36px;\n cursor: pointer;\n span {\n font-weight: 600;\n font-size: 14px;\n color: ", ";\n }\n svg {\n color: ", ";\n margin-left: 5px;\n transition: 0.2s linear;\n ", "\n }\n &:hover {\n svg {\n transform: translateX(3px);\n }\n }\n"])), function (props) {
|
|
52
|
+
return props.theme.colors.primary;
|
|
53
|
+
}, function (props) {
|
|
54
|
+
return props.theme.colors.primary;
|
|
55
|
+
}, function (props) {
|
|
56
|
+
return props.theme.rtl && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
|
|
57
|
+
});
|
|
58
|
+
exports.AllSetting = AllSetting;
|
|
59
|
+
var Description = _styledComponents.default.p(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-top: 40px;\n font-size: 14px;\n margin-bottom: 0px;\n text-align: justify;\n\n @media (min-width: 768px) {\n text-align: initial;\n }\n"])));
|
|
60
|
+
exports.Description = Description;
|
|
61
|
+
var CategoryExtraContent = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n position: relative;\n padding: 26px 26px 60px 26px;\n box-sizing: border-box;\n width: 100%;\n overflow: auto;\n\n ", "\n\n > button {\n z-index: 100;\n position: absolute;\n top: 25px;\n ", "\n }\n"])), function (props) {
|
|
62
|
+
var _props$theme3;
|
|
63
|
+
return (_props$theme3 = props.theme) !== null && _props$theme3 !== void 0 && _props$theme3.rtl ? (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n border-right: 1px solid #E9ECEF;\n "]))) : (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n border-left: 1px solid #E9ECEF;\n "])));
|
|
64
|
+
}, function (props) {
|
|
65
|
+
var _props$theme4;
|
|
66
|
+
return (_props$theme4 = props.theme) !== null && _props$theme4 !== void 0 && _props$theme4.rtl ? (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n left: 20px;\n "]))) : (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n right: 20px;\n "])));
|
|
67
|
+
});
|
|
68
|
+
exports.CategoryExtraContent = CategoryExtraContent;
|
|
69
|
+
var Container = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n width: 0;\n position: fixed;\n box-shadow: -4px 0px 7px #ccc;\n\n ", "\n background: ", ";\n height: calc(var(--vh, 1vh) * 100);\n top: 0px;\n z-index: 1001;\n overflow-x: hidden;\n transition: 0.3s;\n\n ", "\n @media print {\n box-shadow: none;\n }\n"])), function (_ref) {
|
|
70
|
+
var isDriverOrders = _ref.isDriverOrders;
|
|
71
|
+
return isDriverOrders && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n position: absolute;\n box-shadow: none;\n\n ", "\n "])), function (props) {
|
|
72
|
+
var _props$theme5;
|
|
73
|
+
return (_props$theme5 = props.theme) !== null && _props$theme5 !== void 0 && _props$theme5.rtl ? (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n border-right: 1px solid #CCC;\n "]))) : (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n border-left: 1px solid #CCC;\n "])));
|
|
74
|
+
});
|
|
75
|
+
}, function (props) {
|
|
76
|
+
var _props$theme$colors;
|
|
77
|
+
return ((_props$theme$colors = props.theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.backgroundPage) || '#FFF';
|
|
78
|
+
}, function (props) {
|
|
79
|
+
var _props$theme6;
|
|
80
|
+
return (_props$theme6 = props.theme) !== null && _props$theme6 !== void 0 && _props$theme6.rtl ? (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n left: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n right: 0px;\n "])));
|
|
81
|
+
});
|
|
82
|
+
exports.Container = Container;
|
|
83
|
+
var DescriptionHeader = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n"])));
|
|
84
|
+
exports.DescriptionHeader = DescriptionHeader;
|
|
85
|
+
var HeaderIcons = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n display: flex;\n position: absolute;\n top: 25px;\n right: 20px;\n\n > button:first-child {\n ", "\n }\n"])), function (props) {
|
|
86
|
+
var _props$theme7;
|
|
87
|
+
return (_props$theme7 = props.theme) !== null && _props$theme7 !== void 0 && _props$theme7.rtl ? (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n margin-left: 8px;\n "]))) : (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n margin-right: 8px;\n "])));
|
|
88
|
+
});
|
|
89
|
+
exports.HeaderIcons = HeaderIcons;
|
|
90
|
+
var SettingListConatiner = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 20px 0;\n border-bottom: 1px solid #E9ECEF;\n"])));
|
|
91
|
+
exports.SettingListConatiner = SettingListConatiner;
|
|
92
|
+
var Tab = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n user-select: none;\n padding: 10px 0px;\n cursor: pointer;\n color: ", ";\n font-size: 14px;\n white-space: nowrap;\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
93
|
+
var _props$theme$colors2;
|
|
94
|
+
return (_props$theme$colors2 = props.theme.colors) === null || _props$theme$colors2 === void 0 ? void 0 : _props$theme$colors2.headingColor;
|
|
95
|
+
}, function (props) {
|
|
96
|
+
var _props$theme8;
|
|
97
|
+
return (_props$theme8 = props.theme) !== null && _props$theme8 !== void 0 && _props$theme8.rtl ? (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n margin-left: 30px;\n "]))) : (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n margin-right: 30px;\n "])));
|
|
98
|
+
}, function (_ref2) {
|
|
99
|
+
var active = _ref2.active;
|
|
100
|
+
return active && (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n border-bottom: 2px solid;\n font-weight: 500;\n "])));
|
|
101
|
+
}, function (_ref3) {
|
|
102
|
+
var active = _ref3.active;
|
|
103
|
+
return !active && (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n color: #909BA9;\n "])));
|
|
104
|
+
});
|
|
105
|
+
exports.Tab = Tab;
|
|
106
|
+
var Paragraph = _styledComponents.default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n margin-top: 20px;\n h2{\n font-size: 16px;\n }\n p{\n white-space: pre-line;\n font-size: 12px;\n margin: 0;\n }\n span {\n font-size: 12px;\n }\n a {\n text-decoration: underline !important;\n cursor: pointer;\n font-size: 12px;\n color: ", " !important;\n }\n .bold {\n font-weight: 600;\n }\n"])), function (props) {
|
|
107
|
+
return props.theme.colors.primary;
|
|
108
|
+
});
|
|
109
|
+
exports.Paragraph = Paragraph;
|
|
110
|
+
var PurchaseWrapper = _styledComponents.default.div(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n button {\n border-radius: 5px;\n }\n margin-top: 15px;\n"])));
|
|
111
|
+
exports.PurchaseWrapper = PurchaseWrapper;
|
|
@@ -105,6 +105,12 @@ Object.defineProperty(exports, "LanguageTransTable", {
|
|
|
105
105
|
return _LanguageTransTable.LanguageTransTable;
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
+
Object.defineProperty(exports, "MultiCountrySettings", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _MultiCountrySettings.MultiCountrySettings;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
108
114
|
Object.defineProperty(exports, "NotificationSetting", {
|
|
109
115
|
enumerable: true,
|
|
110
116
|
get: function get() {
|
|
@@ -219,4 +225,5 @@ var _InsertLink = require("./InsertLink");
|
|
|
219
225
|
var _InsertVideo = require("./InsertVideo");
|
|
220
226
|
var _InsertImage = require("./InsertImage");
|
|
221
227
|
var _LanguageTransSpread = require("./LanguageTransSpread");
|
|
222
|
-
var _LanguageTransTable = require("./LanguageTransTable");
|
|
228
|
+
var _LanguageTransTable = require("./LanguageTransTable");
|
|
229
|
+
var _MultiCountrySettings = require("./MultiCountrySettings");
|
|
@@ -15,7 +15,7 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
|
|
|
15
15
|
return zx && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .popup {\n z-index: ", " !important;\n }\n "])), zx);
|
|
16
16
|
});
|
|
17
17
|
exports.Container = Container;
|
|
18
|
-
var ModalDialog = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n width: ", ";\n height: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n margin-top: auto;\n margin-bottom: auto;\n overflow:
|
|
18
|
+
var ModalDialog = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n width: ", ";\n height: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n margin-top: auto;\n margin-bottom: auto;\n overflow: auto;\n max-height: calc(var(--vh, 1vh) * 90);\n @media (max-width: 860px) {\n width: 80%;\n }\n @media (max-width: 768px) {\n width: 100vw;\n height: calc(var(--vh, 1vh) * 100);\n max-height: calc(var(--vh, 1vh) * 100);\n border-radius: 0px;\n }\n"])), function (_ref2) {
|
|
19
19
|
var width = _ref2.width;
|
|
20
20
|
return width || '50%';
|
|
21
21
|
}, function (_ref3) {
|
|
@@ -60,6 +60,10 @@ var SidebarMenuUI = function SidebarMenuUI(props) {
|
|
|
60
60
|
handleMenuCollapse = _useInfoShare2[1].handleMenuCollapse;
|
|
61
61
|
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
62
62
|
var isPoweredByOrderingModule = configs === null || configs === void 0 ? void 0 : (_configs$powered_by_o = configs.powered_by_ordering_module) === null || _configs$powered_by_o === void 0 ? void 0 : _configs$powered_by_o.value;
|
|
63
|
+
var _useState = (0, _react.useState)(false),
|
|
64
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
65
|
+
showMessage = _useState2[0],
|
|
66
|
+
setShowMessage = _useState2[1];
|
|
63
67
|
var ordersSubMenus = [{
|
|
64
68
|
id: 1,
|
|
65
69
|
title: t('ORDERS_LIST', 'Orders list'),
|
|
@@ -328,7 +332,16 @@ var SidebarMenuUI = function SidebarMenuUI(props) {
|
|
|
328
332
|
return _ref.apply(this, arguments);
|
|
329
333
|
};
|
|
330
334
|
}();
|
|
331
|
-
|
|
335
|
+
(0, _react.useEffect)(function () {
|
|
336
|
+
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
|
337
|
+
setShowMessage(true);
|
|
338
|
+
}
|
|
339
|
+
}, []);
|
|
340
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showMessage && /*#__PURE__*/_react.default.createElement(_styles.MobileMessage, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.X, {
|
|
341
|
+
onClick: function onClick() {
|
|
342
|
+
return setShowMessage(false);
|
|
343
|
+
}
|
|
344
|
+
}), t('FOR_THE_BEST_EXPERIENCE_WHILE_SETTING_UP', 'For the best experience while setting up your project, we recommend using a computer.'))), /*#__PURE__*/_react.default.createElement(_styles.SidebarContainer, {
|
|
332
345
|
id: "side_bar",
|
|
333
346
|
isCollapse: isCollapse
|
|
334
347
|
}, /*#__PURE__*/_react.default.createElement(_styles.SidebarInnerContainer, {
|
|
@@ -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.UserInfo = exports.SubMenu = exports.SidebarMainContent = exports.SidebarInnerContainer = exports.SidebarHeader = exports.SidebarContent = exports.SidebarContainer = exports.PoweredWrapper = exports.MenuContent = exports.MenuContainer = exports.LogoWrapper = exports.LanguageSelectorContainer = exports.BurgerButton = void 0;
|
|
7
|
+
exports.UserInfo = exports.SubMenu = exports.SidebarMainContent = exports.SidebarInnerContainer = exports.SidebarHeader = exports.SidebarContent = exports.SidebarContainer = exports.PoweredWrapper = exports.MobileMessage = exports.MenuContent = exports.MenuContainer = exports.LogoWrapper = exports.LanguageSelectorContainer = exports.BurgerButton = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28;
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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) } })); }
|
|
@@ -97,4 +97,10 @@ var LanguageSelectorContainer = _styledComponents.default.div(_templateObject27
|
|
|
97
97
|
});
|
|
98
98
|
exports.LanguageSelectorContainer = LanguageSelectorContainer;
|
|
99
99
|
var PoweredWrapper = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n text-align: center;\n font-size: 14px;\n font-weight: 600;\n"])));
|
|
100
|
-
exports.PoweredWrapper = PoweredWrapper;
|
|
100
|
+
exports.PoweredWrapper = PoweredWrapper;
|
|
101
|
+
var MobileMessage = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n position: fixed;\n top: 100px;\n left: calc(50% - 130px);\n z-index: 999;\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n width: 260px;\n > div {\n padding: 15px 15px 10px 15px;\n font-size: 12px;\n line-height: 18px;\n position: relative;\n > svg {\n position: absolute;\n top: 3px;\n right: 3px;\n cursor: pointer;\n font-size: 21px;\n }\n }\n"])), function (props) {
|
|
102
|
+
return props.theme.colors.backgroundInfo;
|
|
103
|
+
}, function (props) {
|
|
104
|
+
return props.theme.colors.primary;
|
|
105
|
+
});
|
|
106
|
+
exports.MobileMessage = MobileMessage;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BusinessDetails = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _orderingComponentsAdminExternal = require("ordering-components-admin-external");
|
|
9
|
+
var _styles = require("./styles");
|
|
10
|
+
var _styles2 = require("../../../../styles");
|
|
11
|
+
var _utils = require("../../../../utils");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
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."); }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
18
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
|
+
var BusinessDetails = function BusinessDetails(props) {
|
|
20
|
+
var _configs$google_maps_, _formState$changes$na, _formState$changes, _formState$changes$ad, _formState$changes2, _configs$country_auto, _formState$changes$zi, _formState$changes3, _configs$google_maps_2, _formState$changes$lo, _formState$changes4, _formState$changes$ce, _formState$changes5;
|
|
21
|
+
var formState = props.formState,
|
|
22
|
+
handleChangeAddress = props.handleChangeAddress,
|
|
23
|
+
handleChangeInput = props.handleChangeInput,
|
|
24
|
+
handleChangeCenter = props.handleChangeCenter;
|
|
25
|
+
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
26
|
+
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
27
|
+
t = _useLanguage2[1];
|
|
28
|
+
var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
|
|
29
|
+
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
30
|
+
configs = _useConfig2[0].configs;
|
|
31
|
+
var googleMapsApiKey = configs === null || configs === void 0 ? void 0 : (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
|
|
32
|
+
var googleMapsControls = {
|
|
33
|
+
defaultZoom: 15,
|
|
34
|
+
zoomControl: true,
|
|
35
|
+
streetViewControl: false,
|
|
36
|
+
fullscreenControl: false,
|
|
37
|
+
mapTypeId: 'roadmap',
|
|
38
|
+
// 'roadmap', 'satellite', 'hybrid', 'terrain'
|
|
39
|
+
mapTypeControl: false,
|
|
40
|
+
mapTypeControlOptions: {
|
|
41
|
+
mapTypeIds: ['roadmap', 'satellite']
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var defaultPosition = {
|
|
45
|
+
lat: 40.77473399999999,
|
|
46
|
+
lng: -73.9653844
|
|
47
|
+
};
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement(_styles.BusinessDetailsContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('BUSINESS_DETAILS', 'Business details')), /*#__PURE__*/_react.default.createElement(_styles.ContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('BUSINESS_NAME', 'Business Name')), /*#__PURE__*/_react.default.createElement(_styles2.Input, {
|
|
49
|
+
name: "name",
|
|
50
|
+
placeholder: t('NAME', 'Name'),
|
|
51
|
+
defaultValue: (_formState$changes$na = formState === null || formState === void 0 ? void 0 : (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : '',
|
|
52
|
+
onChange: function onChange(e) {
|
|
53
|
+
handleChangeInput([{
|
|
54
|
+
name: 'name',
|
|
55
|
+
value: e.target.value
|
|
56
|
+
}, {
|
|
57
|
+
name: 'slug',
|
|
58
|
+
value: (0, _utils.stringToSlug)(e.target.value)
|
|
59
|
+
}], true);
|
|
60
|
+
}
|
|
61
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('ADDRESS', 'Address')), /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.GoogleAutocompleteInput, {
|
|
62
|
+
name: "address",
|
|
63
|
+
className: "input-autocomplete",
|
|
64
|
+
apiKey: googleMapsApiKey,
|
|
65
|
+
placeholder: t('ADDRESS', 'Address'),
|
|
66
|
+
onChangeAddress: function onChangeAddress(e) {
|
|
67
|
+
handleChangeAddress(e);
|
|
68
|
+
},
|
|
69
|
+
onChange: function onChange(e) {
|
|
70
|
+
handleChangeInput(e);
|
|
71
|
+
},
|
|
72
|
+
defaultValue: (_formState$changes$ad = formState === null || formState === void 0 ? void 0 : (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.address) !== null && _formState$changes$ad !== void 0 ? _formState$changes$ad : '',
|
|
73
|
+
autoComplete: "new-password",
|
|
74
|
+
countryCode: (configs === null || configs === void 0 ? void 0 : (_configs$country_auto = configs.country_autocomplete) === null || _configs$country_auto === void 0 ? void 0 : _configs$country_auto.value) || '*'
|
|
75
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.FormControl, null, /*#__PURE__*/_react.default.createElement("label", null, t('ZIPCODE', 'Zipcode')), /*#__PURE__*/_react.default.createElement(_styles2.Input, {
|
|
76
|
+
name: "zipcode",
|
|
77
|
+
placeholder: t('ZIPCODE', 'Zipcode'),
|
|
78
|
+
defaultValue: (_formState$changes$zi = formState === null || formState === void 0 ? void 0 : (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.zipcode) !== null && _formState$changes$zi !== void 0 ? _formState$changes$zi : '',
|
|
79
|
+
onChange: handleChangeInput
|
|
80
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.GoogleMapContainer, null, /*#__PURE__*/_react.default.createElement("label", null, t('GOOGLE_PLACE_ID', 'Google place ID')), /*#__PURE__*/_react.default.createElement("p", null, googleMapsApiKey), /*#__PURE__*/_react.default.createElement(_styles.WrapperMap, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.GoogleMapsMap, {
|
|
81
|
+
apiKey: configs === null || configs === void 0 ? void 0 : (_configs$google_maps_2 = configs.google_maps_api_key) === null || _configs$google_maps_2 === void 0 ? void 0 : _configs$google_maps_2.value,
|
|
82
|
+
location: (_formState$changes$lo = formState === null || formState === void 0 ? void 0 : (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.location) !== null && _formState$changes$lo !== void 0 ? _formState$changes$lo : defaultPosition,
|
|
83
|
+
mapControls: googleMapsControls,
|
|
84
|
+
handleChangeCenter: handleChangeCenter,
|
|
85
|
+
isFitCenter: true
|
|
86
|
+
}))), /*#__PURE__*/_react.default.createElement(_styles.FormControl, {
|
|
87
|
+
noBottom: true
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement("label", null, t('INT_NUMBER', 'Int. number')), /*#__PURE__*/_react.default.createElement(_styles2.Input, {
|
|
89
|
+
name: "cellphone",
|
|
90
|
+
placeholder: t('INT_NUMBER', 'Int. number'),
|
|
91
|
+
defaultValue: (_formState$changes$ce = formState === null || formState === void 0 ? void 0 : (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.cellphone) !== null && _formState$changes$ce !== void 0 ? _formState$changes$ce : '',
|
|
92
|
+
onChange: handleChangeInput
|
|
93
|
+
}))));
|
|
94
|
+
};
|
|
95
|
+
exports.BusinessDetails = BusinessDetails;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.WrapperMap = exports.GoogleMapContainer = exports.FormGroup = exports.FormControl = exports.ContentWrapper = exports.BusinessDetailsContainer = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _polished = require("polished");
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
11
|
+
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); }
|
|
12
|
+
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; }
|
|
13
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
14
|
+
var BusinessDetailsContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n h2 {\n font-weight: 600;\n font-size: 16px;\n line-height: 24px;\n margin: 0;\n }\n"])));
|
|
15
|
+
exports.BusinessDetailsContainer = BusinessDetailsContainer;
|
|
16
|
+
var ContentWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: 23px;\n"])));
|
|
17
|
+
exports.ContentWrapper = ContentWrapper;
|
|
18
|
+
var FormControl = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: 23px;\n label {\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n margin-bottom: 12px;\n }\n input {\n width: 100%;\n height: 44px;\n }\n .input-autocomplete {\n width: 100%;\n background: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n font-size: 14px;\n padding: 10px 15px;\n outline: none;\n ::placeholder {\n color: ", ";\n }\n\n &:-ms-input-placeholder {\n color: ", ";\n }\n\n &::-ms-input-placeholder { /* Microsoft Edge */\n color: ", ";\n }\n &:focus {\n border-color: ", ";\n }\n }\n\n ", "\n"])), function (props) {
|
|
19
|
+
var _props$theme$colors;
|
|
20
|
+
return ((_props$theme$colors = props.theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.backgroundPage) || '#FFF';
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return props.theme.colors.borderColor;
|
|
23
|
+
}, function (props) {
|
|
24
|
+
return props.theme.colors.secundaryLight;
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.theme.colors.secundaryLight;
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return props.theme.colors.secundaryLight;
|
|
29
|
+
}, function () {
|
|
30
|
+
return (0, _polished.darken)(0.07, '#CCC');
|
|
31
|
+
}, function (_ref) {
|
|
32
|
+
var noBottom = _ref.noBottom;
|
|
33
|
+
return noBottom && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-bottom: 0px;\n "])));
|
|
34
|
+
});
|
|
35
|
+
exports.FormControl = FormControl;
|
|
36
|
+
var GoogleMapContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-bottom: 23px;\n label {\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n margin-bottom: 12px;\n margin-bottom: 9px;\n }\n p {\n font-weight: 400;\n font-size: 14px;\n line-height: 24px;\n margin: 0;\n color: ", ";\n }\n"])), function (props) {
|
|
37
|
+
return props.theme.colors.lightGray;
|
|
38
|
+
});
|
|
39
|
+
exports.GoogleMapContainer = GoogleMapContainer;
|
|
40
|
+
var WrapperMap = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n height: 150px;\n margin-top: 30px;\n\n > div {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n border-radius: 8px;\n }\n\n @media (min-width: 768px) {\n height: 200px;\n }\n"])));
|
|
41
|
+
exports.WrapperMap = WrapperMap;
|
|
42
|
+
var FormGroup = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n > div {\n width: 100%;\n }\n\n @media (min-width: 576px) {\n flex-direction: row;\n > div {\n width: 48%;\n }\n }\n"])));
|
|
43
|
+
exports.FormGroup = FormGroup;
|