tabexseriescomponents 0.50.197 → 0.50.198
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 +280 -54
- package/dist/index.esm.js +280 -54
- package/dist/index.umd.js +280 -54
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8822,7 +8822,7 @@ function ownKeys$2C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySym
|
|
|
8822
8822
|
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; }
|
|
8823
8823
|
// import TamaraWidget from '../Widgets/TamaraWidget.jsx';
|
|
8824
8824
|
var Productinfo = function Productinfo(props) {
|
|
8825
|
-
var _css, _fetchProductInfoQuer84, _ref, _fetchProductInfoQuer85, _ref2, _fetchProductInfoQuer86, _ref3, _authdetailsContext$
|
|
8825
|
+
var _css, _fetchProductInfoQuer84, _ref, _fetchProductInfoQuer85, _ref2, _fetchProductInfoQuer86, _ref3, _authdetailsContext$i39, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _returnpolicyobj8, _returnpolicyobj9, _returnpolicyobj0, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _returnpolicyobj1, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _authdetailsContext$i40, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96;
|
|
8826
8826
|
var _useState = React.useState({}),
|
|
8827
8827
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
8828
8828
|
ProductInfoObj = _useState2[0],
|
|
@@ -9305,7 +9305,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9305
9305
|
}
|
|
9306
9306
|
}, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data, ikimagecredcontext]);
|
|
9307
9307
|
var isOptionInStock = function isOptionInStock(Currvalueid) {
|
|
9308
|
-
var _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i10;
|
|
9308
|
+
var _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12;
|
|
9309
9309
|
// lord
|
|
9310
9310
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '68d28fc494276') {
|
|
9311
9311
|
var _ProductInfoObj$data;
|
|
@@ -9393,9 +9393,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9393
9393
|
}) && variantValueIds.includes(Currvalueid);
|
|
9394
9394
|
});
|
|
9395
9395
|
return inStock ? 1 : 0;
|
|
9396
|
-
}
|
|
9397
|
-
// vout
|
|
9398
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '68f918a4ccb85') {
|
|
9396
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '67c050d72cbe7') {
|
|
9399
9397
|
var _ProductInfoObj$data2;
|
|
9400
9398
|
var _productinfo = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data2 = ProductInfoObj.data) === null || _ProductInfoObj$data2 === void 0 ? void 0 : _ProductInfoObj$data2.productinfo;
|
|
9401
9399
|
var _options = (_productinfo === null || _productinfo === void 0 ? void 0 : _productinfo.productoptions) || [];
|
|
@@ -9482,8 +9480,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
9482
9480
|
});
|
|
9483
9481
|
return _inStock ? 1 : 0;
|
|
9484
9482
|
}
|
|
9485
|
-
//
|
|
9486
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '
|
|
9483
|
+
// amiga
|
|
9484
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '670fc18477599') {
|
|
9487
9485
|
var _ProductInfoObj$data3;
|
|
9488
9486
|
var _productinfo2 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data3 = ProductInfoObj.data) === null || _ProductInfoObj$data3 === void 0 ? void 0 : _ProductInfoObj$data3.productinfo;
|
|
9489
9487
|
var _options2 = (_productinfo2 === null || _productinfo2 === void 0 ? void 0 : _productinfo2.productoptions) || [];
|
|
@@ -9570,8 +9568,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
9570
9568
|
});
|
|
9571
9569
|
return _inStock2 ? 1 : 0;
|
|
9572
9570
|
}
|
|
9573
|
-
//
|
|
9574
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '
|
|
9571
|
+
// vout
|
|
9572
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '68f918a4ccb85') {
|
|
9575
9573
|
var _ProductInfoObj$data4;
|
|
9576
9574
|
var _productinfo3 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data4 = ProductInfoObj.data) === null || _ProductInfoObj$data4 === void 0 ? void 0 : _ProductInfoObj$data4.productinfo;
|
|
9577
9575
|
var _options3 = (_productinfo3 === null || _productinfo3 === void 0 ? void 0 : _productinfo3.productoptions) || [];
|
|
@@ -9658,8 +9656,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
9658
9656
|
});
|
|
9659
9657
|
return _inStock3 ? 1 : 0;
|
|
9660
9658
|
}
|
|
9661
|
-
//
|
|
9662
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '
|
|
9659
|
+
// puff n stuff
|
|
9660
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '6899e604db87f') {
|
|
9663
9661
|
var _ProductInfoObj$data5;
|
|
9664
9662
|
var _productinfo4 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data5 = ProductInfoObj.data) === null || _ProductInfoObj$data5 === void 0 ? void 0 : _ProductInfoObj$data5.productinfo;
|
|
9665
9663
|
var _options4 = (_productinfo4 === null || _productinfo4 === void 0 ? void 0 : _productinfo4.productoptions) || [];
|
|
@@ -9745,7 +9743,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
9745
9743
|
}) && variantValueIds.includes(Currvalueid);
|
|
9746
9744
|
});
|
|
9747
9745
|
return _inStock4 ? 1 : 0;
|
|
9748
|
-
}
|
|
9746
|
+
}
|
|
9747
|
+
// dija
|
|
9748
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) == '682cbb9bdcd57') {
|
|
9749
9749
|
var _ProductInfoObj$data6;
|
|
9750
9750
|
var _productinfo5 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data6 = ProductInfoObj.data) === null || _ProductInfoObj$data6 === void 0 ? void 0 : _ProductInfoObj$data6.productinfo;
|
|
9751
9751
|
var _options5 = (_productinfo5 === null || _productinfo5 === void 0 ? void 0 : _productinfo5.productoptions) || [];
|
|
@@ -9831,7 +9831,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
9831
9831
|
}) && variantValueIds.includes(Currvalueid);
|
|
9832
9832
|
});
|
|
9833
9833
|
return _inStock5 ? 1 : 0;
|
|
9834
|
-
}
|
|
9834
|
+
}
|
|
9835
|
+
// angel secrets
|
|
9836
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '67bda57bca71d') {
|
|
9835
9837
|
var _ProductInfoObj$data7;
|
|
9836
9838
|
var _productinfo6 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data7 = ProductInfoObj.data) === null || _ProductInfoObj$data7 === void 0 ? void 0 : _ProductInfoObj$data7.productinfo;
|
|
9837
9839
|
var _options6 = (_productinfo6 === null || _productinfo6 === void 0 ? void 0 : _productinfo6.productoptions) || [];
|
|
@@ -9917,13 +9919,185 @@ var Productinfo = function Productinfo(props) {
|
|
|
9917
9919
|
}) && variantValueIds.includes(Currvalueid);
|
|
9918
9920
|
});
|
|
9919
9921
|
return _inStock6 ? 1 : 0;
|
|
9922
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) == '69244cc88aa0a') {
|
|
9923
|
+
var _ProductInfoObj$data8;
|
|
9924
|
+
var _productinfo7 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data8 = ProductInfoObj.data) === null || _ProductInfoObj$data8 === void 0 ? void 0 : _ProductInfoObj$data8.productinfo;
|
|
9925
|
+
var _options7 = (_productinfo7 === null || _productinfo7 === void 0 ? void 0 : _productinfo7.productoptions) || [];
|
|
9926
|
+
var _variants7 = (_productinfo7 === null || _productinfo7 === void 0 ? void 0 : _productinfo7.variants) || [];
|
|
9927
|
+
|
|
9928
|
+
// Collect selected option value IDs and find which option they belong to
|
|
9929
|
+
var _selectedValues7 = [];
|
|
9930
|
+
_options7.forEach(function (option) {
|
|
9931
|
+
option.optionvalues.forEach(function (value) {
|
|
9932
|
+
if (value.isselected === 1) {
|
|
9933
|
+
_selectedValues7.push({
|
|
9934
|
+
optionid: option.optionid,
|
|
9935
|
+
valueid: value.valueid
|
|
9936
|
+
});
|
|
9937
|
+
}
|
|
9938
|
+
});
|
|
9939
|
+
});
|
|
9940
|
+
_options7.length;
|
|
9941
|
+
var _selectedCount7 = _selectedValues7.length;
|
|
9942
|
+
var _inStockVariants7 = _variants7.filter(function (v) {
|
|
9943
|
+
return v.current_quantity > 0;
|
|
9944
|
+
});
|
|
9945
|
+
|
|
9946
|
+
// 🧠 Case 1: No selection yet → show if this value exists in any in-stock variant
|
|
9947
|
+
if (_selectedCount7 === 0) {
|
|
9948
|
+
return _inStockVariants7.some(function (variant) {
|
|
9949
|
+
return variant.variantoptions.some(function (opt) {
|
|
9950
|
+
return opt.valueid === Currvalueid;
|
|
9951
|
+
});
|
|
9952
|
+
}) ? 1 : 0;
|
|
9953
|
+
}
|
|
9954
|
+
|
|
9955
|
+
// 🧠 Case 2: Only one option selected
|
|
9956
|
+
if (_selectedCount7 === 1) {
|
|
9957
|
+
var _selected7 = _selectedValues7[0];
|
|
9958
|
+
var _selectedOptionId7 = _selected7.optionid;
|
|
9959
|
+
|
|
9960
|
+
// Find which option this Currvalueid belongs to
|
|
9961
|
+
var _currentOptionId7 = null;
|
|
9962
|
+
_options7.forEach(function (option) {
|
|
9963
|
+
option.optionvalues.forEach(function (v) {
|
|
9964
|
+
if (v.valueid === Currvalueid) _currentOptionId7 = option.optionid;
|
|
9965
|
+
});
|
|
9966
|
+
});
|
|
9967
|
+
|
|
9968
|
+
// Same option (e.g., selecting only size)
|
|
9969
|
+
if (_selectedOptionId7 === _currentOptionId7) {
|
|
9970
|
+
// Show all sizes that appear in any in-stock variant (any color)
|
|
9971
|
+
return _inStockVariants7.some(function (variant) {
|
|
9972
|
+
return variant.variantoptions.some(function (opt) {
|
|
9973
|
+
return opt.valueid === Currvalueid;
|
|
9974
|
+
});
|
|
9975
|
+
}) ? 1 : 0;
|
|
9976
|
+
}
|
|
9977
|
+
|
|
9978
|
+
// Different option (e.g., color)
|
|
9979
|
+
// Only in-stock if a variant has both selected value + this value
|
|
9980
|
+
return _inStockVariants7.some(function (variant) {
|
|
9981
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
9982
|
+
return v.valueid;
|
|
9983
|
+
});
|
|
9984
|
+
return variantValueIds.includes(_selected7.valueid) && variantValueIds.includes(Currvalueid);
|
|
9985
|
+
}) ? 1 : 0;
|
|
9986
|
+
}
|
|
9987
|
+
|
|
9988
|
+
// 🧠 Case 3: Multiple options selected (e.g., color + size)
|
|
9989
|
+
// Check if this value can exist with all selected options except its own type in any in-stock variant
|
|
9990
|
+
var _inStock7 = _inStockVariants7.some(function (variant) {
|
|
9991
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
9992
|
+
return v.valueid;
|
|
9993
|
+
});
|
|
9994
|
+
// Must match all selected except the one that belongs to same option
|
|
9995
|
+
return _selectedValues7.every(function (sel) {
|
|
9996
|
+
if (_options7.some(function (opt) {
|
|
9997
|
+
return opt.optionvalues.some(function (v) {
|
|
9998
|
+
return v.valueid === Currvalueid && v.optionid === sel.optionid;
|
|
9999
|
+
});
|
|
10000
|
+
})) {
|
|
10001
|
+
// Skip same option
|
|
10002
|
+
return true;
|
|
10003
|
+
}
|
|
10004
|
+
return variantValueIds.includes(sel.valueid);
|
|
10005
|
+
}) && variantValueIds.includes(Currvalueid);
|
|
10006
|
+
});
|
|
10007
|
+
return _inStock7 ? 1 : 0;
|
|
10008
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) == '687ca57cc78e8') {
|
|
10009
|
+
var _ProductInfoObj$data9;
|
|
10010
|
+
var _productinfo8 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data9 = ProductInfoObj.data) === null || _ProductInfoObj$data9 === void 0 ? void 0 : _ProductInfoObj$data9.productinfo;
|
|
10011
|
+
var _options8 = (_productinfo8 === null || _productinfo8 === void 0 ? void 0 : _productinfo8.productoptions) || [];
|
|
10012
|
+
var _variants8 = (_productinfo8 === null || _productinfo8 === void 0 ? void 0 : _productinfo8.variants) || [];
|
|
10013
|
+
|
|
10014
|
+
// Collect selected option value IDs and find which option they belong to
|
|
10015
|
+
var _selectedValues8 = [];
|
|
10016
|
+
_options8.forEach(function (option) {
|
|
10017
|
+
option.optionvalues.forEach(function (value) {
|
|
10018
|
+
if (value.isselected === 1) {
|
|
10019
|
+
_selectedValues8.push({
|
|
10020
|
+
optionid: option.optionid,
|
|
10021
|
+
valueid: value.valueid
|
|
10022
|
+
});
|
|
10023
|
+
}
|
|
10024
|
+
});
|
|
10025
|
+
});
|
|
10026
|
+
_options8.length;
|
|
10027
|
+
var _selectedCount8 = _selectedValues8.length;
|
|
10028
|
+
var _inStockVariants8 = _variants8.filter(function (v) {
|
|
10029
|
+
return v.current_quantity > 0;
|
|
10030
|
+
});
|
|
10031
|
+
|
|
10032
|
+
// 🧠 Case 1: No selection yet → show if this value exists in any in-stock variant
|
|
10033
|
+
if (_selectedCount8 === 0) {
|
|
10034
|
+
return _inStockVariants8.some(function (variant) {
|
|
10035
|
+
return variant.variantoptions.some(function (opt) {
|
|
10036
|
+
return opt.valueid === Currvalueid;
|
|
10037
|
+
});
|
|
10038
|
+
}) ? 1 : 0;
|
|
10039
|
+
}
|
|
10040
|
+
|
|
10041
|
+
// 🧠 Case 2: Only one option selected
|
|
10042
|
+
if (_selectedCount8 === 1) {
|
|
10043
|
+
var _selected8 = _selectedValues8[0];
|
|
10044
|
+
var _selectedOptionId8 = _selected8.optionid;
|
|
10045
|
+
|
|
10046
|
+
// Find which option this Currvalueid belongs to
|
|
10047
|
+
var _currentOptionId8 = null;
|
|
10048
|
+
_options8.forEach(function (option) {
|
|
10049
|
+
option.optionvalues.forEach(function (v) {
|
|
10050
|
+
if (v.valueid === Currvalueid) _currentOptionId8 = option.optionid;
|
|
10051
|
+
});
|
|
10052
|
+
});
|
|
10053
|
+
|
|
10054
|
+
// Same option (e.g., selecting only size)
|
|
10055
|
+
if (_selectedOptionId8 === _currentOptionId8) {
|
|
10056
|
+
// Show all sizes that appear in any in-stock variant (any color)
|
|
10057
|
+
return _inStockVariants8.some(function (variant) {
|
|
10058
|
+
return variant.variantoptions.some(function (opt) {
|
|
10059
|
+
return opt.valueid === Currvalueid;
|
|
10060
|
+
});
|
|
10061
|
+
}) ? 1 : 0;
|
|
10062
|
+
}
|
|
10063
|
+
|
|
10064
|
+
// Different option (e.g., color)
|
|
10065
|
+
// Only in-stock if a variant has both selected value + this value
|
|
10066
|
+
return _inStockVariants8.some(function (variant) {
|
|
10067
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
10068
|
+
return v.valueid;
|
|
10069
|
+
});
|
|
10070
|
+
return variantValueIds.includes(_selected8.valueid) && variantValueIds.includes(Currvalueid);
|
|
10071
|
+
}) ? 1 : 0;
|
|
10072
|
+
}
|
|
10073
|
+
|
|
10074
|
+
// 🧠 Case 3: Multiple options selected (e.g., color + size)
|
|
10075
|
+
// Check if this value can exist with all selected options except its own type in any in-stock variant
|
|
10076
|
+
var _inStock8 = _inStockVariants8.some(function (variant) {
|
|
10077
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
10078
|
+
return v.valueid;
|
|
10079
|
+
});
|
|
10080
|
+
// Must match all selected except the one that belongs to same option
|
|
10081
|
+
return _selectedValues8.every(function (sel) {
|
|
10082
|
+
if (_options8.some(function (opt) {
|
|
10083
|
+
return opt.optionvalues.some(function (v) {
|
|
10084
|
+
return v.valueid === Currvalueid && v.optionid === sel.optionid;
|
|
10085
|
+
});
|
|
10086
|
+
})) {
|
|
10087
|
+
// Skip same option
|
|
10088
|
+
return true;
|
|
10089
|
+
}
|
|
10090
|
+
return variantValueIds.includes(sel.valueid);
|
|
10091
|
+
}) && variantValueIds.includes(Currvalueid);
|
|
10092
|
+
});
|
|
10093
|
+
return _inStock8 ? 1 : 0;
|
|
9920
10094
|
} else {
|
|
9921
10095
|
return 1;
|
|
9922
10096
|
}
|
|
9923
10097
|
};
|
|
9924
10098
|
var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
|
|
9925
|
-
var _authdetailsContext$
|
|
9926
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10099
|
+
var _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _authdetailsContext$i16, _authdetailsContext$i17, _authdetailsContext$i18, _authdetailsContext$i19, _authdetailsContext$i20;
|
|
10100
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '68d28fc494276') {
|
|
9927
10101
|
var _productarr$data, _productarr$data$prod;
|
|
9928
10102
|
var _productarr = ProductInfoObj;
|
|
9929
10103
|
if (!(_productarr !== null && _productarr !== void 0 && (_productarr$data = _productarr.data) !== null && _productarr$data !== void 0 && _productarr$data.productinfo)) return;
|
|
@@ -9975,9 +10149,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9975
10149
|
// optional: show user message or disable click
|
|
9976
10150
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
9977
10151
|
}
|
|
9978
|
-
}
|
|
9979
|
-
// vout
|
|
9980
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) == '68f918a4ccb85') {
|
|
10152
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '67c050d72cbe7') {
|
|
9981
10153
|
var _productarr2$data, _productarr2$data$pro;
|
|
9982
10154
|
var _productarr2 = ProductInfoObj;
|
|
9983
10155
|
if (!(_productarr2 !== null && _productarr2 !== void 0 && (_productarr2$data = _productarr2.data) !== null && _productarr2$data !== void 0 && _productarr2$data.productinfo)) return;
|
|
@@ -10030,8 +10202,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
10030
10202
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
10031
10203
|
}
|
|
10032
10204
|
}
|
|
10033
|
-
//
|
|
10034
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10205
|
+
// vout
|
|
10206
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '68f918a4ccb85') {
|
|
10035
10207
|
var _productarr3$data, _productarr3$data$pro;
|
|
10036
10208
|
var _productarr3 = ProductInfoObj;
|
|
10037
10209
|
if (!(_productarr3 !== null && _productarr3 !== void 0 && (_productarr3$data = _productarr3.data) !== null && _productarr3$data !== void 0 && _productarr3$data.productinfo)) return;
|
|
@@ -10084,8 +10256,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
10084
10256
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
10085
10257
|
}
|
|
10086
10258
|
}
|
|
10087
|
-
//
|
|
10088
|
-
|
|
10259
|
+
// puff n stuff
|
|
10260
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.contactinfo.instid) == '6899e604db87f') {
|
|
10089
10261
|
var _productarr4$data, _productarr4$data$pro;
|
|
10090
10262
|
var _productarr4 = ProductInfoObj;
|
|
10091
10263
|
if (!(_productarr4 !== null && _productarr4 !== void 0 && (_productarr4$data = _productarr4.data) !== null && _productarr4$data !== void 0 && _productarr4$data.productinfo)) return;
|
|
@@ -10138,8 +10310,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
10138
10310
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
10139
10311
|
}
|
|
10140
10312
|
}
|
|
10141
|
-
//
|
|
10142
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10313
|
+
// dija
|
|
10314
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) == '682cbb9bdcd57') {
|
|
10143
10315
|
var _productarr5$data, _productarr5$data$pro;
|
|
10144
10316
|
var _productarr5 = ProductInfoObj;
|
|
10145
10317
|
if (!(_productarr5 !== null && _productarr5 !== void 0 && (_productarr5$data = _productarr5.data) !== null && _productarr5$data !== void 0 && _productarr5$data.productinfo)) return;
|
|
@@ -10191,7 +10363,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
10191
10363
|
// optional: show user message or disable click
|
|
10192
10364
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
10193
10365
|
}
|
|
10194
|
-
}
|
|
10366
|
+
}
|
|
10367
|
+
// angel
|
|
10368
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) == '67bda57bca71d') {
|
|
10195
10369
|
var _productarr6$data, _productarr6$data$pro;
|
|
10196
10370
|
var _productarr6 = ProductInfoObj;
|
|
10197
10371
|
if (!(_productarr6 !== null && _productarr6 !== void 0 && (_productarr6$data = _productarr6.data) !== null && _productarr6$data !== void 0 && _productarr6$data.productinfo)) return;
|
|
@@ -10243,7 +10417,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10243
10417
|
// optional: show user message or disable click
|
|
10244
10418
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
10245
10419
|
}
|
|
10246
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10420
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) == '69244cc88aa0a') {
|
|
10247
10421
|
var _productarr7$data, _productarr7$data$pro;
|
|
10248
10422
|
var _productarr7 = ProductInfoObj;
|
|
10249
10423
|
if (!(_productarr7 !== null && _productarr7 !== void 0 && (_productarr7$data = _productarr7.data) !== null && _productarr7$data !== void 0 && _productarr7$data.productinfo)) return;
|
|
@@ -10295,6 +10469,58 @@ var Productinfo = function Productinfo(props) {
|
|
|
10295
10469
|
// optional: show user message or disable click
|
|
10296
10470
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
10297
10471
|
}
|
|
10472
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) == '687ca57cc78e8') {
|
|
10473
|
+
var _productarr8$data, _productarr8$data$pro;
|
|
10474
|
+
var _productarr8 = ProductInfoObj;
|
|
10475
|
+
if (!(_productarr8 !== null && _productarr8 !== void 0 && (_productarr8$data = _productarr8.data) !== null && _productarr8$data !== void 0 && _productarr8$data.productinfo)) return;
|
|
10476
|
+
|
|
10477
|
+
// 1. Find variants that include the newly selected value
|
|
10478
|
+
var _validVariants7 = (_productarr8.data.productinfo.variants || []).filter(function (variant) {
|
|
10479
|
+
return (variant.variantoptions || []).some(function (opt) {
|
|
10480
|
+
return opt.valueid === optionvaluesitem.valueid;
|
|
10481
|
+
});
|
|
10482
|
+
});
|
|
10483
|
+
|
|
10484
|
+
// 2. Build a set of valid value ids
|
|
10485
|
+
var _validValueIds7 = new Set(_validVariants7.flatMap(function (v) {
|
|
10486
|
+
return (v.variantoptions || []).map(function (opt) {
|
|
10487
|
+
return opt.valueid;
|
|
10488
|
+
});
|
|
10489
|
+
}));
|
|
10490
|
+
|
|
10491
|
+
// 3. Loop all options and their values
|
|
10492
|
+
(_productarr8$data$pro = _productarr8.data.productinfo.productoptions) === null || _productarr8$data$pro === void 0 || _productarr8$data$pro.forEach(function (option) {
|
|
10493
|
+
var _option$optionvalues8;
|
|
10494
|
+
var anySelected = false;
|
|
10495
|
+
(_option$optionvalues8 = option.optionvalues) === null || _option$optionvalues8 === void 0 || _option$optionvalues8.forEach(function (value) {
|
|
10496
|
+
// Normalize stock check result to boolean
|
|
10497
|
+
var stockResult = isOptionInStock(value.valueid);
|
|
10498
|
+
var inStock = !(stockResult === 0 || stockResult === '0' || stockResult === false || stockResult === 'false' || stockResult == null);
|
|
10499
|
+
|
|
10500
|
+
// Unselect if NOT valid with the chosen new value OR out of stock
|
|
10501
|
+
if (!_validValueIds7.has(value.valueid) || !inStock) {
|
|
10502
|
+
value.isselected = 0;
|
|
10503
|
+
} else {
|
|
10504
|
+
// keep whatever selection is already there (do not auto-select)
|
|
10505
|
+
if (value.isselected) anySelected = true;
|
|
10506
|
+
}
|
|
10507
|
+
});
|
|
10508
|
+
|
|
10509
|
+
// keep option-level selected state in sync
|
|
10510
|
+
option.isselected = anySelected ? 1 : 0;
|
|
10511
|
+
});
|
|
10512
|
+
|
|
10513
|
+
// 4. Only select the new value if it's in stock
|
|
10514
|
+
var _newInStock7 = function () {
|
|
10515
|
+
var r = isOptionInStock(optionvaluesitem.valueid);
|
|
10516
|
+
return !(r === 0 || r === '0' || r === false || r === 'false' || r == null);
|
|
10517
|
+
}();
|
|
10518
|
+
if (_newInStock7) {
|
|
10519
|
+
selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, _productarr8);
|
|
10520
|
+
} else {
|
|
10521
|
+
// optional: show user message or disable click
|
|
10522
|
+
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
10523
|
+
}
|
|
10298
10524
|
} else {
|
|
10299
10525
|
var _productarr$data2;
|
|
10300
10526
|
var productarr = ProductInfoObj;
|
|
@@ -10552,10 +10778,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
10552
10778
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
10553
10779
|
runfunc = true;
|
|
10554
10780
|
} else {
|
|
10555
|
-
var _authdetailsContext$
|
|
10781
|
+
var _authdetailsContext$i21, _authdetailsContext$i22, _authdetailsContext$i23;
|
|
10556
10782
|
// here
|
|
10557
10783
|
setvariantnotchosendisclaimer('This field is required');
|
|
10558
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10784
|
+
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' : 'من فضلك اختر من المتغيرات');
|
|
10559
10785
|
}
|
|
10560
10786
|
} else {
|
|
10561
10787
|
runfunc = true;
|
|
@@ -10639,9 +10865,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
10639
10865
|
};
|
|
10640
10866
|
};
|
|
10641
10867
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
10642
|
-
var _authdetailsContext$
|
|
10868
|
+
var _authdetailsContext$i24;
|
|
10643
10869
|
var policyobj = {};
|
|
10644
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10870
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 || (_authdetailsContext$i24 = _authdetailsContext$i24.instpolicies) === null || _authdetailsContext$i24 === void 0 || _authdetailsContext$i24.forEach(function (item, index) {
|
|
10645
10871
|
if (item.policytype == policytype) {
|
|
10646
10872
|
policyobj = item;
|
|
10647
10873
|
}
|
|
@@ -10650,7 +10876,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10650
10876
|
};
|
|
10651
10877
|
var relatedproducts = function relatedproducts() {
|
|
10652
10878
|
if (Relatedproducts.length != 0) {
|
|
10653
|
-
var _authdetailsContext$
|
|
10879
|
+
var _authdetailsContext$i25, _authdetailsContext$i26, _authdetailsContext$i27, _authdetailsContext$i28, _authdetailsContext$i29;
|
|
10654
10880
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10655
10881
|
className: "w-100 row ml-0 mr-0 d-flex justify-content-start pl-md-3 pr-md-3 pl-sm-2 pr-sm-2",
|
|
10656
10882
|
style: {
|
|
@@ -10672,9 +10898,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
10672
10898
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10673
10899
|
className: "row m-0 w-100",
|
|
10674
10900
|
style: {
|
|
10675
|
-
background: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10901
|
+
background: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.contactinfo.instid) == '69a3437faf64f' ? '#fff' : 'transparent'
|
|
10676
10902
|
}
|
|
10677
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10903
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i26 = authdetailsContext.instinfo) === null || _authdetailsContext$i26 === void 0 ? void 0 : _authdetailsContext$i26.contactinfo.instid) == '69a3437faf64f' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10678
10904
|
className: "py-3 col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 flex-column mx-auto",
|
|
10679
10905
|
style: {
|
|
10680
10906
|
justifyContent: sectionproperties.relatedtitleposition == 'Centered' ? 'center' : 'start',
|
|
@@ -10693,7 +10919,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10693
10919
|
background: sectionproperties.relatedproducttitlelinebgcolor,
|
|
10694
10920
|
borderRadius: 5
|
|
10695
10921
|
}
|
|
10696
|
-
})), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10922
|
+
})), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i27 = authdetailsContext.instinfo) === null || _authdetailsContext$i27 === void 0 ? void 0 : _authdetailsContext$i27.contactinfo.instid) != '69a3437faf64f' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10697
10923
|
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 flex-column",
|
|
10698
10924
|
style: {
|
|
10699
10925
|
justifyContent: sectionproperties.relatedtitleposition == 'Centered' ? 'center' : 'start',
|
|
@@ -10714,8 +10940,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
10714
10940
|
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
|
|
10715
10941
|
transitionBehavior: 'auto',
|
|
10716
10942
|
wrapperClassName: '',
|
|
10717
|
-
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10718
|
-
scrollContainerClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10943
|
+
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i28 = authdetailsContext.instinfo) === null || _authdetailsContext$i28 === void 0 ? void 0 : _authdetailsContext$i28.contactinfo.instid) == '67dc756de56bd' ? 'scrollmenuclassnameitemrelatedproductkingtut' : 'scrollmenuclassnameitemrelatedproduct',
|
|
10944
|
+
scrollContainerClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i29 = authdetailsContext.instinfo) === null || _authdetailsContext$i29 === void 0 ? void 0 : _authdetailsContext$i29.contactinfo.instid) == '68e7c7c93c5bd' ? '' : 'scrollmenuclasssubscrollbarrelatedproducts'
|
|
10719
10945
|
}, Relatedproducts.map(function (item, index) {
|
|
10720
10946
|
if (item.productinfo != null) {
|
|
10721
10947
|
var _fetchProductInfoQuer49;
|
|
@@ -10785,10 +11011,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
10785
11011
|
if (addtocartobjparam.variantid.length != 0) {
|
|
10786
11012
|
runfunc = true;
|
|
10787
11013
|
} else {
|
|
10788
|
-
var _authdetailsContext$
|
|
11014
|
+
var _authdetailsContext$i30;
|
|
10789
11015
|
// here
|
|
10790
11016
|
setvariantnotchosendisclaimer('This field is required');
|
|
10791
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11017
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i30 = authdetailsContext.instinfo) === null || _authdetailsContext$i30 === void 0 ? void 0 : _authdetailsContext$i30.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
10792
11018
|
}
|
|
10793
11019
|
} else {
|
|
10794
11020
|
runfunc = true;
|
|
@@ -10831,8 +11057,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
10831
11057
|
isVarianturlLoaded = _useState58[0],
|
|
10832
11058
|
setisVarianturlLoaded = _useState58[1];
|
|
10833
11059
|
React.useEffect(function () {
|
|
10834
|
-
var _authdetailsContext$
|
|
10835
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11060
|
+
var _authdetailsContext$i31;
|
|
11061
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i31 = authdetailsContext.instinfo) === null || _authdetailsContext$i31 === void 0 ? void 0 : _authdetailsContext$i31.contactinfo.instid) == '68f918a4ccb85') {
|
|
10836
11062
|
var params = new URLSearchParams(window.location.search);
|
|
10837
11063
|
var variantId = params.get('variant');
|
|
10838
11064
|
if (isVarianturlLoaded == false) {
|
|
@@ -11527,7 +11753,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11527
11753
|
})));
|
|
11528
11754
|
};
|
|
11529
11755
|
var StoreInfo = function StoreInfo(position) {
|
|
11530
|
-
var _fetchProductInfoQuer78, _authdetailsContext$
|
|
11756
|
+
var _fetchProductInfoQuer78, _authdetailsContext$i33, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i34, _authdetailsContext$i36;
|
|
11531
11757
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11532
11758
|
"class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
|
|
11533
11759
|
style: {
|
|
@@ -11606,8 +11832,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
11606
11832
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11607
11833
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mt-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
11608
11834
|
onClick: function onClick() {
|
|
11609
|
-
var _authdetailsContext$
|
|
11610
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11835
|
+
var _authdetailsContext$i32;
|
|
11836
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i32 = authdetailsContext.instinfo) === null || _authdetailsContext$i32 === void 0 || (_authdetailsContext$i32 = _authdetailsContext$i32.contactinfo) === null || _authdetailsContext$i32 === void 0 ? void 0 : _authdetailsContext$i32.email), '_self');
|
|
11611
11837
|
}
|
|
11612
11838
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11613
11839
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -11627,7 +11853,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11627
11853
|
style: {
|
|
11628
11854
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11629
11855
|
}
|
|
11630
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11856
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i33 = authdetailsContext.instinfo) === null || _authdetailsContext$i33 === void 0 || (_authdetailsContext$i33 = _authdetailsContext$i33.contactinfo) === null || _authdetailsContext$i33 === void 0 ? void 0 : _authdetailsContext$i33.email))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11631
11857
|
"class": "col-lg-12 my-2",
|
|
11632
11858
|
style: {
|
|
11633
11859
|
display: sectionproperties.showfirstpolicy_storeinfo == 'Hide' && sectionproperties.showsecondpolicy_storeinfo == 'Hide' ? 'none' : 'block'
|
|
@@ -11679,25 +11905,25 @@ var Productinfo = function Productinfo(props) {
|
|
|
11679
11905
|
}
|
|
11680
11906
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11681
11907
|
"class": "m-0 p-0"
|
|
11682
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11908
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i34 = authdetailsContext.instinfo) === null || _authdetailsContext$i34 === void 0 || (_authdetailsContext$i34 = _authdetailsContext$i34.contactinfo) === null || _authdetailsContext$i34 === void 0 ? void 0 : _authdetailsContext$i34.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11683
11909
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
11684
11910
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
11685
11911
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
11686
11912
|
onClick: function onClick() {
|
|
11687
|
-
var _authdetailsContext$
|
|
11688
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11913
|
+
var _authdetailsContext$i35;
|
|
11914
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i35 = authdetailsContext.instinfo) === null || _authdetailsContext$i35 === void 0 || (_authdetailsContext$i35 = _authdetailsContext$i35.contactinfo) === null || _authdetailsContext$i35 === void 0 ? void 0 : _authdetailsContext$i35.email), '_self');
|
|
11689
11915
|
}
|
|
11690
11916
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11691
11917
|
"class": "m-0 p-0"
|
|
11692
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11918
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i36 = authdetailsContext.instinfo) === null || _authdetailsContext$i36 === void 0 ? void 0 : _authdetailsContext$i36.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11693
11919
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
11694
11920
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
11695
11921
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
11696
11922
|
onClick: function onClick() {
|
|
11697
|
-
var _authdetailsContext$
|
|
11698
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11699
|
-
var _authdetailsContext$
|
|
11700
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
11923
|
+
var _authdetailsContext$i37;
|
|
11924
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i37 = authdetailsContext.instinfo) === null || _authdetailsContext$i37 === void 0 ? void 0 : _authdetailsContext$i37.whatsappnumber) != null) {
|
|
11925
|
+
var _authdetailsContext$i38;
|
|
11926
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i38 = authdetailsContext.instinfo) === null || _authdetailsContext$i38 === void 0 ? void 0 : _authdetailsContext$i38.whatsappnumber), '_blank');
|
|
11701
11927
|
}
|
|
11702
11928
|
}
|
|
11703
11929
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -11808,7 +12034,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11808
12034
|
lang: lang,
|
|
11809
12035
|
srcfromprops: props.srcfromprops
|
|
11810
12036
|
}, _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), "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"](_ref3, "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"](_ref3, "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"](_ref3, "addtocartfunc_extras", addtocartfunc_extras))
|
|
11811
|
-
}), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
12037
|
+
}), 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", {
|
|
11812
12038
|
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 ',
|
|
11813
12039
|
style: {
|
|
11814
12040
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect != 'ar' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
@@ -11999,7 +12225,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
11999
12225
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
12000
12226
|
sectionproperties: sectionproperties
|
|
12001
12227
|
})
|
|
12002
|
-
}))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
12228
|
+
}))))), 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 || (_fetchProductInfoQuer94 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.data) === null || _fetchProductInfoQuer94 === void 0 || (_fetchProductInfoQuer94 = _fetchProductInfoQuer94.productinfo) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : _fetchProductInfoQuer94.item_type) != 'Article' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12003
12229
|
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 ',
|
|
12004
12230
|
style: {
|
|
12005
12231
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect != 'ar' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|