tabexseriescomponents 0.50.209 → 0.50.211
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/dist/index.cjs.js +340 -269
- package/dist/index.esm.js +338 -267
- package/dist/index.umd.js +342 -271
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18,8 +18,10 @@ var AiOutlineUser = require('@react-icons/all-files/ai/AiOutlineUser');
|
|
|
18
18
|
var IoMdClose = require('@react-icons/all-files/io/IoMdClose');
|
|
19
19
|
var reactBootstrap = require('react-bootstrap');
|
|
20
20
|
var imagekitioReact = require('imagekitio-react');
|
|
21
|
+
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
21
22
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
22
23
|
var _typeof = require('@babel/runtime/helpers/typeof');
|
|
24
|
+
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
23
25
|
var ImageGallery = require('react-image-gallery');
|
|
24
26
|
var MdAddShoppingCart = require('@react-icons/all-files/md/MdAddShoppingCart');
|
|
25
27
|
var IoBagHandleOutline = require('@react-icons/all-files/io5/IoBagHandleOutline');
|
|
@@ -61,8 +63,6 @@ var HiOutlinePhone = require('@react-icons/all-files/hi/HiOutlinePhone');
|
|
|
61
63
|
var AiOutlineMail = require('@react-icons/all-files/ai/AiOutlineMail');
|
|
62
64
|
var FaShippingFast = require('@react-icons/all-files/fa/FaShippingFast');
|
|
63
65
|
var RiSecurePaymentLine = require('@react-icons/all-files/ri/RiSecurePaymentLine');
|
|
64
|
-
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
65
|
-
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
66
66
|
var axios = require('axios');
|
|
67
67
|
var AiOutlineSecurityScan = require('@react-icons/all-files/ai/AiOutlineSecurityScan');
|
|
68
68
|
var FaStar = require('@react-icons/all-files/fa/FaStar');
|
|
@@ -210,8 +210,10 @@ var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
|
|
|
210
210
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
211
211
|
var Cookies__default = /*#__PURE__*/_interopDefaultLegacy(Cookies);
|
|
212
212
|
var jwtDecode__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecode);
|
|
213
|
+
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
213
214
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
214
215
|
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
216
|
+
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
215
217
|
var ImageGallery__default = /*#__PURE__*/_interopDefaultLegacy(ImageGallery);
|
|
216
218
|
var ReactStars__default = /*#__PURE__*/_interopDefaultLegacy(ReactStars);
|
|
217
219
|
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
@@ -219,8 +221,6 @@ var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutos
|
|
|
219
221
|
var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
|
|
220
222
|
var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
221
223
|
var DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(DatePicker);
|
|
222
|
-
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
223
|
-
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
224
224
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
225
225
|
var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
226
226
|
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$4);
|
|
@@ -3085,7 +3085,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3085
3085
|
var sectionproperties = props.actions.sectionproperties;
|
|
3086
3086
|
props.actions.addtocardpayloadobj;
|
|
3087
3087
|
props.actions.setaddtocardpayloadobj;
|
|
3088
|
-
|
|
3088
|
+
props.actions.addtocartfunc_extras;
|
|
3089
3089
|
var product_prod_extras_array = props.actions.product_prod_extras_array;
|
|
3090
3090
|
var setproduct_prod_extras_array = props.actions.setproduct_prod_extras_array;
|
|
3091
3091
|
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
@@ -3209,7 +3209,6 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3209
3209
|
}
|
|
3210
3210
|
quantity = quantity - 1;
|
|
3211
3211
|
if (quantity >= 0) {
|
|
3212
|
-
var _item$productinfo3;
|
|
3213
3212
|
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3214
3213
|
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3215
3214
|
var variantid = null;
|
|
@@ -3221,21 +3220,21 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3221
3220
|
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3222
3221
|
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3223
3222
|
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3224
|
-
addtocartfunc_extras(false, {
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
});
|
|
3223
|
+
// addtocartfunc_extras(false, {
|
|
3224
|
+
// functype: 'add',
|
|
3225
|
+
// item_type: 'Extras',
|
|
3226
|
+
// productid: item?.productinfo?.productid,
|
|
3227
|
+
// main_ref_productid: productid,
|
|
3228
|
+
// main_ref_variantid: variantid,
|
|
3229
|
+
// variantid: '',
|
|
3230
|
+
// quantity: quantity,
|
|
3231
|
+
// hasvariants: 0,
|
|
3232
|
+
// date: '',
|
|
3233
|
+
// time: '',
|
|
3234
|
+
// from: '',
|
|
3235
|
+
// to: '',
|
|
3236
|
+
// extrafields: [],
|
|
3237
|
+
// });
|
|
3239
3238
|
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempproduct_prod_extras_array));
|
|
3240
3239
|
} else {
|
|
3241
3240
|
alert('Quantity cannot be less than 0');
|
|
@@ -3270,7 +3269,6 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3270
3269
|
can_add_extras = true;
|
|
3271
3270
|
}
|
|
3272
3271
|
if (can_add_extras) {
|
|
3273
|
-
var _item$productinfo4;
|
|
3274
3272
|
var quantity = 0;
|
|
3275
3273
|
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
3276
3274
|
if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
|
|
@@ -3287,21 +3285,22 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3287
3285
|
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3288
3286
|
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3289
3287
|
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3290
|
-
addtocartfunc_extras(false, {
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3288
|
+
// addtocartfunc_extras(false, {
|
|
3289
|
+
// functype: 'add',
|
|
3290
|
+
// item_type: 'Extras',
|
|
3291
|
+
// productid: item?.productinfo?.productid,
|
|
3292
|
+
// main_ref_productid: productid,
|
|
3293
|
+
// main_ref_variantid: variantid,
|
|
3294
|
+
// variantid: '',
|
|
3295
|
+
// quantity: quantity,
|
|
3296
|
+
// hasvariants: 0,
|
|
3297
|
+
|
|
3298
|
+
// date: '',
|
|
3299
|
+
// time: '',
|
|
3300
|
+
// from: '',
|
|
3301
|
+
// to: '',
|
|
3302
|
+
// extrafields: [],
|
|
3303
|
+
// });
|
|
3305
3304
|
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempproduct_prod_extras_array));
|
|
3306
3305
|
}
|
|
3307
3306
|
}
|
|
@@ -8255,11 +8254,14 @@ var Article_itemtype = function Article_itemtype(props) {
|
|
|
8255
8254
|
})))))));
|
|
8256
8255
|
};
|
|
8257
8256
|
|
|
8257
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
8258
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
8259
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8258
8260
|
function ownKeys$2C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8259
8261
|
function _objectSpread$2C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2C(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8260
8262
|
// import TamaraWidget from '../Widgets/TamaraWidget.jsx';
|
|
8261
8263
|
var Productinfo = function Productinfo(props) {
|
|
8262
|
-
var _css,
|
|
8264
|
+
var _css, _fetchProductInfoQuer86, _ref2, _fetchProductInfoQuer87, _ref3, _fetchProductInfoQuer88, _ref4, _authdetailsContext$i39, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _returnpolicyobj8, _returnpolicyobj9, _returnpolicyobj0, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _returnpolicyobj1, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _authdetailsContext$i40, _fetchProductInfoQuer96, _fetchProductInfoQuer97, _fetchProductInfoQuer98;
|
|
8263
8265
|
var _useState = React.useState({}),
|
|
8264
8266
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
8265
8267
|
ProductInfoObj = _useState2[0],
|
|
@@ -10205,64 +10207,144 @@ var Productinfo = function Productinfo(props) {
|
|
|
10205
10207
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
10206
10208
|
setProductInfoObj(_objectSpread$2C({}, productarr));
|
|
10207
10209
|
};
|
|
10208
|
-
var addtocartfunc = function
|
|
10209
|
-
var
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10210
|
+
var addtocartfunc = /*#__PURE__*/function () {
|
|
10211
|
+
var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(forcetocheckout) {
|
|
10212
|
+
var runfunc, forcetocheckoutvalue, _fetchProductInfoQuer39, _authdetailsContext$i21, _authdetailsContext$i22, _authdetailsContext$i23, _fetchProductInfoQuer40, _fetchProductInfoQuer41, tempaddtocardpayloadobj, Extrafieldvalidationresponse, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, finalprice, prod_extras_tobeadded, sleep, _iterator, _step, _item$productinfo, _fetchProductInfoQuer49, item, variantid, _fetchProductInfoQuer48, _t;
|
|
10213
|
+
return _regeneratorRuntime__default["default"].wrap(function (_context) {
|
|
10214
|
+
while (1) switch (_context.prev = _context.next) {
|
|
10215
|
+
case 0:
|
|
10216
|
+
runfunc = false;
|
|
10217
|
+
forcetocheckoutvalue = forcetocheckout; // alert(addtocardpayloadobj.quantity + 'sad');
|
|
10218
|
+
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
10219
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.hasvariants) == 1) {
|
|
10220
|
+
if (addtocardpayloadobj.variantid.length != 0) {
|
|
10221
|
+
runfunc = true;
|
|
10222
|
+
} else {
|
|
10223
|
+
// here
|
|
10224
|
+
setvariantnotchosendisclaimer('This field is required');
|
|
10225
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) == '674f0617c7811' ? langdetect == 'en' ? 'Please Choose Size & Color' : 'من فضلك اخنر اللون و المقاس' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '693fdc5a14f45' ? langdetect == 'en' ? 'Please Choose Size & Color' : 'من فضلك اخنر اللون و المقاس' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '67e448d2ef6e0' ? langdetect == 'en' ? 'Please Choose Color' : 'من فضلك اختر لون' : langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر من المتغيرات');
|
|
10226
|
+
}
|
|
10227
|
+
} else {
|
|
10228
|
+
runfunc = true;
|
|
10229
|
+
}
|
|
10230
|
+
} else {
|
|
10231
|
+
NotificationManager.warning('', 'Please Choose Quantity');
|
|
10232
|
+
}
|
|
10233
|
+
if (!(runfunc == true)) {
|
|
10234
|
+
_context.next = 10;
|
|
10235
|
+
break;
|
|
10236
|
+
}
|
|
10237
|
+
tempaddtocardpayloadobj = _objectSpread$2C({}, addtocardpayloadobj);
|
|
10238
|
+
tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproductforcedtocheckout;
|
|
10239
|
+
tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.vendorproviderid;
|
|
10240
|
+
if (forcetocheckoutvalue != undefined) {
|
|
10241
|
+
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
10242
|
+
}
|
|
10243
|
+
Extrafieldvalidationresponse = validateextrafields();
|
|
10244
|
+
if (!Extrafieldvalidationresponse.status) {
|
|
10245
|
+
_context.next = 10;
|
|
10246
|
+
break;
|
|
10247
|
+
}
|
|
10248
|
+
finalprice = 0;
|
|
10249
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.hassale) == 1) {
|
|
10250
|
+
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
10251
|
+
} else {
|
|
10252
|
+
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
10253
|
+
}
|
|
10254
|
+
Pixel_EventsContext('AddToCart', {
|
|
10255
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer43 === void 0 || (_fetchProductInfoQuer43 = _fetchProductInfoQuer43.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.productid],
|
|
10256
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer44 === void 0 || (_fetchProductInfoQuer44 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : _fetchProductInfoQuer44.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer45 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.data) === null || _fetchProductInfoQuer45 === void 0 || (_fetchProductInfoQuer45 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.name_ar),
|
|
10257
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer46 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer46 === void 0 || (_fetchProductInfoQuer46 = _fetchProductInfoQuer46.data) === null || _fetchProductInfoQuer46 === void 0 || (_fetchProductInfoQuer46 = _fetchProductInfoQuer46.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.sku,
|
|
10258
|
+
content_type: 'product',
|
|
10259
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 || (_fetchProductInfoQuer47 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : _fetchProductInfoQuer47.currencyname_en,
|
|
10260
|
+
value: finalprice,
|
|
10261
|
+
quantity: addtocardpayloadobj.quantity
|
|
10262
|
+
});
|
|
10263
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
10264
|
+
prod_extras_tobeadded = [];
|
|
10265
|
+
product_prod_extras_array === null || product_prod_extras_array === void 0 || product_prod_extras_array.forEach(function (item, index) {
|
|
10266
|
+
if (item.main_ref_productid != undefined) {
|
|
10267
|
+
prod_extras_tobeadded.push(item);
|
|
10268
|
+
}
|
|
10269
|
+
});
|
|
10270
|
+
if (!(prod_extras_tobeadded.length != 0)) {
|
|
10271
|
+
_context.next = 9;
|
|
10272
|
+
break;
|
|
10273
|
+
}
|
|
10274
|
+
sleep = function sleep(ms) {
|
|
10275
|
+
return new Promise(function (resolve) {
|
|
10276
|
+
return setTimeout(resolve, ms);
|
|
10277
|
+
});
|
|
10278
|
+
};
|
|
10279
|
+
_context.next = 1;
|
|
10280
|
+
return sleep(3500);
|
|
10281
|
+
case 1:
|
|
10282
|
+
_iterator = _createForOfIteratorHelper$1(prod_extras_tobeadded || []);
|
|
10283
|
+
_context.prev = 2;
|
|
10284
|
+
_iterator.s();
|
|
10285
|
+
case 3:
|
|
10286
|
+
if ((_step = _iterator.n()).done) {
|
|
10287
|
+
_context.next = 6;
|
|
10288
|
+
break;
|
|
10289
|
+
}
|
|
10290
|
+
item = _step.value;
|
|
10291
|
+
variantid = '';
|
|
10292
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
10293
|
+
variantid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer48 === void 0 || (_fetchProductInfoQuer48 = _fetchProductInfoQuer48.variants[variantindexcompleted]) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : _fetchProductInfoQuer48.variantid;
|
|
10294
|
+
}
|
|
10295
|
+
_context.next = 4;
|
|
10296
|
+
return addtocartfunc_extras(false, {
|
|
10297
|
+
functype: 'add',
|
|
10298
|
+
item_type: 'Extras',
|
|
10299
|
+
productid: item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.productid,
|
|
10300
|
+
main_ref_productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer49 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.data) === null || _fetchProductInfoQuer49 === void 0 || (_fetchProductInfoQuer49 = _fetchProductInfoQuer49.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.productid,
|
|
10301
|
+
main_ref_variantid: variantid,
|
|
10302
|
+
variantid: '',
|
|
10303
|
+
quantity: item.quantity,
|
|
10304
|
+
hasvariants: 0,
|
|
10305
|
+
date: '',
|
|
10306
|
+
time: '',
|
|
10307
|
+
from: '',
|
|
10308
|
+
to: '',
|
|
10309
|
+
extrafields: []
|
|
10310
|
+
});
|
|
10311
|
+
case 4:
|
|
10312
|
+
_context.next = 5;
|
|
10313
|
+
return sleep(1000);
|
|
10314
|
+
case 5:
|
|
10315
|
+
_context.next = 3;
|
|
10316
|
+
break;
|
|
10317
|
+
case 6:
|
|
10318
|
+
_context.next = 8;
|
|
10319
|
+
break;
|
|
10320
|
+
case 7:
|
|
10321
|
+
_context.prev = 7;
|
|
10322
|
+
_t = _context["catch"](2);
|
|
10323
|
+
_iterator.e(_t);
|
|
10324
|
+
case 8:
|
|
10325
|
+
_context.prev = 8;
|
|
10326
|
+
_iterator.f();
|
|
10327
|
+
return _context.finish(8);
|
|
10328
|
+
case 9:
|
|
10329
|
+
_context.next = 10;
|
|
10330
|
+
break;
|
|
10331
|
+
case 10:
|
|
10332
|
+
case "end":
|
|
10333
|
+
return _context.stop();
|
|
10245
10334
|
}
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
value: finalprice,
|
|
10253
|
-
quantity: addtocardpayloadobj.quantity
|
|
10254
|
-
});
|
|
10255
|
-
AddtoCartContext(tempaddtocardpayloadobj);
|
|
10256
|
-
}
|
|
10257
|
-
}
|
|
10258
|
-
};
|
|
10335
|
+
}, _callee, null, [[2, 7, 8, 9]]);
|
|
10336
|
+
}));
|
|
10337
|
+
return function addtocartfunc(_x) {
|
|
10338
|
+
return _ref.apply(this, arguments);
|
|
10339
|
+
};
|
|
10340
|
+
}();
|
|
10259
10341
|
var validateextrafields = function validateextrafields() {
|
|
10260
|
-
var
|
|
10342
|
+
var _fetchProductInfoQuer50;
|
|
10261
10343
|
var tempaddtocardpayloadobj = _objectSpread$2C({}, addtocardpayloadobj);
|
|
10262
10344
|
var status = false;
|
|
10263
10345
|
var reason = '';
|
|
10264
10346
|
var missingitemsfound = [];
|
|
10265
|
-
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10347
|
+
var extrafields = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer50 === void 0 || (_fetchProductInfoQuer50 = _fetchProductInfoQuer50.productinfo) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.productextrafields;
|
|
10266
10348
|
if ((extrafields === null || extrafields === void 0 ? void 0 : extrafields.length) == 0) {
|
|
10267
10349
|
status = true;
|
|
10268
10350
|
} else {
|
|
@@ -10349,7 +10431,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10349
10431
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10350
10432
|
className: productinfo_cssstyles.relatedproducttitle + ' m-0 p-0 wordbreak ',
|
|
10351
10433
|
style: {}
|
|
10352
|
-
}, langdetect
|
|
10434
|
+
}, sectionproperties["relatedproducttitle".concat(langdetect)] || sectionproperties.relatedproducttitleEn), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10353
10435
|
style: {
|
|
10354
10436
|
width: sectionproperties.relatedproducttitle_lineafterwidth + 'px',
|
|
10355
10437
|
height: 2,
|
|
@@ -10365,7 +10447,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10365
10447
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10366
10448
|
className: productinfo_cssstyles.relatedproducttitle + ' m-0 p-0 wordbreak ',
|
|
10367
10449
|
style: {}
|
|
10368
|
-
}, langdetect
|
|
10450
|
+
}, sectionproperties["relatedproducttitle".concat(langdetect)] || sectionproperties.relatedproducttitleEn), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10369
10451
|
style: {
|
|
10370
10452
|
width: sectionproperties.relatedproducttitle_lineafterwidth + 'px',
|
|
10371
10453
|
height: 2,
|
|
@@ -10381,9 +10463,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
10381
10463
|
scrollContainerClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i29 = authdetailsContext.instinfo) === null || _authdetailsContext$i29 === void 0 ? void 0 : _authdetailsContext$i29.contactinfo.instid) == '68e7c7c93c5bd' ? '' : 'scrollmenuclasssubscrollbarrelatedproducts'
|
|
10382
10464
|
}, Relatedproducts.map(function (item, index) {
|
|
10383
10465
|
if (item.productinfo != null) {
|
|
10384
|
-
var
|
|
10385
|
-
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10386
|
-
var
|
|
10466
|
+
var _fetchProductInfoQuer51;
|
|
10467
|
+
if (item.productid != (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer51 === void 0 || (_fetchProductInfoQuer51 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.productid)) {
|
|
10468
|
+
var _fetchProductInfoQuer52, _fetchProductInfoQuer53;
|
|
10387
10469
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10388
10470
|
className: "col-lg-12 mb-3 px-1",
|
|
10389
10471
|
onClick: function onClick() {
|
|
@@ -10433,7 +10515,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10433
10515
|
"class": "col-lg-12 d-flex align-items-center justify-content-center p-0 "
|
|
10434
10516
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10435
10517
|
"class": "".concat(productinfo_cssstyles.relatedproductPricestyles) + ' m-0 '
|
|
10436
|
-
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10518
|
+
}, item.productinfo.hassale == 1 ? item.productinfo.defaultsaleprice : item.productinfo.defaultprice, ' ', langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 || (_fetchProductInfoQuer52 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.currencyname_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 || (_fetchProductInfoQuer53 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : _fetchProductInfoQuer53.currencyname_ar, ' '))))));
|
|
10437
10519
|
}
|
|
10438
10520
|
}
|
|
10439
10521
|
}))))));
|
|
@@ -10460,28 +10542,28 @@ var Productinfo = function Productinfo(props) {
|
|
|
10460
10542
|
NotificationManager.warning('', 'Please Choose Quantity');
|
|
10461
10543
|
}
|
|
10462
10544
|
if (runfunc == true) {
|
|
10463
|
-
var
|
|
10545
|
+
var _fetchProductInfoQuer54, _fetchProductInfoQuer55;
|
|
10464
10546
|
// var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
|
|
10465
|
-
addtocartobjparam.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10466
|
-
addtocartobjparam.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10547
|
+
addtocartobjparam.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer54 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.data) === null || _fetchProductInfoQuer54 === void 0 || (_fetchProductInfoQuer54 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.isproductforcedtocheckout;
|
|
10548
|
+
addtocartobjparam.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer55 === void 0 || (_fetchProductInfoQuer55 = _fetchProductInfoQuer55.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.vendorproviderid;
|
|
10467
10549
|
if (forcetocheckoutvalue != undefined) {
|
|
10468
10550
|
addtocartobjparam.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
10469
10551
|
}
|
|
10470
10552
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
10471
10553
|
if (Extrafieldvalidationresponse.status) {
|
|
10472
|
-
var
|
|
10554
|
+
var _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61;
|
|
10473
10555
|
var finalprice = 0;
|
|
10474
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10556
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer56 === void 0 || (_fetchProductInfoQuer56 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : _fetchProductInfoQuer56.hassale) == 1) {
|
|
10475
10557
|
finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
10476
10558
|
} else {
|
|
10477
10559
|
finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
10478
10560
|
}
|
|
10479
10561
|
Pixel_EventsContext('AddToCart', {
|
|
10480
|
-
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10481
|
-
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10482
|
-
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10562
|
+
content_ids: [fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer57 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.productid],
|
|
10563
|
+
content_name: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer58 === void 0 || (_fetchProductInfoQuer58 = _fetchProductInfoQuer58.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.name_en) + ' - ' + (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer59 === void 0 || (_fetchProductInfoQuer59 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : _fetchProductInfoQuer59.name_ar),
|
|
10564
|
+
content_sku: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer60 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.data) === null || _fetchProductInfoQuer60 === void 0 || (_fetchProductInfoQuer60 = _fetchProductInfoQuer60.productinfo) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.sku,
|
|
10483
10565
|
content_type: 'product',
|
|
10484
|
-
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
10566
|
+
currency: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 || (_fetchProductInfoQuer61 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.currencyname_en,
|
|
10485
10567
|
value: finalprice,
|
|
10486
10568
|
quantity: addtocardpayloadobj.quantity
|
|
10487
10569
|
});
|
|
@@ -10970,16 +11052,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
10970
11052
|
}
|
|
10971
11053
|
};
|
|
10972
11054
|
var get_product_extras_price = function get_product_extras_price() {
|
|
10973
|
-
var
|
|
11055
|
+
var _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3;
|
|
10974
11056
|
var totalprice_extras_price = 0;
|
|
10975
|
-
if (fetchProductInfoQueryContext != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : fetchProductInfoQueryContext.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11057
|
+
if (fetchProductInfoQueryContext != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : fetchProductInfoQueryContext.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer62 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : _fetchProductInfoQuer62.data) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer63 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer63 === void 0 || (_fetchProductInfoQuer63 = _fetchProductInfoQuer63.data) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.productinfo) != undefined && fetchcustomercartQueryContext != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : fetchcustomercartQueryContext.data) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.data) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.cartitems) != undefined) {
|
|
10976
11058
|
var _fetchcustomercartQue4;
|
|
10977
11059
|
var extras_for_product = [];
|
|
10978
11060
|
fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.cartitems;
|
|
10979
11061
|
product_prod_extras_array === null || product_prod_extras_array === void 0 || product_prod_extras_array.forEach(function (cartitem_in, cartindex_in) {
|
|
10980
11062
|
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.item_type) == 'Extras') {
|
|
10981
|
-
var
|
|
10982
|
-
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.main_ref_productid) == (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11063
|
+
var _fetchProductInfoQuer64;
|
|
11064
|
+
if ((cartitem_in === null || cartitem_in === void 0 ? void 0 : cartitem_in.main_ref_productid) == (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer64 === void 0 || (_fetchProductInfoQuer64 = _fetchProductInfoQuer64.productinfo) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.productid)) {
|
|
10983
11065
|
extras_for_product.push(cartitem_in);
|
|
10984
11066
|
}
|
|
10985
11067
|
}
|
|
@@ -10992,37 +11074,37 @@ var Productinfo = function Productinfo(props) {
|
|
|
10992
11074
|
return parseFloat(totalprice_extras_price);
|
|
10993
11075
|
};
|
|
10994
11076
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
10995
|
-
var
|
|
11077
|
+
var _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68;
|
|
10996
11078
|
var price = 0;
|
|
10997
11079
|
var quantity = 0;
|
|
10998
11080
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
10999
11081
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
11000
11082
|
}
|
|
11001
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11002
|
-
var
|
|
11003
|
-
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11083
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer65 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer65 === void 0 || (_fetchProductInfoQuer65 = _fetchProductInfoQuer65.data) === null || _fetchProductInfoQuer65 === void 0 || (_fetchProductInfoQuer65 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : _fetchProductInfoQuer65.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer66 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer66 === void 0 || (_fetchProductInfoQuer66 = _fetchProductInfoQuer66.data) === null || _fetchProductInfoQuer66 === void 0 || (_fetchProductInfoQuer66 = _fetchProductInfoQuer66.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer67 === void 0 || (_fetchProductInfoQuer67 = _fetchProductInfoQuer67.productinfo) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer68 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.data) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer68 === void 0 || (_fetchProductInfoQuer68 = _fetchProductInfoQuer68.productquantityoptions) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : _fetchProductInfoQuer68.length) != 0) {
|
|
11084
|
+
var _fetchProductInfoQuer69;
|
|
11085
|
+
fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer69 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.data) === null || _fetchProductInfoQuer69 === void 0 || (_fetchProductInfoQuer69 = _fetchProductInfoQuer69.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.productquantityoptions;
|
|
11004
11086
|
}
|
|
11005
11087
|
if (type == 'defaultprice') {
|
|
11006
|
-
var
|
|
11007
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11008
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11088
|
+
var _fetchProductInfoQuer70, _fetchProductInfoQuer71;
|
|
11089
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer70 === void 0 || (_fetchProductInfoQuer70 = _fetchProductInfoQuer70.productinfo) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : _fetchProductInfoQuer70.defaultprice;
|
|
11090
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer71 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer71 === void 0 || (_fetchProductInfoQuer71 = _fetchProductInfoQuer71.data) === null || _fetchProductInfoQuer71 === void 0 || (_fetchProductInfoQuer71 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : _fetchProductInfoQuer71.hasvariants) == 1) {
|
|
11009
11091
|
if (variantindexcompleted != undefined) {
|
|
11010
|
-
var
|
|
11011
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11012
|
-
var
|
|
11013
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11092
|
+
var _fetchProductInfoQuer72;
|
|
11093
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer72 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.data) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.productinfo) === null || _fetchProductInfoQuer72 === void 0 || (_fetchProductInfoQuer72 = _fetchProductInfoQuer72.variants[variantindexcompleted]) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.variantprice) != undefined) {
|
|
11094
|
+
var _fetchProductInfoQuer73;
|
|
11095
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer73 === void 0 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.productinfo) === null || _fetchProductInfoQuer73 === void 0 || (_fetchProductInfoQuer73 = _fetchProductInfoQuer73.variants[variantindexcompleted]) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : _fetchProductInfoQuer73.variantprice;
|
|
11014
11096
|
}
|
|
11015
11097
|
}
|
|
11016
11098
|
}
|
|
11017
11099
|
} else if (type == 'defaultsaleprice') {
|
|
11018
|
-
var
|
|
11019
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11020
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11100
|
+
var _fetchProductInfoQuer74, _fetchProductInfoQuer75;
|
|
11101
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer74 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.data) === null || _fetchProductInfoQuer74 === void 0 || (_fetchProductInfoQuer74 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : _fetchProductInfoQuer74.defaultsaleprice;
|
|
11102
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer75 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer75 === void 0 || (_fetchProductInfoQuer75 = _fetchProductInfoQuer75.data) === null || _fetchProductInfoQuer75 === void 0 || (_fetchProductInfoQuer75 = _fetchProductInfoQuer75.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.hasvariants) == 1) {
|
|
11021
11103
|
if (variantindexcompleted != undefined) {
|
|
11022
|
-
var
|
|
11023
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11024
|
-
var
|
|
11025
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11104
|
+
var _fetchProductInfoQuer76;
|
|
11105
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.productinfo) === null || _fetchProductInfoQuer76 === void 0 || (_fetchProductInfoQuer76 = _fetchProductInfoQuer76.variants[variantindexcompleted]) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : _fetchProductInfoQuer76.variantsaleprice) != undefined) {
|
|
11106
|
+
var _fetchProductInfoQuer77;
|
|
11107
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer77 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.data) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer77 === void 0 || (_fetchProductInfoQuer77 = _fetchProductInfoQuer77.variants[variantindexcompleted]) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : _fetchProductInfoQuer77.variantsaleprice;
|
|
11026
11108
|
}
|
|
11027
11109
|
}
|
|
11028
11110
|
}
|
|
@@ -11121,7 +11203,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11121
11203
|
// }
|
|
11122
11204
|
// };
|
|
11123
11205
|
var getQuantityCondition = function getQuantityCondition() {
|
|
11124
|
-
var
|
|
11206
|
+
var _fetchProductInfoQuer78;
|
|
11125
11207
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11126
11208
|
"class": "col-lg-12 p-0",
|
|
11127
11209
|
style: {
|
|
@@ -11151,12 +11233,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
11151
11233
|
height: 1,
|
|
11152
11234
|
background: sectionproperties.pricelisttitlecolor
|
|
11153
11235
|
}
|
|
11154
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11155
|
-
var
|
|
11236
|
+
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer78 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.data) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.productinfo) === null || _fetchProductInfoQuer78 === void 0 || (_fetchProductInfoQuer78 = _fetchProductInfoQuer78.productquantityoptions) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.map(function (item, index) {
|
|
11237
|
+
var _fetchProductInfoQuer79;
|
|
11156
11238
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11157
11239
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
11158
11240
|
style: {
|
|
11159
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11241
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.productinfo) === null || _fetchProductInfoQuer79 === void 0 || (_fetchProductInfoQuer79 = _fetchProductInfoQuer79.productquantityoptions) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : _fetchProductInfoQuer79.length) - 1 != index ? '1rem' : 0
|
|
11160
11242
|
}
|
|
11161
11243
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11162
11244
|
"class": "d-flex align-items-center",
|
|
@@ -11190,7 +11272,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11190
11272
|
})));
|
|
11191
11273
|
};
|
|
11192
11274
|
var StoreInfo = function StoreInfo(position) {
|
|
11193
|
-
var
|
|
11275
|
+
var _fetchProductInfoQuer80, _authdetailsContext$i33, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i34, _authdetailsContext$i36;
|
|
11194
11276
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11195
11277
|
"class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
|
|
11196
11278
|
style: {
|
|
@@ -11241,7 +11323,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11241
11323
|
style: {
|
|
11242
11324
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11243
11325
|
}
|
|
11244
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11326
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer80 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.data) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer80 === void 0 || (_fetchProductInfoQuer80 = _fetchProductInfoQuer80.productquantityoptions) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : _fetchProductInfoQuer80.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11245
11327
|
"class": "col-lg-12 p-0 mb-4"
|
|
11246
11328
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11247
11329
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mt-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -11434,8 +11516,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
11434
11516
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect != 'ar' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
11435
11517
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect != 'ar' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0
|
|
11436
11518
|
}
|
|
11437
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11438
|
-
actions: (
|
|
11519
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer86 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : _fetchProductInfoQuer86.item_type) == 'product' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
|
|
11520
|
+
actions: (_ref2 = {
|
|
11439
11521
|
product_prod_extras_array: product_prod_extras_array,
|
|
11440
11522
|
setproduct_prod_extras_array: setproduct_prod_extras_array,
|
|
11441
11523
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
@@ -11445,9 +11527,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
11445
11527
|
langdetect: langdetect,
|
|
11446
11528
|
lang: lang,
|
|
11447
11529
|
srcfromprops: props.srcfromprops
|
|
11448
|
-
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](
|
|
11449
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11450
|
-
actions: (
|
|
11530
|
+
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), "variantsku", variantsku), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), "productpdfsarray", productpdfsarray), "addtocartfunc_extras", addtocartfunc_extras), "isOptionInStock", isOptionInStock))
|
|
11531
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer87 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer87 === void 0 || (_fetchProductInfoQuer87 = _fetchProductInfoQuer87.data) === null || _fetchProductInfoQuer87 === void 0 || (_fetchProductInfoQuer87 = _fetchProductInfoQuer87.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : _fetchProductInfoQuer87.item_type) == 'Article' && /*#__PURE__*/React__default["default"].createElement(Article_itemtype, {
|
|
11532
|
+
actions: (_ref3 = {
|
|
11451
11533
|
product_prod_extras_array: product_prod_extras_array,
|
|
11452
11534
|
setproduct_prod_extras_array: setproduct_prod_extras_array,
|
|
11453
11535
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
@@ -11457,9 +11539,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
11457
11539
|
langdetect: langdetect,
|
|
11458
11540
|
lang: lang,
|
|
11459
11541
|
srcfromprops: props.srcfromprops
|
|
11460
|
-
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](
|
|
11461
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11462
|
-
actions: (
|
|
11542
|
+
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), "variantsku", variantsku), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref3, "variantvalueidentifier", variantvalueidentifier), "productpdfsarray", productpdfsarray), "addtocartfunc_extras", addtocartfunc_extras), "isOptionInStock", isOptionInStock))
|
|
11543
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer88 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer88 === void 0 || (_fetchProductInfoQuer88 = _fetchProductInfoQuer88.data) === null || _fetchProductInfoQuer88 === void 0 || (_fetchProductInfoQuer88 = _fetchProductInfoQuer88.productinfo) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : _fetchProductInfoQuer88.item_type) == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
|
|
11544
|
+
actions: (_ref4 = {
|
|
11463
11545
|
product_prod_extras_array: product_prod_extras_array,
|
|
11464
11546
|
setproduct_prod_extras_array: setproduct_prod_extras_array,
|
|
11465
11547
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
@@ -11470,13 +11552,13 @@ var Productinfo = function Productinfo(props) {
|
|
|
11470
11552
|
langdetect: langdetect,
|
|
11471
11553
|
lang: lang,
|
|
11472
11554
|
srcfromprops: props.srcfromprops
|
|
11473
|
-
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](
|
|
11555
|
+
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref4, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref4, "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "StaticPagesLinksContext", StaticPagesLinksContext), "variantindexcompleted", variantindexcompleted), "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref4, "NotificationManager", NotificationManager), "getprice_discountpriceprops", getprice_discountpriceprops), "quantityconditionfoundobjprops", quantityconditionfoundobj), "relatedproducts", relatedproducts), "getQuantityCondition", getQuantityCondition), "StoreInfoprops", StoreInfo), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), _defineProperty__default["default"](_defineProperty__default["default"](_ref4, "addtocartfunc_extras", addtocartfunc_extras), "isOptionInStock", isOptionInStock))
|
|
11474
11556
|
}), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i39 = authdetailsContext.instinfo) === null || _authdetailsContext$i39 === void 0 ? void 0 : _authdetailsContext$i39.instid) != '68e4efe8cb18e' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11475
11557
|
className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
|
|
11476
11558
|
style: {
|
|
11477
11559
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect != 'ar' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
11478
11560
|
paddingRight: props.srcfromprops == 'Productinfomodel' ? langdetect != 'ar' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px' : 0,
|
|
11479
|
-
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11561
|
+
display: sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer89 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.data) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer89 === void 0 || (_fetchProductInfoQuer89 = _fetchProductInfoQuer89.product_videos) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : _fetchProductInfoQuer89.length) != 0 ? 'flex' : (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer90 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer90 === void 0 || (_fetchProductInfoQuer90 = _fetchProductInfoQuer90.data) === null || _fetchProductInfoQuer90 === void 0 || (_fetchProductInfoQuer90 = _fetchProductInfoQuer90.productinfo) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : _fetchProductInfoQuer90.productcanrate) == 1 ? 'flex' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' ? 'none' : sectionproperties.showfirstpolicy == 'Hide' && sectionproperties.showsecondpolicy == 'Hide' && sectionproperties.descriptionposition != 'Bottom' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer91 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.data) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.productinfo) === null || _fetchProductInfoQuer91 === void 0 || (_fetchProductInfoQuer91 = _fetchProductInfoQuer91.product_videos) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : _fetchProductInfoQuer91.length) == 0 ? 'none' : 'flex'
|
|
11480
11562
|
}
|
|
11481
11563
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11482
11564
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
@@ -11538,12 +11620,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
11538
11620
|
onClick: function onClick() {
|
|
11539
11621
|
settabname('refundpolicytab');
|
|
11540
11622
|
}
|
|
11541
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11623
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer92 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.data) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.productinfo) === null || _fetchProductInfoQuer92 === void 0 || (_fetchProductInfoQuer92 = _fetchProductInfoQuer92.product_videos) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
11542
11624
|
label: sectionproperties["videostitle".concat(langdetect)] || sectionproperties.videostitleen,
|
|
11543
11625
|
onClick: function onClick() {
|
|
11544
11626
|
settabname('videostab');
|
|
11545
11627
|
}
|
|
11546
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11628
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer93 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer93 === void 0 || (_fetchProductInfoQuer93 = _fetchProductInfoQuer93.data) === null || _fetchProductInfoQuer93 === void 0 || (_fetchProductInfoQuer93 = _fetchProductInfoQuer93.productinfo) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : _fetchProductInfoQuer93.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
11547
11629
|
label: lang.reviews,
|
|
11548
11630
|
onClick: function onClick() {
|
|
11549
11631
|
settabname('reviewstab');
|
|
@@ -11597,12 +11679,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
11597
11679
|
onClick: function onClick() {
|
|
11598
11680
|
settabname('refundpolicytab');
|
|
11599
11681
|
}
|
|
11600
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11682
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer94 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.productinfo) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.product_videos) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.length) != 0 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
11601
11683
|
label: langdetect === 'ar' ? 'فيديوهات' : langdetect === 'chin' ? '视频' : langdetect === 'es' ? 'Videos' : langdetect === 'fr' ? 'Vidéos' : langdetect === 'rus' ? 'Видео' : 'Videos',
|
|
11602
11684
|
onClick: function onClick() {
|
|
11603
11685
|
settabname('videostab');
|
|
11604
11686
|
}
|
|
11605
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11687
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer95 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer95 === void 0 || (_fetchProductInfoQuer95 = _fetchProductInfoQuer95.data) === null || _fetchProductInfoQuer95 === void 0 || (_fetchProductInfoQuer95 = _fetchProductInfoQuer95.productinfo) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : _fetchProductInfoQuer95.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
11606
11688
|
label: lang.reviews,
|
|
11607
11689
|
onClick: function onClick() {
|
|
11608
11690
|
settabname('reviewstab');
|
|
@@ -11662,7 +11744,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11662
11744
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
11663
11745
|
sectionproperties: sectionproperties
|
|
11664
11746
|
})
|
|
11665
|
-
}))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i40 = authdetailsContext.instinfo) === null || _authdetailsContext$i40 === void 0 ? void 0 : _authdetailsContext$i40.instid) == '68e4efe8cb18e' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11747
|
+
}))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i40 = authdetailsContext.instinfo) === null || _authdetailsContext$i40 === void 0 ? void 0 : _authdetailsContext$i40.instid) == '68e4efe8cb18e' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer96 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer96 === void 0 || (_fetchProductInfoQuer96 = _fetchProductInfoQuer96.data) === null || _fetchProductInfoQuer96 === void 0 || (_fetchProductInfoQuer96 = _fetchProductInfoQuer96.productinfo) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : _fetchProductInfoQuer96.item_type) != 'Article' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11666
11748
|
className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
|
|
11667
11749
|
style: {
|
|
11668
11750
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect != 'ar' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
@@ -11719,7 +11801,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11719
11801
|
onClick: function onClick() {
|
|
11720
11802
|
settabname('descriptiontab');
|
|
11721
11803
|
}
|
|
11722
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11804
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer97 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.data) === null || _fetchProductInfoQuer97 === void 0 || (_fetchProductInfoQuer97 = _fetchProductInfoQuer97.productinfo) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : _fetchProductInfoQuer97.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
11723
11805
|
label: lang.reviews,
|
|
11724
11806
|
onClick: function onClick() {
|
|
11725
11807
|
settabname('reviewstab');
|
|
@@ -11763,7 +11845,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11763
11845
|
onClick: function onClick() {
|
|
11764
11846
|
settabname('descriptiontab');
|
|
11765
11847
|
}
|
|
11766
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
11848
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer98 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.data) === null || _fetchProductInfoQuer98 === void 0 || (_fetchProductInfoQuer98 = _fetchProductInfoQuer98.productinfo) === null || _fetchProductInfoQuer98 === void 0 ? void 0 : _fetchProductInfoQuer98.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
11767
11849
|
label: lang.reviews,
|
|
11768
11850
|
onClick: function onClick() {
|
|
11769
11851
|
settabname('reviewstab');
|
|
@@ -23856,17 +23938,6 @@ var CardsSection = function CardsSection(props) {
|
|
|
23856
23938
|
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
23857
23939
|
cardobj.collectionid = arrayItem.collectionid;
|
|
23858
23940
|
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
23859
|
-
// if (langdetect != 'ar') {
|
|
23860
|
-
// if (langdetect == 'chin') {
|
|
23861
|
-
// cardobj.name = arrayItem?.title_chin;
|
|
23862
|
-
// } else {
|
|
23863
|
-
// cardobj.name = arrayItem[`title_${langdetect}`] || arrayItem?.title_en;
|
|
23864
|
-
// }
|
|
23865
|
-
// cardobj.shortdescription = arrayItem.description_en;
|
|
23866
|
-
// } else if (langdetect == 'ar') {
|
|
23867
|
-
// cardobj.name = arrayItem.title_ar;
|
|
23868
|
-
// cardobj.shortdescription = arrayItem.description_ar;
|
|
23869
|
-
// }
|
|
23870
23941
|
cardobj.name = arrayItem["title_".concat(langdetect)] || (arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.title_en);
|
|
23871
23942
|
cardobj.shortdescription = arrayItem["description_".concat(langdetect)] || (arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.description_en);
|
|
23872
23943
|
cardobj.image = arrayItem.collectionlogo;
|
|
@@ -80544,7 +80615,7 @@ function ownKeys$M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
80544
80615
|
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
80545
80616
|
var HorizontalContactUsSection = function HorizontalContactUsSection(props) {
|
|
80546
80617
|
var _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i6, _authdetailsContext$i8;
|
|
80547
|
-
var _useState = React.useState(
|
|
80618
|
+
var _useState = React.useState(''),
|
|
80548
80619
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
80549
80620
|
sectionproperties = _useState2[0],
|
|
80550
80621
|
setsectionproperties = _useState2[1];
|
|
@@ -80566,147 +80637,147 @@ var HorizontalContactUsSection = function HorizontalContactUsSection(props) {
|
|
|
80566
80637
|
}, [StatePagePropertiesContext]);
|
|
80567
80638
|
var section_styles = {
|
|
80568
80639
|
cards_sections: glamor.css({
|
|
80569
|
-
width: sectionproperties.width +
|
|
80570
|
-
marginTop: sectionproperties.marginTop +
|
|
80571
|
-
marginBottom: sectionproperties.marginBottom +
|
|
80572
|
-
paddingLeft: langdetect !=
|
|
80573
|
-
paddingRight: langdetect !=
|
|
80574
|
-
paddingTop: sectionproperties.paddingTop +
|
|
80575
|
-
paddingBottom: sectionproperties.paddingBottom +
|
|
80640
|
+
width: sectionproperties.width + '%',
|
|
80641
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
80642
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
80643
|
+
paddingLeft: langdetect != 'ar' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
80644
|
+
paddingRight: langdetect != 'ar' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
80645
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
80646
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
80576
80647
|
background: sectionproperties.backgroundColor,
|
|
80577
|
-
borderBottomLeftRadius: langdetect !=
|
|
80578
|
-
borderBottomRightRadius: langdetect !=
|
|
80579
|
-
borderTopLeftRadius: langdetect !=
|
|
80580
|
-
borderTopRightRadius: langdetect !=
|
|
80648
|
+
borderBottomLeftRadius: langdetect != 'ar' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
80649
|
+
borderBottomRightRadius: langdetect != 'ar' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
|
|
80650
|
+
borderTopLeftRadius: langdetect != 'ar' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
|
|
80651
|
+
borderTopRightRadius: langdetect != 'ar' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
|
|
80581
80652
|
borderColor: sectionproperties.sectioncardbordercolor,
|
|
80582
|
-
border: sectionproperties.sectioncardborderwidth +
|
|
80653
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid'
|
|
80583
80654
|
}),
|
|
80584
80655
|
sectionTitle: glamor.css({
|
|
80585
|
-
marginTop: sectionproperties.sectionTitleMarginTop +
|
|
80586
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom +
|
|
80656
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
80657
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
80587
80658
|
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
80588
80659
|
color: sectionproperties.sectionTitleColor
|
|
80589
80660
|
}),
|
|
80590
80661
|
description: glamor.css({
|
|
80591
80662
|
fontWeight: sectionproperties.prodCatFontWeight,
|
|
80592
80663
|
color: sectionproperties.prodCatColor,
|
|
80593
|
-
marginBottom: sectionproperties.descriptionMarginBottom +
|
|
80664
|
+
marginBottom: sectionproperties.descriptionMarginBottom + 'px'
|
|
80594
80665
|
}),
|
|
80595
80666
|
iconContainer: glamor.css({
|
|
80596
|
-
width: sectionproperties.iconcontainerwidth +
|
|
80597
|
-
height: sectionproperties.iconcontainerheight +
|
|
80598
|
-
border: sectionproperties.iconcontainer_borderWidth +
|
|
80599
|
-
borderRadius: sectionproperties.iconcontainerborderbl +
|
|
80667
|
+
width: sectionproperties.iconcontainerwidth + 'vh',
|
|
80668
|
+
height: sectionproperties.iconcontainerheight + 'vh',
|
|
80669
|
+
border: sectionproperties.iconcontainer_borderWidth + 'px solid ' + sectionproperties.iconcontainer_bordercolor,
|
|
80670
|
+
borderRadius: sectionproperties.iconcontainerborderbl + 'px',
|
|
80600
80671
|
background: sectionproperties.iconcontainerbg,
|
|
80601
80672
|
color: sectionproperties.iconcontainercolor,
|
|
80602
|
-
marginBottom:
|
|
80603
|
-
transition:
|
|
80604
|
-
|
|
80673
|
+
marginBottom: '10px',
|
|
80674
|
+
transition: '.3s',
|
|
80675
|
+
':hover': {
|
|
80605
80676
|
color: sectionproperties.iconcontainercoloronhover
|
|
80606
80677
|
}
|
|
80607
80678
|
}),
|
|
80608
80679
|
storeinfotitle: glamor.css({
|
|
80609
|
-
fontSize: sectionproperties.footerinfotext_secondaryfontsize +
|
|
80680
|
+
fontSize: sectionproperties.footerinfotext_secondaryfontsize + 'px',
|
|
80610
80681
|
fontWeight: sectionproperties.footerinfotext_secondaryfontweight,
|
|
80611
80682
|
color: sectionproperties.footerinfotext_secondarycolor,
|
|
80612
|
-
marginBottom:
|
|
80683
|
+
marginBottom: '10px'
|
|
80613
80684
|
}),
|
|
80614
80685
|
storeinfo: glamor.css({
|
|
80615
|
-
cursor:
|
|
80616
|
-
fontSize: sectionproperties.footerinfotext_fontsize +
|
|
80686
|
+
cursor: 'pointer',
|
|
80687
|
+
fontSize: sectionproperties.footerinfotext_fontsize + 'px',
|
|
80617
80688
|
color: sectionproperties.footerinfotext_color,
|
|
80618
80689
|
fontWeight: sectionproperties.footerinfotext_fontweight,
|
|
80619
|
-
transition:
|
|
80620
|
-
|
|
80690
|
+
transition: '.3s',
|
|
80691
|
+
':hover .storeinfo': {
|
|
80621
80692
|
color: sectionproperties.footerinfotext_coloronhover,
|
|
80622
|
-
transition:
|
|
80693
|
+
transition: '.3s'
|
|
80623
80694
|
},
|
|
80624
|
-
|
|
80695
|
+
':hover .storeinfoicon': {
|
|
80625
80696
|
backgroundColor: sectionproperties.iconcontainerbgonhover,
|
|
80626
|
-
transition:
|
|
80697
|
+
transition: '.3s'
|
|
80627
80698
|
}
|
|
80628
80699
|
}),
|
|
80629
80700
|
innerSection: {
|
|
80630
80701
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
80631
|
-
borderRadius: sectionproperties.reservation_borderradius +
|
|
80632
|
-
paddingTop: sectionproperties.reservation_padding_top +
|
|
80633
|
-
paddingBottom: sectionproperties.reservation_padding_bottom +
|
|
80634
|
-
paddingRight: langdetect !=
|
|
80635
|
-
paddingLeft: langdetect !=
|
|
80636
|
-
border: sectionproperties.innersectionborderWidth +
|
|
80637
|
-
boxShadow:
|
|
80702
|
+
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
80703
|
+
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
80704
|
+
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
80705
|
+
paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px',
|
|
80706
|
+
paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
|
|
80707
|
+
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
80708
|
+
boxShadow: '0 0 10px ' + sectionproperties.innersectionshadowcolor
|
|
80638
80709
|
}
|
|
80639
80710
|
};
|
|
80640
80711
|
var SectionTitle = function SectionTitle() {
|
|
80641
80712
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
80642
|
-
"class": sectionproperties.sectiontitlefontfamily ==
|
|
80713
|
+
"class": sectionproperties.sectiontitlefontfamily == 'Pacifico' ? section_styles.sectionTitle + ' PacificoFont p-0 wordbreak ' : sectionproperties.sectiontitlefontfamily == 'Playfair' ? section_styles.sectionTitle + ' PlayfairFont p-0 wordbreak ' : sectionproperties.sectiontitlefontfamily == 'Great Vibes' ? section_styles.sectionTitle + ' GreatvibesFont p-0 wordbreak ' : sectionproperties.sectiontitlefontfamily == 'Quicksand' ? section_styles.sectionTitle + ' QuicksandFont p-0 wordbreak ' : sectionproperties.sectiontitlefontfamily == 'Satisfy' ? section_styles.sectionTitle + ' SatisfyFont p-0 wordbreak ' : section_styles.sectionTitle + ' p-0 wordbreak ',
|
|
80643
80714
|
style: {
|
|
80644
|
-
textAlign: sectionproperties.sectiontitleposition ==
|
|
80715
|
+
textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
80645
80716
|
}
|
|
80646
80717
|
}, sectionproperties["sectionTitleContent_".concat(langdetect)] || sectionproperties.sectionTitleContent);
|
|
80647
80718
|
};
|
|
80648
80719
|
var Description = function Description() {
|
|
80649
80720
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
80650
|
-
"class": sectionproperties.descFontFamily ==
|
|
80721
|
+
"class": sectionproperties.descFontFamily == 'Pacifico' ? section_styles.description + ' PacificoFont p-0 wordbreak ' : sectionproperties.descFontFamily == 'Playfair' ? section_styles.description + ' PlayfairFont p-0 wordbreak ' : sectionproperties.descFontFamily == 'Great Vibes' ? section_styles.description + ' GreatvibesFont p-0 wordbreak ' : sectionproperties.descFontFamily == 'Quicksand' ? section_styles.description + ' QuicksandFont p-0 wordbreak ' : sectionproperties.descFontFamily == 'Satisfy' ? section_styles.description + ' SatisfyFont p-0 wordbreak ' : section_styles.description + ' p-0 wordbreak ',
|
|
80651
80722
|
style: {
|
|
80652
|
-
textAlign: sectionproperties.sectiontitleposition ==
|
|
80723
|
+
textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
80653
80724
|
}
|
|
80654
|
-
},
|
|
80725
|
+
}, sectionproperties["descriptionContent".concat(langdetect)] || sectionproperties.descriptionContentEn);
|
|
80655
80726
|
};
|
|
80656
80727
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80657
|
-
"class": section_styles.cards_sections +
|
|
80658
|
-
}, sectionproperties.sectiontitleshow ==
|
|
80728
|
+
"class": section_styles.cards_sections + ' row m-0 d-flex align-items-center pl-md-3 pr-md-3 px-1025-1 w-md-100 '
|
|
80729
|
+
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80659
80730
|
"class": "col-lg-12 p-0 d-flex d-sm-none align-items-center",
|
|
80660
80731
|
style: {
|
|
80661
|
-
justifyContent: sectionproperties.sectiontitleposition ==
|
|
80662
|
-
fontSize: sectionproperties.sectionTitleFontSize +
|
|
80732
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
80733
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px'
|
|
80663
80734
|
}
|
|
80664
|
-
}, SectionTitle()), sectionproperties.sectiontitleshow ==
|
|
80735
|
+
}, SectionTitle()), sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80665
80736
|
"class": "col-lg-12 p-0 d-none d-sm-flex align-items-center ",
|
|
80666
80737
|
style: {
|
|
80667
|
-
justifyContent: sectionproperties.sectiontitleposition ==
|
|
80668
|
-
fontSize: sectionproperties.sectionTitleFontSizeresp +
|
|
80738
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
80739
|
+
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
80669
80740
|
}
|
|
80670
|
-
}, SectionTitle()), sectionproperties.prodCatShow ==
|
|
80741
|
+
}, SectionTitle()), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80671
80742
|
"class": "col-lg-12 p-0 d-flex d-sm-none align-items-center",
|
|
80672
80743
|
style: {
|
|
80673
|
-
justifyContent: sectionproperties.sectiontitleposition ==
|
|
80674
|
-
fontSize: sectionproperties.prodCatFontSize +
|
|
80744
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
80745
|
+
fontSize: sectionproperties.prodCatFontSize + 'px'
|
|
80675
80746
|
}
|
|
80676
|
-
}, Description()), sectionproperties.prodCatShow ==
|
|
80747
|
+
}, Description()), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80677
80748
|
"class": "col-lg-12 p-0 d-none d-sm-flex align-items-center",
|
|
80678
80749
|
style: {
|
|
80679
|
-
justifyContent: sectionproperties.sectiontitleposition ==
|
|
80680
|
-
fontSize: sectionproperties.prodCatFontSizeResp +
|
|
80750
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
80751
|
+
fontSize: sectionproperties.prodCatFontSizeResp + 'px'
|
|
80681
80752
|
}
|
|
80682
80753
|
}, Description()), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80683
80754
|
"class": "col-lg-12 p-0"
|
|
80684
80755
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80685
80756
|
"class": "row m-0 w-100 allcentered"
|
|
80686
|
-
}, sectionproperties.showfooteremail ==
|
|
80687
|
-
"class":
|
|
80757
|
+
}, sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80758
|
+
"class": ' col-lg-3 col-md-6 col-sm-12 allcentered mb-md-5 '
|
|
80688
80759
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80689
80760
|
"class": "row m-0 w-100 allcentered"
|
|
80690
80761
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80691
|
-
"class": section_styles.innerSection +
|
|
80762
|
+
"class": section_styles.innerSection + ' m-0 w-100 d-flex flex-column ',
|
|
80692
80763
|
style: {
|
|
80693
80764
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
80694
|
-
borderRadius: sectionproperties.reservation_borderradius +
|
|
80695
|
-
paddingTop: sectionproperties.reservation_padding_top +
|
|
80696
|
-
paddingBottom: sectionproperties.reservation_padding_bottom +
|
|
80697
|
-
paddingRight: langdetect !=
|
|
80698
|
-
paddingLeft: langdetect !=
|
|
80699
|
-
border: sectionproperties.innersectionborderWidth +
|
|
80700
|
-
boxShadow:
|
|
80765
|
+
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
80766
|
+
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
80767
|
+
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
80768
|
+
paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px',
|
|
80769
|
+
paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
|
|
80770
|
+
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
80771
|
+
boxShadow: '0 0 10px ' + sectionproperties.innersectionshadowcolor
|
|
80701
80772
|
}
|
|
80702
80773
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
80703
|
-
"class": section_styles.storeinfo +
|
|
80774
|
+
"class": section_styles.storeinfo + ' m-0 p-0 allcentered flex-column ',
|
|
80704
80775
|
onClick: function onClick() {
|
|
80705
80776
|
var _authdetailsContext$i;
|
|
80706
|
-
window.open(
|
|
80777
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 || (_authdetailsContext$i = _authdetailsContext$i.contactinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.email), '_self');
|
|
80707
80778
|
}
|
|
80708
80779
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80709
|
-
"class": section_styles.iconContainer +
|
|
80780
|
+
"class": section_styles.iconContainer + ' storeinfoicon '
|
|
80710
80781
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
80711
80782
|
"class": "h-100 allcentered"
|
|
80712
80783
|
}, /*#__PURE__*/React__default["default"].createElement(AiOutlineMail.AiOutlineMail, {
|
|
@@ -80714,33 +80785,33 @@ var HorizontalContactUsSection = function HorizontalContactUsSection(props) {
|
|
|
80714
80785
|
}))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80715
80786
|
"class": section_styles.storeinfotitle,
|
|
80716
80787
|
style: {
|
|
80717
|
-
textAlign: langdetect !=
|
|
80788
|
+
textAlign: langdetect != 'ar' ? 'left' : 'right'
|
|
80718
80789
|
}
|
|
80719
80790
|
}, sectionproperties["emailtitle_".concat(langdetect)] || sectionproperties.emailtitle_en), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80720
80791
|
"class": "storeinfo"
|
|
80721
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 || (_authdetailsContext$i2 = _authdetailsContext$i2.contactinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.email))))), sectionproperties.showfooterphonenumber ==
|
|
80792
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 || (_authdetailsContext$i2 = _authdetailsContext$i2.contactinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.email))))), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80722
80793
|
"class": "col-lg-3 col-md-6 col-sm-12 allcentered mb-md-5"
|
|
80723
80794
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80724
80795
|
"class": "row m-0 w-100 allcentered"
|
|
80725
80796
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80726
|
-
"class": section_styles.innerSection +
|
|
80797
|
+
"class": section_styles.innerSection + ' m-0 w-100 d-flex flex-column ',
|
|
80727
80798
|
style: {
|
|
80728
80799
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
80729
|
-
borderRadius: sectionproperties.reservation_borderradius +
|
|
80730
|
-
paddingTop: sectionproperties.reservation_padding_top +
|
|
80731
|
-
paddingBottom: sectionproperties.reservation_padding_bottom +
|
|
80732
|
-
paddingRight: langdetect !=
|
|
80733
|
-
paddingLeft: langdetect !=
|
|
80734
|
-
border: sectionproperties.innersectionborderWidth +
|
|
80735
|
-
boxShadow:
|
|
80800
|
+
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
80801
|
+
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
80802
|
+
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
80803
|
+
paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px',
|
|
80804
|
+
paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
|
|
80805
|
+
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
80806
|
+
boxShadow: '0 0 10px ' + sectionproperties.innersectionshadowcolor
|
|
80736
80807
|
}
|
|
80737
80808
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
80738
|
-
"class": section_styles.storeinfo +
|
|
80809
|
+
"class": section_styles.storeinfo + ' m-0 p-0 allcentered flex-column ',
|
|
80739
80810
|
onClick: function onClick() {
|
|
80740
|
-
window.open(
|
|
80811
|
+
window.open('tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber), '_blank');
|
|
80741
80812
|
}
|
|
80742
80813
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80743
|
-
"class": section_styles.iconContainer +
|
|
80814
|
+
"class": section_styles.iconContainer + ' allcentered storeinfoicon '
|
|
80744
80815
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
80745
80816
|
"class": "h-100 allcentered"
|
|
80746
80817
|
}, /*#__PURE__*/React__default["default"].createElement(FiPhoneCall.FiPhoneCall, {
|
|
@@ -80749,33 +80820,33 @@ var HorizontalContactUsSection = function HorizontalContactUsSection(props) {
|
|
|
80749
80820
|
"class": section_styles.storeinfotitle
|
|
80750
80821
|
}, sectionproperties["phonetitle_".concat(langdetect)] || sectionproperties.phonetitle_en), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80751
80822
|
"class": "storeinfo allcentered"
|
|
80752
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.whatsappnumber) != null && sectionproperties.showwhatsapp ==
|
|
80823
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.whatsappnumber) != null && sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80753
80824
|
"class": "col-lg-3 col-md-6 col-sm-12 allcentered mb-md-5 "
|
|
80754
80825
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80755
80826
|
"class": "row m-0 w-100 allcentered"
|
|
80756
80827
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80757
|
-
"class": section_styles.innerSection +
|
|
80828
|
+
"class": section_styles.innerSection + ' m-0 w-100 d-flex flex-column ',
|
|
80758
80829
|
style: {
|
|
80759
80830
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
80760
|
-
borderRadius: sectionproperties.reservation_borderradius +
|
|
80761
|
-
paddingTop: sectionproperties.reservation_padding_top +
|
|
80762
|
-
paddingBottom: sectionproperties.reservation_padding_bottom +
|
|
80763
|
-
paddingRight: langdetect !=
|
|
80764
|
-
paddingLeft: langdetect !=
|
|
80765
|
-
border: sectionproperties.innersectionborderWidth +
|
|
80766
|
-
boxShadow:
|
|
80831
|
+
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
80832
|
+
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
80833
|
+
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
80834
|
+
paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px',
|
|
80835
|
+
paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
|
|
80836
|
+
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
80837
|
+
boxShadow: '0 0 10px ' + sectionproperties.innersectionshadowcolor
|
|
80767
80838
|
}
|
|
80768
80839
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
80769
|
-
"class": section_styles.storeinfo +
|
|
80840
|
+
"class": section_styles.storeinfo + ' m-0 p-0 allcentered flex-column ',
|
|
80770
80841
|
onClick: function onClick() {
|
|
80771
80842
|
var _authdetailsContext$i4;
|
|
80772
80843
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.whatsappnumber) != null) {
|
|
80773
80844
|
var _authdetailsContext$i5;
|
|
80774
|
-
window.open(
|
|
80845
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.whatsappnumber), '_blank');
|
|
80775
80846
|
}
|
|
80776
80847
|
}
|
|
80777
80848
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80778
|
-
"class": section_styles.iconContainer +
|
|
80849
|
+
"class": section_styles.iconContainer + ' storeinfoicon '
|
|
80779
80850
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
80780
80851
|
"class": "h-100 allcentered"
|
|
80781
80852
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
@@ -80783,34 +80854,34 @@ var HorizontalContactUsSection = function HorizontalContactUsSection(props) {
|
|
|
80783
80854
|
}))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80784
80855
|
"class": section_styles.storeinfotitle,
|
|
80785
80856
|
style: {
|
|
80786
|
-
textAlign: langdetect !=
|
|
80857
|
+
textAlign: langdetect != 'ar' ? 'left' : 'right'
|
|
80787
80858
|
}
|
|
80788
80859
|
}, sectionproperties["whatsapptitle_".concat(langdetect)] || sectionproperties.whatsapptitle_en), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80789
80860
|
"class": "storeinfo"
|
|
80790
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.whatsappnumber))))), sectionproperties.showfooteraddress ==
|
|
80861
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.whatsappnumber))))), sectionproperties.showfooteraddress == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80791
80862
|
"class": "col-lg-3 col-md-6 col-sm-12 allcentered mb-md-5 "
|
|
80792
80863
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80793
80864
|
"class": "row m-0 w-100 allcentered"
|
|
80794
80865
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
80795
|
-
"class": section_styles.innerSection +
|
|
80866
|
+
"class": section_styles.innerSection + ' m-0 w-100 d-flex flex-column ',
|
|
80796
80867
|
style: {
|
|
80797
80868
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
80798
|
-
borderRadius: sectionproperties.reservation_borderradius +
|
|
80799
|
-
paddingTop: sectionproperties.reservation_padding_top +
|
|
80800
|
-
paddingBottom: sectionproperties.reservation_padding_bottom +
|
|
80801
|
-
paddingRight: langdetect !=
|
|
80802
|
-
paddingLeft: langdetect !=
|
|
80803
|
-
border: sectionproperties.innersectionborderWidth +
|
|
80804
|
-
boxShadow:
|
|
80869
|
+
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
80870
|
+
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
80871
|
+
paddingBottom: sectionproperties.reservation_padding_bottom + 'px',
|
|
80872
|
+
paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px',
|
|
80873
|
+
paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
|
|
80874
|
+
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
80875
|
+
boxShadow: '0 0 10px ' + sectionproperties.innersectionshadowcolor
|
|
80805
80876
|
}
|
|
80806
80877
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
80807
|
-
"class": section_styles.storeinfo +
|
|
80878
|
+
"class": section_styles.storeinfo + ' m-0 p-0 allcentered flex-column ',
|
|
80808
80879
|
onClick: function onClick() {
|
|
80809
80880
|
var _authdetailsContext$i7;
|
|
80810
80881
|
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.googlemapslink);
|
|
80811
80882
|
}
|
|
80812
80883
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80813
|
-
"class": section_styles.iconContainer +
|
|
80884
|
+
"class": section_styles.iconContainer + ' storeinfoicon '
|
|
80814
80885
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
80815
80886
|
"class": "h-100 allcentered"
|
|
80816
80887
|
}, /*#__PURE__*/React__default["default"].createElement(HiOutlineLocationMarker.HiOutlineLocationMarker, {
|
|
@@ -80818,7 +80889,7 @@ var HorizontalContactUsSection = function HorizontalContactUsSection(props) {
|
|
|
80818
80889
|
}))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80819
80890
|
"class": section_styles.storeinfotitle,
|
|
80820
80891
|
style: {
|
|
80821
|
-
textAlign: langdetect !=
|
|
80892
|
+
textAlign: langdetect != 'ar' ? 'left' : 'right'
|
|
80822
80893
|
}
|
|
80823
80894
|
}, sectionproperties["addresstitle_".concat(langdetect)] || sectionproperties.addresstitle_en), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
80824
80895
|
"class": "storeinfo"
|