tabexseriescomponents 0.2.1150 → 0.2.1151
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 +329 -39
- package/dist/index.esm.js +329 -39
- package/dist/index.umd.js +329 -39
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1782,11 +1782,17 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1782
1782
|
var isValueinStock = isOptionInStock(optionvaluesitem.valueid);
|
|
1783
1783
|
var is_value_permdisabled = 0;
|
|
1784
1784
|
if ((optionvaluesitem === null || optionvaluesitem === void 0 ? void 0 : optionvaluesitem.perm_disabled) == 1) {
|
|
1785
|
-
var _authdetailsContext$i, _authdetailsContext$i2;
|
|
1785
|
+
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4;
|
|
1786
1786
|
// if()
|
|
1787
1787
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '68d28fc494276') {
|
|
1788
1788
|
is_value_permdisabled = 1;
|
|
1789
|
-
}
|
|
1789
|
+
}
|
|
1790
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.contactinfo.instid) == '69244cc88aa0a') {
|
|
1791
|
+
is_value_permdisabled = 1;
|
|
1792
|
+
}
|
|
1793
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.contactinfo.instid) == '687ca57cc78e8') {
|
|
1794
|
+
is_value_permdisabled = 1;
|
|
1795
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '6899e604db87f') {
|
|
1790
1796
|
is_value_permdisabled = 1;
|
|
1791
1797
|
}
|
|
1792
1798
|
}
|
|
@@ -1815,7 +1821,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1815
1821
|
} else if (item.optionname == 'size' || item.optionname == 'Size') {
|
|
1816
1822
|
// if (ProductInfoObj?.data?.productinfo?.productoptions?.length == 1 || isoptionvaluedenabled == 1) {
|
|
1817
1823
|
if (is_value_permdisabled == 0) {
|
|
1818
|
-
var _authdetailsContext$
|
|
1824
|
+
var _authdetailsContext$i5, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i10, _authdetailsContext$i11;
|
|
1819
1825
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1820
1826
|
// className={
|
|
1821
1827
|
// issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true &&
|
|
@@ -1827,15 +1833,23 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1827
1833
|
// ' mr-2 variabttcontainer allcentered ' +
|
|
1828
1834
|
// `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
|
|
1829
1835
|
// }
|
|
1830
|
-
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1836
|
+
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '68f918a4ccb85' ? " ".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered linethroughshowcrossicon ' + " ".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : '') : " ".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered ' + " ".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
|
|
1831
1837
|
onClick: function onClick() {
|
|
1832
1838
|
if (isoptionvalueselected == 0) {
|
|
1833
|
-
var _authdetailsContext$
|
|
1834
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1839
|
+
var _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9;
|
|
1840
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '68d28fc494276') {
|
|
1841
|
+
if (isValueinStock == 0) {
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '69244cc88aa0a') {
|
|
1835
1845
|
if (isValueinStock == 0) {
|
|
1836
1846
|
return;
|
|
1837
1847
|
}
|
|
1838
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1848
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '687ca57cc78e8') {
|
|
1849
|
+
if (isValueinStock == 0) {
|
|
1850
|
+
return;
|
|
1851
|
+
}
|
|
1852
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '6899e604db87f') {
|
|
1839
1853
|
if (isValueinStock == 0) {
|
|
1840
1854
|
return;
|
|
1841
1855
|
}
|
|
@@ -1879,7 +1893,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1879
1893
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1880
1894
|
"class": "h-100 allcentered"
|
|
1881
1895
|
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1882
|
-
className: isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1896
|
+
className: isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '68d28fc494276' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' : isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) == '69244cc88aa0a' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' : isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '687ca57cc78e8' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' : isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) == '6899e604db87f' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' : 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center',
|
|
1883
1897
|
style: {
|
|
1884
1898
|
color: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null && isoptionvalueselected == 1 ? sectionproperties.activeproductcolor : sectionproperties.variantcontainer_color,
|
|
1885
1899
|
fontSize: sectionproperties.variantcontainer_fontSize + 'px',
|
|
@@ -7270,7 +7284,7 @@ var Article_itemtype = function Article_itemtype(props) {
|
|
|
7270
7284
|
function ownKeys$2B(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; }
|
|
7271
7285
|
function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7272
7286
|
var Productinfo = function Productinfo(props) {
|
|
7273
|
-
var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _authdetailsContext$
|
|
7287
|
+
var _css, _fetchProductInfoQuer83, _ref, _fetchProductInfoQuer84, _authdetailsContext$i24, _ref2, _fetchProductInfoQuer85, _authdetailsContext$i25, _ref3, _fetchProductInfoQuer86, _ref4, _authdetailsContext$i26, _authdetailsContext$i27, _authdetailsContext$i28, _authdetailsContext$i29, _authdetailsContext$i30, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _authdetailsContext$i31, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _fetchProductInfoQuer97, _returnpolicyobj15, _returnpolicyobj16, _returnpolicyobj17, _returnpolicyobj18;
|
|
7274
7288
|
var _useState = React.useState({}),
|
|
7275
7289
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
7276
7290
|
ProductInfoObj = _useState2[0],
|
|
@@ -7753,7 +7767,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7753
7767
|
// selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, productarr);
|
|
7754
7768
|
// };
|
|
7755
7769
|
var isOptionInStock = function isOptionInStock(Currvalueid) {
|
|
7756
|
-
var _authdetailsContext$i4, _authdetailsContext$i5;
|
|
7770
|
+
var _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7;
|
|
7757
7771
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '68d28fc494276') {
|
|
7758
7772
|
var _ProductInfoObj$data;
|
|
7759
7773
|
var productinfo = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : _ProductInfoObj$data.productinfo;
|
|
@@ -7926,13 +7940,185 @@ var Productinfo = function Productinfo(props) {
|
|
|
7926
7940
|
}) && variantValueIds.includes(Currvalueid);
|
|
7927
7941
|
});
|
|
7928
7942
|
return _inStock ? 1 : 0;
|
|
7943
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.contactinfo.instid) == '687ca57cc78e8') {
|
|
7944
|
+
var _ProductInfoObj$data3;
|
|
7945
|
+
var _productinfo2 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data3 = ProductInfoObj.data) === null || _ProductInfoObj$data3 === void 0 ? void 0 : _ProductInfoObj$data3.productinfo;
|
|
7946
|
+
var _options2 = (_productinfo2 === null || _productinfo2 === void 0 ? void 0 : _productinfo2.productoptions) || [];
|
|
7947
|
+
var _variants2 = (_productinfo2 === null || _productinfo2 === void 0 ? void 0 : _productinfo2.variants) || [];
|
|
7948
|
+
|
|
7949
|
+
// Collect selected option value IDs and find which option they belong to
|
|
7950
|
+
var _selectedValues2 = [];
|
|
7951
|
+
_options2.forEach(function (option) {
|
|
7952
|
+
option.optionvalues.forEach(function (value) {
|
|
7953
|
+
if (value.isselected === 1) {
|
|
7954
|
+
_selectedValues2.push({
|
|
7955
|
+
optionid: option.optionid,
|
|
7956
|
+
valueid: value.valueid
|
|
7957
|
+
});
|
|
7958
|
+
}
|
|
7959
|
+
});
|
|
7960
|
+
});
|
|
7961
|
+
_options2.length;
|
|
7962
|
+
var _selectedCount2 = _selectedValues2.length;
|
|
7963
|
+
var _inStockVariants2 = _variants2.filter(function (v) {
|
|
7964
|
+
return v.current_quantity > 0;
|
|
7965
|
+
});
|
|
7966
|
+
|
|
7967
|
+
// 🧠 Case 1: No selection yet → show if this value exists in any in-stock variant
|
|
7968
|
+
if (_selectedCount2 === 0) {
|
|
7969
|
+
return _inStockVariants2.some(function (variant) {
|
|
7970
|
+
return variant.variantoptions.some(function (opt) {
|
|
7971
|
+
return opt.valueid === Currvalueid;
|
|
7972
|
+
});
|
|
7973
|
+
}) ? 1 : 0;
|
|
7974
|
+
}
|
|
7975
|
+
|
|
7976
|
+
// 🧠 Case 2: Only one option selected
|
|
7977
|
+
if (_selectedCount2 === 1) {
|
|
7978
|
+
var _selected2 = _selectedValues2[0];
|
|
7979
|
+
var _selectedOptionId2 = _selected2.optionid;
|
|
7980
|
+
|
|
7981
|
+
// Find which option this Currvalueid belongs to
|
|
7982
|
+
var _currentOptionId2 = null;
|
|
7983
|
+
_options2.forEach(function (option) {
|
|
7984
|
+
option.optionvalues.forEach(function (v) {
|
|
7985
|
+
if (v.valueid === Currvalueid) _currentOptionId2 = option.optionid;
|
|
7986
|
+
});
|
|
7987
|
+
});
|
|
7988
|
+
|
|
7989
|
+
// Same option (e.g., selecting only size)
|
|
7990
|
+
if (_selectedOptionId2 === _currentOptionId2) {
|
|
7991
|
+
// Show all sizes that appear in any in-stock variant (any color)
|
|
7992
|
+
return _inStockVariants2.some(function (variant) {
|
|
7993
|
+
return variant.variantoptions.some(function (opt) {
|
|
7994
|
+
return opt.valueid === Currvalueid;
|
|
7995
|
+
});
|
|
7996
|
+
}) ? 1 : 0;
|
|
7997
|
+
}
|
|
7998
|
+
|
|
7999
|
+
// Different option (e.g., color)
|
|
8000
|
+
// Only in-stock if a variant has both selected value + this value
|
|
8001
|
+
return _inStockVariants2.some(function (variant) {
|
|
8002
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
8003
|
+
return v.valueid;
|
|
8004
|
+
});
|
|
8005
|
+
return variantValueIds.includes(_selected2.valueid) && variantValueIds.includes(Currvalueid);
|
|
8006
|
+
}) ? 1 : 0;
|
|
8007
|
+
}
|
|
8008
|
+
|
|
8009
|
+
// 🧠 Case 3: Multiple options selected (e.g., color + size)
|
|
8010
|
+
// Check if this value can exist with all selected options except its own type in any in-stock variant
|
|
8011
|
+
var _inStock2 = _inStockVariants2.some(function (variant) {
|
|
8012
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
8013
|
+
return v.valueid;
|
|
8014
|
+
});
|
|
8015
|
+
// Must match all selected except the one that belongs to same option
|
|
8016
|
+
return _selectedValues2.every(function (sel) {
|
|
8017
|
+
if (_options2.some(function (opt) {
|
|
8018
|
+
return opt.optionvalues.some(function (v) {
|
|
8019
|
+
return v.valueid === Currvalueid && v.optionid === sel.optionid;
|
|
8020
|
+
});
|
|
8021
|
+
})) {
|
|
8022
|
+
// Skip same option
|
|
8023
|
+
return true;
|
|
8024
|
+
}
|
|
8025
|
+
return variantValueIds.includes(sel.valueid);
|
|
8026
|
+
}) && variantValueIds.includes(Currvalueid);
|
|
8027
|
+
});
|
|
8028
|
+
return _inStock2 ? 1 : 0;
|
|
8029
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.contactinfo.instid) == '6899e604db87f') {
|
|
8030
|
+
var _ProductInfoObj$data4;
|
|
8031
|
+
var _productinfo3 = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data4 = ProductInfoObj.data) === null || _ProductInfoObj$data4 === void 0 ? void 0 : _ProductInfoObj$data4.productinfo;
|
|
8032
|
+
var _options3 = (_productinfo3 === null || _productinfo3 === void 0 ? void 0 : _productinfo3.productoptions) || [];
|
|
8033
|
+
var _variants3 = (_productinfo3 === null || _productinfo3 === void 0 ? void 0 : _productinfo3.variants) || [];
|
|
8034
|
+
|
|
8035
|
+
// Collect selected option value IDs and find which option they belong to
|
|
8036
|
+
var _selectedValues3 = [];
|
|
8037
|
+
_options3.forEach(function (option) {
|
|
8038
|
+
option.optionvalues.forEach(function (value) {
|
|
8039
|
+
if (value.isselected === 1) {
|
|
8040
|
+
_selectedValues3.push({
|
|
8041
|
+
optionid: option.optionid,
|
|
8042
|
+
valueid: value.valueid
|
|
8043
|
+
});
|
|
8044
|
+
}
|
|
8045
|
+
});
|
|
8046
|
+
});
|
|
8047
|
+
_options3.length;
|
|
8048
|
+
var _selectedCount3 = _selectedValues3.length;
|
|
8049
|
+
var _inStockVariants3 = _variants3.filter(function (v) {
|
|
8050
|
+
return v.current_quantity > 0;
|
|
8051
|
+
});
|
|
8052
|
+
|
|
8053
|
+
// 🧠 Case 1: No selection yet → show if this value exists in any in-stock variant
|
|
8054
|
+
if (_selectedCount3 === 0) {
|
|
8055
|
+
return _inStockVariants3.some(function (variant) {
|
|
8056
|
+
return variant.variantoptions.some(function (opt) {
|
|
8057
|
+
return opt.valueid === Currvalueid;
|
|
8058
|
+
});
|
|
8059
|
+
}) ? 1 : 0;
|
|
8060
|
+
}
|
|
8061
|
+
|
|
8062
|
+
// 🧠 Case 2: Only one option selected
|
|
8063
|
+
if (_selectedCount3 === 1) {
|
|
8064
|
+
var _selected3 = _selectedValues3[0];
|
|
8065
|
+
var _selectedOptionId3 = _selected3.optionid;
|
|
8066
|
+
|
|
8067
|
+
// Find which option this Currvalueid belongs to
|
|
8068
|
+
var _currentOptionId3 = null;
|
|
8069
|
+
_options3.forEach(function (option) {
|
|
8070
|
+
option.optionvalues.forEach(function (v) {
|
|
8071
|
+
if (v.valueid === Currvalueid) _currentOptionId3 = option.optionid;
|
|
8072
|
+
});
|
|
8073
|
+
});
|
|
8074
|
+
|
|
8075
|
+
// Same option (e.g., selecting only size)
|
|
8076
|
+
if (_selectedOptionId3 === _currentOptionId3) {
|
|
8077
|
+
// Show all sizes that appear in any in-stock variant (any color)
|
|
8078
|
+
return _inStockVariants3.some(function (variant) {
|
|
8079
|
+
return variant.variantoptions.some(function (opt) {
|
|
8080
|
+
return opt.valueid === Currvalueid;
|
|
8081
|
+
});
|
|
8082
|
+
}) ? 1 : 0;
|
|
8083
|
+
}
|
|
8084
|
+
|
|
8085
|
+
// Different option (e.g., color)
|
|
8086
|
+
// Only in-stock if a variant has both selected value + this value
|
|
8087
|
+
return _inStockVariants3.some(function (variant) {
|
|
8088
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
8089
|
+
return v.valueid;
|
|
8090
|
+
});
|
|
8091
|
+
return variantValueIds.includes(_selected3.valueid) && variantValueIds.includes(Currvalueid);
|
|
8092
|
+
}) ? 1 : 0;
|
|
8093
|
+
}
|
|
8094
|
+
|
|
8095
|
+
// 🧠 Case 3: Multiple options selected (e.g., color + size)
|
|
8096
|
+
// Check if this value can exist with all selected options except its own type in any in-stock variant
|
|
8097
|
+
var _inStock3 = _inStockVariants3.some(function (variant) {
|
|
8098
|
+
var variantValueIds = variant.variantoptions.map(function (v) {
|
|
8099
|
+
return v.valueid;
|
|
8100
|
+
});
|
|
8101
|
+
// Must match all selected except the one that belongs to same option
|
|
8102
|
+
return _selectedValues3.every(function (sel) {
|
|
8103
|
+
if (_options3.some(function (opt) {
|
|
8104
|
+
return opt.optionvalues.some(function (v) {
|
|
8105
|
+
return v.valueid === Currvalueid && v.optionid === sel.optionid;
|
|
8106
|
+
});
|
|
8107
|
+
})) {
|
|
8108
|
+
// Skip same option
|
|
8109
|
+
return true;
|
|
8110
|
+
}
|
|
8111
|
+
return variantValueIds.includes(sel.valueid);
|
|
8112
|
+
}) && variantValueIds.includes(Currvalueid);
|
|
8113
|
+
});
|
|
8114
|
+
return _inStock3 ? 1 : 0;
|
|
7929
8115
|
} else {
|
|
7930
8116
|
return 1;
|
|
7931
8117
|
}
|
|
7932
8118
|
};
|
|
7933
8119
|
var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
|
|
7934
|
-
var _authdetailsContext$
|
|
7935
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8120
|
+
var _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _authdetailsContext$i1;
|
|
8121
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '68d28fc494276') {
|
|
7936
8122
|
var _productarr$data, _productarr$data$prod;
|
|
7937
8123
|
var _productarr = ProductInfoObj;
|
|
7938
8124
|
if (!(_productarr !== null && _productarr !== void 0 && (_productarr$data = _productarr.data) !== null && _productarr$data !== void 0 && _productarr$data.productinfo)) return;
|
|
@@ -7984,7 +8170,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
7984
8170
|
// optional: show user message or disable click
|
|
7985
8171
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
7986
8172
|
}
|
|
7987
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8173
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) == '69244cc88aa0a') {
|
|
7988
8174
|
var _productarr2$data, _productarr2$data$pro;
|
|
7989
8175
|
var _productarr2 = ProductInfoObj;
|
|
7990
8176
|
if (!(_productarr2 !== null && _productarr2 !== void 0 && (_productarr2$data = _productarr2.data) !== null && _productarr2$data !== void 0 && _productarr2$data.productinfo)) return;
|
|
@@ -8036,6 +8222,110 @@ var Productinfo = function Productinfo(props) {
|
|
|
8036
8222
|
// optional: show user message or disable click
|
|
8037
8223
|
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
8038
8224
|
}
|
|
8225
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '687ca57cc78e8') {
|
|
8226
|
+
var _productarr3$data, _productarr3$data$pro;
|
|
8227
|
+
var _productarr3 = ProductInfoObj;
|
|
8228
|
+
if (!(_productarr3 !== null && _productarr3 !== void 0 && (_productarr3$data = _productarr3.data) !== null && _productarr3$data !== void 0 && _productarr3$data.productinfo)) return;
|
|
8229
|
+
|
|
8230
|
+
// 1. Find variants that include the newly selected value
|
|
8231
|
+
var _validVariants2 = (_productarr3.data.productinfo.variants || []).filter(function (variant) {
|
|
8232
|
+
return (variant.variantoptions || []).some(function (opt) {
|
|
8233
|
+
return opt.valueid === optionvaluesitem.valueid;
|
|
8234
|
+
});
|
|
8235
|
+
});
|
|
8236
|
+
|
|
8237
|
+
// 2. Build a set of valid value ids
|
|
8238
|
+
var _validValueIds2 = new Set(_validVariants2.flatMap(function (v) {
|
|
8239
|
+
return (v.variantoptions || []).map(function (opt) {
|
|
8240
|
+
return opt.valueid;
|
|
8241
|
+
});
|
|
8242
|
+
}));
|
|
8243
|
+
|
|
8244
|
+
// 3. Loop all options and their values
|
|
8245
|
+
(_productarr3$data$pro = _productarr3.data.productinfo.productoptions) === null || _productarr3$data$pro === void 0 || _productarr3$data$pro.forEach(function (option) {
|
|
8246
|
+
var _option$optionvalues3;
|
|
8247
|
+
var anySelected = false;
|
|
8248
|
+
(_option$optionvalues3 = option.optionvalues) === null || _option$optionvalues3 === void 0 || _option$optionvalues3.forEach(function (value) {
|
|
8249
|
+
// Normalize stock check result to boolean
|
|
8250
|
+
var stockResult = isOptionInStock(value.valueid);
|
|
8251
|
+
var inStock = !(stockResult === 0 || stockResult === '0' || stockResult === false || stockResult === 'false' || stockResult == null);
|
|
8252
|
+
|
|
8253
|
+
// Unselect if NOT valid with the chosen new value OR out of stock
|
|
8254
|
+
if (!_validValueIds2.has(value.valueid) || !inStock) {
|
|
8255
|
+
value.isselected = 0;
|
|
8256
|
+
} else {
|
|
8257
|
+
// keep whatever selection is already there (do not auto-select)
|
|
8258
|
+
if (value.isselected) anySelected = true;
|
|
8259
|
+
}
|
|
8260
|
+
});
|
|
8261
|
+
|
|
8262
|
+
// keep option-level selected state in sync
|
|
8263
|
+
option.isselected = anySelected ? 1 : 0;
|
|
8264
|
+
});
|
|
8265
|
+
|
|
8266
|
+
// 4. Only select the new value if it's in stock
|
|
8267
|
+
var _newInStock2 = function () {
|
|
8268
|
+
var r = isOptionInStock(optionvaluesitem.valueid);
|
|
8269
|
+
return !(r === 0 || r === '0' || r === false || r === 'false' || r == null);
|
|
8270
|
+
}();
|
|
8271
|
+
if (_newInStock2) {
|
|
8272
|
+
selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, _productarr3);
|
|
8273
|
+
} else {
|
|
8274
|
+
// optional: show user message or disable click
|
|
8275
|
+
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
8276
|
+
}
|
|
8277
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) == '6899e604db87f') {
|
|
8278
|
+
var _productarr4$data, _productarr4$data$pro;
|
|
8279
|
+
var _productarr4 = ProductInfoObj;
|
|
8280
|
+
if (!(_productarr4 !== null && _productarr4 !== void 0 && (_productarr4$data = _productarr4.data) !== null && _productarr4$data !== void 0 && _productarr4$data.productinfo)) return;
|
|
8281
|
+
|
|
8282
|
+
// 1. Find variants that include the newly selected value
|
|
8283
|
+
var _validVariants3 = (_productarr4.data.productinfo.variants || []).filter(function (variant) {
|
|
8284
|
+
return (variant.variantoptions || []).some(function (opt) {
|
|
8285
|
+
return opt.valueid === optionvaluesitem.valueid;
|
|
8286
|
+
});
|
|
8287
|
+
});
|
|
8288
|
+
|
|
8289
|
+
// 2. Build a set of valid value ids
|
|
8290
|
+
var _validValueIds3 = new Set(_validVariants3.flatMap(function (v) {
|
|
8291
|
+
return (v.variantoptions || []).map(function (opt) {
|
|
8292
|
+
return opt.valueid;
|
|
8293
|
+
});
|
|
8294
|
+
}));
|
|
8295
|
+
|
|
8296
|
+
// 3. Loop all options and their values
|
|
8297
|
+
(_productarr4$data$pro = _productarr4.data.productinfo.productoptions) === null || _productarr4$data$pro === void 0 || _productarr4$data$pro.forEach(function (option) {
|
|
8298
|
+
var _option$optionvalues4;
|
|
8299
|
+
var anySelected = false;
|
|
8300
|
+
(_option$optionvalues4 = option.optionvalues) === null || _option$optionvalues4 === void 0 || _option$optionvalues4.forEach(function (value) {
|
|
8301
|
+
// Normalize stock check result to boolean
|
|
8302
|
+
var stockResult = isOptionInStock(value.valueid);
|
|
8303
|
+
var inStock = !(stockResult === 0 || stockResult === '0' || stockResult === false || stockResult === 'false' || stockResult == null);
|
|
8304
|
+
|
|
8305
|
+
// Unselect if NOT valid with the chosen new value OR out of stock
|
|
8306
|
+
if (!_validValueIds3.has(value.valueid) || !inStock) {
|
|
8307
|
+
value.isselected = 0;
|
|
8308
|
+
} else {
|
|
8309
|
+
// keep whatever selection is already there (do not auto-select)
|
|
8310
|
+
if (value.isselected) anySelected = true;
|
|
8311
|
+
}
|
|
8312
|
+
});
|
|
8313
|
+
|
|
8314
|
+
// keep option-level selected state in sync
|
|
8315
|
+
option.isselected = anySelected ? 1 : 0;
|
|
8316
|
+
});
|
|
8317
|
+
|
|
8318
|
+
// 4. Only select the new value if it's in stock
|
|
8319
|
+
var _newInStock3 = function () {
|
|
8320
|
+
var r = isOptionInStock(optionvaluesitem.valueid);
|
|
8321
|
+
return !(r === 0 || r === '0' || r === false || r === 'false' || r == null);
|
|
8322
|
+
}();
|
|
8323
|
+
if (_newInStock3) {
|
|
8324
|
+
selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, _productarr4);
|
|
8325
|
+
} else {
|
|
8326
|
+
// optional: show user message or disable click
|
|
8327
|
+
console.warn('Attempted to select an out-of-stock value:', optionvaluesitem);
|
|
8328
|
+
}
|
|
8039
8329
|
} else {
|
|
8040
8330
|
var _productarr$data2;
|
|
8041
8331
|
var productarr = ProductInfoObj;
|
|
@@ -8512,10 +8802,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
8512
8802
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
8513
8803
|
runfunc = true;
|
|
8514
8804
|
} else {
|
|
8515
|
-
var _authdetailsContext$
|
|
8805
|
+
var _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12;
|
|
8516
8806
|
// here
|
|
8517
8807
|
setvariantnotchosendisclaimer('This field is required');
|
|
8518
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8808
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '674f0617c7811' ? langdetect == 'en' ? 'Please Choose Size & Color' : 'من فضلك اخنر اللون و المقاس' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) == '693fdc5a14f45' ? langdetect == 'en' ? 'Please Choose Size & Color' : 'من فضلك اخنر اللون و المقاس' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) == '67e448d2ef6e0' ? langdetect == 'en' ? 'Please Choose Color' : 'من فضلك اختر لون' : langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر من المتغيرات');
|
|
8519
8809
|
}
|
|
8520
8810
|
} else {
|
|
8521
8811
|
runfunc = true;
|
|
@@ -8599,9 +8889,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
8599
8889
|
};
|
|
8600
8890
|
};
|
|
8601
8891
|
var returnpolicyobj = function returnpolicyobj(policytype) {
|
|
8602
|
-
var _authdetailsContext$
|
|
8892
|
+
var _authdetailsContext$i13;
|
|
8603
8893
|
var policyobj = {};
|
|
8604
|
-
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8894
|
+
authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 || (_authdetailsContext$i13 = _authdetailsContext$i13.instpolicies) === null || _authdetailsContext$i13 === void 0 || _authdetailsContext$i13.forEach(function (item, index) {
|
|
8605
8895
|
if (item.policytype == policytype) {
|
|
8606
8896
|
policyobj = item;
|
|
8607
8897
|
}
|
|
@@ -8610,7 +8900,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8610
8900
|
};
|
|
8611
8901
|
var relatedproducts = function relatedproducts() {
|
|
8612
8902
|
if (Relatedproducts.length != 0) {
|
|
8613
|
-
var _authdetailsContext$
|
|
8903
|
+
var _authdetailsContext$i14;
|
|
8614
8904
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8615
8905
|
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",
|
|
8616
8906
|
style: {
|
|
@@ -8652,7 +8942,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8652
8942
|
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
|
|
8653
8943
|
transitionBehavior: 'auto',
|
|
8654
8944
|
wrapperClassName: '',
|
|
8655
|
-
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
8945
|
+
itemClassName: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '67dc756de56bd' ? 'scrollmenuclassnameitemrelatedproductkingtut' : 'scrollmenuclassnameitemrelatedproduct',
|
|
8656
8946
|
scrollContainerClassName: 'scrollmenuclasssubscrollbarrelatedproducts'
|
|
8657
8947
|
}, Relatedproducts.map(function (item, index) {
|
|
8658
8948
|
if (item.productinfo != null) {
|
|
@@ -8723,10 +9013,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
8723
9013
|
if (addtocartobjparam.variantid.length != 0) {
|
|
8724
9014
|
runfunc = true;
|
|
8725
9015
|
} else {
|
|
8726
|
-
var _authdetailsContext$
|
|
9016
|
+
var _authdetailsContext$i15;
|
|
8727
9017
|
// here
|
|
8728
9018
|
setvariantnotchosendisclaimer('This field is required');
|
|
8729
|
-
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
9019
|
+
NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
|
|
8730
9020
|
}
|
|
8731
9021
|
} else {
|
|
8732
9022
|
runfunc = true;
|
|
@@ -8769,8 +9059,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
8769
9059
|
isVarianturlLoaded = _useState56[0],
|
|
8770
9060
|
setisVarianturlLoaded = _useState56[1];
|
|
8771
9061
|
React.useEffect(function () {
|
|
8772
|
-
var _authdetailsContext$
|
|
8773
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
9062
|
+
var _authdetailsContext$i16;
|
|
9063
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.contactinfo.instid) == '68f918a4ccb85') {
|
|
8774
9064
|
var params = new URLSearchParams(window.location.search);
|
|
8775
9065
|
var variantId = params.get('variant');
|
|
8776
9066
|
if (isVarianturlLoaded == false) {
|
|
@@ -9565,7 +9855,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9565
9855
|
})));
|
|
9566
9856
|
};
|
|
9567
9857
|
var StoreInfo = function StoreInfo(position) {
|
|
9568
|
-
var _fetchProductInfoQuer77, _authdetailsContext$
|
|
9858
|
+
var _fetchProductInfoQuer77, _authdetailsContext$i18, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _authdetailsContext$i19, _authdetailsContext$i21;
|
|
9569
9859
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9570
9860
|
"class": sectionproperties.storeinformationcontainerborderwidth != 0 ? 'row m-0 w-100 p-3' : 'row m-0 w-100',
|
|
9571
9861
|
style: {
|
|
@@ -9644,8 +9934,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
9644
9934
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), sectionproperties.showfooteremail == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9645
9935
|
className: "".concat(productinfo_cssstyles.storeinfobtn, " ").concat(productinfo_cssstyles.storeinfocontainer) + ' mb-t col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
9646
9936
|
onClick: function onClick() {
|
|
9647
|
-
var _authdetailsContext$
|
|
9648
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
9937
|
+
var _authdetailsContext$i17;
|
|
9938
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.contactinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.email), '_self');
|
|
9649
9939
|
}
|
|
9650
9940
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9651
9941
|
"class": productinfo_cssstyles.iconContainer + ' iconContainer '
|
|
@@ -9665,7 +9955,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9665
9955
|
style: {
|
|
9666
9956
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
9667
9957
|
}
|
|
9668
|
-
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
9958
|
+
}, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.email))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9669
9959
|
"class": "col-lg-12 my-2",
|
|
9670
9960
|
style: {
|
|
9671
9961
|
display: sectionproperties.showfirstpolicy_storeinfo == 'Hide' && sectionproperties.showsecondpolicy_storeinfo == 'Hide' ? 'none' : 'block'
|
|
@@ -9717,25 +10007,25 @@ var Productinfo = function Productinfo(props) {
|
|
|
9717
10007
|
}
|
|
9718
10008
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9719
10009
|
"class": "m-0 p-0"
|
|
9720
|
-
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10010
|
+
}, langdetect == 'en' ? sectionproperties.phonetitle_en : sectionproperties.phonetitle_ar))), sectionproperties.showfooteremail == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 || (_authdetailsContext$i19 = _authdetailsContext$i19.contactinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.email) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9721
10011
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
9722
10012
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
9723
10013
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
9724
10014
|
onClick: function onClick() {
|
|
9725
|
-
var _authdetailsContext$
|
|
9726
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10015
|
+
var _authdetailsContext$i20;
|
|
10016
|
+
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 || (_authdetailsContext$i20 = _authdetailsContext$i20.contactinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.email), '_self');
|
|
9727
10017
|
}
|
|
9728
10018
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9729
10019
|
"class": "m-0 p-0"
|
|
9730
|
-
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10020
|
+
}, langdetect == 'en' ? sectionproperties.emailtitle_en : sectionproperties.emailtitle_ar))), sectionproperties.showwhatsapp == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9731
10021
|
"class": position == 'belowinfo' ? 'col-lg-12 allcentered mb-2 p-0' : 'col-lg-12 allcentered mb-2 p-sm-0'
|
|
9732
10022
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
9733
10023
|
"class": productinfo_cssstyles.storeinfobtn + ' allcentered ',
|
|
9734
10024
|
onClick: function onClick() {
|
|
9735
|
-
var _authdetailsContext$
|
|
9736
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
9737
|
-
var _authdetailsContext$
|
|
9738
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10025
|
+
var _authdetailsContext$i22;
|
|
10026
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.whatsappnumber) != null) {
|
|
10027
|
+
var _authdetailsContext$i23;
|
|
10028
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.whatsappnumber), '_blank');
|
|
9739
10029
|
}
|
|
9740
10030
|
}
|
|
9741
10031
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -9821,7 +10111,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9821
10111
|
lang: lang,
|
|
9822
10112
|
srcfromprops: props.srcfromprops
|
|
9823
10113
|
}, _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"](_ref, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), "productVideos", productVideos), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref, "variantsku", variantsku), "variantvalueidentifier", variantvalueidentifier), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
|
|
9824
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer84 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10114
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer84 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.data) === null || _fetchProductInfoQuer84 === void 0 || (_fetchProductInfoQuer84 = _fetchProductInfoQuer84.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.contactinfo.instid) != '6946c118427af' && /*#__PURE__*/React__default["default"].createElement(Article_itemtype, {
|
|
9825
10115
|
actions: (_ref2 = {
|
|
9826
10116
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
9827
10117
|
setisoutofstock: setisoutofstock,
|
|
@@ -9831,7 +10121,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9831
10121
|
lang: lang,
|
|
9832
10122
|
srcfromprops: props.srcfromprops
|
|
9833
10123
|
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "ProductInfoObj", ProductInfoObj), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "variantindexcompleted", variantindexcompleted), "StaticPagesLinksContext", StaticPagesLinksContext), "NotificationManager", NotificationManager), "GeneralAPIMutationContext", GeneralAPIMutationContext), "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), "getprice_discountpriceprops", getprice_discountpriceprops), "StoreInfoprops", StoreInfo), "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "variantindex", variantindex), "setvariantindex", setvariantindex), "variantsku", variantsku), _defineProperty__default["default"](_defineProperty__default["default"](_ref2, "variantvalueidentifier", variantvalueidentifier), "productpdfsarray", productpdfsarray))
|
|
9834
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.productinfo) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : _fetchProductInfoQuer85.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10124
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer85 === void 0 || (_fetchProductInfoQuer85 = _fetchProductInfoQuer85.productinfo) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : _fetchProductInfoQuer85.item_type) == 'Article' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.contactinfo.instid) == '6946c118427af' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype_Article, {
|
|
9835
10125
|
actions: (_ref3 = {
|
|
9836
10126
|
isOptionInStock: isOptionInStock,
|
|
9837
10127
|
variantnotchosendisclaimer: variantnotchosendisclaimer,
|
|
@@ -9855,7 +10145,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
9855
10145
|
lang: lang,
|
|
9856
10146
|
srcfromprops: props.srcfromprops
|
|
9857
10147
|
}, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref4, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref4, "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "StaticPagesLinksContext", StaticPagesLinksContext), "variantindexcompleted", variantindexcompleted), "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref4, "NotificationManager", NotificationManager), "getprice_discountpriceprops", getprice_discountpriceprops), "quantityconditionfoundobjprops", quantityconditionfoundobj), "relatedproducts", relatedproducts), "getQuantityCondition", getQuantityCondition), "StoreInfoprops", StoreInfo), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal), _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_ref4, "isOptionInStock", isOptionInStock), "addtocartfunc_extras", addtocartfunc_extras), "productpdfsarray", productpdfsarray))
|
|
9858
|
-
}), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10148
|
+
}), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i26 = authdetailsContext.instinfo) === null || _authdetailsContext$i26 === void 0 ? void 0 : _authdetailsContext$i26.contactinfo.instid) != '6852e5ed44e14' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i27 = authdetailsContext.instinfo) === null || _authdetailsContext$i27 === void 0 ? void 0 : _authdetailsContext$i27.contactinfo.instid) != '68a9e83c05b75' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i28 = authdetailsContext.instinfo) === null || _authdetailsContext$i28 === void 0 ? void 0 : _authdetailsContext$i28.contactinfo.instid) != '68c27b4570751' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i29 = authdetailsContext.instinfo) === null || _authdetailsContext$i29 === void 0 ? void 0 : _authdetailsContext$i29.contactinfo.instid) != '68e4efe8cb18e' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i30 = authdetailsContext.instinfo) === null || _authdetailsContext$i30 === void 0 ? void 0 : _authdetailsContext$i30.contactinfo.instid) != '693ae1f70d9a4' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9859
10149
|
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 ',
|
|
9860
10150
|
style: {
|
|
9861
10151
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
@@ -10046,7 +10336,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
10046
10336
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
10047
10337
|
sectionproperties: sectionproperties
|
|
10048
10338
|
})
|
|
10049
|
-
}))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
10339
|
+
}))))), props.srcfromprops != 'templatedraftrouter' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i31 = authdetailsContext.instinfo) === null || _authdetailsContext$i31 === void 0 ? void 0 : _authdetailsContext$i31.contactinfo.instid) == '68e4efe8cb18e' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10050
10340
|
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 ',
|
|
10051
10341
|
style: {
|
|
10052
10342
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|