tabexseriescomponents 0.2.1319 → 0.2.1321
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 +62 -49
- package/dist/index.esm.js +62 -49
- package/dist/index.umd.js +62 -49
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1769,8 +1769,16 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
if (item.optionname == 'color' || item.optionname == 'Color') {
|
|
1772
|
+
var _authdetailsContext$i0;
|
|
1772
1773
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1773
|
-
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? productinfostyles.color_container + ' mr-2 variabttcontainer showcrossiconcolor ' + "".concat(productinfostyles.color_container_active) : productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active)
|
|
1774
|
+
className: isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) == '670fc18477599' ? productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active) : issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? productinfostyles.color_container + ' mr-2 variabttcontainer showcrossiconcolor ' + "".concat(productinfostyles.color_container_active) : productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active)
|
|
1775
|
+
// issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true &&
|
|
1776
|
+
// sectionproperties.showoutofstockwithoutselection == 'Show'
|
|
1777
|
+
// ? productinfostyles.color_container +
|
|
1778
|
+
// ' mr-2 variabttcontainer showcrossiconcolor ' +
|
|
1779
|
+
// `${productinfostyles.color_container_active}`
|
|
1780
|
+
// : productinfostyles.color_container + ' mr-2 variabttcontainer ' + `${productinfostyles.color_container_active}`
|
|
1781
|
+
|
|
1774
1782
|
// `${isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''}`
|
|
1775
1783
|
,
|
|
1776
1784
|
onClick: function onClick() {
|
|
@@ -1782,7 +1790,8 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1782
1790
|
}
|
|
1783
1791
|
},
|
|
1784
1792
|
style: {
|
|
1785
|
-
background: optionvaluesitem.valuename,
|
|
1793
|
+
background: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true ? optionvaluesitem.valuename == '#fff' || optionvaluesitem.valuename == '#ffffff' || optionvaluesitem.valuename == 'white' || optionvaluesitem.valuename == 'White' ? "linear-gradient(\n -45deg,\n transparent 47%,\n black 47%,\n black 53%,\n transparent 53%\n ), ".concat(optionvaluesitem.valuename) : optionvaluesitem.valuename == '#000' || optionvaluesitem.valuename == '#000000' || optionvaluesitem.valuename == 'black' || optionvaluesitem.valuename == 'Black' ? "linear-gradient(\n -45deg,\n transparent 47%,\n white 47%,\n white 53%,\n transparent 53%\n ), ".concat(optionvaluesitem.valuename) : optionvaluesitem.valuename : optionvaluesitem.valuename,
|
|
1794
|
+
// background: optionvaluesitem.valuename,
|
|
1786
1795
|
border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc'
|
|
1787
1796
|
|
|
1788
1797
|
// borderWidth: isoptionvalueselected == 1 ? '2px' : 0,
|
|
@@ -1793,7 +1802,7 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1793
1802
|
} else if (item.optionname == 'size' || item.optionname == 'Size') {
|
|
1794
1803
|
// if (ProductInfoObj?.data?.productinfo?.productoptions?.length == 1 || isoptionvaluedenabled == 1) {
|
|
1795
1804
|
if (is_value_permdisabled == 0) {
|
|
1796
|
-
var _authdetailsContext$
|
|
1805
|
+
var _authdetailsContext$i1, _authdetailsContext$i19, _authdetailsContext$i20, _authdetailsContext$i21, _authdetailsContext$i22, _authdetailsContext$i23, _authdetailsContext$i24, _authdetailsContext$i25, _authdetailsContext$i26, _authdetailsContext$i27;
|
|
1797
1806
|
return /*#__PURE__*/React.createElement("div", {
|
|
1798
1807
|
// className={
|
|
1799
1808
|
// issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true &&
|
|
@@ -1805,53 +1814,53 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1805
1814
|
// ' mr-2 variabttcontainer allcentered ' +
|
|
1806
1815
|
// `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
|
|
1807
1816
|
// }
|
|
1808
|
-
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1817
|
+
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.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 : ''),
|
|
1809
1818
|
onClick: function onClick() {
|
|
1810
1819
|
if (isoptionvalueselected == 0) {
|
|
1811
|
-
var _authdetailsContext$
|
|
1812
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1820
|
+
var _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _authdetailsContext$i16, _authdetailsContext$i17, _authdetailsContext$i18;
|
|
1821
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '68d28fc494276') {
|
|
1813
1822
|
if (isValueinStock == 0) {
|
|
1814
1823
|
return;
|
|
1815
1824
|
}
|
|
1816
1825
|
}
|
|
1817
1826
|
// amiga
|
|
1818
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1827
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) == '670fc18477599') {
|
|
1819
1828
|
if (isValueinStock == 0) {
|
|
1820
1829
|
return;
|
|
1821
1830
|
}
|
|
1822
1831
|
}
|
|
1823
1832
|
// vout
|
|
1824
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1833
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) == '68f918a4ccb85') {
|
|
1825
1834
|
if (isValueinStock == 0) {
|
|
1826
1835
|
return;
|
|
1827
1836
|
}
|
|
1828
1837
|
}
|
|
1829
1838
|
// puff
|
|
1830
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1839
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '6899e604db87f') {
|
|
1831
1840
|
if (isValueinStock == 0) {
|
|
1832
1841
|
return;
|
|
1833
1842
|
}
|
|
1834
1843
|
}
|
|
1835
1844
|
// angel
|
|
1836
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1845
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '67bda57bca71d') {
|
|
1837
1846
|
if (isValueinStock == 0) {
|
|
1838
1847
|
return;
|
|
1839
1848
|
}
|
|
1840
1849
|
}
|
|
1841
1850
|
// dija
|
|
1842
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1851
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '682cbb9bdcd57') {
|
|
1843
1852
|
if (isValueinStock == 0) {
|
|
1844
1853
|
return;
|
|
1845
1854
|
}
|
|
1846
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1855
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.contactinfo.instid) == '69244cc88aa0a') {
|
|
1847
1856
|
if (isValueinStock == 0) {
|
|
1848
1857
|
return;
|
|
1849
1858
|
}
|
|
1850
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1859
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) == '687ca57cc78e8') {
|
|
1851
1860
|
if (isValueinStock == 0) {
|
|
1852
1861
|
return;
|
|
1853
1862
|
}
|
|
1854
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1863
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) == '6899e604db87f') {
|
|
1855
1864
|
if (isValueinStock == 0) {
|
|
1856
1865
|
return;
|
|
1857
1866
|
}
|
|
@@ -1895,18 +1904,18 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1895
1904
|
}, /*#__PURE__*/React.createElement("i", {
|
|
1896
1905
|
"class": "h-100 allcentered"
|
|
1897
1906
|
}, /*#__PURE__*/React.createElement(IoMdClose, null))), /*#__PURE__*/React.createElement("p", {
|
|
1898
|
-
className: isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1907
|
+
className: isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.contactinfo.instid) == '68d28fc494276' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1899
1908
|
// amiga
|
|
1900
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1909
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.contactinfo.instid) == '670fc18477599' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1901
1910
|
// vout
|
|
1902
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1911
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) == '68f918a4ccb85' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1903
1912
|
// puff
|
|
1904
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1913
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '6899e604db87f' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1905
1914
|
// angel
|
|
1906
1915
|
|
|
1907
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1916
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i23 = authdetailsContext.instinfo) === null || _authdetailsContext$i23 === void 0 ? void 0 : _authdetailsContext$i23.contactinfo.instid) == '67bda57bca71d' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1908
1917
|
// dija
|
|
1909
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1918
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.contactinfo.instid) == '682cbb9bdcd57' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' : isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.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$i26 = authdetailsContext.instinfo) === null || _authdetailsContext$i26 === void 0 ? void 0 : _authdetailsContext$i26.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$i27 = authdetailsContext.instinfo) === null || _authdetailsContext$i27 === void 0 ? void 0 : _authdetailsContext$i27.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',
|
|
1910
1919
|
style: {
|
|
1911
1920
|
color: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null && isoptionvalueselected == 1 ? sectionproperties.activeproductcolor : sectionproperties.variantcontainer_color,
|
|
1912
1921
|
fontSize: sectionproperties.variantcontainer_fontSize + 'px',
|
|
@@ -1915,55 +1924,55 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1915
1924
|
}, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
|
|
1916
1925
|
}
|
|
1917
1926
|
} else {
|
|
1918
|
-
var _authdetailsContext$
|
|
1927
|
+
var _authdetailsContext$i28, _authdetailsContext$i38, _authdetailsContext$i39, _authdetailsContext$i40, _authdetailsContext$i41, _authdetailsContext$i42, _authdetailsContext$i43, _authdetailsContext$i44, _authdetailsContext$i45, _authdetailsContext$i46;
|
|
1919
1928
|
return /*#__PURE__*/React.createElement("div", {
|
|
1920
|
-
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1929
|
+
className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i28 = authdetailsContext.instinfo) === null || _authdetailsContext$i28 === void 0 ? void 0 : _authdetailsContext$i28.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 : ''),
|
|
1921
1930
|
onClick: function onClick() {
|
|
1922
1931
|
if (isoptionvalueselected == 0) {
|
|
1923
|
-
var _authdetailsContext$
|
|
1924
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1932
|
+
var _authdetailsContext$i29, _authdetailsContext$i30, _authdetailsContext$i31, _authdetailsContext$i32, _authdetailsContext$i33, _authdetailsContext$i34, _authdetailsContext$i35, _authdetailsContext$i36, _authdetailsContext$i37;
|
|
1933
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i29 = authdetailsContext.instinfo) === null || _authdetailsContext$i29 === void 0 ? void 0 : _authdetailsContext$i29.contactinfo.instid) == '68d28fc494276') {
|
|
1925
1934
|
if (isValueinStock == 0) {
|
|
1926
1935
|
return;
|
|
1927
1936
|
}
|
|
1928
1937
|
}
|
|
1929
1938
|
// amiga
|
|
1930
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1939
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i30 = authdetailsContext.instinfo) === null || _authdetailsContext$i30 === void 0 ? void 0 : _authdetailsContext$i30.contactinfo.instid) == '670fc18477599') {
|
|
1931
1940
|
if (isValueinStock == 0) {
|
|
1932
1941
|
return;
|
|
1933
1942
|
}
|
|
1934
1943
|
}
|
|
1935
1944
|
// vout
|
|
1936
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1945
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i31 = authdetailsContext.instinfo) === null || _authdetailsContext$i31 === void 0 ? void 0 : _authdetailsContext$i31.contactinfo.instid) == '68f918a4ccb85') {
|
|
1937
1946
|
if (isValueinStock == 0) {
|
|
1938
1947
|
return;
|
|
1939
1948
|
}
|
|
1940
1949
|
}
|
|
1941
1950
|
// puff n stuff
|
|
1942
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1951
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i32 = authdetailsContext.instinfo) === null || _authdetailsContext$i32 === void 0 ? void 0 : _authdetailsContext$i32.contactinfo.instid) == '6899e604db87f') {
|
|
1943
1952
|
if (isValueinStock == 0) {
|
|
1944
1953
|
return;
|
|
1945
1954
|
}
|
|
1946
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1955
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i33 = authdetailsContext.instinfo) === null || _authdetailsContext$i33 === void 0 ? void 0 : _authdetailsContext$i33.contactinfo.instid) == '69244cc88aa0a') {
|
|
1947
1956
|
if (isValueinStock == 0) {
|
|
1948
1957
|
return;
|
|
1949
1958
|
}
|
|
1950
1959
|
}
|
|
1951
1960
|
// angel
|
|
1952
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1961
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i34 = authdetailsContext.instinfo) === null || _authdetailsContext$i34 === void 0 ? void 0 : _authdetailsContext$i34.contactinfo.instid) == '67bda57bca71d') {
|
|
1953
1962
|
if (isValueinStock == 0) {
|
|
1954
1963
|
return;
|
|
1955
1964
|
}
|
|
1956
1965
|
}
|
|
1957
1966
|
// dija
|
|
1958
|
-
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1967
|
+
else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i35 = authdetailsContext.instinfo) === null || _authdetailsContext$i35 === void 0 ? void 0 : _authdetailsContext$i35.contactinfo.instid) == '682cbb9bdcd57') {
|
|
1959
1968
|
if (isValueinStock == 0) {
|
|
1960
1969
|
return;
|
|
1961
1970
|
}
|
|
1962
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1971
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i36 = authdetailsContext.instinfo) === null || _authdetailsContext$i36 === void 0 ? void 0 : _authdetailsContext$i36.contactinfo.instid) == '687ca57cc78e8') {
|
|
1963
1972
|
if (isValueinStock == 0) {
|
|
1964
1973
|
return;
|
|
1965
1974
|
}
|
|
1966
|
-
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1975
|
+
} else if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i37 = authdetailsContext.instinfo) === null || _authdetailsContext$i37 === void 0 ? void 0 : _authdetailsContext$i37.contactinfo.instid) == '6899e604db87f') {
|
|
1967
1976
|
if (isValueinStock == 0) {
|
|
1968
1977
|
return;
|
|
1969
1978
|
}
|
|
@@ -1987,17 +1996,17 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1987
1996
|
border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : isoptionvaluedenabled == 1 ? '1px solid ' + sectionproperties.variantcontainerbordercolor : '1px solid ' + ' grey '
|
|
1988
1997
|
}
|
|
1989
1998
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1990
|
-
className: isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
1999
|
+
className: isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i38 = authdetailsContext.instinfo) === null || _authdetailsContext$i38 === void 0 ? void 0 : _authdetailsContext$i38.contactinfo.instid) == '68d28fc494276' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1991
2000
|
// amiga
|
|
1992
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
2001
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i39 = authdetailsContext.instinfo) === null || _authdetailsContext$i39 === void 0 ? void 0 : _authdetailsContext$i39.contactinfo.instid) == '670fc18477599' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1993
2002
|
// vout
|
|
1994
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
2003
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i40 = authdetailsContext.instinfo) === null || _authdetailsContext$i40 === void 0 ? void 0 : _authdetailsContext$i40.contactinfo.instid) == '68f918a4ccb85' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1995
2004
|
// puff
|
|
1996
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
2005
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i41 = authdetailsContext.instinfo) === null || _authdetailsContext$i41 === void 0 ? void 0 : _authdetailsContext$i41.contactinfo.instid) == '6899e604db87f' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1997
2006
|
// angel
|
|
1998
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
2007
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i42 = authdetailsContext.instinfo) === null || _authdetailsContext$i42 === void 0 ? void 0 : _authdetailsContext$i42.contactinfo.instid) == '67bda57bca71d' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' :
|
|
1999
2008
|
// dija
|
|
2000
|
-
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
2009
|
+
isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i43 = authdetailsContext.instinfo) === null || _authdetailsContext$i43 === void 0 ? void 0 : _authdetailsContext$i43.contactinfo.instid) == '682cbb9bdcd57' ? 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center linethrough' : isValueinStock == 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i44 = authdetailsContext.instinfo) === null || _authdetailsContext$i44 === void 0 ? void 0 : _authdetailsContext$i44.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$i45 = authdetailsContext.instinfo) === null || _authdetailsContext$i45 === void 0 ? void 0 : _authdetailsContext$i45.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$i46 = authdetailsContext.instinfo) === null || _authdetailsContext$i46 === void 0 ? void 0 : _authdetailsContext$i46.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',
|
|
2001
2010
|
style: {
|
|
2002
2011
|
color: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null && isoptionvalueselected == 1 ? sectionproperties.activeproductcolor : sectionproperties.variantcontainer_color,
|
|
2003
2012
|
fontSize: sectionproperties.variantcontainer_fontSize + 'px',
|
|
@@ -3958,7 +3967,7 @@ useEffect(function(){var _fetchProductInfoQuer3;var totalprice='';if(variantinde
|
|
|
3958
3967
|
// setcurrentshowingimageindex(currentshowingimageindex_pro);
|
|
3959
3968
|
// }
|
|
3960
3969
|
// }, [currentshowingimageindex_pro]);
|
|
3961
|
-
useEffect(function(){if(currentshowingimageindex_pro==0){setcurrentshowingimageindex(currentshowingimageindex_pro);}else {if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}}},[currentshowingimageindex_pro]);var PDFContainer=function PDFContainer(){return/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},productpdfsarray.length!=0&&(productpdfsarray===null||productpdfsarray===void 0?void 0:productpdfsarray.map(function(pdfitem,pdfindex){var _authdetailsContext$i3,_authdetailsContext$i4;return/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100 mt-3",style:{overflow:'hidden'}},/*#__PURE__*/React.createElement("button",{className:"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:sectionproperties.cartBtnWidth+'%'},onClick:function onClick(){window.open((ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint)+pdfitem,'_blank');}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i3=authdetailsContext.instinfo)===null||_authdetailsContext$i3===void 0?void 0:_authdetailsContext$i3.contactinfo.instid)=='683c163d7f996'&&/*#__PURE__*/React.createElement("span",{className:' d-flex align-items-center justify-content-center '},langdetect=='en'?'Download Pamphlet':'تحميل ال Pamphlet'),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i4=authdetailsContext.instinfo)===null||_authdetailsContext$i4===void 0?void 0:_authdetailsContext$i4.contactinfo.instid)!='683c163d7f996'&&/*#__PURE__*/React.createElement("span",{className:' d-flex align-items-center justify-content-center '},langdetect==='ar'?'تحميل ال PDF':langdetect==='chin'?'下载 PDF':langdetect==='es'?'Descargar PDF':langdetect==='fr'?'Télécharger le PDF':langdetect==='rus'?'Скачать PDF':'Download PDF')));})));};var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React.createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React.createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React.createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React.createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer4;return/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 my-3 text-start"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React.createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React.createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productfeatures)===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.map(function(fitem,findex){return/*#__PURE__*/React.createElement("tr",null,/*#__PURE__*/React.createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React.createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__PURE__*/React.createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React.createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React.createElement("td",{style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React.createElement(AccordionItem,{uuid:0},/*#__PURE__*/React.createElement(AccordionItemHeading,null,/*#__PURE__*/React.createElement(AccordionItemButton,null,/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React.createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React.createElement(AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React.createElement(AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer5,_fetchProductInfoQuer6,_fetchProductInfoQuer7,_fetchProductInfoQuer8,_fetchProductInfoQuer9,_fetchProductInfoQuer0,_fetchProductInfoQuer1,_fetchProductInfoQuer10,_fetchProductInfoQuer11;return/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React.createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer6=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.productinfo)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.variants[variantindexcompleted])===null||_fetchProductInfoQuer6===void 0?void 0:_fetchProductInfoQuer6.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer7=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.productinfo)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.variants[variantindexcompleted])===null||_fetchProductInfoQuer7===void 0?void 0:_fetchProductInfoQuer7.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer8=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.data)===null||_fetchProductInfoQuer8===void 0?void 0:_fetchProductInfoQuer8.currencyname_ar)),/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer9=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.data)===null||_fetchProductInfoQuer9===void 0?void 0:_fetchProductInfoQuer9.currencyname_en:'',' ',parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer0=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.data)===null||_fetchProductInfoQuer0===void 0?void 0:_fetchProductInfoQuer0.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer1=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.productinfo)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.variants[variantindexcompleted])===null||_fetchProductInfoQuer1===void 0?void 0:_fetchProductInfoQuer1.hassale)==1&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer10=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.data)===null||_fetchProductInfoQuer10===void 0?void 0:_fetchProductInfoQuer10.currencyname_en:'',' ',parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer11=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.data)===null||_fetchProductInfoQuer11===void 0?void 0:_fetchProductInfoQuer11.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i5;return/*#__PURE__*/React.createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3970
|
+
useEffect(function(){if(currentshowingimageindex_pro==0){setcurrentshowingimageindex(currentshowingimageindex_pro);}else {if(currentshowingimageindex_pro!=undefined&¤tshowingimageindex_pro!=null&¤tshowingimageindex_pro!=''&&typeof currentshowingimageindex_pro==='number'&&isFinite(currentshowingimageindex_pro)&¤tshowingimageindex_pro>=0){setcurrentshowingimageindex(currentshowingimageindex_pro);}}},[currentshowingimageindex_pro]);var PDFContainer=function PDFContainer(){return/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0"},productpdfsarray.length!=0&&(productpdfsarray===null||productpdfsarray===void 0?void 0:productpdfsarray.map(function(pdfitem,pdfindex){var _authdetailsContext$i3,_authdetailsContext$i4;return/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100 mt-3",style:{overflow:'hidden'}},/*#__PURE__*/React.createElement("button",{className:"".concat(productinfo_cssstyles.cart_btn," ")+' d-flex align-items-center justify-content-center mb-sm-2 ',style:{width:sectionproperties.cartBtnWidth+'%'},onClick:function onClick(){window.open((ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint)+pdfitem,'_blank');}},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i3=authdetailsContext.instinfo)===null||_authdetailsContext$i3===void 0?void 0:_authdetailsContext$i3.contactinfo.instid)=='683c163d7f996'&&/*#__PURE__*/React.createElement("span",{className:' d-flex align-items-center justify-content-center '},langdetect=='en'?'Download Pamphlet':'تحميل ال Pamphlet'),(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i4=authdetailsContext.instinfo)===null||_authdetailsContext$i4===void 0?void 0:_authdetailsContext$i4.contactinfo.instid)!='683c163d7f996'&&/*#__PURE__*/React.createElement("span",{className:' d-flex align-items-center justify-content-center '},langdetect==='ar'?'تحميل ال PDF':langdetect==='chin'?'下载 PDF':langdetect==='es'?'Descargar PDF':langdetect==='fr'?'Télécharger le PDF':langdetect==='rus'?'Скачать PDF':'Download PDF')));})));};var ProductsSKUContainer=function ProductsSKUContainer(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0 d-flex justify-content-start"},/*#__PURE__*/React.createElement("span",{style:{color:sectionproperties.skuColor,fontWeight:sectionproperties.skuFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?sectionproperties.skutitleEn:sectionproperties.skutitleAr,":",' '),/*#__PURE__*/React.createElement("span",{"class":"ml-1 mr-1",style:{color:'#7e859b',fontWeight:sectionproperties.skuSecondaryFontWeight,fontSize:sectionproperties.skuFontSize+'px',textAlign:langdetect=='en'?'left':'right'}},sectionproperties.showvariantsku=='Show'&&variantsku!=''?variantsku:fetchProductInfoQueryContext.data.data.productinfo.sku));};var MeasurementUnitSection=function MeasurementUnitSection(){return/*#__PURE__*/React.createElement("div",{className:'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'},/*#__PURE__*/React.createElement("p",{className:' m-0 p-0 wordbreak d-flex justify-content-start ',style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.measurementunitfontweight,color:sectionproperties.measurementunitcolor,fontSize:sectionproperties.measurementunitcolor+'px'}},fetchProductInfoQueryContext.data.data.productinfo.measurmentunit));};var ProductNameSection=function ProductNameSection(){return/*#__PURE__*/React.createElement("p",{className:props.actions.srcfromprops=='templatedraftrouter'?"".concat(productinfo_cssstyles.productname," ").concat(productinfo_cssstyles.productnamehover)+' m-0 p-0 wordbreak d-flex cursor-pointer ':"".concat(productinfo_cssstyles.productname)+' m-0 p-0 wordbreak d-flex ',onClick:function onClick(){if(props.actions.srcfromprops=='templatedraftrouter'){routingcountext(StaticPagesLinksContext.productinfo,true,fetchProductInfoQueryContext.data.data.productinfo.productid);}},style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right'}},langdetect=='en'?fetchProductInfoQueryContext.data.data.productinfo.name_en:fetchProductInfoQueryContext.data.data.productinfo.name_ar);};var ShortDescriptionTitle=function ShortDescriptionTitle(){return/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:sectionproperties.productnamecentered=='Centered'?'center':langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.shortdescriptiontitle_en:sectionproperties.shortdescriptiontitle_ar);};var ProductFeaturesTable=function ProductFeaturesTable(){var _fetchProductInfoQuer4;return/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 my-3 text-start"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.featurestitlecolor,fontSize:sectionproperties.featurestitlefontsize+'px',fontWeight:600}},langdetect=='en'?sectionproperties.featurestitleen:sectionproperties.featurestitlear)),/*#__PURE__*/React.createElement("div",{className:"col-lg-12 m-0 w-100 p-0"},/*#__PURE__*/React.createElement("table",{className:'table tablevertical'},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer4=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.data)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productinfo)===null||_fetchProductInfoQuer4===void 0||(_fetchProductInfoQuer4=_fetchProductInfoQuer4.productfeatures)===null||_fetchProductInfoQuer4===void 0?void 0:_fetchProductInfoQuer4.map(function(fitem,findex){return/*#__PURE__*/React.createElement("tr",null,/*#__PURE__*/React.createElement("th",{style:{textTransform:'capitalize',color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize}},/*#__PURE__*/React.createElement("div",{"class":"d-flex flex-row",style:{color:sectionproperties.featurecolor}},(fitem===null||fitem===void 0?void 0:fitem.feature_image_url)!=null&&/*#__PURE__*/React.createElement("div",{style:{width:'20px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React.createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React.createElement("td",{style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize,textAlign:langdetect=='en'?'left':'right'}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar));}))));};var DescriptionAccordion=function DescriptionAccordion(){return/*#__PURE__*/React.createElement(AccordionItem,{uuid:0},/*#__PURE__*/React.createElement(AccordionItemHeading,null,/*#__PURE__*/React.createElement(AccordionItemButton,null,/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{className:"col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{textAlign:langdetect=='en'?'left':'right',fontWeight:sectionproperties.prodCatFontWeight,color:sectionproperties.prodCatColor,fontSize:sectionproperties.prodCatFontSize+'px'}},langdetect=='en'?sectionproperties.descriptionContentEn:sectionproperties.descriptionContentAr)),/*#__PURE__*/React.createElement("div",{className:"col-lg-2 col-md-2 col-sm-2 p-0"},/*#__PURE__*/React.createElement(AccordionItemState,null,function(state){if(state.expanded==true){return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaMinus,{color:sectionproperties.prodCatColor}));}else {return/*#__PURE__*/React.createElement("i",{className:' h-100 d-flex align-items-center justify-content-end '},/*#__PURE__*/React.createElement(FaPlus,{color:sectionproperties.prodCatColor}));}}))))),/*#__PURE__*/React.createElement(AccordionItemPanel,{className:"p-0"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 p-0 mt-3"},/*#__PURE__*/React.createElement(DescriptionContent,{actions:props.actions,srcfromprops:'collap'}))));};var TotalSection=function TotalSection(){var _fetchProductInfoQuer5,_fetchProductInfoQuer6,_fetchProductInfoQuer7,_fetchProductInfoQuer8,_fetchProductInfoQuer9,_fetchProductInfoQuer0,_fetchProductInfoQuer1,_fetchProductInfoQuer10,_fetchProductInfoQuer11;return/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100 d-flex flex-row"},/*#__PURE__*/React.createElement("p",{className:"m-0 p-0",style:{color:sectionproperties.total_color,fontSize:sectionproperties.total_fontsize+'px',fontWeight:sectionproperties.total_fontweight,textTransform:sectionproperties.total_texttransform}},lang.total,":"),/*#__PURE__*/React.createElement("div",{className:"col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1"},/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 wordbreak d-flex align-items-center justify-content-end',style:{fontSize:sectionproperties.prodpriceFontSize+'px',fontWeight:sectionproperties.prodPriceFontWeight,color:sectionproperties.prodPriceColor}},/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right ':' d-flex align-items-center justify-content-end wordbreak text-left '},langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer5=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer5===void 0||(_fetchProductInfoQuer5=_fetchProductInfoQuer5.data)===null||_fetchProductInfoQuer5===void 0?void 0:_fetchProductInfoQuer5.currencyname_en:'',' ',variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length==0&&fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer6=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.data)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.productinfo)===null||_fetchProductInfoQuer6===void 0||(_fetchProductInfoQuer6=_fetchProductInfoQuer6.variants[variantindexcompleted])===null||_fetchProductInfoQuer6===void 0?void 0:_fetchProductInfoQuer6.hassale)==1&&parseFloat(getprice_discountpriceprops('defaultsaleprice',1,variantindexcompleted)).toFixed(2),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer7=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.data)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.productinfo)===null||_fetchProductInfoQuer7===void 0||(_fetchProductInfoQuer7=_fetchProductInfoQuer7.variants[variantindexcompleted])===null||_fetchProductInfoQuer7===void 0?void 0:_fetchProductInfoQuer7.hassale)==0&&parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)).toFixed(2),langdetect=='en'?'':fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer8=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer8===void 0||(_fetchProductInfoQuer8=_fetchProductInfoQuer8.data)===null||_fetchProductInfoQuer8===void 0?void 0:_fetchProductInfoQuer8.currencyname_ar)),/*#__PURE__*/React.createElement("p",{className:'m-0 p-0 linethrough wordbreak',style:{color:sectionproperties.prodsalePriceColor,fontSize:sectionproperties.prodsalepriceFontSize+'px',fontWeight:sectionproperties.prodsalePriceFontWeight}},fetchProductInfoQueryContext.data.data.productinfo.hassale==1&&variantindexcompleted!=undefined&&variantindexcompleted.length==0&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer9=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer9===void 0||(_fetchProductInfoQuer9=_fetchProductInfoQuer9.data)===null||_fetchProductInfoQuer9===void 0?void 0:_fetchProductInfoQuer9.currencyname_en:'',' ',parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer0=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer0===void 0||(_fetchProductInfoQuer0=_fetchProductInfoQuer0.data)===null||_fetchProductInfoQuer0===void 0?void 0:_fetchProductInfoQuer0.currencyname_ar),variantindexcompleted!=undefined&&variantindexcompleted.length!=0&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer1=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.data)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.productinfo)===null||_fetchProductInfoQuer1===void 0||(_fetchProductInfoQuer1=_fetchProductInfoQuer1.variants[variantindexcompleted])===null||_fetchProductInfoQuer1===void 0?void 0:_fetchProductInfoQuer1.hassale)==1&&/*#__PURE__*/React.createElement("span",{className:langdetect=='en'?' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ':' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '},/*#__PURE__*/React.createElement("span",{className:"ml-2 mr-2",style:{textDecoration:'none'}},"-"),langdetect=='en'?fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer10=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer10===void 0||(_fetchProductInfoQuer10=_fetchProductInfoQuer10.data)===null||_fetchProductInfoQuer10===void 0?void 0:_fetchProductInfoQuer10.currencyname_en:'',' ',parseFloat(getprice_discountpriceprops('defaultprice',1,variantindexcompleted)),' ',langdetect=='en'?'':fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer11=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer11===void 0||(_fetchProductInfoQuer11=_fetchProductInfoQuer11.data)===null||_fetchProductInfoQuer11===void 0?void 0:_fetchProductInfoQuer11.currencyname_ar))));};var QuantityButton=function QuantityButton(position){var _authdetailsContext$i5;return/*#__PURE__*/React.createElement("button",{className:position=='fixedcontainer'?" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center inputrangedark ':" ".concat(productinfo_cssstyles.quantitybtn)+' p-0 d-flex align-items-center justify-content-center mb-sm-2 inputrangedark ',style:{height:sectionproperties.quantitybtneditable=='Slider'?'auto':sectionproperties.quantitybtn_height+'px',width:position=='fixedcontainer'?'100%':sectionproperties.quantitybtneditable=='Slider'?'100%':sectionproperties.quantitybtn_width+'px',flexDirection:'row',direction:'ltr',// background: 'transparent',
|
|
3962
3971
|
borderRadius:sectionproperties.quantitybtneditable=='Slider'?0:''}},sectionproperties.quantitybtneditable=='Slider'&&/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100"},/*#__PURE__*/React.createElement("div",{"class":"col-12 px-3 px-sm-3 pt-3 pinfo-slider"},/*#__PURE__*/React.createElement(InputRange,{draggableTrack:true,formatLabel:function formatLabel(value){return "".concat(value);},maxValue:fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant,minValue:fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,value:parseInt(addtocardpayloadobj.quantity),step:1,onChange:function onChange(value){var tempaddtocardpayloadobj=_objectSpread$2F({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=value;setaddtocardpayloadobj(_objectSpread$2F({},tempaddtocardpayloadobj));}})),/*#__PURE__*/React.createElement("div",{"class":"col-4 col-md-12 mt-4 mt-md-5 pt-md-4 col-md-12 mx-auto allcentered"},/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer12,_fetchProductInfoQuer13,_fetchProductInfoQuer14,_fetchProductInfoQuer15;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2F({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer12=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.data)===null||_fetchProductInfoQuer12===void 0||(_fetchProductInfoQuer12=_fetchProductInfoQuer12.productinfo)===null||_fetchProductInfoQuer12===void 0?void 0:_fetchProductInfoQuer12.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer13=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.data)===null||_fetchProductInfoQuer13===void 0||(_fetchProductInfoQuer13=_fetchProductInfoQuer13.productinfo)===null||_fetchProductInfoQuer13===void 0?void 0:_fetchProductInfoQuer13.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer14=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.data)===null||_fetchProductInfoQuer14===void 0||(_fetchProductInfoQuer14=_fetchProductInfoQuer14.productinfo)===null||_fetchProductInfoQuer14===void 0?void 0:_fetchProductInfoQuer14.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer15=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.data)===null||_fetchProductInfoQuer15===void 0||(_fetchProductInfoQuer15=_fetchProductInfoQuer15.productinfo)===null||_fetchProductInfoQuer15===void 0?void 0:_fetchProductInfoQuer15.quantitystepincrearse)!=''){var _fetchProductInfoQuer16;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer16=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.data)===null||_fetchProductInfoQuer16===void 0||(_fetchProductInfoQuer16=_fetchProductInfoQuer16.productinfo)===null||_fetchProductInfoQuer16===void 0?void 0:_fetchProductInfoQuer16.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2F({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},parseInt(addtocardpayloadobj.quantity)),/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer17,_fetchProductInfoQuer18,_fetchProductInfoQuer19,_fetchProductInfoQuer20;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2F({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer17=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.data)===null||_fetchProductInfoQuer17===void 0||(_fetchProductInfoQuer17=_fetchProductInfoQuer17.productinfo)===null||_fetchProductInfoQuer17===void 0?void 0:_fetchProductInfoQuer17.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer18=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.data)===null||_fetchProductInfoQuer18===void 0||(_fetchProductInfoQuer18=_fetchProductInfoQuer18.productinfo)===null||_fetchProductInfoQuer18===void 0?void 0:_fetchProductInfoQuer18.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer19=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.data)===null||_fetchProductInfoQuer19===void 0||(_fetchProductInfoQuer19=_fetchProductInfoQuer19.productinfo)===null||_fetchProductInfoQuer19===void 0?void 0:_fetchProductInfoQuer19.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer20=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.data)===null||_fetchProductInfoQuer20===void 0||(_fetchProductInfoQuer20=_fetchProductInfoQuer20.productinfo)===null||_fetchProductInfoQuer20===void 0?void 0:_fetchProductInfoQuer20.quantitystepincrearse)!=''){var _fetchProductInfoQuer21;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer21=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.data)===null||_fetchProductInfoQuer21===void 0||(_fetchProductInfoQuer21=_fetchProductInfoQuer21.productinfo)===null||_fetchProductInfoQuer21===void 0?void 0:_fetchProductInfoQuer21.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2F({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize})))),/*#__PURE__*/React.createElement("div",{"class":"col-12 p-0 mt-5 pt-1 my-3"},TotalSection())),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.minus_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer22,_fetchProductInfoQuer23,_fetchProductInfoQuer24,_fetchProductInfoQuer25;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2F({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer22=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.data)===null||_fetchProductInfoQuer22===void 0||(_fetchProductInfoQuer22=_fetchProductInfoQuer22.productinfo)===null||_fetchProductInfoQuer22===void 0?void 0:_fetchProductInfoQuer22.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer23=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.data)===null||_fetchProductInfoQuer23===void 0||(_fetchProductInfoQuer23=_fetchProductInfoQuer23.productinfo)===null||_fetchProductInfoQuer23===void 0?void 0:_fetchProductInfoQuer23.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer24=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.data)===null||_fetchProductInfoQuer24===void 0||(_fetchProductInfoQuer24=_fetchProductInfoQuer24.productinfo)===null||_fetchProductInfoQuer24===void 0?void 0:_fetchProductInfoQuer24.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer25=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.data)===null||_fetchProductInfoQuer25===void 0||(_fetchProductInfoQuer25=_fetchProductInfoQuer25.productinfo)===null||_fetchProductInfoQuer25===void 0?void 0:_fetchProductInfoQuer25.quantitystepincrearse)!=''){var _fetchProductInfoQuer26;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer26=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.data)===null||_fetchProductInfoQuer26===void 0||(_fetchProductInfoQuer26=_fetchProductInfoQuer26.productinfo)===null||_fetchProductInfoQuer26===void 0?void 0:_fetchProductInfoQuer26.quantitystepincrearse);}var finalquantity=tempaddtocardpayloadobj.quantity-quantitystepincrearse;if(finalquantity>=0){tempaddtocardpayloadobj.quantity=finalquantity;}setaddtocardpayloadobj(_objectSpread$2F({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-down':'h-100 allcentered',style:{fontSize:sectionproperties.remove_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiMinus,{size:sectionproperties.remove_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.quantitybtn_text)},(authdetailsContext===null||authdetailsContext===void 0||(_authdetailsContext$i5=authdetailsContext.instinfo)===null||_authdetailsContext$i5===void 0?void 0:_authdetailsContext$i5.contactinfo.instid)=='66d6de1a1e04a'?parseFloat(addtocardpayloadobj.quantity).toFixed(3):parseInt(addtocardpayloadobj.quantity)),sectionproperties.quantitybtneditable=='No'&&/*#__PURE__*/React.createElement("span",{className:"".concat(productinfo_cssstyles.add_quantitybtn_icon_container)+' m-1 ',onClick:function onClick(){var _fetchProductInfoQuer27,_fetchProductInfoQuer28,_fetchProductInfoQuer29,_fetchProductInfoQuer30;var quantitystepincrearse=1;var tempaddtocardpayloadobj=_objectSpread$2F({},addtocardpayloadobj);if((fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer27=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.data)===null||_fetchProductInfoQuer27===void 0||(_fetchProductInfoQuer27=_fetchProductInfoQuer27.productinfo)===null||_fetchProductInfoQuer27===void 0?void 0:_fetchProductInfoQuer27.quantitystepincrearse)!=undefined&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer28=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.data)===null||_fetchProductInfoQuer28===void 0||(_fetchProductInfoQuer28=_fetchProductInfoQuer28.productinfo)===null||_fetchProductInfoQuer28===void 0?void 0:_fetchProductInfoQuer28.quantitystepincrearse)!=null&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer29=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer29===void 0||(_fetchProductInfoQuer29=_fetchProductInfoQuer29.data)===null||_fetchProductInfoQuer29===void 0||(_fetchProductInfoQuer29=_fetchProductInfoQuer29.productinfo)===null||_fetchProductInfoQuer29===void 0?void 0:_fetchProductInfoQuer29.quantitystepincrearse)!=1&&(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer30=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer30===void 0||(_fetchProductInfoQuer30=_fetchProductInfoQuer30.data)===null||_fetchProductInfoQuer30===void 0||(_fetchProductInfoQuer30=_fetchProductInfoQuer30.productinfo)===null||_fetchProductInfoQuer30===void 0?void 0:_fetchProductInfoQuer30.quantitystepincrearse)!=''){var _fetchProductInfoQuer31;quantitystepincrearse=parseFloat(fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer31=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer31===void 0||(_fetchProductInfoQuer31=_fetchProductInfoQuer31.data)===null||_fetchProductInfoQuer31===void 0||(_fetchProductInfoQuer31=_fetchProductInfoQuer31.productinfo)===null||_fetchProductInfoQuer31===void 0?void 0:_fetchProductInfoQuer31.quantitystepincrearse);}tempaddtocardpayloadobj.quantity=tempaddtocardpayloadobj.quantity+quantitystepincrearse;setaddtocardpayloadobj(_objectSpread$2F({},tempaddtocardpayloadobj));}},/*#__PURE__*/React.createElement("i",{className:sectionproperties.quantityiconstyle=='Arrows'?'fa fa-chevron-up':'h-100 allcentered',style:{fontSize:sectionproperties.add_quantitybtn_textfontsize+'px'}},sectionproperties.quantityiconstyle=='Plus/Minus'&&/*#__PURE__*/React.createElement(FiPlus,{size:sectionproperties.add_quantitybtn_textfontsize}))),sectionproperties.quantitybtneditable=='Yes'&&/*#__PURE__*/React.createElement("input",{type:"number",style:{width:100,height:40,background:sectionproperties.quantitybtn_bgcolor,fontWeight:sectionproperties.quantitybtn_textfontweight,color:sectionproperties.quantitybtn_textcolor,fontSize:sectionproperties.quantitybtn_textfontsize+'px',textAlign:'center'},value:addtocardpayloadobj.quantity,onChange:function onChange(event){if(event.target.value==NaN||event.target.value==undefined||event.target.value==null||event.target.value==''){var tempaddtocardpayloadobj=_objectSpread$2F({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=1;setaddtocardpayloadobj(_objectSpread$2F({},tempaddtocardpayloadobj));}else {var tempaddtocardpayloadobj=_objectSpread$2F({},addtocardpayloadobj);tempaddtocardpayloadobj.quantity=parseInt(event.target.value);setaddtocardpayloadobj(_objectSpread$2F({},tempaddtocardpayloadobj));}}}));};var ProductFeaturesArray=function ProductFeaturesArray(){var _fetchProductInfoQuer32;return/*#__PURE__*/React.createElement("div",{className:"row m-0 w-100"},fetchProductInfoQueryContext===null||fetchProductInfoQueryContext===void 0||(_fetchProductInfoQuer32=fetchProductInfoQueryContext.data)===null||_fetchProductInfoQuer32===void 0||(_fetchProductInfoQuer32=_fetchProductInfoQuer32.data)===null||_fetchProductInfoQuer32===void 0||(_fetchProductInfoQuer32=_fetchProductInfoQuer32.productinfo)===null||_fetchProductInfoQuer32===void 0||(_fetchProductInfoQuer32=_fetchProductInfoQuer32.productfeatures)===null||_fetchProductInfoQuer32===void 0?void 0:_fetchProductInfoQuer32.map(function(fitem,findex){return/*#__PURE__*/React.createElement("div",{"class":' col-md-12 p-0 mb-3 mt-2 col-lg-'+sectionproperties.featuresnumcols},/*#__PURE__*/React.createElement("div",{"class":"row m-0 w-100 text-start"},/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start mb-3 text-uppercase p-0"},/*#__PURE__*/React.createElement("div",{style:{width:sectionproperties.featureimagewidthheight+'px'},"class":langdetect=='en'?'mr-2':'ml-2'},/*#__PURE__*/React.createElement(Imagekitimagecomp,{urlEndpoint:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimageendpoint,publicKey:ikimagecredcontext===null||ikimagecredcontext===void 0?void 0:ikimagecredcontext.ikimagepublickey,path:fitem===null||fitem===void 0?void 0:fitem.feature_image_url,loading:"lazy",style:{maxWidth:'100%',maxHeight:'100%'}})),/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurecolor,fontWeight:sectionproperties.featurefontweight,fontSize:sectionproperties.featurefontsize+'px'}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.name_en:fitem===null||fitem===void 0?void 0:fitem.name_ar)),/*#__PURE__*/React.createElement("div",{"class":"col-lg-12 text-start text-capitalize"},/*#__PURE__*/React.createElement("p",{"class":"m-0 p-0",style:{color:sectionproperties.featurevaluecolor,fontWeight:sectionproperties.featurevaluefontweight,fontSize:sectionproperties.featurevaluefontsize+'px'}},langdetect=='en'?fitem===null||fitem===void 0?void 0:fitem.value_en:fitem===null||fitem===void 0?void 0:fitem.value_ar))));}));};return/*#__PURE__*/React.createElement("div",{className:sectionproperties.productInformationType=='Portfolio'?' row m-0 w-100 p-0 ':sectionproperties.card_marginLeft!=0?' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 p-sm-0 ':' row m-0 w-100 p-sm-0 ',style:{// paddingLeft: sectionproperties.productInformationType == 'Portfolio' ? 0 : srcfromprops == 'Productinfomodel' ? (langdetect == 'en' ? 10 : 10) : 0,
|
|
3963
3972
|
// paddingRight:
|
|
3964
3973
|
// sectionproperties.productInformationType == 'Portfolio'
|
|
@@ -54217,7 +54226,7 @@ var Footer1 = function Footer1(props) {
|
|
|
54217
54226
|
}, /*#__PURE__*/React.createElement("div", {
|
|
54218
54227
|
"class": " col-lg-12 d-flex flex-row align-items-center justify-content-end justify-content-md-center p-md-0"
|
|
54219
54228
|
}, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
54220
|
-
"class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
|
|
54229
|
+
"class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center mx-1 ',
|
|
54221
54230
|
onClick: function onClick() {
|
|
54222
54231
|
var _authdetailsContext$i2;
|
|
54223
54232
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.facebooklink) != null) {
|
|
@@ -54228,7 +54237,7 @@ var Footer1 = function Footer1(props) {
|
|
|
54228
54237
|
}, /*#__PURE__*/React.createElement(FaFacebook, {
|
|
54229
54238
|
size: sectionproperties.facebkbtnniconfontsize
|
|
54230
54239
|
})), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
54231
|
-
"class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center mx-
|
|
54240
|
+
"class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center mx-1 ',
|
|
54232
54241
|
onClick: function onClick() {
|
|
54233
54242
|
var _authdetailsContext$i4;
|
|
54234
54243
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instagramlink) != null) {
|
|
@@ -54239,7 +54248,7 @@ var Footer1 = function Footer1(props) {
|
|
|
54239
54248
|
}, /*#__PURE__*/React.createElement(AiFillInstagram, {
|
|
54240
54249
|
size: sectionproperties.instgrambtniconfontsize
|
|
54241
54250
|
})), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
54242
|
-
"class": "".concat(footerStyles.whatsappbtnn) + ' d-flex align-items-center justify-content-center mx-
|
|
54251
|
+
"class": "".concat(footerStyles.whatsappbtnn) + ' d-flex align-items-center justify-content-center mx-1 ',
|
|
54243
54252
|
onClick: function onClick() {
|
|
54244
54253
|
var _authdetailsContext$i6;
|
|
54245
54254
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.whatsappnumber) != null) {
|
|
@@ -54250,7 +54259,7 @@ var Footer1 = function Footer1(props) {
|
|
|
54250
54259
|
}, /*#__PURE__*/React.createElement(FaWhatsapp, {
|
|
54251
54260
|
size: sectionproperties.youtubebtniconfontsize
|
|
54252
54261
|
})), sectionproperties.youtube_btn == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
54253
|
-
"class": "".concat(footerStyles.youtubebtn) + ' d-flex align-items-center justify-content-center mx-
|
|
54262
|
+
"class": "".concat(footerStyles.youtubebtn) + ' d-flex align-items-center justify-content-center mx-1 ',
|
|
54254
54263
|
onClick: function onClick() {
|
|
54255
54264
|
var _authdetailsContext$i8;
|
|
54256
54265
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.youtubelink) != null) {
|
|
@@ -54261,7 +54270,7 @@ var Footer1 = function Footer1(props) {
|
|
|
54261
54270
|
}, /*#__PURE__*/React.createElement(AiFillYoutube$1, {
|
|
54262
54271
|
size: sectionproperties.youtubeiconfontsize
|
|
54263
54272
|
})), sectionproperties.tiktokshow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
54264
|
-
"class": "".concat(footerStyles.tiktokbtn) + ' d-flex align-items-center justify-content-center mx-
|
|
54273
|
+
"class": "".concat(footerStyles.tiktokbtn) + ' d-flex align-items-center justify-content-center mx-1 ',
|
|
54265
54274
|
onClick: function onClick() {
|
|
54266
54275
|
var _authdetailsContext$i0;
|
|
54267
54276
|
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.tiktoklink) != null) {
|
|
@@ -74917,11 +74926,15 @@ var Searchcomponent = function Searchcomponent(props) {
|
|
|
74917
74926
|
_useState2 = _slicedToArray(_useState, 2),
|
|
74918
74927
|
sectionproperties = _useState2[0],
|
|
74919
74928
|
setsectionproperties = _useState2[1];
|
|
74929
|
+
var _useState3 = useState(''),
|
|
74930
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
74931
|
+
searchinputvalue = _useState4[0],
|
|
74932
|
+
setsearchinputvalue = _useState4[1];
|
|
74920
74933
|
props.actions.lang;
|
|
74921
74934
|
var langdetect = props.actions.langdetect;
|
|
74922
74935
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
74923
74936
|
var actions = props.actions;
|
|
74924
|
-
props.actions.setSearchHeaderInputContext;
|
|
74937
|
+
var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
74925
74938
|
useEffect(function () {
|
|
74926
74939
|
var secpropobj = {};
|
|
74927
74940
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -74976,9 +74989,8 @@ var Searchcomponent = function Searchcomponent(props) {
|
|
|
74976
74989
|
type: "text",
|
|
74977
74990
|
placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
|
|
74978
74991
|
onChange: function onChange(event) {
|
|
74979
|
-
|
|
74980
|
-
|
|
74981
|
-
// setSearchHeaderInputContext({ ...text });
|
|
74992
|
+
setSearchHeaderInputContext(event.target.value);
|
|
74993
|
+
setsearchinputvalue(event.target.value);
|
|
74982
74994
|
},
|
|
74983
74995
|
style: {
|
|
74984
74996
|
background: 'transparent',
|
|
@@ -74990,7 +75002,8 @@ var Searchcomponent = function Searchcomponent(props) {
|
|
|
74990
75002
|
}
|
|
74991
75003
|
}), /*#__PURE__*/React.createElement(Searchlist$1, {
|
|
74992
75004
|
sectionpropertiesprops: sectionproperties,
|
|
74993
|
-
|
|
75005
|
+
searchinputprops: searchinputvalue,
|
|
75006
|
+
srcfromprops: 'cardssection',
|
|
74994
75007
|
actions: actions
|
|
74995
75008
|
})))));
|
|
74996
75009
|
};
|