tabexseriescomponents 0.50.187 → 0.50.188
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 +124 -74
- package/dist/index.esm.js +124 -74
- package/dist/index.umd.js +126 -75
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3115,6 +3115,9 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3115
3115
|
props.actions.addtocardpayloadobj;
|
|
3116
3116
|
props.actions.setaddtocardpayloadobj;
|
|
3117
3117
|
var addtocartfunc_extras = props.actions.addtocartfunc_extras;
|
|
3118
|
+
var product_prod_extras_array = props.actions.product_prod_extras_array;
|
|
3119
|
+
var setproduct_prod_extras_array = props.actions.setproduct_prod_extras_array;
|
|
3120
|
+
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
3118
3121
|
props.actions;
|
|
3119
3122
|
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
3120
3123
|
// const templatepropcontext = props.actions.templatepropcontext;
|
|
@@ -3142,10 +3145,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3142
3145
|
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
3143
3146
|
_useState0[0];
|
|
3144
3147
|
_useState0[1];
|
|
3145
|
-
|
|
3146
|
-
_useState10 = _slicedToArray__default["default"](_useState1, 2),
|
|
3147
|
-
product_prod_extras_array = _useState10[0],
|
|
3148
|
-
setproduct_prod_extras_array = _useState10[1];
|
|
3148
|
+
// const [product_prod_extras_array, setproduct_prod_extras_array] = useState([]);
|
|
3149
3149
|
React.useEffect(function () {
|
|
3150
3150
|
if (fetchProductInfoQueryContext.isSuccess) ;
|
|
3151
3151
|
}, [filterproductreviews]);
|
|
@@ -3173,7 +3173,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3173
3173
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3174
3174
|
className: 'row w-100 ml-0 mr-0 mt-3'
|
|
3175
3175
|
}, product_prod_extras_array === null || product_prod_extras_array === void 0 ? void 0 : product_prod_extras_array.map(function (item, index) {
|
|
3176
|
-
var _item$productinfo;
|
|
3176
|
+
var _item$productinfo, _item$productinfo2;
|
|
3177
3177
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3178
3178
|
"class": props.srcfromprops == 'servicestyle2' ? 'col-lg-12 col-sm-12 p-0 mb-3' : 'col-lg-6 col-sm-12 p-0 mb-3'
|
|
3179
3179
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3190,7 +3190,9 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3190
3190
|
"class": "col-12 p-0 text-start"
|
|
3191
3191
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3192
3192
|
className: ' m-0 p-0 ',
|
|
3193
|
-
style: {
|
|
3193
|
+
style: {
|
|
3194
|
+
fontSize: 15
|
|
3195
|
+
},
|
|
3194
3196
|
dangerouslySetInnerHTML: {
|
|
3195
3197
|
__html: item === null || item === void 0 ? void 0 : item.productinfo["description_".concat(langdetect)]
|
|
3196
3198
|
}
|
|
@@ -3201,7 +3203,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3201
3203
|
style: {
|
|
3202
3204
|
fontSize: 12
|
|
3203
3205
|
}
|
|
3204
|
-
}, "(+
|
|
3206
|
+
}, "(+", ' ', sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.defaultprice).toLocaleString() : item === null || item === void 0 || (_item$productinfo2 = item.productinfo) === null || _item$productinfo2 === void 0 ? void 0 : _item$productinfo2.defaultprice, ' ', langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar, ")"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3205
3207
|
"class": "d-flex flex-row",
|
|
3206
3208
|
style: {
|
|
3207
3209
|
width: '50%',
|
|
@@ -3215,34 +3217,58 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3215
3217
|
},
|
|
3216
3218
|
"class": "text-black cursor-pointer ",
|
|
3217
3219
|
onClick: function onClick() {
|
|
3218
|
-
var
|
|
3219
|
-
var
|
|
3220
|
-
if (
|
|
3221
|
-
|
|
3220
|
+
var _fetchProductInfoQuer3;
|
|
3221
|
+
var can_add_extras = false;
|
|
3222
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.hasvariants) == 1) {
|
|
3223
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3224
|
+
can_add_extras = true;
|
|
3225
|
+
} else {
|
|
3226
|
+
alert('Please select a variant to be able to add extras');
|
|
3227
|
+
}
|
|
3222
3228
|
} else {
|
|
3223
|
-
|
|
3229
|
+
can_add_extras = true;
|
|
3224
3230
|
}
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
var
|
|
3228
|
-
tempproduct_prod_extras_array[index].quantity
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
quantity
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3231
|
+
if (can_add_extras) {
|
|
3232
|
+
var quantity = 0;
|
|
3233
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
3234
|
+
if (parseFloat(tempproduct_prod_extras_array[index].quantity) <= 0) {
|
|
3235
|
+
quantity = 0;
|
|
3236
|
+
} else {
|
|
3237
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
3238
|
+
}
|
|
3239
|
+
quantity = quantity - 1;
|
|
3240
|
+
if (quantity >= 0) {
|
|
3241
|
+
var _item$productinfo3;
|
|
3242
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3243
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3244
|
+
var variantid = null;
|
|
3245
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3246
|
+
var _fetchProductInfoQuer4;
|
|
3247
|
+
variantid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.variantid;
|
|
3248
|
+
}
|
|
3249
|
+
tempproduct_prod_extras_array[index].main_ref_variantid = variantid;
|
|
3250
|
+
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3251
|
+
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3252
|
+
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3253
|
+
addtocartfunc_extras(false, {
|
|
3254
|
+
functype: 'add',
|
|
3255
|
+
item_type: 'Extras',
|
|
3256
|
+
productid: item === null || item === void 0 || (_item$productinfo3 = item.productinfo) === null || _item$productinfo3 === void 0 ? void 0 : _item$productinfo3.productid,
|
|
3257
|
+
main_ref_productid: productid,
|
|
3258
|
+
main_ref_variantid: variantid,
|
|
3259
|
+
variantid: '',
|
|
3260
|
+
quantity: quantity,
|
|
3261
|
+
hasvariants: 0,
|
|
3262
|
+
date: '',
|
|
3263
|
+
time: '',
|
|
3264
|
+
from: '',
|
|
3265
|
+
to: '',
|
|
3266
|
+
extrafields: []
|
|
3267
|
+
});
|
|
3268
|
+
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempproduct_prod_extras_array));
|
|
3269
|
+
} else {
|
|
3270
|
+
alert('Quantity cannot be less than 0');
|
|
3271
|
+
}
|
|
3246
3272
|
}
|
|
3247
3273
|
}
|
|
3248
3274
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -3261,28 +3287,52 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3261
3287
|
},
|
|
3262
3288
|
"class": "text-black cursor-pointer ",
|
|
3263
3289
|
onClick: function onClick() {
|
|
3264
|
-
var
|
|
3265
|
-
var
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3290
|
+
var _fetchProductInfoQuer5;
|
|
3291
|
+
var can_add_extras = false;
|
|
3292
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.hasvariants) == 1) {
|
|
3293
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3294
|
+
can_add_extras = true;
|
|
3295
|
+
} else {
|
|
3296
|
+
alert('Please select a variant to be able to add extras');
|
|
3297
|
+
}
|
|
3298
|
+
} else {
|
|
3299
|
+
can_add_extras = true;
|
|
3300
|
+
}
|
|
3301
|
+
if (can_add_extras) {
|
|
3302
|
+
var _item$productinfo4;
|
|
3303
|
+
var quantity = 0;
|
|
3304
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
3305
|
+
if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
|
|
3306
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
3307
|
+
}
|
|
3308
|
+
quantity = quantity + 1;
|
|
3309
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3310
|
+
var variantid = null;
|
|
3311
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3312
|
+
var _fetchProductInfoQuer6;
|
|
3313
|
+
variantid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.variants[variantindexcompleted]) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.variantid;
|
|
3314
|
+
}
|
|
3315
|
+
tempproduct_prod_extras_array[index].main_ref_variantid = variantid;
|
|
3316
|
+
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3317
|
+
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3318
|
+
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3319
|
+
addtocartfunc_extras(false, {
|
|
3320
|
+
functype: 'add',
|
|
3321
|
+
item_type: 'Extras',
|
|
3322
|
+
productid: item === null || item === void 0 || (_item$productinfo4 = item.productinfo) === null || _item$productinfo4 === void 0 ? void 0 : _item$productinfo4.productid,
|
|
3323
|
+
main_ref_productid: productid,
|
|
3324
|
+
main_ref_variantid: variantid,
|
|
3325
|
+
variantid: '',
|
|
3326
|
+
quantity: quantity,
|
|
3327
|
+
hasvariants: 0,
|
|
3328
|
+
date: '',
|
|
3329
|
+
time: '',
|
|
3330
|
+
from: '',
|
|
3331
|
+
to: '',
|
|
3332
|
+
extrafields: []
|
|
3333
|
+
});
|
|
3334
|
+
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempproduct_prod_extras_array));
|
|
3335
|
+
}
|
|
3286
3336
|
}
|
|
3287
3337
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3288
3338
|
className: 'h-100 allcentered'
|
|
@@ -34499,7 +34549,7 @@ styleInject(css_248z$y);
|
|
|
34499
34549
|
function ownKeys$24(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; }
|
|
34500
34550
|
function _objectSpread$24(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$24(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$24(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34501
34551
|
var FloatingIcons = function FloatingIcons(props) {
|
|
34502
|
-
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$
|
|
34552
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i1, _authdetailsContext$i10;
|
|
34503
34553
|
var _useState = React.useState(''),
|
|
34504
34554
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
34505
34555
|
sectionproperties = _useState2[0],
|
|
@@ -34518,8 +34568,8 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34518
34568
|
zIndex: 999999,
|
|
34519
34569
|
transition: 'all 0.3s ease-out',
|
|
34520
34570
|
bottom: sectionproperties.floatingwhatsapppositionfrombottom + 'px',
|
|
34521
|
-
right: sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.floatingwhatsapppositionfromright,
|
|
34522
|
-
left: sectionproperties.cartBtnShow == 'Hide' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : '',
|
|
34571
|
+
right: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '68e4efe8cb18e' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.floatingwhatsapppositionfromright,
|
|
34572
|
+
left: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '68e4efe8cb18e' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.cartBtnShow == 'Hide' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : '',
|
|
34523
34573
|
width: sectionproperties.floatingwhatsappiconwidth + 'px',
|
|
34524
34574
|
height: sectionproperties.floatingwhatappiconheight + 'px',
|
|
34525
34575
|
background: sectionproperties.floatingwhatappiconbgcolor,
|
|
@@ -34669,8 +34719,8 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34669
34719
|
left: sectionproperties.floatingwhatsapppositionfromright + 'px'
|
|
34670
34720
|
})
|
|
34671
34721
|
};
|
|
34672
|
-
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34673
|
-
var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34722
|
+
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen);
|
|
34723
|
+
var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear);
|
|
34674
34724
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34675
34725
|
"class": '',
|
|
34676
34726
|
style: {
|
|
@@ -34691,10 +34741,10 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34691
34741
|
}, langdetect != 'ar' ? sectionproperties.floatingwhatsappicontexten : sectionproperties.floatingwhatsappicontextar))), sectionproperties.showfloatingfbbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34692
34742
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34693
34743
|
onClick: function onClick() {
|
|
34694
|
-
var _authdetailsContext$
|
|
34695
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34696
|
-
var _authdetailsContext$
|
|
34697
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34744
|
+
var _authdetailsContext$i5;
|
|
34745
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink) != null) {
|
|
34746
|
+
var _authdetailsContext$i6;
|
|
34747
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink, '_blank');
|
|
34698
34748
|
}
|
|
34699
34749
|
}
|
|
34700
34750
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebook.FaFacebook, {
|
|
@@ -34702,10 +34752,10 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34702
34752
|
})), sectionproperties.instagramfloatingbtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34703
34753
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34704
34754
|
onClick: function onClick() {
|
|
34705
|
-
var _authdetailsContext$
|
|
34706
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34707
|
-
var _authdetailsContext$
|
|
34708
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34755
|
+
var _authdetailsContext$i7;
|
|
34756
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instagramlink) != null) {
|
|
34757
|
+
var _authdetailsContext$i8;
|
|
34758
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instagramlink, '_blank');
|
|
34709
34759
|
}
|
|
34710
34760
|
}
|
|
34711
34761
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
@@ -34713,10 +34763,10 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34713
34763
|
})), sectionproperties.tiktonfloatingbtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34714
34764
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34715
34765
|
onClick: function onClick() {
|
|
34716
|
-
var _authdetailsContext$
|
|
34717
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34718
|
-
var _authdetailsContext$
|
|
34719
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34766
|
+
var _authdetailsContext$i9;
|
|
34767
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instagramlink) != null) {
|
|
34768
|
+
var _authdetailsContext$i0;
|
|
34769
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instagramlink, '_blank');
|
|
34720
34770
|
}
|
|
34721
34771
|
}
|
|
34722
34772
|
}, /*#__PURE__*/React__default["default"].createElement(IoLogoTiktok.IoLogoTiktok, {
|
|
@@ -34754,7 +34804,7 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34754
34804
|
}
|
|
34755
34805
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
34756
34806
|
"class": "m-0 p-0"
|
|
34757
|
-
}, langdetect == 'nrwig' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34807
|
+
}, langdetect == 'nrwig' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) == '68c6a5ff3e0d0' ? 'Tilpass produktet ditt' : langdetect != 'ar' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfloatingcallbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
34758
34808
|
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
34759
34809
|
target: '_self',
|
|
34760
34810
|
style: {
|
|
@@ -34771,7 +34821,7 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34771
34821
|
style: {
|
|
34772
34822
|
transform: langdetect != 'ar' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
34773
34823
|
}
|
|
34774
|
-
}))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34824
|
+
}))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instid) == '6824564a386c2' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
34775
34825
|
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
34776
34826
|
target: '_self',
|
|
34777
34827
|
style: {
|
package/dist/index.esm.js
CHANGED
|
@@ -3063,6 +3063,9 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3063
3063
|
props.actions.addtocardpayloadobj;
|
|
3064
3064
|
props.actions.setaddtocardpayloadobj;
|
|
3065
3065
|
var addtocartfunc_extras = props.actions.addtocartfunc_extras;
|
|
3066
|
+
var product_prod_extras_array = props.actions.product_prod_extras_array;
|
|
3067
|
+
var setproduct_prod_extras_array = props.actions.setproduct_prod_extras_array;
|
|
3068
|
+
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
3066
3069
|
props.actions;
|
|
3067
3070
|
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
3068
3071
|
// const templatepropcontext = props.actions.templatepropcontext;
|
|
@@ -3090,10 +3093,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3090
3093
|
_useState0 = _slicedToArray(_useState9, 2);
|
|
3091
3094
|
_useState0[0];
|
|
3092
3095
|
_useState0[1];
|
|
3093
|
-
|
|
3094
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
3095
|
-
product_prod_extras_array = _useState10[0],
|
|
3096
|
-
setproduct_prod_extras_array = _useState10[1];
|
|
3096
|
+
// const [product_prod_extras_array, setproduct_prod_extras_array] = useState([]);
|
|
3097
3097
|
useEffect(function () {
|
|
3098
3098
|
if (fetchProductInfoQueryContext.isSuccess) ;
|
|
3099
3099
|
}, [filterproductreviews]);
|
|
@@ -3121,7 +3121,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3121
3121
|
return /*#__PURE__*/React.createElement("div", {
|
|
3122
3122
|
className: 'row w-100 ml-0 mr-0 mt-3'
|
|
3123
3123
|
}, product_prod_extras_array === null || product_prod_extras_array === void 0 ? void 0 : product_prod_extras_array.map(function (item, index) {
|
|
3124
|
-
var _item$productinfo;
|
|
3124
|
+
var _item$productinfo, _item$productinfo2;
|
|
3125
3125
|
return /*#__PURE__*/React.createElement("div", {
|
|
3126
3126
|
"class": props.srcfromprops == 'servicestyle2' ? 'col-lg-12 col-sm-12 p-0 mb-3' : 'col-lg-6 col-sm-12 p-0 mb-3'
|
|
3127
3127
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3138,7 +3138,9 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3138
3138
|
"class": "col-12 p-0 text-start"
|
|
3139
3139
|
}, /*#__PURE__*/React.createElement("p", {
|
|
3140
3140
|
className: ' m-0 p-0 ',
|
|
3141
|
-
style: {
|
|
3141
|
+
style: {
|
|
3142
|
+
fontSize: 15
|
|
3143
|
+
},
|
|
3142
3144
|
dangerouslySetInnerHTML: {
|
|
3143
3145
|
__html: item === null || item === void 0 ? void 0 : item.productinfo["description_".concat(langdetect)]
|
|
3144
3146
|
}
|
|
@@ -3149,7 +3151,7 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3149
3151
|
style: {
|
|
3150
3152
|
fontSize: 12
|
|
3151
3153
|
}
|
|
3152
|
-
}, "(+
|
|
3154
|
+
}, "(+", ' ', sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.defaultprice).toLocaleString() : item === null || item === void 0 || (_item$productinfo2 = item.productinfo) === null || _item$productinfo2 === void 0 ? void 0 : _item$productinfo2.defaultprice, ' ', langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar, ")"), /*#__PURE__*/React.createElement("div", {
|
|
3153
3155
|
"class": "d-flex flex-row",
|
|
3154
3156
|
style: {
|
|
3155
3157
|
width: '50%',
|
|
@@ -3163,34 +3165,58 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3163
3165
|
},
|
|
3164
3166
|
"class": "text-black cursor-pointer ",
|
|
3165
3167
|
onClick: function onClick() {
|
|
3166
|
-
var
|
|
3167
|
-
var
|
|
3168
|
-
if (
|
|
3169
|
-
|
|
3168
|
+
var _fetchProductInfoQuer3;
|
|
3169
|
+
var can_add_extras = false;
|
|
3170
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.hasvariants) == 1) {
|
|
3171
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3172
|
+
can_add_extras = true;
|
|
3173
|
+
} else {
|
|
3174
|
+
alert('Please select a variant to be able to add extras');
|
|
3175
|
+
}
|
|
3170
3176
|
} else {
|
|
3171
|
-
|
|
3177
|
+
can_add_extras = true;
|
|
3172
3178
|
}
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
var
|
|
3176
|
-
tempproduct_prod_extras_array[index].quantity
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
quantity
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3179
|
+
if (can_add_extras) {
|
|
3180
|
+
var quantity = 0;
|
|
3181
|
+
var tempproduct_prod_extras_array = _toConsumableArray(product_prod_extras_array);
|
|
3182
|
+
if (parseFloat(tempproduct_prod_extras_array[index].quantity) <= 0) {
|
|
3183
|
+
quantity = 0;
|
|
3184
|
+
} else {
|
|
3185
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
3186
|
+
}
|
|
3187
|
+
quantity = quantity - 1;
|
|
3188
|
+
if (quantity >= 0) {
|
|
3189
|
+
var _item$productinfo3;
|
|
3190
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3191
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3192
|
+
var variantid = null;
|
|
3193
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3194
|
+
var _fetchProductInfoQuer4;
|
|
3195
|
+
variantid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.variantid;
|
|
3196
|
+
}
|
|
3197
|
+
tempproduct_prod_extras_array[index].main_ref_variantid = variantid;
|
|
3198
|
+
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3199
|
+
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3200
|
+
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3201
|
+
addtocartfunc_extras(false, {
|
|
3202
|
+
functype: 'add',
|
|
3203
|
+
item_type: 'Extras',
|
|
3204
|
+
productid: item === null || item === void 0 || (_item$productinfo3 = item.productinfo) === null || _item$productinfo3 === void 0 ? void 0 : _item$productinfo3.productid,
|
|
3205
|
+
main_ref_productid: productid,
|
|
3206
|
+
main_ref_variantid: variantid,
|
|
3207
|
+
variantid: '',
|
|
3208
|
+
quantity: quantity,
|
|
3209
|
+
hasvariants: 0,
|
|
3210
|
+
date: '',
|
|
3211
|
+
time: '',
|
|
3212
|
+
from: '',
|
|
3213
|
+
to: '',
|
|
3214
|
+
extrafields: []
|
|
3215
|
+
});
|
|
3216
|
+
setproduct_prod_extras_array(_toConsumableArray(tempproduct_prod_extras_array));
|
|
3217
|
+
} else {
|
|
3218
|
+
alert('Quantity cannot be less than 0');
|
|
3219
|
+
}
|
|
3194
3220
|
}
|
|
3195
3221
|
}
|
|
3196
3222
|
}, /*#__PURE__*/React.createElement("i", {
|
|
@@ -3209,28 +3235,52 @@ var ProductExtras = function ProductExtras(props) {
|
|
|
3209
3235
|
},
|
|
3210
3236
|
"class": "text-black cursor-pointer ",
|
|
3211
3237
|
onClick: function onClick() {
|
|
3212
|
-
var
|
|
3213
|
-
var
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3238
|
+
var _fetchProductInfoQuer5;
|
|
3239
|
+
var can_add_extras = false;
|
|
3240
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.hasvariants) == 1) {
|
|
3241
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3242
|
+
can_add_extras = true;
|
|
3243
|
+
} else {
|
|
3244
|
+
alert('Please select a variant to be able to add extras');
|
|
3245
|
+
}
|
|
3246
|
+
} else {
|
|
3247
|
+
can_add_extras = true;
|
|
3248
|
+
}
|
|
3249
|
+
if (can_add_extras) {
|
|
3250
|
+
var _item$productinfo4;
|
|
3251
|
+
var quantity = 0;
|
|
3252
|
+
var tempproduct_prod_extras_array = _toConsumableArray(product_prod_extras_array);
|
|
3253
|
+
if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
|
|
3254
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
3255
|
+
}
|
|
3256
|
+
quantity = quantity + 1;
|
|
3257
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3258
|
+
var variantid = null;
|
|
3259
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3260
|
+
var _fetchProductInfoQuer6;
|
|
3261
|
+
variantid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.variants[variantindexcompleted]) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.variantid;
|
|
3262
|
+
}
|
|
3263
|
+
tempproduct_prod_extras_array[index].main_ref_variantid = variantid;
|
|
3264
|
+
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3265
|
+
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3266
|
+
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3267
|
+
addtocartfunc_extras(false, {
|
|
3268
|
+
functype: 'add',
|
|
3269
|
+
item_type: 'Extras',
|
|
3270
|
+
productid: item === null || item === void 0 || (_item$productinfo4 = item.productinfo) === null || _item$productinfo4 === void 0 ? void 0 : _item$productinfo4.productid,
|
|
3271
|
+
main_ref_productid: productid,
|
|
3272
|
+
main_ref_variantid: variantid,
|
|
3273
|
+
variantid: '',
|
|
3274
|
+
quantity: quantity,
|
|
3275
|
+
hasvariants: 0,
|
|
3276
|
+
date: '',
|
|
3277
|
+
time: '',
|
|
3278
|
+
from: '',
|
|
3279
|
+
to: '',
|
|
3280
|
+
extrafields: []
|
|
3281
|
+
});
|
|
3282
|
+
setproduct_prod_extras_array(_toConsumableArray(tempproduct_prod_extras_array));
|
|
3283
|
+
}
|
|
3234
3284
|
}
|
|
3235
3285
|
}, /*#__PURE__*/React.createElement("i", {
|
|
3236
3286
|
className: 'h-100 allcentered'
|
|
@@ -34447,7 +34497,7 @@ styleInject(css_248z$y);
|
|
|
34447
34497
|
function ownKeys$24(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; }
|
|
34448
34498
|
function _objectSpread$24(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$24(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$24(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34449
34499
|
var FloatingIcons = function FloatingIcons(props) {
|
|
34450
|
-
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$
|
|
34500
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i1, _authdetailsContext$i10;
|
|
34451
34501
|
var _useState = useState(''),
|
|
34452
34502
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34453
34503
|
sectionproperties = _useState2[0],
|
|
@@ -34466,8 +34516,8 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34466
34516
|
zIndex: 999999,
|
|
34467
34517
|
transition: 'all 0.3s ease-out',
|
|
34468
34518
|
bottom: sectionproperties.floatingwhatsapppositionfrombottom + 'px',
|
|
34469
|
-
right: sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.floatingwhatsapppositionfromright,
|
|
34470
|
-
left: sectionproperties.cartBtnShow == 'Hide' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : '',
|
|
34519
|
+
right: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '68e4efe8cb18e' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.floatingwhatsapppositionfromright,
|
|
34520
|
+
left: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '68e4efe8cb18e' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.cartBtnShow == 'Hide' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : '',
|
|
34471
34521
|
width: sectionproperties.floatingwhatsappiconwidth + 'px',
|
|
34472
34522
|
height: sectionproperties.floatingwhatappiconheight + 'px',
|
|
34473
34523
|
background: sectionproperties.floatingwhatappiconbgcolor,
|
|
@@ -34617,8 +34667,8 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34617
34667
|
left: sectionproperties.floatingwhatsapppositionfromright + 'px'
|
|
34618
34668
|
})
|
|
34619
34669
|
};
|
|
34620
|
-
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34621
|
-
var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34670
|
+
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen);
|
|
34671
|
+
var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear);
|
|
34622
34672
|
return /*#__PURE__*/React.createElement("div", {
|
|
34623
34673
|
"class": '',
|
|
34624
34674
|
style: {
|
|
@@ -34639,10 +34689,10 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34639
34689
|
}, langdetect != 'ar' ? sectionproperties.floatingwhatsappicontexten : sectionproperties.floatingwhatsappicontextar))), sectionproperties.showfloatingfbbtn == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
34640
34690
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34641
34691
|
onClick: function onClick() {
|
|
34642
|
-
var _authdetailsContext$
|
|
34643
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34644
|
-
var _authdetailsContext$
|
|
34645
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34692
|
+
var _authdetailsContext$i5;
|
|
34693
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink) != null) {
|
|
34694
|
+
var _authdetailsContext$i6;
|
|
34695
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink, '_blank');
|
|
34646
34696
|
}
|
|
34647
34697
|
}
|
|
34648
34698
|
}, /*#__PURE__*/React.createElement(FaFacebook, {
|
|
@@ -34650,10 +34700,10 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34650
34700
|
})), sectionproperties.instagramfloatingbtnshow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
34651
34701
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34652
34702
|
onClick: function onClick() {
|
|
34653
|
-
var _authdetailsContext$
|
|
34654
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34655
|
-
var _authdetailsContext$
|
|
34656
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34703
|
+
var _authdetailsContext$i7;
|
|
34704
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instagramlink) != null) {
|
|
34705
|
+
var _authdetailsContext$i8;
|
|
34706
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instagramlink, '_blank');
|
|
34657
34707
|
}
|
|
34658
34708
|
}
|
|
34659
34709
|
}, /*#__PURE__*/React.createElement(AiFillInstagram, {
|
|
@@ -34661,10 +34711,10 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34661
34711
|
})), sectionproperties.tiktonfloatingbtnshow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
34662
34712
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34663
34713
|
onClick: function onClick() {
|
|
34664
|
-
var _authdetailsContext$
|
|
34665
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34666
|
-
var _authdetailsContext$
|
|
34667
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34714
|
+
var _authdetailsContext$i9;
|
|
34715
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instagramlink) != null) {
|
|
34716
|
+
var _authdetailsContext$i0;
|
|
34717
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instagramlink, '_blank');
|
|
34668
34718
|
}
|
|
34669
34719
|
}
|
|
34670
34720
|
}, /*#__PURE__*/React.createElement(IoLogoTiktok, {
|
|
@@ -34702,7 +34752,7 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34702
34752
|
}
|
|
34703
34753
|
}, /*#__PURE__*/React.createElement("p", {
|
|
34704
34754
|
"class": "m-0 p-0"
|
|
34705
|
-
}, langdetect == 'nrwig' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34755
|
+
}, langdetect == 'nrwig' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) == '68c6a5ff3e0d0' ? 'Tilpass produktet ditt' : langdetect != 'ar' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfloatingcallbtn == 'Show' && /*#__PURE__*/React.createElement("a", {
|
|
34706
34756
|
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
34707
34757
|
target: '_self',
|
|
34708
34758
|
style: {
|
|
@@ -34719,7 +34769,7 @@ var FloatingIcons = function FloatingIcons(props) {
|
|
|
34719
34769
|
style: {
|
|
34720
34770
|
transform: langdetect != 'ar' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
34721
34771
|
}
|
|
34722
|
-
}))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34772
|
+
}))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instid) == '6824564a386c2' && /*#__PURE__*/React.createElement("a", {
|
|
34723
34773
|
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
34724
34774
|
target: '_self',
|
|
34725
34775
|
style: {
|
package/dist/index.umd.js
CHANGED
|
@@ -2921,6 +2921,9 @@
|
|
|
2921
2921
|
props.actions.addtocardpayloadobj;
|
|
2922
2922
|
props.actions.setaddtocardpayloadobj;
|
|
2923
2923
|
var addtocartfunc_extras = props.actions.addtocartfunc_extras;
|
|
2924
|
+
var product_prod_extras_array = props.actions.product_prod_extras_array;
|
|
2925
|
+
var setproduct_prod_extras_array = props.actions.setproduct_prod_extras_array;
|
|
2926
|
+
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
2924
2927
|
props.actions;
|
|
2925
2928
|
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
2926
2929
|
// const templatepropcontext = props.actions.templatepropcontext;
|
|
@@ -2948,10 +2951,7 @@
|
|
|
2948
2951
|
_useState0 = _slicedToArray__default["default"](_useState9, 2);
|
|
2949
2952
|
_useState0[0];
|
|
2950
2953
|
_useState0[1];
|
|
2951
|
-
|
|
2952
|
-
_useState10 = _slicedToArray__default["default"](_useState1, 2),
|
|
2953
|
-
product_prod_extras_array = _useState10[0],
|
|
2954
|
-
setproduct_prod_extras_array = _useState10[1];
|
|
2954
|
+
// const [product_prod_extras_array, setproduct_prod_extras_array] = useState([]);
|
|
2955
2955
|
React.useEffect(function () {
|
|
2956
2956
|
if (fetchProductInfoQueryContext.isSuccess) ;
|
|
2957
2957
|
}, [filterproductreviews]);
|
|
@@ -2979,7 +2979,7 @@
|
|
|
2979
2979
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2980
2980
|
className: 'row w-100 ml-0 mr-0 mt-3'
|
|
2981
2981
|
}, product_prod_extras_array === null || product_prod_extras_array === void 0 ? void 0 : product_prod_extras_array.map(function (item, index) {
|
|
2982
|
-
var _item$productinfo;
|
|
2982
|
+
var _item$productinfo, _item$productinfo2;
|
|
2983
2983
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2984
2984
|
"class": props.srcfromprops == 'servicestyle2' ? 'col-lg-12 col-sm-12 p-0 mb-3' : 'col-lg-6 col-sm-12 p-0 mb-3'
|
|
2985
2985
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -2996,7 +2996,9 @@
|
|
|
2996
2996
|
"class": "col-12 p-0 text-start"
|
|
2997
2997
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2998
2998
|
className: ' m-0 p-0 ',
|
|
2999
|
-
style: {
|
|
2999
|
+
style: {
|
|
3000
|
+
fontSize: 15
|
|
3001
|
+
},
|
|
3000
3002
|
dangerouslySetInnerHTML: {
|
|
3001
3003
|
__html: item === null || item === void 0 ? void 0 : item.productinfo["description_".concat(langdetect)]
|
|
3002
3004
|
}
|
|
@@ -3007,7 +3009,7 @@
|
|
|
3007
3009
|
style: {
|
|
3008
3010
|
fontSize: 12
|
|
3009
3011
|
}
|
|
3010
|
-
}, "(+
|
|
3012
|
+
}, "(+", ' ', sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item === null || item === void 0 || (_item$productinfo = item.productinfo) === null || _item$productinfo === void 0 ? void 0 : _item$productinfo.defaultprice).toLocaleString() : item === null || item === void 0 || (_item$productinfo2 = item.productinfo) === null || _item$productinfo2 === void 0 ? void 0 : _item$productinfo2.defaultprice, ' ', langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar, ")"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3011
3013
|
"class": "d-flex flex-row",
|
|
3012
3014
|
style: {
|
|
3013
3015
|
width: '50%',
|
|
@@ -3021,34 +3023,58 @@
|
|
|
3021
3023
|
},
|
|
3022
3024
|
"class": "text-black cursor-pointer ",
|
|
3023
3025
|
onClick: function onClick() {
|
|
3024
|
-
var
|
|
3025
|
-
var
|
|
3026
|
-
if (
|
|
3027
|
-
|
|
3026
|
+
var _fetchProductInfoQuer3;
|
|
3027
|
+
var can_add_extras = false;
|
|
3028
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.hasvariants) == 1) {
|
|
3029
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3030
|
+
can_add_extras = true;
|
|
3031
|
+
} else {
|
|
3032
|
+
alert('Please select a variant to be able to add extras');
|
|
3033
|
+
}
|
|
3028
3034
|
} else {
|
|
3029
|
-
|
|
3035
|
+
can_add_extras = true;
|
|
3030
3036
|
}
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
var
|
|
3034
|
-
tempproduct_prod_extras_array[index].quantity
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
quantity
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3037
|
+
if (can_add_extras) {
|
|
3038
|
+
var quantity = 0;
|
|
3039
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
3040
|
+
if (parseFloat(tempproduct_prod_extras_array[index].quantity) <= 0) {
|
|
3041
|
+
quantity = 0;
|
|
3042
|
+
} else {
|
|
3043
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
3044
|
+
}
|
|
3045
|
+
quantity = quantity - 1;
|
|
3046
|
+
if (quantity >= 0) {
|
|
3047
|
+
var _item$productinfo3;
|
|
3048
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3049
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3050
|
+
var variantid = null;
|
|
3051
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3052
|
+
var _fetchProductInfoQuer4;
|
|
3053
|
+
variantid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.variantid;
|
|
3054
|
+
}
|
|
3055
|
+
tempproduct_prod_extras_array[index].main_ref_variantid = variantid;
|
|
3056
|
+
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3057
|
+
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3058
|
+
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3059
|
+
addtocartfunc_extras(false, {
|
|
3060
|
+
functype: 'add',
|
|
3061
|
+
item_type: 'Extras',
|
|
3062
|
+
productid: item === null || item === void 0 || (_item$productinfo3 = item.productinfo) === null || _item$productinfo3 === void 0 ? void 0 : _item$productinfo3.productid,
|
|
3063
|
+
main_ref_productid: productid,
|
|
3064
|
+
main_ref_variantid: variantid,
|
|
3065
|
+
variantid: '',
|
|
3066
|
+
quantity: quantity,
|
|
3067
|
+
hasvariants: 0,
|
|
3068
|
+
date: '',
|
|
3069
|
+
time: '',
|
|
3070
|
+
from: '',
|
|
3071
|
+
to: '',
|
|
3072
|
+
extrafields: []
|
|
3073
|
+
});
|
|
3074
|
+
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempproduct_prod_extras_array));
|
|
3075
|
+
} else {
|
|
3076
|
+
alert('Quantity cannot be less than 0');
|
|
3077
|
+
}
|
|
3052
3078
|
}
|
|
3053
3079
|
}
|
|
3054
3080
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -3067,28 +3093,52 @@
|
|
|
3067
3093
|
},
|
|
3068
3094
|
"class": "text-black cursor-pointer ",
|
|
3069
3095
|
onClick: function onClick() {
|
|
3070
|
-
var
|
|
3071
|
-
var
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3096
|
+
var _fetchProductInfoQuer5;
|
|
3097
|
+
var can_add_extras = false;
|
|
3098
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.hasvariants) == 1) {
|
|
3099
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3100
|
+
can_add_extras = true;
|
|
3101
|
+
} else {
|
|
3102
|
+
alert('Please select a variant to be able to add extras');
|
|
3103
|
+
}
|
|
3104
|
+
} else {
|
|
3105
|
+
can_add_extras = true;
|
|
3106
|
+
}
|
|
3107
|
+
if (can_add_extras) {
|
|
3108
|
+
var _item$productinfo4;
|
|
3109
|
+
var quantity = 0;
|
|
3110
|
+
var tempproduct_prod_extras_array = _toConsumableArray__default["default"](product_prod_extras_array);
|
|
3111
|
+
if (tempproduct_prod_extras_array[index].quantity != undefined && tempproduct_prod_extras_array[index].quantity != null && tempproduct_prod_extras_array[index].quantity != 0) {
|
|
3112
|
+
quantity = parseFloat(tempproduct_prod_extras_array[index].quantity);
|
|
3113
|
+
}
|
|
3114
|
+
quantity = quantity + 1;
|
|
3115
|
+
tempproduct_prod_extras_array[index].quantity = quantity;
|
|
3116
|
+
var variantid = null;
|
|
3117
|
+
if (variantindexcompleted != undefined && variantindexcompleted != null && (variantindexcompleted === null || variantindexcompleted === void 0 ? void 0 : variantindexcompleted.length) != 0) {
|
|
3118
|
+
var _fetchProductInfoQuer6;
|
|
3119
|
+
variantid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.variants[variantindexcompleted]) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.variantid;
|
|
3120
|
+
}
|
|
3121
|
+
tempproduct_prod_extras_array[index].main_ref_variantid = variantid;
|
|
3122
|
+
tempproduct_prod_extras_array[index].main_ref_productid = productid;
|
|
3123
|
+
tempproduct_prod_extras_array[index].item_type = 'Extras';
|
|
3124
|
+
tempproduct_prod_extras_array[index].productinfo = item === null || item === void 0 ? void 0 : item.productinfo;
|
|
3125
|
+
addtocartfunc_extras(false, {
|
|
3126
|
+
functype: 'add',
|
|
3127
|
+
item_type: 'Extras',
|
|
3128
|
+
productid: item === null || item === void 0 || (_item$productinfo4 = item.productinfo) === null || _item$productinfo4 === void 0 ? void 0 : _item$productinfo4.productid,
|
|
3129
|
+
main_ref_productid: productid,
|
|
3130
|
+
main_ref_variantid: variantid,
|
|
3131
|
+
variantid: '',
|
|
3132
|
+
quantity: quantity,
|
|
3133
|
+
hasvariants: 0,
|
|
3134
|
+
date: '',
|
|
3135
|
+
time: '',
|
|
3136
|
+
from: '',
|
|
3137
|
+
to: '',
|
|
3138
|
+
extrafields: []
|
|
3139
|
+
});
|
|
3140
|
+
setproduct_prod_extras_array(_toConsumableArray__default["default"](tempproduct_prod_extras_array));
|
|
3141
|
+
}
|
|
3092
3142
|
}
|
|
3093
3143
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3094
3144
|
className: 'h-100 allcentered'
|
|
@@ -11463,7 +11513,8 @@
|
|
|
11463
11513
|
}, tabname == 'descriptiontab' && /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
11464
11514
|
actions: _objectSpread$2C(_objectSpread$2C({}, actions), {}, {
|
|
11465
11515
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
11466
|
-
sectionproperties: sectionproperties
|
|
11516
|
+
sectionproperties: sectionproperties,
|
|
11517
|
+
srcfrom: 'tabs'
|
|
11467
11518
|
})
|
|
11468
11519
|
}), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11469
11520
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
@@ -34305,7 +34356,7 @@
|
|
|
34305
34356
|
function ownKeys$24(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; }
|
|
34306
34357
|
function _objectSpread$24(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$24(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$24(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34307
34358
|
var FloatingIcons = function FloatingIcons(props) {
|
|
34308
|
-
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$
|
|
34359
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i1, _authdetailsContext$i10;
|
|
34309
34360
|
var _useState = React.useState(''),
|
|
34310
34361
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
34311
34362
|
sectionproperties = _useState2[0],
|
|
@@ -34324,8 +34375,8 @@
|
|
|
34324
34375
|
zIndex: 999999,
|
|
34325
34376
|
transition: 'all 0.3s ease-out',
|
|
34326
34377
|
bottom: sectionproperties.floatingwhatsapppositionfrombottom + 'px',
|
|
34327
|
-
right: sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.floatingwhatsapppositionfromright,
|
|
34328
|
-
left: sectionproperties.cartBtnShow == 'Hide' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : '',
|
|
34378
|
+
right: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '68e4efe8cb18e' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.floatingwhatsapppositionfromright,
|
|
34379
|
+
left: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '68e4efe8cb18e' ? langdetect != 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : sectionproperties.cartBtnShow == 'Hide' ? langdetect == 'ar' ? sectionproperties.floatingwhatsapppositionfromright + 'px' : '' : '',
|
|
34329
34380
|
width: sectionproperties.floatingwhatsappiconwidth + 'px',
|
|
34330
34381
|
height: sectionproperties.floatingwhatappiconheight + 'px',
|
|
34331
34382
|
background: sectionproperties.floatingwhatappiconbgcolor,
|
|
@@ -34475,8 +34526,8 @@
|
|
|
34475
34526
|
left: sectionproperties.floatingwhatsapppositionfromright + 'px'
|
|
34476
34527
|
})
|
|
34477
34528
|
};
|
|
34478
|
-
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34479
|
-
var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34529
|
+
var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen);
|
|
34530
|
+
var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear);
|
|
34480
34531
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34481
34532
|
"class": '',
|
|
34482
34533
|
style: {
|
|
@@ -34497,10 +34548,10 @@
|
|
|
34497
34548
|
}, langdetect != 'ar' ? sectionproperties.floatingwhatsappicontexten : sectionproperties.floatingwhatsappicontextar))), sectionproperties.showfloatingfbbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34498
34549
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.fbfloatingicon, " ").concat(header_cssstyles.fbfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34499
34550
|
onClick: function onClick() {
|
|
34500
|
-
var _authdetailsContext$
|
|
34501
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34502
|
-
var _authdetailsContext$
|
|
34503
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34551
|
+
var _authdetailsContext$i5;
|
|
34552
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink) != null) {
|
|
34553
|
+
var _authdetailsContext$i6;
|
|
34554
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink, '_blank');
|
|
34504
34555
|
}
|
|
34505
34556
|
}
|
|
34506
34557
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebook.FaFacebook, {
|
|
@@ -34508,10 +34559,10 @@
|
|
|
34508
34559
|
})), sectionproperties.instagramfloatingbtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34509
34560
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.instagramfloatingicon, " ").concat(header_cssstyles.instagramfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34510
34561
|
onClick: function onClick() {
|
|
34511
|
-
var _authdetailsContext$
|
|
34512
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34513
|
-
var _authdetailsContext$
|
|
34514
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34562
|
+
var _authdetailsContext$i7;
|
|
34563
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instagramlink) != null) {
|
|
34564
|
+
var _authdetailsContext$i8;
|
|
34565
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instagramlink, '_blank');
|
|
34515
34566
|
}
|
|
34516
34567
|
}
|
|
34517
34568
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
@@ -34519,10 +34570,10 @@
|
|
|
34519
34570
|
})), sectionproperties.tiktonfloatingbtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
34520
34571
|
"class": sectionproperties.cartBtnShow == 'Hide' ? langdetect != 'ar' ? "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconen) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconar) + ' allcentered cursor-pointer ' : "".concat(header_cssstyles.tiktokfloatingicon, " ").concat(header_cssstyles.tiktokfloatingiconen) + ' allcentered cursor-pointer ',
|
|
34521
34572
|
onClick: function onClick() {
|
|
34522
|
-
var _authdetailsContext$
|
|
34523
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34524
|
-
var _authdetailsContext$
|
|
34525
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34573
|
+
var _authdetailsContext$i9;
|
|
34574
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instagramlink) != null) {
|
|
34575
|
+
var _authdetailsContext$i0;
|
|
34576
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instagramlink, '_blank');
|
|
34526
34577
|
}
|
|
34527
34578
|
}
|
|
34528
34579
|
}, /*#__PURE__*/React__default["default"].createElement(IoLogoTiktok.IoLogoTiktok, {
|
|
@@ -34560,7 +34611,7 @@
|
|
|
34560
34611
|
}
|
|
34561
34612
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
34562
34613
|
"class": "m-0 p-0"
|
|
34563
|
-
}, langdetect == 'nrwig' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34614
|
+
}, langdetect == 'nrwig' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) == '68c6a5ff3e0d0' ? 'Tilpass produktet ditt' : langdetect != 'ar' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfloatingcallbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
34564
34615
|
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
34565
34616
|
target: '_self',
|
|
34566
34617
|
style: {
|
|
@@ -34577,7 +34628,7 @@
|
|
|
34577
34628
|
style: {
|
|
34578
34629
|
transform: langdetect != 'ar' ? 'scaleX(1)' : 'scaleX(-1)'
|
|
34579
34630
|
}
|
|
34580
|
-
}))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34631
|
+
}))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instid) == '6824564a386c2' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
34581
34632
|
href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
|
|
34582
34633
|
target: '_self',
|
|
34583
34634
|
style: {
|