tabexseriescomponents 0.0.238 → 0.0.240

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 CHANGED
@@ -1060,17 +1060,247 @@ var IKurlEndpoint = 'https://ik.imagekit.io/ft8rkss6u';
1060
1060
  var IKpublicKey = 'public_VBLwXEfKbDK0O9amvBYlyz5R3Nw=';
1061
1061
  var serverbaselink$1 = 'https://tabex-co.com';
1062
1062
 
1063
+ //productidprops
1064
+ var Variantoptions = function Variantoptions(props) {
1065
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
1066
+ var lang = props.actions.lang;
1067
+ var langdetect = props.actions.langdetect;
1068
+ var selectproductoptionvalue = props.actions.selectproductoptionvalue;
1069
+ var clearchoosenvaluesbutkeepcurrentvalue = props.actions.clearchoosenvaluesbutkeepcurrentvalue;
1070
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
1071
+ var sectionproperties = props.actions.sectionproperties;
1072
+ var ProductInfoObj = props.actions.ProductInfoObj;
1073
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.hasvariants) == 1 && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
1074
+ className: "row m-0 w-100 d-flex align-items-start"
1075
+ }, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
1076
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1077
+ className: "col-lg-12 p-0 mb-3 d-flex justify-content-start"
1078
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1079
+ className: "row m-0 w-100 d-flex align-items-start"
1080
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1081
+ className: "col-lg-12 col-md-12 p-0 d-flex"
1082
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
1083
+ className: ' m-0 p-0 wordbreak',
1084
+ style: {
1085
+ color: sectionproperties.varianttitle_color,
1086
+ fontWeight: sectionproperties.varianttitle_fontweight,
1087
+ textTransform: sectionproperties.varianttitle_texttransform,
1088
+ fontSize: sectionproperties.varianttitle_fontSize + 'px'
1089
+ }
1090
+ }, lang.select, " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":")), /*#__PURE__*/React__default["default"].createElement("div", {
1091
+ className: "col-lg-12 col-md-12 d-flex pb-md-3 justify-content-start align-items-start scrollhorixontalcontainer pt-3 pb-3",
1092
+ style: {
1093
+ paddingTop: sectionproperties.showRemovebutton == 'Show' ? '1rem' : 0
1094
+ }
1095
+ }, item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
1096
+ var isoptionvalueselected = 0;
1097
+ if (optionvaluesitem.isselected == 1) {
1098
+ isoptionvalueselected = 1;
1099
+ } else {
1100
+ isoptionvalueselected = 0;
1101
+ }
1102
+ var isoptionvaluedenabled = 0;
1103
+ if (optionvaluesitem.isenabled == 1) {
1104
+ isoptionvaluedenabled = 1;
1105
+ } else {
1106
+ isoptionvaluedenabled = 0;
1107
+ }
1108
+ if (item.optionname == 'color' || item.optionname == 'Color') {
1109
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1110
+ className: productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''),
1111
+ onClick: function onClick() {
1112
+ if (optionvaluesitem.isenabled == 1) {
1113
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
1114
+ } else {
1115
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
1116
+ }
1117
+ },
1118
+ style: {
1119
+ background: optionvaluesitem.valuename,
1120
+ opacity: isoptionvaluedenabled == 1 ? 1 : 0.2,
1121
+ cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed'
1122
+ }
1123
+ });
1124
+ } else if (item.optionname == 'size' || item.optionname == 'Size') {
1125
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1126
+ className: "".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
1127
+ onClick: function onClick() {
1128
+ if (optionvaluesitem.isenabled == 1) {
1129
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
1130
+ } else {
1131
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
1132
+ }
1133
+ },
1134
+ style: {
1135
+ cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
1136
+ backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
1137
+ minWidth: sectionproperties.variantcontainer_minwidth + 'px',
1138
+ height: sectionproperties.variantcontainer_height + 'px',
1139
+ borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
1140
+ position: 'relative'
1141
+ }
1142
+ }, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
1143
+ "class": "m-0 p-0 bg-danger bgdanger-hover",
1144
+ style: {
1145
+ position: 'absolute',
1146
+ top: '-15px',
1147
+ right: '-5px',
1148
+ width: '3vh',
1149
+ height: '3vh',
1150
+ borderRadius: 100
1151
+ }
1152
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
1153
+ "class": "h-100 allcentered"
1154
+ }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
1155
+ className: 'font-12 wordbreak m-0 p-0 d-flex align-items-center justify-content-center',
1156
+ style: {
1157
+ color: sectionproperties.variantcontainer_color,
1158
+ fontSize: sectionproperties.variantcontainer_fontSize + 'px'
1159
+ }
1160
+ }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
1161
+ } else {
1162
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1163
+ className: productinfostyles.variant_container + ' mr-2 variabttcontainer allcentered pl-2 pr-2 ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
1164
+ onClick: function onClick() {
1165
+ if (optionvaluesitem.isenabled == 1) {
1166
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
1167
+ } else {
1168
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
1169
+ }
1170
+ },
1171
+ style: {
1172
+ backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
1173
+ width: 'auto',
1174
+ height: sectionproperties.variantcontainer_height + 'px',
1175
+ borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
1176
+ position: 'relative'
1177
+ }
1178
+ }, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
1179
+ "class": "m-0 p-0 bg-danger bgdanger-hover",
1180
+ style: {
1181
+ position: 'absolute',
1182
+ top: '-15px',
1183
+ right: '-5px',
1184
+ width: '3vh',
1185
+ height: '3vh',
1186
+ borderRadius: 100
1187
+ }
1188
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
1189
+ "class": "h-100 allcentered"
1190
+ }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
1191
+ className: 'm-0 p-0 allcentered',
1192
+ style: {
1193
+ color: sectionproperties.variantcontainer_color,
1194
+ fontSize: sectionproperties.variantcontainer_fontSize + 'px'
1195
+ }
1196
+ }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
1197
+ }
1198
+ }))));
1199
+ })));
1200
+ };
1201
+
1202
+ //productidprops
1203
+ var ProductHeaderPricing = function ProductHeaderPricing(props) {
1204
+ props.actions.lang;
1205
+ var langdetect = props.actions.langdetect;
1206
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
1207
+ var sectionproperties = props.actions.sectionproperties;
1208
+ var authdetailsContext = props.actions.authdetailsContext;
1209
+ var variantindexcompleted = props.actions.variantindexcompleted;
1210
+ var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
1211
+ var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
1212
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, sectionproperties.showDefaultPricingSection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1213
+ "class": "col-lg-12 p-0 mb-3 d-flex justift-content-start",
1214
+ style: {
1215
+ background: sectionproperties.reservation_bgcolor,
1216
+ borderRadius: sectionproperties.reservation_borderradius + 'px'
1217
+ }
1218
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1219
+ "class": "row m-0 w-100",
1220
+ style: {
1221
+ paddingLeft: sectionproperties.reservation_padding_left + 'rem',
1222
+ paddingRight: sectionproperties.reservation_padding_right + 'rem',
1223
+ paddingTop: sectionproperties.reservation_padding_top + 'rem',
1224
+ paddingBottom: sectionproperties.reservation_padding_bottom + 'rem'
1225
+ }
1226
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
1227
+ style: {
1228
+ fontSize: sectionproperties.defaultPriceFontSize + 'px',
1229
+ fontWeight: sectionproperties.defaultPriceFontWeight,
1230
+ color: sectionproperties.defaultPriceColor
1231
+ }
1232
+ }, quantityconditionfoundobjprops != null && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (quantityconditionfoundobjprops === null || quantityconditionfoundobjprops === void 0 ? void 0 : quantityconditionfoundobjprops.type) == 'add' ? '+' : '-', quantityconditionfoundobjprops === null || quantityconditionfoundobjprops === void 0 ? void 0 : quantityconditionfoundobjprops.value, "%")), /*#__PURE__*/React__default["default"].createElement("div", {
1233
+ "class": "col-lg-12 p-0 d-flex justift-content-start"
1234
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
1235
+ "class": "m-0 p-0"
1236
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
1237
+ style: {
1238
+ fontSize: sectionproperties.defaultPriceFontSize + 'px',
1239
+ fontWeight: sectionproperties.defaultPriceFontWeight,
1240
+ color: sectionproperties.defaultPriceColor
1241
+ }
1242
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 ? getprice_discountpriceprops('defaultprice', 0, variantindexcompleted) : getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
1243
+ style: {
1244
+ fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
1245
+ fontWeight: sectionproperties.defaultSalePriceFontWeight,
1246
+ color: sectionproperties.defaultSalePriceColor
1247
+ }
1248
+ }, ' ', "-", ' '), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
1249
+ "class": "linethrough",
1250
+ style: {
1251
+ fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
1252
+ fontWeight: sectionproperties.defaultSalePriceFontWeight,
1253
+ color: sectionproperties.defaultSalePriceColor
1254
+ }
1255
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1256
+ "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
1257
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
1258
+ "class": "m-0 p-0 d-flex align-items-center justift-content-start"
1259
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
1260
+ style: {
1261
+ fontSize: sectionproperties.counterTitleFontSize + 'px',
1262
+ color: sectionproperties.counterTitleColor,
1263
+ fontWeight: sectionproperties.counterTitleFontWeight
1264
+ }
1265
+ }, langdetect == 'en' ? sectionproperties.countertitleen : sectionproperties.countertitlear), /*#__PURE__*/React__default["default"].createElement("span", {
1266
+ "class": "ml-1 mr-1",
1267
+ style: {
1268
+ fontSize: sectionproperties.counterValueFontSize + 'px',
1269
+ color: sectionproperties.counterValueColor,
1270
+ fontWeight: sectionproperties.counterValueFontWeight
1271
+ }
1272
+ }, parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted) - getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted)), ' ', langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
1273
+ style: {
1274
+ background: sectionproperties.pillbgcolor,
1275
+ width: 'fit-content',
1276
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
1277
+ border: sectionproperties.pillBorderWidth + 'px solid ' + sectionproperties.pillBorderColor,
1278
+ direction: 'ltr'
1279
+ },
1280
+ "class": "ml-2 mr-2"
1281
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
1282
+ "class": "m-0 pl-2 pr-2 py-0",
1283
+ style: {
1284
+ color: sectionproperties.pillcolor,
1285
+ fontWeight: sectionproperties.pillfontWeight,
1286
+ fontSize: '13px',
1287
+ lineHeight: '25px'
1288
+ }
1289
+ }, '-' + Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0 + '%'))))));
1290
+ };
1291
+
1063
1292
  function ownKeys$1_(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1064
1293
  function _objectSpread$1_(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1_(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1_(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1065
1294
  var Product_itemtype = function Product_itemtype(props) {
1066
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _ProductInfoObj$data2, _ProductInfoObj$data3, _ProductInfoObj$data4;
1295
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
1067
1296
  var lang = props.actions.lang;
1068
1297
  var langdetect = props.actions.langdetect;
1069
1298
  var srcfromprops = props.actions.srcfromprops;
1070
1299
  props.actions.returnpolicyobj;
1071
1300
  var productinfo_cssstyles = props.actions.productinfo_cssstyles;
1072
1301
  var addtocartfunc = props.actions.addtocartfunc;
1073
- var selectproductoptionvalue = props.actions.selectproductoptionvalue;
1302
+ props.actions.selectproductoptionvalue;
1303
+ props.actions.clearchoosenvaluesbutkeepcurrentvalue;
1074
1304
  var productimagesarray = props.actions.productimagesarray;
1075
1305
  var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
1076
1306
  var sectionproperties = props.actions.sectionproperties;
@@ -1086,7 +1316,7 @@ var Product_itemtype = function Product_itemtype(props) {
1086
1316
  props.actions.relatedproducts;
1087
1317
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
1088
1318
  var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
1089
- var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
1319
+ props.actions.quantityconditionfoundobjprops;
1090
1320
  var StoreInfoprops = props.actions.StoreInfoprops;
1091
1321
  var _useState = React.useState(false),
1092
1322
  _useState2 = _slicedToArray__default["default"](_useState, 2);
@@ -1222,84 +1452,9 @@ var Product_itemtype = function Product_itemtype(props) {
1222
1452
  style: {
1223
1453
  textAlign: langdetect == 'en' ? 'left' : 'right'
1224
1454
  }
1225
- }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.deliverydatetext)), sectionproperties.showDefaultPricingSection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1226
- "class": "col-lg-12 p-0 mb-3 d-flex justift-content-start",
1227
- style: {
1228
- background: sectionproperties.reservation_bgcolor,
1229
- borderRadius: sectionproperties.reservation_borderradius + 'px'
1230
- }
1231
- }, /*#__PURE__*/React__default["default"].createElement("div", {
1232
- "class": "row m-0 w-100",
1233
- style: {
1234
- paddingLeft: sectionproperties.reservation_padding_left + 'rem',
1235
- paddingRight: sectionproperties.reservation_padding_right + 'rem',
1236
- paddingTop: sectionproperties.reservation_padding_top + 'rem',
1237
- paddingBottom: sectionproperties.reservation_padding_bottom + 'rem'
1238
- }
1239
- }, /*#__PURE__*/React__default["default"].createElement("span", {
1240
- style: {
1241
- fontSize: sectionproperties.defaultPriceFontSize + 'px',
1242
- fontWeight: sectionproperties.defaultPriceFontWeight,
1243
- color: sectionproperties.defaultPriceColor
1244
- }
1245
- }, quantityconditionfoundobjprops != null && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (quantityconditionfoundobjprops === null || quantityconditionfoundobjprops === void 0 ? void 0 : quantityconditionfoundobjprops.type) == 'add' ? '+' : '-', quantityconditionfoundobjprops === null || quantityconditionfoundobjprops === void 0 ? void 0 : quantityconditionfoundobjprops.value, "%")), /*#__PURE__*/React__default["default"].createElement("div", {
1246
- "class": "col-lg-12 p-0 d-flex justift-content-start"
1247
- }, /*#__PURE__*/React__default["default"].createElement("p", {
1248
- "class": "m-0 p-0"
1249
- }, /*#__PURE__*/React__default["default"].createElement("span", {
1250
- style: {
1251
- fontSize: sectionproperties.defaultPriceFontSize + 'px',
1252
- fontWeight: sectionproperties.defaultPriceFontWeight,
1253
- color: sectionproperties.defaultPriceColor
1254
- }
1255
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 ? getprice_discountpriceprops('defaultprice', 0, variantindexcompleted) : getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
1256
- style: {
1257
- fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
1258
- fontWeight: sectionproperties.defaultSalePriceFontWeight,
1259
- color: sectionproperties.defaultSalePriceColor
1260
- }
1261
- }, ' ', "-", ' '), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
1262
- "class": "linethrough",
1263
- style: {
1264
- fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
1265
- fontWeight: sectionproperties.defaultSalePriceFontWeight,
1266
- color: sectionproperties.defaultSalePriceColor
1267
- }
1268
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1269
- "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
1270
- }, /*#__PURE__*/React__default["default"].createElement("p", {
1271
- "class": "m-0 p-0 d-flex align-items-center justift-content-start"
1272
- }, /*#__PURE__*/React__default["default"].createElement("span", {
1273
- style: {
1274
- fontSize: sectionproperties.counterTitleFontSize + 'px',
1275
- color: sectionproperties.counterTitleColor,
1276
- fontWeight: sectionproperties.counterTitleFontWeight
1277
- }
1278
- }, langdetect == 'en' ? sectionproperties.countertitleen : sectionproperties.countertitlear), /*#__PURE__*/React__default["default"].createElement("span", {
1279
- "class": "ml-1 mr-1",
1280
- style: {
1281
- fontSize: sectionproperties.counterValueFontSize + 'px',
1282
- color: sectionproperties.counterValueColor,
1283
- fontWeight: sectionproperties.counterValueFontWeight
1284
- }
1285
- }, parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted) - getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted)), ' ', langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
1286
- style: {
1287
- background: sectionproperties.pillbgcolor,
1288
- width: 'fit-content',
1289
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
1290
- border: sectionproperties.pillBorderWidth + 'px solid ' + sectionproperties.pillBorderColor,
1291
- direction: 'ltr'
1292
- },
1293
- "class": "ml-2 mr-2"
1294
- }, /*#__PURE__*/React__default["default"].createElement("p", {
1295
- "class": "m-0 pl-2 pr-2 py-0",
1296
- style: {
1297
- color: sectionproperties.pillcolor,
1298
- fontWeight: sectionproperties.pillfontWeight,
1299
- fontSize: '13px',
1300
- lineHeight: '25px'
1301
- }
1302
- }, '-' + Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0 + '%'))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1455
+ }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.deliverydatetext)), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
1456
+ actions: props.actions
1457
+ }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1303
1458
  className: "row m-0 w-100 d-flex align-items-start"
1304
1459
  }, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
1305
1460
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1359,127 +1514,9 @@ var Product_itemtype = function Product_itemtype(props) {
1359
1514
  }
1360
1515
  }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
1361
1516
  })));
1362
- })), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.hasvariants) == 1 && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
1363
- className: "row m-0 w-100 d-flex align-items-start"
1364
- }, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data2 = ProductInfoObj.data) === null || _ProductInfoObj$data2 === void 0 ? void 0 : (_ProductInfoObj$data3 = _ProductInfoObj$data2.productinfo) === null || _ProductInfoObj$data3 === void 0 ? void 0 : (_ProductInfoObj$data4 = _ProductInfoObj$data3.productoptions) === null || _ProductInfoObj$data4 === void 0 ? void 0 : _ProductInfoObj$data4.map(function (item, index) {
1365
- return /*#__PURE__*/React__default["default"].createElement("div", {
1366
- className: "col-lg-12 p-0 mb-3 d-flex justify-content-start"
1367
- }, /*#__PURE__*/React__default["default"].createElement("div", {
1368
- className: "row m-0 w-100 d-flex align-items-start"
1369
- }, /*#__PURE__*/React__default["default"].createElement("div", {
1370
- className: "col-lg-12 col-md-12 p-0 d-flex"
1371
- }, /*#__PURE__*/React__default["default"].createElement("p", {
1372
- className: ' m-0 p-0 wordbreak',
1373
- style: {
1374
- color: sectionproperties.varianttitle_color,
1375
- fontWeight: sectionproperties.varianttitle_fontweight,
1376
- textTransform: sectionproperties.varianttitle_texttransform,
1377
- fontSize: sectionproperties.varianttitle_fontSize + 'px'
1378
- }
1379
- }, lang.select, " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":")), /*#__PURE__*/React__default["default"].createElement("div", {
1380
- className: "col-lg-12 col-md-12 d-flex pb-md-3 justify-content-start align-items-start scrollhorixontalcontainer pt-3 pb-3",
1381
- style: {
1382
- paddingTop: sectionproperties.showRemovebutton == 'Show' ? '1rem' : 0
1383
- }
1384
- }, item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
1385
- var isoptionvalueselected = 0;
1386
- if (optionvaluesitem.isselected == 1) {
1387
- isoptionvalueselected = 1;
1388
- } else {
1389
- isoptionvalueselected = 0;
1390
- }
1391
- var isoptionvaluedenabled = 0;
1392
- if (optionvaluesitem.isenabled == 1) {
1393
- isoptionvaluedenabled = 1;
1394
- } else {
1395
- isoptionvaluedenabled = 0;
1396
- }
1397
- if (item.optionname == 'color' || item.optionname == 'Color') {
1398
- return /*#__PURE__*/React__default["default"].createElement("div", {
1399
- className: productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''),
1400
- onClick: function onClick() {
1401
- if (optionvaluesitem.isenabled == 1) {
1402
- selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
1403
- }
1404
- },
1405
- style: {
1406
- background: optionvaluesitem.valuename,
1407
- opacity: isoptionvaluedenabled == 1 ? 1 : 0.2,
1408
- cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed'
1409
- }
1410
- });
1411
- } else if (item.optionname == 'size' || item.optionname == 'Size') {
1412
- return /*#__PURE__*/React__default["default"].createElement("div", {
1413
- className: "".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
1414
- onClick: function onClick() {
1415
- if (optionvaluesitem.isenabled == 1) {
1416
- selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
1417
- }
1418
- },
1419
- style: {
1420
- cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
1421
- backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
1422
- minWidth: sectionproperties.variantcontainer_minwidth + 'px',
1423
- height: sectionproperties.variantcontainer_height + 'px',
1424
- borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
1425
- position: 'relative'
1426
- }
1427
- }, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
1428
- "class": "m-0 p-0 bg-danger bgdanger-hover",
1429
- style: {
1430
- position: 'absolute',
1431
- top: '-15px',
1432
- right: '-5px',
1433
- width: '3vh',
1434
- height: '3vh',
1435
- borderRadius: 100
1436
- }
1437
- }, /*#__PURE__*/React__default["default"].createElement("i", {
1438
- "class": "h-100 allcentered"
1439
- }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
1440
- className: 'font-12 wordbreak m-0 p-0 d-flex align-items-center justify-content-center',
1441
- style: {
1442
- color: sectionproperties.variantcontainer_color,
1443
- fontSize: sectionproperties.variantcontainer_fontSize + 'px'
1444
- }
1445
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
1446
- } else {
1447
- return /*#__PURE__*/React__default["default"].createElement("div", {
1448
- className: productinfostyles.variant_container + ' mr-2 variabttcontainer allcentered pl-2 pr-2 ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
1449
- onClick: function onClick() {
1450
- if (optionvaluesitem.isenabled == 1) {
1451
- selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
1452
- }
1453
- },
1454
- style: {
1455
- backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
1456
- width: 'auto',
1457
- height: sectionproperties.variantcontainer_height + 'px',
1458
- borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
1459
- position: 'relative'
1460
- }
1461
- }, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
1462
- "class": "m-0 p-0 bg-danger bgdanger-hover",
1463
- style: {
1464
- position: 'absolute',
1465
- top: '-15px',
1466
- right: '-5px',
1467
- width: '3vh',
1468
- height: '3vh',
1469
- borderRadius: 100
1470
- }
1471
- }, /*#__PURE__*/React__default["default"].createElement("i", {
1472
- "class": "h-100 allcentered"
1473
- }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
1474
- className: 'm-0 p-0 allcentered',
1475
- style: {
1476
- color: sectionproperties.variantcontainer_color,
1477
- fontSize: sectionproperties.variantcontainer_fontSize + 'px'
1478
- }
1479
- }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
1480
- }
1481
- }))));
1482
- })), sectionproperties.quantitybtn_show == 'Show' && sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1517
+ })), /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
1518
+ actions: props.actions
1519
+ }), sectionproperties.quantitybtn_show == 'Show' && sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1483
1520
  className: "col-lg-12 p-0 mb-3"
1484
1521
  }, /*#__PURE__*/React__default["default"].createElement("hr", {
1485
1522
  className: "mb-0 mt-2"
@@ -2336,7 +2373,8 @@ var Service_itemtype = function Service_itemtype(props) {
2336
2373
  var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
2337
2374
  var NotificationManager = props.actions.NotificationManager;
2338
2375
  var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
2339
- var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
2376
+ props.actions.quantityconditionfoundobjprops;
2377
+ props.actions.variantindexcompleted;
2340
2378
  var StoreInfoprops = props.actions.StoreInfoprops;
2341
2379
  var _useState = React.useState(''),
2342
2380
  _useState2 = _slicedToArray__default["default"](_useState, 2),
@@ -2536,84 +2574,9 @@ var Service_itemtype = function Service_itemtype(props) {
2536
2574
  style: {
2537
2575
  textAlign: langdetect == 'en' ? 'left' : 'right'
2538
2576
  }
2539
- }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.deliverydatetext)), sectionproperties.showDefaultPricingSection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
2540
- "class": "col-lg-12 p-0 mb-3 d-flex justift-content-start",
2541
- style: {
2542
- background: sectionproperties.reservation_bgcolor,
2543
- borderRadius: sectionproperties.reservation_borderradius + 'px'
2544
- }
2545
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2546
- "class": "row m-0 w-100",
2547
- style: {
2548
- paddingLeft: sectionproperties.reservation_padding_left + 'rem',
2549
- paddingRight: sectionproperties.reservation_padding_right + 'rem',
2550
- paddingTop: sectionproperties.reservation_padding_top + 'rem',
2551
- paddingBottom: sectionproperties.reservation_padding_bottom + 'rem'
2552
- }
2553
- }, /*#__PURE__*/React__default["default"].createElement("span", {
2554
- style: {
2555
- fontSize: sectionproperties.defaultPriceFontSize + 'px',
2556
- fontWeight: sectionproperties.defaultPriceFontWeight,
2557
- color: sectionproperties.defaultPriceColor
2558
- }
2559
- }, quantityconditionfoundobjprops != null && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (quantityconditionfoundobjprops === null || quantityconditionfoundobjprops === void 0 ? void 0 : quantityconditionfoundobjprops.type) == 'add' ? '+' : '-', quantityconditionfoundobjprops === null || quantityconditionfoundobjprops === void 0 ? void 0 : quantityconditionfoundobjprops.value, "%")), /*#__PURE__*/React__default["default"].createElement("div", {
2560
- "class": "col-lg-12 p-0 d-flex justift-content-start"
2561
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2562
- "class": "m-0 p-0"
2563
- }, /*#__PURE__*/React__default["default"].createElement("span", {
2564
- style: {
2565
- fontSize: sectionproperties.defaultPriceFontSize + 'px',
2566
- fontWeight: sectionproperties.defaultPriceFontWeight,
2567
- color: sectionproperties.defaultPriceColor
2568
- }
2569
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 ? getprice_discountpriceprops('defaultprice', 0) : getprice_discountpriceprops('defaultsaleprice', 0), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
2570
- style: {
2571
- fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
2572
- fontWeight: sectionproperties.defaultSalePriceFontWeight,
2573
- color: sectionproperties.defaultSalePriceColor
2574
- }
2575
- }, ' ', "-", ' '), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
2576
- "class": "linethrough",
2577
- style: {
2578
- fontSize: sectionproperties.defaultSalePriceFontSize + 'px',
2579
- fontWeight: sectionproperties.defaultSalePriceFontWeight,
2580
- color: sectionproperties.defaultSalePriceColor
2581
- }
2582
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
2583
- "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
2584
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2585
- "class": "m-0 p-0 d-flex align-items-center justift-content-start"
2586
- }, /*#__PURE__*/React__default["default"].createElement("span", {
2587
- style: {
2588
- fontSize: sectionproperties.counterTitleFontSize + 'px',
2589
- color: sectionproperties.counterTitleColor,
2590
- fontWeight: sectionproperties.counterTitleFontWeight
2591
- }
2592
- }, langdetect == 'en' ? sectionproperties.countertitleen : sectionproperties.countertitlear), /*#__PURE__*/React__default["default"].createElement("span", {
2593
- "class": "ml-1 mr-1",
2594
- style: {
2595
- fontSize: sectionproperties.counterValueFontSize + 'px',
2596
- color: sectionproperties.counterValueColor,
2597
- fontWeight: sectionproperties.counterValueFontWeight
2598
- }
2599
- }, parseFloat(getprice_discountpriceprops('defaultprice', 0) - getprice_discountpriceprops('defaultsaleprice', 0)), ' ', langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
2600
- style: {
2601
- background: sectionproperties.pillbgcolor,
2602
- width: 'fit-content',
2603
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
2604
- border: sectionproperties.pillBorderWidth + 'px solid ' + sectionproperties.pillBorderColor,
2605
- direction: 'ltr'
2606
- },
2607
- "class": "ml-2 mr-2"
2608
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2609
- "class": "m-0 pl-2 pr-2 py-0",
2610
- style: {
2611
- color: sectionproperties.pillcolor,
2612
- fontWeight: sectionproperties.pillfontWeight,
2613
- fontSize: '13px',
2614
- lineHeight: '25px'
2615
- }
2616
- }, '-' + Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0))) / parseFloat(getprice_discountpriceprops('defaultprice', 0))) * 100) / 10.0 + '%'))))), /*#__PURE__*/React__default["default"].createElement("div", {
2577
+ }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.deliverydatetext)), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
2578
+ actions: props.actions
2579
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
2617
2580
  "class": "col-lg-12 d-flex align-items-center justify-content-start p-0 flex-column"
2618
2581
  }, /*#__PURE__*/React__default["default"].createElement("p", {
2619
2582
  "class": "m-0 p-0 mb-2 w-100",
@@ -2637,7 +2600,9 @@ var Service_itemtype = function Service_itemtype(props) {
2637
2600
  "class": langdetect == 'en' ? productinfo_cssstyles.before + ' before ' : productinfo_cssstyles.before + ' beforear '
2638
2601
  })), /*#__PURE__*/React__default["default"].createElement("div", {
2639
2602
  "class": "col-lg-12 p-0"
2640
- }, /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
2603
+ }, /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
2604
+ actions: props.actions
2605
+ }), /*#__PURE__*/React__default["default"].createElement(Serviceinfotabs, {
2641
2606
  actions: {
2642
2607
  fetchProductInfoQueryContext: fetchProductInfoQueryContext,
2643
2608
  sectionproperties: sectionproperties,
@@ -2893,8 +2858,24 @@ var Productinfo = function Productinfo(props) {
2893
2858
  }
2894
2859
  }
2895
2860
  }, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
2896
- var selectproductoptionvalue = function selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex) {
2861
+ var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
2862
+ var _productarr$data, _productarr$data$prod, _productarr$data$prod2;
2897
2863
  var productarr = ProductInfoObj;
2864
+ productarr === null || productarr === void 0 ? void 0 : (_productarr$data = productarr.data) === null || _productarr$data === void 0 ? void 0 : (_productarr$data$prod = _productarr$data.productinfo) === null || _productarr$data$prod === void 0 ? void 0 : (_productarr$data$prod2 = _productarr$data$prod.productoptions) === null || _productarr$data$prod2 === void 0 ? void 0 : _productarr$data$prod2.forEach(function (item, index) {
2865
+ var _item$optionvalues;
2866
+ item.isselected = 0;
2867
+ item === null || item === void 0 ? void 0 : (_item$optionvalues = item.optionvalues) === null || _item$optionvalues === void 0 ? void 0 : _item$optionvalues.forEach(function (valueitem, valueindex) {
2868
+ valueitem.isselected = 0;
2869
+ });
2870
+ });
2871
+ selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, productarr);
2872
+ };
2873
+ var selectproductoptionvalue = function selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, productarrtobepassed) {
2874
+ if (productarrtobepassed == undefined || productarrtobepassed == null) {
2875
+ var productarr = ProductInfoObj;
2876
+ } else {
2877
+ var productarr = productarrtobepassed;
2878
+ }
2898
2879
  var isselected = productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected;
2899
2880
  if (isselected == 1) {
2900
2881
  productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected = 0;
@@ -2913,8 +2894,8 @@ var Productinfo = function Productinfo(props) {
2913
2894
  var variantchecker = function variantchecker() {
2914
2895
  var productarr = ProductInfoObj;
2915
2896
  if (Object.keys(productarr).length != 0) {
2916
- var _productarr$data, _productarr$data$prod;
2917
- if ((productarr === null || productarr === void 0 ? void 0 : (_productarr$data = productarr.data) === null || _productarr$data === void 0 ? void 0 : (_productarr$data$prod = _productarr$data.productinfo) === null || _productarr$data$prod === void 0 ? void 0 : _productarr$data$prod.hasvariants) == 1) {
2897
+ var _productarr$data2, _productarr$data2$pro;
2898
+ if ((productarr === null || productarr === void 0 ? void 0 : (_productarr$data2 = productarr.data) === null || _productarr$data2 === void 0 ? void 0 : (_productarr$data2$pro = _productarr$data2.productinfo) === null || _productarr$data2$pro === void 0 ? void 0 : _productarr$data2$pro.hasvariants) == 1) {
2918
2899
  var selectedoptionsvalues = [];
2919
2900
  var variantsaccessible = [];
2920
2901
  productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
@@ -3618,14 +3599,14 @@ var Productinfo = function Productinfo(props) {
3618
3599
  langdetect: langdetect,
3619
3600
  lang: lang,
3620
3601
  srcfromprops: props.srcfromprops
3621
- }, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _ref)
3602
+ }, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _ref)
3622
3603
  }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
3623
3604
  actions: (_ref2 = {
3624
3605
  returnpolicyobj: returnpolicyobj,
3625
3606
  langdetect: langdetect,
3626
3607
  lang: lang,
3627
3608
  srcfromprops: props.srcfromprops
3628
- }, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _ref2)
3609
+ }, _defineProperty__default["default"](_ref2, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref2, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref2, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref2, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref2, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref2, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref2, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref2, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref2, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref2, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref2, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref2, "routingcountext", routingcountext), _defineProperty__default["default"](_ref2, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref2, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref2, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref2, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref2, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref2, "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty__default["default"](_ref2, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref2, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref2, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref2, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref2, "getQuantityCondition", getQuantityCondition), _defineProperty__default["default"](_ref2, "StoreInfoprops", StoreInfo), _ref2)
3629
3610
  }), /*#__PURE__*/React__default["default"].createElement("div", {
3630
3611
  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 ',
3631
3612
  style: {
@@ -10935,7 +10916,7 @@ var CardsSection = function CardsSection(props) {
10935
10916
  return /*#__PURE__*/React__default["default"].createElement("div", {
10936
10917
  className: section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 p-md-0 px-1025-1 '
10937
10918
  }, sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && /*#__PURE__*/React__default["default"].createElement("div", {
10938
- "class": langdetect == 'en' ? 'col-lg-12 p-0 pl-sm-2' : 'col-lg-12 p-0 pr-sm-2'
10919
+ "class": langdetect == 'en' ? sectionproperties.paddingLeft != 0 ? 'col-lg-12 p-0 pl-sm-2' : 'col-lg-12 p-0 ' : sectionproperties.paddingRight != 0 ? 'col-lg-12 p-0 pr-sm-2' : 'col-lg-12 p-0 '
10939
10920
  }, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
10940
10921
  transitionBehavior: 'auto',
10941
10922
  wrapperClassName: '',
@@ -26484,7 +26465,7 @@ var googleplay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjsAAAC8CAYAAACe
26484
26465
  function ownKeys$1o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26485
26466
  function _objectSpread$1o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1o(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26486
26467
  var Allinonefooter = function Allinonefooter(props) {
26487
- var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i6, _authdetailsContext$i7, _templatepropcontext$;
26468
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i6, _authdetailsContext$i7, _templatepropcontext$, _authdetailsContext$i10, _authdetailsContext$i13, _authdetailsContext$i16;
26488
26469
  var _useState = React.useState(''),
26489
26470
  _useState2 = _slicedToArray__default["default"](_useState, 2),
26490
26471
  sectionproperties = _useState2[0],
@@ -26877,35 +26858,35 @@ var Allinonefooter = function Allinonefooter(props) {
26877
26858
  }
26878
26859
  }, langdetect == 'en' ? sectionproperties.otherinfotitle2en : sectionproperties.otherinfotitle2ar)), /*#__PURE__*/React__default["default"].createElement("div", {
26879
26860
  "class": "col-lg-12 p-0 d-flex align-items-center justify-content-start"
26880
- }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
26861
+ }, sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.facebooklink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
26881
26862
  "class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
26882
26863
  onClick: function onClick() {
26883
- var _authdetailsContext$i10;
26884
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.facebooklink) != null) {
26885
- var _authdetailsContext$i11;
26886
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.facebooklink, '_blank');
26864
+ var _authdetailsContext$i11;
26865
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.facebooklink) != null) {
26866
+ var _authdetailsContext$i12;
26867
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.facebooklink, '_blank');
26887
26868
  }
26888
26869
  }
26889
26870
  }, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
26890
26871
  size: sectionproperties.facebkbtnniconfontsize
26891
- })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
26872
+ })), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
26892
26873
  "class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
26893
26874
  onClick: function onClick() {
26894
- var _authdetailsContext$i12;
26895
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink) != null) {
26896
- var _authdetailsContext$i13;
26897
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink, '_blank');
26875
+ var _authdetailsContext$i14;
26876
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.instagramlink) != null) {
26877
+ var _authdetailsContext$i15;
26878
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.instagramlink, '_blank');
26898
26879
  }
26899
26880
  }
26900
26881
  }, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
26901
26882
  size: sectionproperties.instgrambtniconfontsize
26902
- })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
26883
+ })), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
26903
26884
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
26904
26885
  onClick: function onClick() {
26905
- var _authdetailsContext$i14;
26906
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.whatsappnumber) != null) {
26907
- var _authdetailsContext$i15;
26908
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber), '_blank');
26886
+ var _authdetailsContext$i17;
26887
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.whatsappnumber) != null) {
26888
+ var _authdetailsContext$i18;
26889
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.whatsappnumber), '_blank');
26909
26890
  }
26910
26891
  }
26911
26892
  }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
@@ -27980,7 +27961,7 @@ var mastercard = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACAAAAATYAgMAAAD2
27980
27961
  function ownKeys$1k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27981
27962
  function _objectSpread$1k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1k(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27982
27963
  var Footer4 = function Footer4(props) {
27983
- var _logoarrayofobjects$, _logoarrayofobjects$2, _templatepropcontext$, _authdetailsContext$i, _authdetailsContext$i4, _authdetailsContext$i5;
27964
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _templatepropcontext$, _authdetailsContext$i, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i8, _authdetailsContext$i11, _authdetailsContext$i14;
27984
27965
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
27985
27966
  var lang = props.actions.lang;
27986
27967
  var langdetect = props.actions.langdetect;
@@ -28318,39 +28299,39 @@ var Footer4 = function Footer4(props) {
28318
28299
  color: sectionproperties.generaltext_fontColor,
28319
28300
  fontWeight: sectionproperties.generaltext_fontWeight
28320
28301
  }
28321
- }, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar), sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28302
+ }, langdetect == 'en' ? sectionproperties.general_text_content : sectionproperties.general_text_content_ar), sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.facebooklink) && /*#__PURE__*/React__default["default"].createElement("div", {
28322
28303
  className: langdetect == 'en' ? "".concat(footerStyles.facebook_btn) + ' allcentered mr-3 mr-sm-4 ' : "".concat(footerStyles.facebook_btn) + ' allcentered ml-3 ml-sm-4 ',
28323
28304
  onClick: function onClick() {
28324
- var _authdetailsContext$i8;
28325
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.facebooklink) != null) {
28326
- var _authdetailsContext$i9;
28327
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.facebooklink, '_blank');
28305
+ var _authdetailsContext$i9;
28306
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.facebooklink) != null) {
28307
+ var _authdetailsContext$i10;
28308
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.facebooklink, '_blank');
28328
28309
  }
28329
28310
  }
28330
28311
  }, /*#__PURE__*/React__default["default"].createElement("i", {
28331
28312
  className: "h-100 allcentered"
28332
28313
  }, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
28333
28314
  size: sectionproperties.facebkbtnniconfontsize
28334
- }))), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28315
+ }))), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instagramlink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
28335
28316
  className: langdetect == 'en' ? "".concat(footerStyles.instgram_btn) + ' allcentered mr-3 mr-sm-4 ' : "".concat(footerStyles.instgram_btn) + ' allcentered ml-3 ml-sm-4 ',
28336
28317
  onClick: function onClick() {
28337
- var _authdetailsContext$i10;
28338
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instagramlink) != null) {
28339
- var _authdetailsContext$i11;
28340
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instagramlink, '_blank');
28318
+ var _authdetailsContext$i12;
28319
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink) != null) {
28320
+ var _authdetailsContext$i13;
28321
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink, '_blank');
28341
28322
  }
28342
28323
  }
28343
28324
  }, /*#__PURE__*/React__default["default"].createElement("i", {
28344
28325
  className: "h-100 allcentered"
28345
28326
  }, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
28346
28327
  size: sectionproperties.instgrambtniconfontsize
28347
- }))), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28328
+ }))), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
28348
28329
  className: langdetect == 'en' ? "".concat(footerStyles.youtube_btn) + ' allcentered mr-3 mr-sm-4 ' : "".concat(footerStyles.youtube_btn) + ' allcentered ml-3 ml-sm-4 ',
28349
28330
  onClick: function onClick() {
28350
- var _authdetailsContext$i12;
28351
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.whatsappnumber) != null) {
28352
- var _authdetailsContext$i13;
28353
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.whatsappnumber), '_blank');
28331
+ var _authdetailsContext$i15;
28332
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber) != null) {
28333
+ var _authdetailsContext$i16;
28334
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber), '_blank');
28354
28335
  }
28355
28336
  }
28356
28337
  }, /*#__PURE__*/React__default["default"].createElement("i", {
@@ -28559,6 +28540,14 @@ var Footer5 = function Footer5(props) {
28559
28540
  top: 0,
28560
28541
  bottom: 0
28561
28542
  }
28543
+ }),
28544
+ apptore: glamor.css({
28545
+ width: '100%',
28546
+ objectFit: 'contain'
28547
+ }),
28548
+ googleplay: glamor.css({
28549
+ width: '100%',
28550
+ objectFit: 'contain'
28562
28551
  })
28563
28552
  };
28564
28553
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -28598,7 +28587,10 @@ var Footer5 = function Footer5(props) {
28598
28587
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28599
28588
  className: "col-lg-12 allcentered p-0"
28600
28589
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28601
- className: "".concat(footerStyles.footerlogo) + ' d-flex flex-column align-items-center justify-content-start '
28590
+ className: "".concat(footerStyles.footerlogo) + ' d-flex flex-column align-items-center justify-content-start cursor-pointer ',
28591
+ onClick: function onClick() {
28592
+ routingcountext('home');
28593
+ }
28602
28594
  }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
28603
28595
  urlEndpoint: IKurlEndpoint,
28604
28596
  publicKey: IKpublicKey,
@@ -28732,7 +28724,10 @@ var Footer5 = function Footer5(props) {
28732
28724
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28733
28725
  className: "col-lg-12 allcentered"
28734
28726
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28735
- className: "".concat(footerStyles.footerlogo) + ' d-flex flex-column align-items-center justify-content-start '
28727
+ className: "".concat(footerStyles.footerlogo) + ' d-flex flex-column align-items-center justify-content-start cursor-pointer ',
28728
+ onClick: function onClick() {
28729
+ routingcountext('home');
28730
+ }
28736
28731
  }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
28737
28732
  urlEndpoint: IKurlEndpoint,
28738
28733
  publicKey: IKpublicKey,
@@ -28861,6 +28856,40 @@ var Footer5 = function Footer5(props) {
28861
28856
  }, /*#__PURE__*/React__default["default"].createElement("img", {
28862
28857
  src: mastercard,
28863
28858
  className: "".concat(footerStyles.payimg)
28859
+ })))), sectionproperties.showdownloadsection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28860
+ className: "row m-0 w-100 mt-3"
28861
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
28862
+ className: "col-lg-12 p-0 d-flex justify-content-md-center"
28863
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
28864
+ className: "".concat(footerStyles.footertitlestyles) + ' m-0 p-0 '
28865
+ }, langdetect == 'en' ? sectionproperties.otherinfotitle1en : sectionproperties.otherinfotitle1ar)), /*#__PURE__*/React__default["default"].createElement("div", {
28866
+ className: "col-lg-12 mt-2 p-0 m-0 w-100 d-flex flex-row align-items-center justify-content-start justify-content-md-center"
28867
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
28868
+ "class": 'col-lg-6 col-md-4 col-sm-6 p-0 '
28869
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
28870
+ "class": "".concat(footerStyles.apptore) + ' d-flex justify-content-center align-items-center cursor-pointer ',
28871
+ src: appstore,
28872
+ onClick: function onClick() {
28873
+ var _authdetailsContext$i25;
28874
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.mobileapplink_appstore, '_blank');
28875
+ },
28876
+ style: {
28877
+ width: '80%',
28878
+ height: '80%'
28879
+ }
28880
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
28881
+ "class": 'col-lg-6 col-md-4 col-sm-6 p-0'
28882
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
28883
+ "class": "".concat(footerStyles.googleplay) + ' d-flex justify-content-start align-items-center cursor-pointer ',
28884
+ src: googleplay,
28885
+ onClick: function onClick() {
28886
+ var _authdetailsContext$i26;
28887
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i26 = authdetailsContext.instinfo) === null || _authdetailsContext$i26 === void 0 ? void 0 : _authdetailsContext$i26.mobileapplink_playstore, '_blank');
28888
+ },
28889
+ style: {
28890
+ width: '80%',
28891
+ height: '80%'
28892
+ }
28864
28893
  }))))))));
28865
28894
  };
28866
28895
 
@@ -36632,6 +36661,19 @@ var VideosSection = function VideosSection(props) {
36632
36661
  }
36633
36662
  }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr);
36634
36663
  };
36664
+ var ImageContent = function ImageContent(item, index) {
36665
+ return /*#__PURE__*/React__default["default"].createElement("div", {
36666
+ "class": "row m-0 w-100"
36667
+ }, sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
36668
+ className: bgcssstyles.text1styles + ' col-lg-12 p-0 w-100 d-flex align-items-center '
36669
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
36670
+ className: bgcssstyles.text1styles + ' d-flex wordbreak m-0 p-0 w-100 '
36671
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), sectionproperties.slideshowtext2_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
36672
+ className: bgcssstyles.text2styles + ' col-lg-12 p-0 w-100 d-flex '
36673
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
36674
+ className: bgcssstyles.text2styles + ' d-flex wordbreak m-0 p-0 w-100 '
36675
+ }, langdetect == 'en' ? item.description_en : item.description_ar)));
36676
+ };
36635
36677
  return /*#__PURE__*/React__default["default"].createElement("div", {
36636
36678
  className: "row ml-0 mr-0 w-100 pl-md-0 pr-md-0",
36637
36679
  style: {
@@ -36669,21 +36711,15 @@ var VideosSection = function VideosSection(props) {
36669
36711
  }
36670
36712
  }, Description()), Object.keys(videosarrayofobjs).length != 0 && videosarrayofobjs.map(function (item, index) {
36671
36713
  return /*#__PURE__*/React__default["default"].createElement("div", {
36672
- className: 'd-flex align-items-stretch col-md-6 col-sm-12 col-lg-' + videosarrayofobjs[index].numberofcols,
36714
+ className: 'd-flex align-items-stretch col-md-6 col-sm-12 col-lg-' + item.numberofcols,
36673
36715
  style: {
36674
36716
  marginBottom: sectionproperties.image_mb + 'px'
36675
36717
  }
36676
36718
  }, /*#__PURE__*/React__default["default"].createElement("div", {
36677
36719
  className: "row ml-0 mr-0 d-flex w-100"
36678
- }, sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
36679
- className: bgcssstyles.text1styles + ' col-lg-12 p-0 w-100 d-flex align-items-center '
36680
- }, /*#__PURE__*/React__default["default"].createElement("p", {
36681
- className: bgcssstyles.text1styles + ' d-flex wordbreak m-0 p-0 '
36682
- }, langdetect == 'en' ? videosarrayofobjs[index].title_en : videosarrayofobjs[index].title_ar)), sectionproperties.slideshowtext2_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
36683
- className: bgcssstyles.text2styles + ' col-lg-12 p-0 w-100 d-flex '
36684
- }, /*#__PURE__*/React__default["default"].createElement("p", {
36685
- className: bgcssstyles.text2styles + ' d-flex wordbreak m-0 p-0 '
36686
- }, langdetect == 'en' ? videosarrayofobjs[index].description_en : videosarrayofobjs[index].description_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
36720
+ }, sectionproperties.sectionbgstyle == 'Text above image' && /*#__PURE__*/React__default["default"].createElement("div", {
36721
+ "class": "col-lg-12 p-0"
36722
+ }, ImageContent(item)), /*#__PURE__*/React__default["default"].createElement("div", {
36687
36723
  className: 'col-lg-12 p-0 d-md-flex w-100 mt-auto',
36688
36724
  style: {
36689
36725
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
@@ -36692,8 +36728,8 @@ var VideosSection = function VideosSection(props) {
36692
36728
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
36693
36729
  height: sectionproperties.image_height + 'px'
36694
36730
  }
36695
- }, item.linkclicked == true && videosarrayofobjs[index].linktype != 'External Link ' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
36696
- url: videosarrayofobjs[index].url,
36731
+ }, item.linkclicked == true && item.linktype != 'External Link ' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
36732
+ url: item.url,
36697
36733
  height: sectionproperties.image_height + 'px',
36698
36734
  width: '100%',
36699
36735
  playing: true,
@@ -36701,28 +36737,33 @@ var VideosSection = function VideosSection(props) {
36701
36737
  loop: true,
36702
36738
  muted: true,
36703
36739
  playsinline: true
36704
- }), item.linkclicked == false && /*#__PURE__*/React__default["default"].createElement("button", {
36740
+ }), item.linkclicked == false && /*#__PURE__*/React__default["default"].createElement("div", {
36705
36741
  onClick: function onClick() {
36706
- if (videosarrayofobjs[index].linktype == 'External Link') {
36707
- window.open(videosarrayofobjs[index].url, '_blank');
36708
- } else {
36742
+ if (item.linktype == 'External Link') {
36743
+ window.open(item.url, '_blank');
36744
+ } else if (item.linktype == 'Image') ; else {
36709
36745
  var temparr = _toConsumableArray__default["default"](videosarrayofobjs);
36710
36746
  temparr[index].linkclicked = true;
36711
36747
  setvideosarrayofobjs(_toConsumableArray__default["default"](temparr));
36712
36748
  }
36713
36749
  },
36714
- "class": "w-100 h-100"
36750
+ "class": "w-100 h-100",
36751
+ style: {
36752
+ cursor: item.linktype == 'Image' ? 'default' : 'pointer'
36753
+ }
36715
36754
  }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
36716
36755
  urlEndpoint: IKurlEndpoint,
36717
36756
  publicKey: IKpublicKey,
36718
- path: videosarrayofobjs.length != 0 ? videosarrayofobjs[index].image : '',
36757
+ path: videosarrayofobjs.length != 0 ? item.image : '',
36719
36758
  className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
36720
36759
  style: {
36721
36760
  height: '100%',
36722
36761
  width: '100%',
36723
36762
  objectFit: sectionproperties.bgcovercontain
36724
36763
  }
36725
- })))));
36764
+ }))), sectionproperties.sectionbgstyle != 'Text above image' && /*#__PURE__*/React__default["default"].createElement("div", {
36765
+ "class": "col-lg-12 p-0 mt-3"
36766
+ }, ImageContent(item))));
36726
36767
  }));
36727
36768
  };
36728
36769
 
@@ -41695,8 +41736,8 @@ var CardWithTextOnly = function CardWithTextOnly(props) {
41695
41736
  }, item.name)));
41696
41737
  };
41697
41738
 
41698
- var css_248z$e = "\n@media (max-width: 576px) {\n .generalCardsStyles-module_productcard__3PgiR {\n max-width: 280px !important;\n min-width: 280px !important;\n }\n .generalCardsStyles-module_Simpleproductcard__GhVP7 {\n max-width: 250px !important;\n min-width: 250px !important;\n }\n .generalCardsStyles-module_ClassicCategoryCard__UWO1a{\n max-width: 330px !important;\n min-width: 330px !important;\n }\n}\n";
41699
- var generalCardsStyles = {"productcard":"generalCardsStyles-module_productcard__3PgiR","Simpleproductcard":"generalCardsStyles-module_Simpleproductcard__GhVP7","ClassicCategoryCard":"generalCardsStyles-module_ClassicCategoryCard__UWO1a"};
41739
+ var css_248z$e = "\n@media (max-width: 576px) {\n .generalCardsStyles-module_productcard__3PgiR {\n max-width: 280px !important;\n min-width: 280px !important;\n }\n .generalCardsStyles-module_Simpleproductcard__GhVP7 {\n max-width: 250px !important;\n min-width: 250px !important;\n }\n .generalCardsStyles-module_ClassicCategoryCard__UWO1a{\n max-width: 330px !important;\n min-width: 330px !important;\n }\n .generalCardsStyles-module_newproductcard__ATddn{\n max-width: 330px !important;\n min-width: 330px !important;\n }\n}\n";
41740
+ var generalCardsStyles = {"productcard":"generalCardsStyles-module_productcard__3PgiR","Simpleproductcard":"generalCardsStyles-module_Simpleproductcard__GhVP7","ClassicCategoryCard":"generalCardsStyles-module_ClassicCategoryCard__UWO1a","newproductcard":"generalCardsStyles-module_newproductcard__ATddn"};
41700
41741
  styleInject(css_248z$e);
41701
41742
 
41702
41743
  function ownKeys$C(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -43020,29 +43061,17 @@ var NewProductcard = function NewProductcard(props) {
43020
43061
  var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
43021
43062
  var addtofavoritescontext = props.actions.addtofavoritescontext;
43022
43063
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
43023
- props.actions.AddtoCartContext;
43024
- props.actions.AddtoCartMutationContext;
43025
- props.actions.StaticPagesLinksContext;
43026
- props.actions.routingcountext;
43027
43064
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
43028
43065
  React.useEffect(function () {
43029
- if (props.srcfrom == 'addsectionform') {
43030
- var secpropobj = {};
43031
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
43032
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
43033
- });
43034
- setsectionproperties(_objectSpread$y({}, secpropobj));
43035
- } else {
43036
- var secpropobj = {};
43037
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
43038
- if (sectionitem.sectionid == props.sectionidprops) {
43039
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
43040
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
43041
- });
43042
- }
43043
- });
43044
- setsectionproperties(_objectSpread$y({}, secpropobj));
43045
- }
43066
+ var secpropobj = {};
43067
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
43068
+ if (sectionitem.sectionid == props.sectionidprops) {
43069
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
43070
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
43071
+ });
43072
+ }
43073
+ });
43074
+ setsectionproperties(_objectSpread$y({}, secpropobj));
43046
43075
  }, [StatePagePropertiesContext]);
43047
43076
  React.useEffect(function () {
43048
43077
  setitem(props.cardinfoitemprops);
@@ -43053,7 +43082,15 @@ var NewProductcard = function NewProductcard(props) {
43053
43082
  height: sectionproperties.variantcontainer_height + 'vh',
43054
43083
  borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px'
43055
43084
  }),
43056
- productcard: glamor.css((_css = {
43085
+ productcard: glamor.css({
43086
+ minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
43087
+ maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
43088
+ '@media (max-width: 800px)': {
43089
+ minWidth: sectionproperties.widthresponsive + 'px',
43090
+ maxWidth: sectionproperties.widthresponsive + 'px'
43091
+ }
43092
+ }),
43093
+ innerproductcard: glamor.css((_css = {
43057
43094
  background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
43058
43095
  opacity: sectionproperties.cardbg_opacity,
43059
43096
  borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
@@ -43077,7 +43114,6 @@ var NewProductcard = function NewProductcard(props) {
43077
43114
  opacity: 1
43078
43115
  }), _css)),
43079
43116
  productcard_imgcontainer: glamor.css({
43080
- height: sectionproperties.image_height + 'px',
43081
43117
  background: sectionproperties.image_bgtransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
43082
43118
  border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
43083
43119
  borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
@@ -43218,164 +43254,182 @@ var NewProductcard = function NewProductcard(props) {
43218
43254
  zIndex: 10000
43219
43255
  })
43220
43256
  };
43257
+ var ImageContent = function ImageContent() {
43258
+ return /*#__PURE__*/React__default["default"].createElement("div", {
43259
+ "class": "w-100"
43260
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
43261
+ urlEndpoint: IKurlEndpoint,
43262
+ publicKey: IKpublicKey,
43263
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
43264
+ loading: "lazy",
43265
+ style: {
43266
+ width: '100%',
43267
+ height: '100%',
43268
+ objectFit: sectionproperties.bgcovercontain == 'Contain' ? 'contain' : 'cover',
43269
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
43270
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
43271
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
43272
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
43273
+ }
43274
+ }), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43275
+ "class": "".concat(card_cssstyles.wishlist_btn) + ' wishlist_btn cursor-pointer ',
43276
+ onClick: function onClick(e) {
43277
+ e.stopPropagation();
43278
+ addtofavoritescontext(item.productid);
43279
+ }
43280
+ }, item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
43281
+ "class": "h-100 d-flex align-items-center justify-content-center"
43282
+ }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, {
43283
+ size: sectionproperties.favBtnIconfontsize,
43284
+ style: {
43285
+ color: sectionproperties.activefaviconcolor
43286
+ }
43287
+ }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart.FaHeart, {
43288
+ size: sectionproperties.favBtnIconfontsize,
43289
+ style: {
43290
+ color: sectionproperties.activefaviconcolor
43291
+ }
43292
+ })), !item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
43293
+ "class": "h-100 d-flex align-items-center justify-content-center"
43294
+ }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
43295
+ size: sectionproperties.favBtnIconfontsize
43296
+ }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
43297
+ size: sectionproperties.favBtnIconfontsize
43298
+ }))), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
43299
+ "class": "allcentered",
43300
+ style: {
43301
+ position: 'absolute',
43302
+ top: sectionproperties.badge_top + 'px',
43303
+ right: sectionproperties.badge_right + 'px',
43304
+ width: sectionproperties.badge_width + 'px',
43305
+ height: sectionproperties.badge_height + 'px',
43306
+ background: sectionproperties.badge_bgcolor,
43307
+ borderRadius: sectionproperties.badge_borderradius + 'px',
43308
+ border: sectionproperties.badgeborderwidth + 'px solid ' + sectionproperties.badge_color
43309
+ }
43310
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43311
+ "class": "m-0 p-0 text-uppercase",
43312
+ style: {
43313
+ color: sectionproperties.badge_color,
43314
+ fontSize: sectionproperties.badge_fontsize + 'px'
43315
+ }
43316
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
43317
+ "class": "allcentered",
43318
+ style: {
43319
+ position: 'absolute',
43320
+ top: sectionproperties.pillpositionfromtop + 'px',
43321
+ right: sectionproperties.pillpositionfromright + 'px',
43322
+ width: sectionproperties.pillwidth + 'px',
43323
+ height: sectionproperties.pillheight + 'px',
43324
+ background: sectionproperties.pillbgcolor,
43325
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
43326
+ }
43327
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43328
+ "class": "m-0 p-0 text-uppercase",
43329
+ style: {
43330
+ color: sectionproperties.pillcolor,
43331
+ fontSize: sectionproperties.pillfontSize + 'px',
43332
+ direction: 'ltr'
43333
+ }
43334
+ }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), /*#__PURE__*/React__default["default"].createElement("div", {
43335
+ "class": "".concat(card_cssstyles.buttoncont) + ' buttoncont row w-100 m-0 d-flex justify-content-center align-items-center '
43336
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43337
+ "class": "col-lg-12 p-0 mb-2"
43338
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
43339
+ "class": "".concat(card_cssstyles.quickshow_btn) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center quickshow_btn ',
43340
+ onClick: function onClick(e) {
43341
+ e.stopPropagation();
43342
+ setShowProductInfoModalContext(true);
43343
+ setProductIdProdutInfoModalContext(item.productid);
43344
+ }
43345
+ }, langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
43346
+ "class": "col-lg-12 p-0"
43347
+ }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
43348
+ "class": "".concat(card_cssstyles.cart_btn) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn ',
43349
+ onClick: function onClick(e) {
43350
+ e.stopPropagation();
43351
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
43352
+ }
43353
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))), /*#__PURE__*/React__default["default"].createElement("div", {
43354
+ style: {
43355
+ bottom: 0,
43356
+ position: 'absolute',
43357
+ width: '100%'
43358
+ },
43359
+ "class": "d-none d-md-flex d-sm-flex"
43360
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43361
+ style: {
43362
+ background: sectionproperties.slideshow_btn_bg,
43363
+ color: sectionproperties.generalbtn_textColor,
43364
+ height: '40px'
43365
+ },
43366
+ "class": "col-lg-6 p-0 d-flex align-items-center justify-content-center",
43367
+ onClick: function onClick(e) {
43368
+ e.stopPropagation();
43369
+ setShowProductInfoModalContext(true);
43370
+ setProductIdProdutInfoModalContext(item.productid);
43371
+ }
43372
+ }, /*#__PURE__*/React__default["default"].createElement(BsEye.BsEye, {
43373
+ size: sectionproperties.cartBtn_iconFontSize
43374
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
43375
+ style: {
43376
+ background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
43377
+ color: sectionproperties.cartBtnTextcolor,
43378
+ height: '40px'
43379
+ },
43380
+ "class": "col-lg-6 p-0 d-flex align-items-center justify-content-center",
43381
+ onClick: function onClick(e) {
43382
+ e.stopPropagation();
43383
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
43384
+ }
43385
+ }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
43386
+ "class": "",
43387
+ size: sectionproperties.cartBtn_iconFontSize
43388
+ }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
43389
+ "class": "",
43390
+ size: sectionproperties.cartBtn_iconFontSize
43391
+ }), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
43392
+ "class": "",
43393
+ size: sectionproperties.cartBtn_iconFontSize
43394
+ }), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(RiHandbagLine.RiHandbagLine, {
43395
+ size: sectionproperties.cartBtn_iconFontSize
43396
+ }), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
43397
+ "class": "",
43398
+ size: sectionproperties.cartBtn_iconFontSize
43399
+ }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
43400
+ size: sectionproperties.cartBtn_iconFontSize
43401
+ }))));
43402
+ };
43221
43403
  return /*#__PURE__*/React__default["default"].createElement("div", {
43222
- "class": "row m-0 w-100",
43404
+ // ${generalCardsStyles.newproductcard}
43405
+ "class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 ' : " ".concat(card_cssstyles.productcard),
43223
43406
  style: {
43224
43407
  paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
43225
43408
  paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
43226
43409
  }
43227
43410
  }, sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
43228
- "class": "".concat(card_cssstyles.productcard) + ' w-100 '
43411
+ "class": "".concat(card_cssstyles.innerproductcard) + ' w-100 '
43229
43412
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43230
43413
  onClick: function onClick() {
43231
43414
  cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
43232
43415
  },
43233
- "class": "".concat(card_cssstyles.productcard_imgcontainer) + ' cursor-pointer ',
43416
+ "class": "".concat(card_cssstyles.productcard_imgcontainer) + ' cursor-pointer d-flex d-md-none w-100 ',
43234
43417
  style: {
43235
43418
  position: 'relative',
43236
- marginBottom: sectionproperties.image_mb + 'px'
43237
- }
43238
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
43239
- urlEndpoint: IKurlEndpoint,
43240
- publicKey: IKpublicKey,
43241
- path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
43242
- loading: "lazy",
43243
- style: {
43244
- width: '100%',
43245
- height: '100%',
43246
- objectFit: sectionproperties.bgcovercontain == 'Contain' ? 'contain' : 'cover',
43247
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
43248
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
43249
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
43250
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
43251
- }
43252
- }), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43253
- "class": "".concat(card_cssstyles.wishlist_btn) + ' wishlist_btn cursor-pointer ',
43254
- onClick: function onClick(e) {
43255
- e.stopPropagation();
43256
- addtofavoritescontext(item.productid);
43257
- }
43258
- }, item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
43259
- "class": "h-100 d-flex align-items-center justify-content-center"
43260
- }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, {
43261
- size: sectionproperties.favBtnIconfontsize,
43262
- style: {
43263
- color: sectionproperties.activefaviconcolor
43264
- }
43265
- }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart.FaHeart, {
43266
- size: sectionproperties.favBtnIconfontsize,
43267
- style: {
43268
- color: sectionproperties.activefaviconcolor
43269
- }
43270
- })), !item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
43271
- "class": "h-100 d-flex align-items-center justify-content-center"
43272
- }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
43273
- size: sectionproperties.favBtnIconfontsize
43274
- }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
43275
- size: sectionproperties.favBtnIconfontsize
43276
- }))), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
43277
- "class": "allcentered",
43278
- style: {
43279
- position: 'absolute',
43280
- top: sectionproperties.badge_top + 'px',
43281
- right: sectionproperties.badge_right + 'px',
43282
- width: sectionproperties.badge_width + 'px',
43283
- height: sectionproperties.badge_height + 'px',
43284
- background: sectionproperties.badge_bgcolor,
43285
- borderRadius: sectionproperties.badge_borderradius + 'px'
43286
- }
43287
- }, /*#__PURE__*/React__default["default"].createElement("p", {
43288
- "class": "m-0 p-0 text-uppercase",
43289
- style: {
43290
- color: sectionproperties.badge_color,
43291
- fontSize: sectionproperties.badge_fontsize + 'px'
43292
- }
43293
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
43294
- "class": "allcentered",
43295
- style: {
43296
- position: 'absolute',
43297
- top: sectionproperties.pillpositionfromtop + 'px',
43298
- right: sectionproperties.pillpositionfromright + 'px',
43299
- width: sectionproperties.pillwidth + 'px',
43300
- height: sectionproperties.pillheight + 'px',
43301
- background: sectionproperties.pillbgcolor,
43302
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
43303
- }
43304
- }, /*#__PURE__*/React__default["default"].createElement("p", {
43305
- "class": "m-0 p-0 text-uppercase",
43306
- style: {
43307
- color: sectionproperties.pillcolor,
43308
- fontSize: sectionproperties.pillfontSize + 'px',
43309
- direction: 'ltr'
43310
- }
43311
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), /*#__PURE__*/React__default["default"].createElement("div", {
43312
- "class": "".concat(card_cssstyles.buttoncont) + ' buttoncont row w-100 m-0 d-flex justify-content-center align-items-center '
43313
- }, /*#__PURE__*/React__default["default"].createElement("div", {
43314
- "class": "col-lg-12 p-0 mb-2"
43315
- }, /*#__PURE__*/React__default["default"].createElement("button", {
43316
- "class": "".concat(card_cssstyles.quickshow_btn) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center quickshow_btn ',
43317
- onClick: function onClick(e) {
43318
- e.stopPropagation();
43319
- setShowProductInfoModalContext(true);
43320
- setProductIdProdutInfoModalContext(item.productid);
43419
+ marginBottom: sectionproperties.image_mb + 'px',
43420
+ height: sectionproperties.image_height + 'px'
43321
43421
  }
43322
- }, langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
43323
- "class": "col-lg-12 p-0"
43324
- }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
43325
- "class": "".concat(card_cssstyles.cart_btn) + ' cursor-pointer d-flex d-md-none d-sm-none justify-content-center align-items-center cart_btn ',
43326
- onClick: function onClick(e) {
43327
- e.stopPropagation();
43422
+ }, ImageContent()), /*#__PURE__*/React__default["default"].createElement("div", {
43423
+ onClick: function onClick() {
43328
43424
  cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
43329
- }
43330
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))), /*#__PURE__*/React__default["default"].createElement("div", {
43331
- style: {
43332
- bottom: 0,
43333
- position: 'absolute',
43334
- width: '100%'
43335
43425
  },
43336
- "class": "d-none d-md-flex d-sm-flex"
43337
- }, /*#__PURE__*/React__default["default"].createElement("div", {
43338
- style: {
43339
- background: sectionproperties.slideshow_btn_bg,
43340
- color: sectionproperties.generalbtn_textColor,
43341
- height: '40px'
43342
- },
43343
- "class": "col-lg-6 p-0 d-flex align-items-center justify-content-center",
43344
- onClick: function onClick(e) {
43345
- e.stopPropagation();
43346
- setShowProductInfoModalContext(true);
43347
- setProductIdProdutInfoModalContext(item.productid);
43348
- }
43349
- }, /*#__PURE__*/React__default["default"].createElement(BsEye.BsEye, {
43350
- size: sectionproperties.cartBtn_iconFontSize
43351
- })), /*#__PURE__*/React__default["default"].createElement("div", {
43426
+ "class": "".concat(card_cssstyles.productcard_imgcontainer) + ' cursor-pointer d-none d-md-flex ',
43352
43427
  style: {
43353
- background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
43354
- color: sectionproperties.cartBtnTextcolor,
43355
- height: '40px'
43356
- },
43357
- "class": "col-lg-6 p-0 d-flex align-items-center justify-content-center",
43358
- onClick: function onClick(e) {
43359
- e.stopPropagation();
43360
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
43428
+ position: 'relative',
43429
+ marginBottom: sectionproperties.image_mb + 'px',
43430
+ height: sectionproperties.height_responsive + 'px'
43361
43431
  }
43362
- }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
43363
- "class": "",
43364
- size: sectionproperties.cartBtn_iconFontSize
43365
- }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
43366
- "class": "",
43367
- size: sectionproperties.cartBtn_iconFontSize
43368
- }), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
43369
- "class": "",
43370
- size: sectionproperties.cartBtn_iconFontSize
43371
- }), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(RiHandbagLine.RiHandbagLine, {
43372
- size: sectionproperties.cartBtn_iconFontSize
43373
- }), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
43374
- "class": "",
43375
- size: sectionproperties.cartBtn_iconFontSize
43376
- }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
43377
- size: sectionproperties.cartBtn_iconFontSize
43378
- })))), /*#__PURE__*/React__default["default"].createElement("div", {
43432
+ }, ImageContent()), /*#__PURE__*/React__default["default"].createElement("div", {
43379
43433
  "class": 'row m-0 w-100 text-start d-flex justify-content-start mt-2'
43380
43434
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43381
43435
  "class": "col-lg-12 d-flex justify-content-start p-0"
@@ -43388,7 +43442,10 @@ var NewProductcard = function NewProductcard(props) {
43388
43442
  textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
43389
43443
  }
43390
43444
  }, item.name)), /*#__PURE__*/React__default["default"].createElement("div", {
43391
- "class": "col-lg-12 d-flex align-items-center justify-content-start p-0"
43445
+ "class": "col-lg-12 d-flex align-items-center p-0",
43446
+ style: {
43447
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
43448
+ }
43392
43449
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
43393
43450
  "class": "".concat(card_cssstyles.productPricestyles) + ' m-0 p-0 '
43394
43451
  }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname, ' '), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
@@ -44528,6 +44585,13 @@ var Card23 = function Card23(props) {
44528
44585
  transition: 'all, 0.4s',
44529
44586
  right: 10,
44530
44587
  transform: "translateX(0px)"
44588
+ }),
44589
+ imageContainer: glamor.css({
44590
+ backgroundColor: sectionproperties.image_bgcolor,
44591
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
44592
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
44593
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
44594
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
44531
44595
  })
44532
44596
  };
44533
44597
  var plainString = function plainString(html) {
@@ -44535,6 +44599,65 @@ var Card23 = function Card23(props) {
44535
44599
  divContainer.innerHTML = html;
44536
44600
  return divContainer.textContent || divContainer.innerText || '';
44537
44601
  };
44602
+ var Image = function Image() {
44603
+ return /*#__PURE__*/React__default["default"].createElement("div", {
44604
+ "class": "w-100"
44605
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
44606
+ urlEndpoint: IKurlEndpoint,
44607
+ publicKey: IKpublicKey,
44608
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
44609
+ style: {
44610
+ width: sectionproperties.imageInnerWidth_Height + '%',
44611
+ height: sectionproperties.imageInnerWidth_Height + '%',
44612
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
44613
+ borderBottomLeftRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px' : 0,
44614
+ borderBottomRightRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px' : 0,
44615
+ borderTopLeftRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px' : 0,
44616
+ borderTopRightRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px' : 0
44617
+ },
44618
+ loading: "lazy",
44619
+ onClick: function onClick() {
44620
+ setShowProductInfoModalContext(true);
44621
+ setProductIdProdutInfoModalContext(item.productid);
44622
+ }
44623
+ }), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
44624
+ "class": "row m-0 align-items-center justify-content-center",
44625
+ style: {
44626
+ position: 'absolute',
44627
+ top: 10,
44628
+ left: 10,
44629
+ height: sectionproperties.badge_height + 'px',
44630
+ width: sectionproperties.badge_width + 'px',
44631
+ backgroundColor: sectionproperties.badge_bgcolor,
44632
+ borderRadius: sectionproperties.badge_borderradius + 'px',
44633
+ paddingLeft: '10px',
44634
+ paddingRight: '10px',
44635
+ color: sectionproperties.badge_color
44636
+ }
44637
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
44638
+ style: {
44639
+ fontSize: sectionproperties.badge_fontsize + 'px'
44640
+ }
44641
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
44642
+ "class": "allcentered",
44643
+ style: {
44644
+ position: 'absolute',
44645
+ top: sectionproperties.pillpositionfromtop + 'px',
44646
+ left: sectionproperties.pillpositionfromright + 'px',
44647
+ width: sectionproperties.pillwidth + 'px',
44648
+ height: sectionproperties.pillheight + 'px',
44649
+ background: sectionproperties.pillbgcolor,
44650
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
44651
+ }
44652
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
44653
+ "class": "m-0 p-0 text-uppercase",
44654
+ style: {
44655
+ color: sectionproperties.pillcolor,
44656
+ fontSize: sectionproperties.pillfontSize + 'px',
44657
+ direction: 'ltr'
44658
+ }
44659
+ }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')));
44660
+ };
44538
44661
  return /*#__PURE__*/React__default["default"].createElement("div", {
44539
44662
  "class": "row m-0 w-100 pl-sm-2 pr-sm-2",
44540
44663
  style: {
@@ -44542,229 +44665,7 @@ var Card23 = function Card23(props) {
44542
44665
  paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
44543
44666
  }
44544
44667
  }, /*#__PURE__*/React__default["default"].createElement("div", {
44545
- "class": "".concat(cardsstyles2.card) + ' d-flex d-md-none '
44546
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44547
- "class": item.IsFavExists == true ? "".concat(cardsstyles2.iconsContainer, " ").concat(cardsstyles2.iconsContainer2) + ' iconsContainer d-flex d-md-none ' : "".concat(cardsstyles2.iconsContainer) + ' iconsContainer d-flex d-md-none ',
44548
- style: {
44549
- zIndex: 100
44550
- }
44551
- }, sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
44552
- "class": "".concat(cardsstyles2.wishlist_btn) + ' mb-1 ',
44553
- onClick: function onClick() {
44554
- addtofavoritescontext(item.productid);
44555
- }
44556
- }, item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
44557
- "class": "h-100 d-flex align-items-center justify-content-center icon"
44558
- }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, {
44559
- size: sectionproperties.favBtnIconfontsize,
44560
- style: {
44561
- color: sectionproperties.activefaviconcolor
44562
- }
44563
- }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart.FaHeart, {
44564
- size: sectionproperties.favBtnIconfontsize,
44565
- style: {
44566
- color: sectionproperties.activefaviconcolor
44567
- }
44568
- })), !item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
44569
- "class": "h-100 d-flex align-items-center justify-content-center"
44570
- }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
44571
- size: sectionproperties.favBtnIconfontsize
44572
- }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
44573
- size: sectionproperties.favBtnIconfontsize
44574
- }))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
44575
- "class": " ".concat(cardsstyles2.showmodal),
44576
- onClick: function onClick(e) {
44577
- e.stopPropagation();
44578
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
44579
- }
44580
- }, /*#__PURE__*/React__default["default"].createElement("i", {
44581
- "class": "h-100 d-flex align-items-center justify-content-center"
44582
- }, /*#__PURE__*/React__default["default"].createElement(BsEye.BsEye, {
44583
- size: sectionproperties.generalbtn_fontsize
44584
- })))), /*#__PURE__*/React__default["default"].createElement("div", {
44585
- "class": "".concat(cardsstyles2.iconsContainer, " ").concat(cardsstyles2.iconsContainer2) + ' iconsContainer d-none d-md-flex ',
44586
- style: {
44587
- zIndex: 100
44588
- }
44589
- }, sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
44590
- "class": " ".concat(cardsstyles2.wishlist_btn) + ' mb-1 ',
44591
- onClick: function onClick() {
44592
- addtofavoritescontext(item.productid);
44593
- }
44594
- }, item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
44595
- "class": "h-100 d-flex align-items-center justify-content-center icon"
44596
- }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, {
44597
- size: sectionproperties.favBtnIconfontsize,
44598
- style: {
44599
- color: sectionproperties.activefaviconcolor
44600
- }
44601
- }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaHeart.FaHeart, {
44602
- size: sectionproperties.favBtnIconfontsize,
44603
- style: {
44604
- color: sectionproperties.activefaviconcolor
44605
- }
44606
- })), !item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
44607
- "class": "h-100 d-flex align-items-center justify-content-center"
44608
- }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiOutlineStar.AiOutlineStar, {
44609
- size: sectionproperties.favBtnIconfontsize
44610
- }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
44611
- size: sectionproperties.favBtnIconfontsize
44612
- }))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
44613
- "class": " ".concat(cardsstyles2.showmodal),
44614
- onClick: function onClick(e) {
44615
- e.stopPropagation();
44616
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
44617
- }
44618
- }, /*#__PURE__*/React__default["default"].createElement("i", {
44619
- "class": "h-100 d-flex align-items-center justify-content-center"
44620
- }, /*#__PURE__*/React__default["default"].createElement(BsEye.BsEye, {
44621
- size: sectionproperties.generalbtn_fontsize
44622
- })))), sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
44623
- "class": "col-lg-12 col-md-12 col-sm-12 pl-0 pr-0 pl-sm-2 pr-sm-2",
44624
- style: {
44625
- paddingTop: sectionproperties.paddingTop + 'px',
44626
- paddingBottom: sectionproperties.paddingBottom + 'px'
44627
- }
44628
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44629
- "class": "cursor-pointer",
44630
- style: {
44631
- backgroundColor: sectionproperties.image_bgcolor,
44632
- height: sectionproperties.image_height + 'px',
44633
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
44634
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
44635
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
44636
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
44637
- }
44638
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
44639
- urlEndpoint: IKurlEndpoint,
44640
- publicKey: IKpublicKey,
44641
- path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
44642
- style: {
44643
- width: '100%',
44644
- height: '100%',
44645
- objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
44646
- borderBottomLeftRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px' : 0,
44647
- borderBottomRightRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px' : 0,
44648
- borderTopLeftRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px' : 0,
44649
- borderTopRightRadius: sectionproperties.bgcovercontain == 'Cover' ? langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px' : 0
44650
- },
44651
- loading: "lazy",
44652
- onClick: function onClick() {
44653
- setShowProductInfoModalContext(true);
44654
- setProductIdProdutInfoModalContext(item.productid);
44655
- }
44656
- }), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
44657
- "class": "row m-0 align-items-center justify-content-center",
44658
- style: {
44659
- position: 'absolute',
44660
- top: 10,
44661
- left: 10,
44662
- height: sectionproperties.badge_height + 'px',
44663
- width: sectionproperties.badge_width + 'px',
44664
- backgroundColor: sectionproperties.badge_bgcolor,
44665
- borderRadius: sectionproperties.badge_borderradius + 'px',
44666
- paddingLeft: '10px',
44667
- paddingRight: '10px',
44668
- color: sectionproperties.badge_color
44669
- }
44670
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44671
- style: {
44672
- fontSize: sectionproperties.badge_fontsize + 'px'
44673
- }
44674
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
44675
- "class": "allcentered",
44676
- style: {
44677
- position: 'absolute',
44678
- top: sectionproperties.pillpositionfromtop + 'px',
44679
- left: sectionproperties.pillpositionfromright + 'px',
44680
- width: sectionproperties.pillwidth + 'px',
44681
- height: sectionproperties.pillheight + 'px',
44682
- background: sectionproperties.pillbgcolor,
44683
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
44684
- }
44685
- }, /*#__PURE__*/React__default["default"].createElement("p", {
44686
- "class": "m-0 p-0 text-uppercase",
44687
- style: {
44688
- color: sectionproperties.pillcolor,
44689
- fontSize: sectionproperties.pillfontSize + 'px',
44690
- direction: 'ltr'
44691
- }
44692
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%'))), /*#__PURE__*/React__default["default"].createElement("div", {
44693
- "class": 'row m-0 w-100 pl-sm-0 pr-sm-0',
44694
- style: {
44695
- paddingLeft: '10px',
44696
- paddingRight: '10px',
44697
- paddingTop: '10px',
44698
- paddingBottom: '10px'
44699
- }
44700
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44701
- "class": "col-lg-12 p-0"
44702
- }, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
44703
- "class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 m-0 ',
44704
- style: {
44705
- textAlign: langdetect == 'en' ? 'left' : 'right'
44706
- }
44707
- }, plainString(langdetect == 'en' ? item.description_en : item.description_ar)), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
44708
- "class": "col-lg-12 p-0 ",
44709
- style: {
44710
- minHeight: '6vh'
44711
- }
44712
- }, /*#__PURE__*/React__default["default"].createElement("p", {
44713
- onClick: function onClick() {
44714
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
44715
- },
44716
- "class": sectionproperties.wordbreak == '1' ? "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 m-0 ' : "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 m-0 ',
44717
- style: {
44718
- textAlign: langdetect == 'en' ? 'left' : 'right'
44719
- }
44720
- }, item.name))), /*#__PURE__*/React__default["default"].createElement("div", {
44721
- "class": "row m-0 w-100 align-items-center mt-1 mb-1"
44722
- }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
44723
- "class": langdetect == 'en' ? "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-right text-sm-left ' : "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
44724
- }, langdetect == 'en' ? 'EGP' : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
44725
- "class": "".concat(cardsstyles2.productSalePricestyles)
44726
- }, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
44727
- "class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
44728
- }, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React__default["default"].createElement("div", {
44729
- "class": "d-flex align-items-center m-0"
44730
- }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
44731
- "class": "".concat(cardsstyles2.cart_btn) + ' allcentered ',
44732
- onClick: function onClick() {
44733
- setShowProductInfoModalContext(true);
44734
- setProductIdProdutInfoModalContext(item.productid);
44735
- }
44736
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44737
- "class": "d-flex align-items-center justify-content-center"
44738
- }, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
44739
- "class": "allcentered mr-2",
44740
- style: {
44741
- color: sectionproperties.cart_iconcolor,
44742
- fontSize: sectionproperties.cartBtn_iconFontSize
44743
- }
44744
- }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
44745
- "class": "",
44746
- size: sectionproperties.cartBtn_iconFontSize
44747
- }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
44748
- "class": "",
44749
- size: sectionproperties.cartBtn_iconFontSize
44750
- }), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
44751
- "class": "",
44752
- size: sectionproperties.cartBtn_iconFontSize
44753
- }), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(RiHandbagLine.RiHandbagLine, {
44754
- size: sectionproperties.cartBtn_iconFontSize
44755
- }), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
44756
- "class": "",
44757
- size: sectionproperties.cartBtn_iconFontSize
44758
- }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
44759
- size: sectionproperties.cartBtn_iconFontSize
44760
- })), /*#__PURE__*/React__default["default"].createElement("p", {
44761
- "class": "m-0 p-0"
44762
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))))))), /*#__PURE__*/React__default["default"].createElement("div", {
44763
- "class": props.sectiontypeprops2 == 'vertical' ? "".concat(cardsstyles2.card) + ' d-none d-md-flex w-100 ' : "".concat(cardsstyles2.card) + ' d-none d-md-flex ',
44764
- style: {
44765
- minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
44766
- maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + ' px'
44767
- }
44668
+ "class": "".concat(cardsstyles2.card) + ' '
44768
44669
  }, /*#__PURE__*/React__default["default"].createElement("div", {
44769
44670
  "class": item.IsFavExists == true ? "".concat(cardsstyles2.iconsContainer, " ").concat(cardsstyles2.iconsContainer2) + ' iconsContainer d-flex d-md-none ' : "".concat(cardsstyles2.iconsContainer) + ' iconsContainer d-flex d-md-none ',
44770
44671
  style: {
@@ -44848,66 +44749,16 @@ var Card23 = function Card23(props) {
44848
44749
  paddingBottom: sectionproperties.paddingBottom + 'px'
44849
44750
  }
44850
44751
  }, /*#__PURE__*/React__default["default"].createElement("div", {
44851
- "class": "cursor-pointer",
44752
+ "class": cardsstyles2.imageContainer + ' d-flex d-md-none ',
44852
44753
  style: {
44853
- backgroundColor: sectionproperties.image_bgcolor,
44854
- height: sectionproperties.image_height + 'px',
44855
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
44856
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
44857
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
44858
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
44859
- }
44860
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
44861
- urlEndpoint: IKurlEndpoint,
44862
- publicKey: IKpublicKey,
44863
- path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
44864
- style: {
44865
- width: '100%',
44866
- height: '100%',
44867
- objectFit: 'contain'
44868
- },
44869
- loading: "lazy",
44870
- onClick: function onClick() {
44871
- setShowProductInfoModalContext(true);
44872
- setProductIdProdutInfoModalContext(item.productid);
44873
- }
44874
- }), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
44875
- "class": "row m-0 align-items-center justify-content-center",
44876
- style: {
44877
- position: 'absolute',
44878
- top: 10,
44879
- left: 10,
44880
- height: sectionproperties.badge_height + 'px',
44881
- width: sectionproperties.badge_width + 'px',
44882
- backgroundColor: sectionproperties.badge_bgcolor,
44883
- borderRadius: sectionproperties.badge_borderradius + 'px',
44884
- paddingLeft: '10px',
44885
- paddingRight: '10px',
44886
- color: sectionproperties.badge_color
44887
- }
44888
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44889
- style: {
44890
- fontSize: sectionproperties.badge_fontsize + 'px'
44891
- }
44892
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
44893
- "class": "allcentered",
44894
- style: {
44895
- position: 'absolute',
44896
- top: sectionproperties.pillpositionfromtop + 'px',
44897
- left: sectionproperties.pillpositionfromright + 'px',
44898
- width: sectionproperties.pillwidth + 'px',
44899
- height: sectionproperties.pillheight + 'px',
44900
- background: sectionproperties.pillbgcolor,
44901
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
44754
+ height: sectionproperties.image_height + 'px'
44902
44755
  }
44903
- }, /*#__PURE__*/React__default["default"].createElement("p", {
44904
- "class": "m-0 p-0 text-uppercase",
44756
+ }, Image()), /*#__PURE__*/React__default["default"].createElement("div", {
44757
+ "class": cardsstyles2.imageContainer + ' d-none d-md-flex ',
44905
44758
  style: {
44906
- color: sectionproperties.pillcolor,
44907
- fontSize: sectionproperties.pillfontSize + 'px',
44908
- direction: 'ltr'
44759
+ height: sectionproperties.height_responsive + 'px'
44909
44760
  }
44910
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%'))), /*#__PURE__*/React__default["default"].createElement("div", {
44761
+ }, Image()), /*#__PURE__*/React__default["default"].createElement("div", {
44911
44762
  "class": 'row m-0 w-100 pl-sm-0 pr-sm-0',
44912
44763
  style: {
44913
44764
  paddingLeft: '10px',
@@ -47431,7 +47282,7 @@ var Horizontalcard = function Horizontalcard(props) {
47431
47282
  fontSize: sectionproperties.badge_fontsize + 'px'
47432
47283
  }
47433
47284
  }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))), /*#__PURE__*/React__default["default"].createElement("div", {
47434
- "class": sectionproperties.image_show == 'Show' ? 'col-lg-8 col-md-8 col-sm-8 pt-2' : 'col-lg-12 col-md-12 col-sm-12 pt-2',
47285
+ "class": sectionproperties.image_show == 'show' ? 'col-lg-8 col-md-8 col-sm-8 pt-2' : 'col-lg-12 col-md-12 col-sm-12 pt-2',
47435
47286
  style: {
47436
47287
  paddingRight: langdetect == 'en' ? 0 : '',
47437
47288
  paddingLeft: langdetect == 'ar' ? 0 : '',