tabexseriescomponents 0.0.213 → 0.0.215

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.umd.js CHANGED
@@ -1148,7 +1148,8 @@
1148
1148
  borderRadius: 100,
1149
1149
  position: 'absolute',
1150
1150
  top: 7,
1151
- left: -4
1151
+ left: langdetect == 'en' ? -4 : '',
1152
+ right: langdetect == 'ar' ? -4 : ''
1152
1153
  }
1153
1154
  }), /*#__PURE__*/React__default["default"].createElement("div", {
1154
1155
  className: "row m-0 w-100 d-flex align-items-start pb-3",
@@ -1171,7 +1172,9 @@
1171
1172
  backgroundColor: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.variantcontainer_bgcolor,
1172
1173
  minWidth: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'auto' : sectionproperties.variantcontainer_minwidth + 'px',
1173
1174
  height: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'auto' : sectionproperties.variantcontainer_height + 'px',
1174
- borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px'
1175
+ borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
1176
+ transform: 'none',
1177
+ cursor: 'default'
1175
1178
  }
1176
1179
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1177
1180
  className: 'm-0 p-0 allcentered font-weight-500',
@@ -1681,9 +1684,9 @@
1681
1684
  TabIndicatorProps: {
1682
1685
  style: {
1683
1686
  background: sectionproperties.activetabbordercolor,
1684
- width: sectionproperties.productInformationType == 'Product/Service Information' ? sectionproperties.showfirstpolicy == 'Hide' ? '50%' : sectionproperties.showsecondpolicy == 'Hide' ? '50%' : '33.3%' : '33.3%',
1685
- right: sectionproperties.productInformationType == 'Product/Service Information' ? sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '' : '',
1686
- margin: sectionproperties.productInformationType == 'Product/Service Information' ? sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '' : ''
1687
+ width: '50%',
1688
+ right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
1689
+ margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : ''
1687
1690
  }
1688
1691
  },
1689
1692
  sx: {
@@ -15916,6 +15919,7 @@
15916
15919
  borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
15917
15920
  color: sectionproperties.favBtniconcolor,
15918
15921
  border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
15922
+ fontSize: sectionproperties.favBtnIconfontsize + 'px',
15919
15923
  transition: '.3s',
15920
15924
  ':hover': {
15921
15925
  background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
@@ -16358,19 +16362,19 @@
16358
16362
  onClick: function onClick() {
16359
16363
  routingcountext(StaticPagesLinksContext.Wishlist);
16360
16364
  }
16365
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
16366
+ "class": "".concat(header_cssstyles.wishlist_btn)
16367
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
16368
+ "class": "h-100 allcentered"
16361
16369
  }, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
16362
- "class": "".concat(header_cssstyles.wishlist_btn),
16363
- size: sectionproperties.favBtnIconfontsize,
16364
16370
  style: {
16365
16371
  position: 'relative'
16366
16372
  }
16367
16373
  }), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, {
16368
- "class": "".concat(header_cssstyles.wishlist_btn),
16369
- size: sectionproperties.favBtnIconfontsize,
16370
16374
  style: {
16371
16375
  position: 'relative'
16372
16376
  }
16373
- }), /*#__PURE__*/React__default["default"].createElement("div", {
16377
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16374
16378
  "class": "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.wishlistbadge)
16375
16379
  }, /*#__PURE__*/React__default["default"].createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), /*#__PURE__*/React__default["default"].createElement("div", {
16376
16380
  "class": " d-flex flex-row justify-content-end align-items-center"
@@ -16389,7 +16393,9 @@
16389
16393
  "class": "".concat(header_cssstyles.cart_btn) + ' cursor-pointer d-flex align-items-center justify-content-center '
16390
16394
  }, /*#__PURE__*/React__default["default"].createElement("div", {
16391
16395
  "class": "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.cartbadge)
16392
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0), sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
16396
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0), /*#__PURE__*/React__default["default"].createElement("i", {
16397
+ "class": "h-100 allcentered"
16398
+ }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
16393
16399
  size: sectionproperties.cartBtn_iconFontSize
16394
16400
  }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
16395
16401
  size: sectionproperties.cartBtn_iconFontSize
@@ -16401,7 +16407,7 @@
16401
16407
  size: sectionproperties.cartBtn_iconFontSize
16402
16408
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
16403
16409
  size: sectionproperties.cartBtn_iconFontSize
16404
- })), /*#__PURE__*/React__default["default"].createElement("div", {
16410
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16405
16411
  "class": langdetect == 'en' ? 'ml-2' : 'mr-2'
16406
16412
  }, /*#__PURE__*/React__default["default"].createElement("div", {
16407
16413
  "class": "row m-0 w-100 d-flex align-items-center flex-column justify-content-start"
@@ -25872,23 +25878,15 @@
25872
25878
  var templateproperties_context = props.actions.templateproperties_context;
25873
25879
  var templatepropcontext = props.actions.templatepropcontext;
25874
25880
  React.useEffect(function () {
25875
- if (props.srcfrom == 'addsectionform') {
25876
- var secpropobj = {};
25877
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
25878
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
25879
- });
25880
- setsectionproperties(_objectSpread$1l({}, secpropobj));
25881
- } else {
25882
- var secpropobj = {};
25883
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
25884
- if (sectionitem.sectionid == props.sectionidprops) {
25885
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
25886
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
25887
- });
25888
- }
25889
- });
25890
- setsectionproperties(_objectSpread$1l({}, secpropobj));
25891
- }
25881
+ var secpropobj = {};
25882
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
25883
+ if (sectionitem.sectionid == props.sectionidprops) {
25884
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
25885
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
25886
+ });
25887
+ }
25888
+ });
25889
+ setsectionproperties(_objectSpread$1l({}, secpropobj));
25892
25890
  }, [StatePagePropertiesContext]);
25893
25891
  React.useEffect(function () {
25894
25892
  if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
@@ -32163,13 +32161,11 @@
32163
32161
  function ownKeys$15(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; }
32164
32162
  function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$15(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$15(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32165
32163
  var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategories(props) {
32166
- var _imagesarray$, _imagesarray$2, _imagesarray$3, _imagesarray$4, _imagesarray$5, _imagesarray$6;
32167
32164
  props.actions.lang;
32168
32165
  var langdetect = props.actions.langdetect;
32169
32166
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
32170
- props.actions.routingcountext;
32171
- props.actions.StaticPagesLinksContext;
32172
- props.sectionindexcontext;
32167
+ var routingcountext = props.actions.routingcountext;
32168
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
32173
32169
  var _useState = React.useState(''),
32174
32170
  _useState2 = _slicedToArray__default["default"](_useState, 2),
32175
32171
  sectionproperties = _useState2[0],
@@ -32178,6 +32174,15 @@
32178
32174
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
32179
32175
  imagesarray = _useState4[0],
32180
32176
  setimagesarray = _useState4[1];
32177
+ var authdetailsContext = props.actions.authdetailsContext;
32178
+ var _useState5 = React.useState(false),
32179
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
32180
+ _useState6[0];
32181
+ var setshowdownheadermenu = _useState6[1];
32182
+ var _useState7 = React.useState(''),
32183
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
32184
+ Choosenindex = _useState8[0],
32185
+ setChoosenindex = _useState8[1];
32181
32186
  React.useEffect(function () {
32182
32187
  if (props.srcfrom == 'addsectionform') {
32183
32188
  var secpropobj = {};
@@ -32207,6 +32212,21 @@
32207
32212
  }
32208
32213
  }
32209
32214
  }, [sectionproperties]);
32215
+ var _useState9 = React.useState([]),
32216
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
32217
+ pcollarray = _useState10[0],
32218
+ setpcollarray = _useState10[1];
32219
+ React.useEffect(function () {
32220
+ var _authdetailsContext$i, _authdetailsContext$i2;
32221
+ var temppcollarray = _toConsumableArray__default["default"](pcollarray);
32222
+ authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instcategories) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.forEach(function (arrayItem) {
32223
+ var _arrayItem$parentcoll;
32224
+ arrayItem === null || arrayItem === void 0 ? void 0 : (_arrayItem$parentcoll = arrayItem.parentcolletions) === null || _arrayItem$parentcoll === void 0 ? void 0 : _arrayItem$parentcoll.forEach(function (item) {
32225
+ temppcollarray.push(item);
32226
+ });
32227
+ });
32228
+ setpcollarray(_toConsumableArray__default["default"](temppcollarray));
32229
+ }, []);
32210
32230
  var sectionstyles = {
32211
32231
  imageBackground: glamor.css({
32212
32232
  ':before': {
@@ -32221,8 +32241,284 @@
32221
32241
  borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32222
32242
  borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32223
32243
  }
32244
+ }),
32245
+ categoryname: glamor.css({
32246
+ color: sectionproperties.subheader_categorytitle_fontColor,
32247
+ fontSize: sectionproperties.subheader_categorytitle_fontSize + 'px',
32248
+ textTransform: sectionproperties.subheader_categorytitle_textTransform,
32249
+ fontWeight: sectionproperties.subheader_categorytitle_textfontweight,
32250
+ transition: '.3s',
32251
+ ':hover': {
32252
+ color: sectionproperties.subheader_categorytitle_coloronhover
32253
+ }
32254
+ }),
32255
+ parentcollection: glamor.css({
32256
+ color: sectionproperties.subheader_collectiontitle_fontColor,
32257
+ fontSize: sectionproperties.subheader_collectiontitle_fontSize + 'px',
32258
+ textTransform: sectionproperties.subheader_collectiontitle_textTransform,
32259
+ fontWeight: sectionproperties.subheader_collectiontitle_textfontweight,
32260
+ transition: '.3s',
32261
+ ':hover': {
32262
+ color: sectionproperties.subheader_collectiontitle_coloronhover
32263
+ }
32264
+ }),
32265
+ collectionName: glamor.css({
32266
+ color: sectionproperties.collectionsectiontextcolor,
32267
+ fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
32268
+ textTransform: sectionproperties.collectionsectiontexttransform,
32269
+ fontWeight: sectionproperties.collectionsectiontextfontweight,
32270
+ transition: '.3s',
32271
+ ':hover': {
32272
+ color: sectionproperties.collectionsectiontextcoloronhover
32273
+ }
32274
+ }),
32275
+ dropdowntitle: glamor.css({
32276
+ color: sectionproperties.collectionssectiontitlecolor,
32277
+ fontSize: sectionproperties.collectionssectiontitlefontsize + 'px',
32278
+ fontWeight: sectionproperties.collectionssectiontitlefonteweight,
32279
+ backgroundColor: sectionproperties.collectionssectiontitlebgcolor
32224
32280
  })
32225
32281
  };
32282
+ var CategoriesDropdown = function CategoriesDropdown() {
32283
+ var _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15, _authdetailsContext$i16;
32284
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32285
+ "class": "row m-0 w-100",
32286
+ style: {
32287
+ background: sectionproperties.collectionssectionbgcolor,
32288
+ boxShadow: '0 0 10px ' + sectionproperties.collectionssectionshadowcolor
32289
+ }
32290
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32291
+ "class": "col-lg-12 p-0"
32292
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32293
+ "class": "row m-0 w-100"
32294
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32295
+ className: sectionstyles.dropdowntitle + ' col-lg-12 p-0 '
32296
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
32297
+ className: "m-0 p-3 text-center"
32298
+ }, langdetect == 'en' ? sectionproperties.collectionssectiontitleen : sectionproperties.collectionssectiontitlear)), /*#__PURE__*/React__default["default"].createElement("div", {
32299
+ "class": "col-lg-12 flex-column cat_dropdown_hover scrollvertical pt-3 px-2",
32300
+ style: {
32301
+ height: sectionproperties.height + 'vh',
32302
+ overflowY: 'scroll'
32303
+ }
32304
+ }, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : (_authdetailsContext$i4 = _authdetailsContext$i3.instcategories) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.map(function (item, index) {
32305
+ var _authdetailsContext$i5;
32306
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32307
+ "class": sectionstyles.categoryname + ' row ml-0 mr-0 w-100 cursor-pointer ',
32308
+ onMouseEnter: function onMouseEnter() {
32309
+ setshowdownheadermenu(true);
32310
+ setChoosenindex(index);
32311
+ }
32312
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32313
+ className: ' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '
32314
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
32315
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
32316
+ onClick: function onClick() {
32317
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
32318
+ }
32319
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
32320
+ className: 'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '
32321
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
32322
+ className: ' p-0 h-100 allcentered '
32323
+ }, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
32324
+ size: sectionproperties.collectionsectioniconfontsize
32325
+ }) : /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
32326
+ size: sectionproperties.collectionsectioniconfontsize
32327
+ }))), index != (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instcategories) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
32328
+ className: "col-lg-12 p-0 mt-3 mb-3"
32329
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
32330
+ "class": "m-0"
32331
+ })));
32332
+ })), sectionproperties.fetchparenttype == 'Parent Collections' && (pcollarray === null || pcollarray === void 0 ? void 0 : pcollarray.map(function (item, index) {
32333
+ if (item.isshowntocustomers == 1) {
32334
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32335
+ "class": sectionstyles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
32336
+ onMouseEnter: function onMouseEnter() {
32337
+ setshowdownheadermenu(true);
32338
+ setChoosenindex(index);
32339
+ }
32340
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32341
+ className: ' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '
32342
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
32343
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
32344
+ onClick: function onClick() {
32345
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
32346
+ }
32347
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
32348
+ className: 'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '
32349
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
32350
+ className: ' p-0 h-100 allcentered '
32351
+ }, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
32352
+ size: sectionproperties.collectionsectioniconfontsize
32353
+ }) : /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
32354
+ size: sectionproperties.collectionsectioniconfontsize
32355
+ }))), index != pcollarray - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
32356
+ className: "col-lg-12 p-0 mt-3 mb-3"
32357
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
32358
+ "class": "m-0"
32359
+ })));
32360
+ }
32361
+ })), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instcollections.map(function (item, index) {
32362
+ if (item.isshowntocustomers == 1) {
32363
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32364
+ "class": slideshow_styles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
32365
+ onMouseEnter: function onMouseEnter() {
32366
+ setshowdownheadermenu(true);
32367
+ setChoosenindex(index);
32368
+ }
32369
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32370
+ className: ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center p-0 '
32371
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
32372
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
32373
+ onClick: function onClick() {
32374
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
32375
+ }
32376
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
32377
+ className: "col-lg-12 p-0 mt-3 mb-3"
32378
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
32379
+ "class": "m-0"
32380
+ })));
32381
+ }
32382
+ }))), sectionproperties.fetchparenttype == 'Categories' && Choosenindex.length != 0 && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : (_authdetailsContext$i8 = _authdetailsContext$i7.instcategories[Choosenindex]) === null || _authdetailsContext$i8 === void 0 ? void 0 : (_authdetailsContext$i9 = _authdetailsContext$i8.parentcolletions) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
32383
+ "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
32384
+ style: {
32385
+ minHeight: sectionproperties.height + 'vh'
32386
+ },
32387
+ onMouseLeave: function onMouseLeave() {
32388
+ setChoosenindex('');
32389
+ }
32390
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32391
+ "class": "row m-0 w-100"
32392
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : (_authdetailsContext$i11 = _authdetailsContext$i10.instcategories[Choosenindex]) === null || _authdetailsContext$i11 === void 0 ? void 0 : (_authdetailsContext$i12 = _authdetailsContext$i11.parentcolletions) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.map(function (item, index) {
32393
+ var _item$collections;
32394
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32395
+ "class": "col-lg-4 p-0"
32396
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
32397
+ "class": sectionstyles.parentcollection + ' m-0 p-0 mb-3 cursor-pointer wordbreak wordbreak2 ',
32398
+ onClick: function onClick() {
32399
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
32400
+ },
32401
+ style: {
32402
+ textAlign: langdetect == 'en' ? 'left' : 'right'
32403
+ }
32404
+ }, langdetect == 'en' ? item.title_en : item.title_ar), item === null || item === void 0 ? void 0 : (_item$collections = item.collections) === null || _item$collections === void 0 ? void 0 : _item$collections.map(function (item, index) {
32405
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32406
+ "class": "col-lg-12 pl-1 pr-1"
32407
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
32408
+ "class": sectionstyles.collectionName + ' cursor-pointer wordbreak wordbreak2 mb-1 ',
32409
+ onClick: function onClick() {
32410
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
32411
+ },
32412
+ style: {
32413
+ textAlign: langdetect == 'en' ? 'left' : 'right'
32414
+ }
32415
+ }, langdetect == 'en' ? item.title_en : item.title_ar));
32416
+ }));
32417
+ }))), sectionproperties.fetchparenttype == 'Parent Collections' && Choosenindex.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
32418
+ "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
32419
+ style: {
32420
+ minHeight: sectionproperties.height + 'vh'
32421
+ },
32422
+ onMouseLeave: function onMouseLeave() {
32423
+ setChoosenindex('');
32424
+ }
32425
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32426
+ "class": "row m-0 w-100"
32427
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : (_authdetailsContext$i14 = _authdetailsContext$i13.instcategories[0]) === null || _authdetailsContext$i14 === void 0 ? void 0 : (_authdetailsContext$i15 = _authdetailsContext$i14.parentcolletions[Choosenindex]) === null || _authdetailsContext$i15 === void 0 ? void 0 : (_authdetailsContext$i16 = _authdetailsContext$i15.collections) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.map(function (item, index) {
32428
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32429
+ "class": "col-lg-4 p-0",
32430
+ onClick: function onClick() {
32431
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
32432
+ }
32433
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32434
+ "class": "col-lg-12 pl-1 pr-1"
32435
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
32436
+ "class": sectionstyles.collectionName + ' cursor-pointer wordbreak wordbreak2 mb-1 ',
32437
+ style: {
32438
+ textAlign: langdetect == 'en' ? 'left' : 'right'
32439
+ }
32440
+ }, langdetect == 'en' ? item.title_en : item.title_ar)));
32441
+ }))))));
32442
+ };
32443
+ var BackgroundImagesContent = function BackgroundImagesContent() {
32444
+ var _imagesarray$, _imagesarray$2, _imagesarray$3, _imagesarray$4, _imagesarray$5, _imagesarray$6;
32445
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32446
+ "class": "row m-0 w-100 align-items-center justify-content-center",
32447
+ onMouseEnter: function onMouseEnter() {
32448
+ setChoosenindex('');
32449
+ }
32450
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32451
+ "class": "col-lg-7 col-md-12 col-sm-12 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1 mb-md-3 mb-sm-3 h-100"
32452
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32453
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32454
+ style: {
32455
+ height: sectionproperties.image_height + 'px',
32456
+ position: 'relative'
32457
+ }
32458
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
32459
+ urlEndpoint: IKurlEndpoint,
32460
+ publicKey: IKpublicKey,
32461
+ path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-820,h-520/' + ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.bgsection_image) : '/tr:w-820,h-520/' + ((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.bgsection_image_ar) : '',
32462
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32463
+ style: {
32464
+ height: '100%',
32465
+ width: '100%',
32466
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
32467
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32468
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32469
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32470
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32471
+ }
32472
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
32473
+ "class": "col-lg-5 p-sm-0"
32474
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32475
+ "class": "row m-0 w-100"
32476
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32477
+ "class": "col-lg-12 col-md-6 col-sm-6 p-0 mb-xl-3 mb-lg-3 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1"
32478
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32479
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32480
+ style: {
32481
+ height: parseInt(sectionproperties.image_height / 2 - 5) + 'px',
32482
+ position: 'relative'
32483
+ }
32484
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
32485
+ urlEndpoint: IKurlEndpoint,
32486
+ publicKey: IKpublicKey,
32487
+ path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$3 = imagesarray[1]) === null || _imagesarray$3 === void 0 ? void 0 : _imagesarray$3.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$4 = imagesarray[1]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.bgsection_image_ar) : '',
32488
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32489
+ style: {
32490
+ height: '100%',
32491
+ width: '100%',
32492
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
32493
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32494
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32495
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32496
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32497
+ }
32498
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
32499
+ "class": "col-lg-12 col-md-6 col-sm-6 p-0 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1"
32500
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32501
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32502
+ style: {
32503
+ height: parseInt(sectionproperties.image_height / 2 - 5) + 'px',
32504
+ position: 'relative'
32505
+ }
32506
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
32507
+ urlEndpoint: IKurlEndpoint,
32508
+ publicKey: IKpublicKey,
32509
+ path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$5 = imagesarray[2]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$6 = imagesarray[2]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.bgsection_image_ar) : '',
32510
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32511
+ style: {
32512
+ height: '100%',
32513
+ width: '100%',
32514
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
32515
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32516
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32517
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32518
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32519
+ }
32520
+ }))))));
32521
+ };
32226
32522
  return /*#__PURE__*/React__default["default"].createElement("div", {
32227
32523
  "class": "row m-0 w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2",
32228
32524
  style: {
@@ -32230,87 +32526,18 @@
32230
32526
  marginBottom: sectionproperties.marginBottom + 'px',
32231
32527
  paddingTop: sectionproperties.paddingTop + 'px',
32232
32528
  paddingBottom: sectionproperties.paddingBottom + 'px',
32233
- paddingLeft: sectionproperties.paddingLeft + 'px',
32234
- paddingRight: sectionproperties.paddingRight + 'px'
32235
- }
32236
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32237
- "class": "col-lg-12 p-0"
32238
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32239
- "class": "row m-0 w-100 align-items-center justify-content-center",
32240
- style: {
32241
- height: sectionproperties.image_height + 'vh'
32242
- }
32243
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32244
- "class": "col-lg-7 col-md-12 col-sm-12 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1 mb-md-3 mb-sm-3 h-100"
32245
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32246
- "class": "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32247
- style: {
32248
- height: 400,
32249
- position: 'relative'
32250
- }
32251
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
32252
- urlEndpoint: IKurlEndpoint,
32253
- publicKey: IKpublicKey,
32254
- path: imagesarray.length != 0 ? langdetect == 'en' ? (_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.bgsection_image : (_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.bgsection_image_ar : '',
32255
- "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32256
- style: {
32257
- height: '100%',
32258
- width: '100%',
32259
- objectFit: sectionproperties.bgcovercontain,
32260
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32261
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32262
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32263
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32264
- }
32265
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
32266
- "class": "col-lg-5 p-sm-0"
32267
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32268
- "class": "row m-0 w-100"
32269
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32270
- "class": "col-lg-12 col-md-6 col-sm-6 p-0 mb-xl-3 mb-lg-3 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1"
32271
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32272
- "class": "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32273
- style: {
32274
- height: '172px',
32275
- position: 'relative'
32276
- }
32277
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
32278
- urlEndpoint: IKurlEndpoint,
32279
- publicKey: IKpublicKey,
32280
- path: imagesarray.length != 0 ? langdetect == 'en' ? (_imagesarray$3 = imagesarray[1]) === null || _imagesarray$3 === void 0 ? void 0 : _imagesarray$3.bgsection_image : (_imagesarray$4 = imagesarray[1]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.bgsection_image_ar : '',
32281
- "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32282
- style: {
32283
- height: '100%',
32284
- width: '100%',
32285
- objectFit: sectionproperties.bgcovercontain,
32286
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32287
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32288
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32289
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32290
- }
32291
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
32292
- "class": "col-lg-12 col-md-6 col-sm-6 p-0 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1"
32293
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32294
- "class": "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32295
- style: {
32296
- height: '215px',
32297
- position: 'relative'
32298
- }
32299
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
32300
- urlEndpoint: IKurlEndpoint,
32301
- publicKey: IKpublicKey,
32302
- path: imagesarray.length != 0 ? langdetect == 'en' ? (_imagesarray$5 = imagesarray[2]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.bgsection_image : (_imagesarray$6 = imagesarray[2]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.bgsection_image_ar : '',
32303
- "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32304
- style: {
32305
- height: '100%',
32306
- width: '100%',
32307
- objectFit: sectionproperties.bgcovercontain,
32308
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32309
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32310
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32311
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32529
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
32530
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
32531
+ background: sectionproperties.backgroundColor
32532
+ },
32533
+ onMouseLeave: function onMouseLeave() {
32534
+ setChoosenindex('');
32312
32535
  }
32313
- }))))))));
32536
+ }, sectionproperties.collectionssectionshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
32537
+ "class": "col-lg-2 d-md-none"
32538
+ }, CategoriesDropdown()), /*#__PURE__*/React__default["default"].createElement("div", {
32539
+ "class": sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 p-0' : 'col-lg-12 p-0'
32540
+ }, BackgroundImagesContent()));
32314
32541
  };
32315
32542
 
32316
32543
  function ownKeys$14(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; }
@@ -35910,6 +36137,8 @@
35910
36137
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
35911
36138
  props.actions.lang;
35912
36139
  var langdetect = props.actions.langdetect;
36140
+ var authdetailsContext = props.actions.authdetailsContext;
36141
+ var routingcountext = props.actions.routingcountext;
35913
36142
  React.useEffect(function () {
35914
36143
  var secpropobj = {};
35915
36144
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -35969,6 +36198,51 @@
35969
36198
  backgroundColor: sectionproperties.linebgcolor,
35970
36199
  borderRadius: '6px'
35971
36200
  }
36201
+ }),
36202
+ facebook_btn: glamor.css({
36203
+ cursor: 'pointer',
36204
+ background: sectionproperties.facebkbtnn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.facebkbtnnbgColor,
36205
+ width: sectionproperties.facebkbtnnWidth + 'px',
36206
+ height: sectionproperties.facebkbtnnHeight + 'px',
36207
+ borderRadius: sectionproperties.facebkbtnn_borderRadius + 'px',
36208
+ color: sectionproperties.facebkbtnnTextcolor,
36209
+ border: sectionproperties.facebkbtnnborderwidth + 'px solid ' + sectionproperties.facebkbtnnbordercolor,
36210
+ transition: '.3s',
36211
+ ':hover': {
36212
+ background: sectionproperties.facebkbtnntransparentbgcoloronhover == 'Transparent' ? 'Transparent' : sectionproperties.facebkbtnnbgColoronhover,
36213
+ color: sectionproperties.facebkbtnnTextcoloronhover,
36214
+ borderColor: sectionproperties.facebkbtnnTextcoloronhover
36215
+ }
36216
+ }),
36217
+ youtube_btn: glamor.css({
36218
+ cursor: 'pointer',
36219
+ background: sectionproperties.youtubebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColor,
36220
+ width: sectionproperties.youtubebtnWidth + 'px',
36221
+ height: sectionproperties.youtubebtnHeight + 'px',
36222
+ borderRadius: sectionproperties.youtubebtn_borderRadius + 'px',
36223
+ color: sectionproperties.youtubebtnTextcolor,
36224
+ border: sectionproperties.youtubebtnborderwidth + 'px solid ' + sectionproperties.youtubebtnbordercolor,
36225
+ transition: '.3s',
36226
+ ':hover': {
36227
+ background: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColoronhover,
36228
+ color: sectionproperties.youtubebtnTextcoloronhover,
36229
+ borderColor: sectionproperties.youtubebtnTextcoloronhover
36230
+ }
36231
+ }),
36232
+ instgram_btn: glamor.css({
36233
+ cursor: 'pointer',
36234
+ background: sectionproperties.instgrambtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColor,
36235
+ width: sectionproperties.instgrambtnWidth + 'px',
36236
+ height: sectionproperties.instgrambtnHeight + 'px',
36237
+ borderRadius: sectionproperties.instgrambtn_borderRadius + 'px',
36238
+ color: sectionproperties.instgrambtnTextcolor,
36239
+ border: sectionproperties.instgrambtnborderwidth + 'px solid ' + sectionproperties.instgrambtnbordercolor,
36240
+ transition: '.3s',
36241
+ ':hover': {
36242
+ background: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColoronhover,
36243
+ color: sectionproperties.instgrambtnTextcoloronhover,
36244
+ borderColor: sectionproperties.instgrambtnTextcoloronhover
36245
+ }
35972
36246
  })
35973
36247
  };
35974
36248
  var SectionTitle = function SectionTitle() {
@@ -36010,7 +36284,10 @@
36010
36284
  fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
36011
36285
  }
36012
36286
  }, SectionTitle())), /*#__PURE__*/React__default["default"].createElement("div", {
36013
- "class": "col-lg-12 p-0 d-flex justify-content-md-center"
36287
+ "class": "col-lg-12 p-0 d-flex justify-content-md-center",
36288
+ style: {
36289
+ justifyContent: sectionproperties.text2centered == 'Centered' ? 'center' : 'start'
36290
+ }
36014
36291
  }, /*#__PURE__*/React__default["default"].createElement("p", {
36015
36292
  "class": "pb-0 text-md-center pl-md-2 pr-md-2",
36016
36293
  style: {
@@ -36028,16 +36305,67 @@
36028
36305
  "class": "col-lg-12 p-0"
36029
36306
  }, /*#__PURE__*/React__default["default"].createElement("button", {
36030
36307
  "class": "".concat(section_styles.btn)
36031
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))));
36308
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
36309
+ "class": "col-lg-12 p-0 d-flex justify-content-start justify-content-sm-center mb-sm-4 align-items-center"
36310
+ }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
36311
+ "class": "".concat(section_styles.facebook_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
36312
+ onClick: function onClick() {
36313
+ var _authdetailsContext$i;
36314
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.facebooklink) != null) {
36315
+ var _authdetailsContext$i2;
36316
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.facebooklink, '_blank');
36317
+ }
36318
+ }
36319
+ }, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
36320
+ size: sectionproperties.facebkbtnniconfontsize
36321
+ })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
36322
+ "class": "".concat(section_styles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
36323
+ onClick: function onClick() {
36324
+ var _authdetailsContext$i3;
36325
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instagramlink) != null) {
36326
+ var _authdetailsContext$i4;
36327
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instagramlink, '_blank');
36328
+ }
36329
+ }
36330
+ }, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
36331
+ size: sectionproperties.instgrambtniconfontsize
36332
+ })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
36333
+ "class": "".concat(section_styles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
36334
+ onClick: function onClick() {
36335
+ var _authdetailsContext$i5;
36336
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.whatsappnumber) != null) {
36337
+ var _authdetailsContext$i6;
36338
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.whatsappnumber), '_blank');
36339
+ }
36340
+ }
36341
+ }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
36342
+ size: sectionproperties.youtubebtniconfontsize
36343
+ })))));
36032
36344
  };
36033
36345
  var Image = function Image() {
36034
- var _imagesarray$, _imagesarray$2;
36346
+ var _imagesarray$, _imagesarray$7, _imagesarray$8;
36035
36347
  return /*#__PURE__*/React__default["default"].createElement("div", {
36036
- "class": sectionproperties.image_height == 0 ? 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center h-auto p-0' : 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center p-0'
36348
+ "class": sectionproperties.image_height == 0 ? 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center h-auto p-0' : 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center p-0',
36349
+ style: {
36350
+ cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default'
36351
+ },
36352
+ onClick: function onClick() {
36353
+ var _imagesarray$2;
36354
+ if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickable) == 'Yes') {
36355
+ var _imagesarray$3, _imagesarray$4;
36356
+ if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.clickable_page_route && ((_imagesarray$4 = imagesarray[0]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.clickable_page_route.length) != 0) {
36357
+ var _imagesarray$5;
36358
+ routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickable_page_route, false, '');
36359
+ } else {
36360
+ var _imagesarray$6;
36361
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickable_Reference_Collection_ID));
36362
+ }
36363
+ }
36364
+ }
36037
36365
  }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
36038
36366
  urlEndpoint: IKurlEndpoint,
36039
36367
  publicKey: IKpublicKey,
36040
- path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + '/' + ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + '/' + ((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.bgsection_image_ar) : '',
36368
+ path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + '/' + ((_imagesarray$7 = imagesarray[0]) === null || _imagesarray$7 === void 0 ? void 0 : _imagesarray$7.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + '/' + ((_imagesarray$8 = imagesarray[0]) === null || _imagesarray$8 === void 0 ? void 0 : _imagesarray$8.bgsection_image_ar) : '',
36041
36369
  style: {
36042
36370
  width: '100%',
36043
36371
  height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'px',
@@ -37462,6 +37790,20 @@
37462
37790
  Choosenindex = _useState10[0],
37463
37791
  setChoosenindex = _useState10[1];
37464
37792
  var authdetailsContext = props.actions.authdetailsContext;
37793
+ var _useState11 = React.useState([]),
37794
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
37795
+ pcollarray = _useState12[0],
37796
+ setpcollarray = _useState12[1];
37797
+ React.useEffect(function () {
37798
+ var _authdetailsContext$i;
37799
+ var temppcollarray = _toConsumableArray__default["default"](pcollarray);
37800
+ authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories.forEach(function (arrayItem) {
37801
+ arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.parentcolletions.forEach(function (item) {
37802
+ temppcollarray.push(item);
37803
+ });
37804
+ });
37805
+ setpcollarray(_toConsumableArray__default["default"](temppcollarray));
37806
+ }, []);
37465
37807
  React.useEffect(function () {
37466
37808
  var secpropobj = {};
37467
37809
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -37616,7 +37958,7 @@
37616
37958
  }))));
37617
37959
  };
37618
37960
  var SlideshowContent = function SlideshowContent() {
37619
- var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9;
37961
+ var _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _authdetailsContext$i15;
37620
37962
  return /*#__PURE__*/React__default["default"].createElement("div", {
37621
37963
  "class": "col-lg-12 p-0"
37622
37964
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -37643,8 +37985,8 @@
37643
37985
  height: sectionproperties.height + 'vh',
37644
37986
  overflowY: 'scroll'
37645
37987
  }
37646
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instcategories) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.map(function (item, index) {
37647
- var _authdetailsContext$i3;
37988
+ }, sectionproperties.fetchparenttype == 'Categories' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : (_authdetailsContext$i3 = _authdetailsContext$i2.instcategories) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.map(function (item, index) {
37989
+ var _authdetailsContext$i4;
37648
37990
  return /*#__PURE__*/React__default["default"].createElement("div", {
37649
37991
  "class": slideshow_styles.categoryname + ' row ml-0 mr-0 w-100 cursor-pointer ',
37650
37992
  onMouseEnter: function onMouseEnter() {
@@ -37666,12 +38008,62 @@
37666
38008
  size: sectionproperties.collectionsectioniconfontsize
37667
38009
  }) : /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
37668
38010
  size: sectionproperties.collectionsectioniconfontsize
37669
- }))), index != (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instcategories) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
38011
+ }))), index != (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instcategories) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
37670
38012
  className: "col-lg-12 p-0 mt-3 mb-3"
37671
38013
  }, /*#__PURE__*/React__default["default"].createElement("hr", {
37672
38014
  "class": "m-0"
37673
38015
  })));
37674
- })), Choosenindex.length != 0 && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : (_authdetailsContext$i5 = _authdetailsContext$i4.instcategories[Choosenindex]) === null || _authdetailsContext$i5 === void 0 ? void 0 : (_authdetailsContext$i6 = _authdetailsContext$i5.parentcolletions) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
38016
+ })), sectionproperties.fetchparenttype == 'Parent Collections' && (pcollarray === null || pcollarray === void 0 ? void 0 : pcollarray.map(function (item, index) {
38017
+ if (item.isshowntocustomers == 1) {
38018
+ return /*#__PURE__*/React__default["default"].createElement("div", {
38019
+ "class": slideshow_styles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
38020
+ onMouseEnter: function onMouseEnter() {
38021
+ setshowdownheadermenu(true);
38022
+ setChoosenindex(index);
38023
+ }
38024
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
38025
+ className: ' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '
38026
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
38027
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
38028
+ onClick: function onClick() {
38029
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
38030
+ }
38031
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
38032
+ className: 'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '
38033
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
38034
+ className: ' p-0 h-100 allcentered '
38035
+ }, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
38036
+ size: sectionproperties.collectionsectioniconfontsize
38037
+ }) : /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
38038
+ size: sectionproperties.collectionsectioniconfontsize
38039
+ }))), index != pcollarray - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
38040
+ className: "col-lg-12 p-0 mt-3 mb-3"
38041
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
38042
+ "class": "m-0"
38043
+ })));
38044
+ }
38045
+ })), sectionproperties.fetchparenttype == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instcollections.map(function (item, index) {
38046
+ if (item.isshowntocustomers == 1) {
38047
+ return /*#__PURE__*/React__default["default"].createElement("div", {
38048
+ "class": slideshow_styles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
38049
+ onMouseEnter: function onMouseEnter() {
38050
+ setshowdownheadermenu(true);
38051
+ setChoosenindex(index);
38052
+ }
38053
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
38054
+ className: ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center p-0 '
38055
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
38056
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
38057
+ onClick: function onClick() {
38058
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
38059
+ }
38060
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
38061
+ className: "col-lg-12 p-0 mt-3 mb-3"
38062
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
38063
+ "class": "m-0"
38064
+ })));
38065
+ }
38066
+ }))), sectionproperties.fetchparenttype == 'Categories' && Choosenindex.length != 0 && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : (_authdetailsContext$i7 = _authdetailsContext$i6.instcategories[Choosenindex]) === null || _authdetailsContext$i7 === void 0 ? void 0 : (_authdetailsContext$i8 = _authdetailsContext$i7.parentcolletions) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
37675
38067
  "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
37676
38068
  style: {
37677
38069
  minHeight: sectionproperties.height + 'vh'
@@ -37681,7 +38073,7 @@
37681
38073
  }
37682
38074
  }, /*#__PURE__*/React__default["default"].createElement("div", {
37683
38075
  "class": "row m-0 w-100"
37684
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : (_authdetailsContext$i8 = _authdetailsContext$i7.instcategories[Choosenindex]) === null || _authdetailsContext$i8 === void 0 ? void 0 : (_authdetailsContext$i9 = _authdetailsContext$i8.parentcolletions) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.map(function (item, index) {
38076
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : (_authdetailsContext$i10 = _authdetailsContext$i9.instcategories[Choosenindex]) === null || _authdetailsContext$i10 === void 0 ? void 0 : (_authdetailsContext$i11 = _authdetailsContext$i10.parentcolletions) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.map(function (item, index) {
37685
38077
  var _item$collections;
37686
38078
  return /*#__PURE__*/React__default["default"].createElement("div", {
37687
38079
  "class": "col-lg-4 p-0"
@@ -37706,6 +38098,30 @@
37706
38098
  }
37707
38099
  }, langdetect == 'en' ? item.title_en : item.title_ar));
37708
38100
  }));
38101
+ }))), sectionproperties.fetchparenttype == 'Parent Collections' && Choosenindex.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
38102
+ "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
38103
+ style: {
38104
+ minHeight: sectionproperties.height + 'vh'
38105
+ },
38106
+ onMouseLeave: function onMouseLeave() {
38107
+ setChoosenindex('');
38108
+ }
38109
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
38110
+ "class": "row m-0 w-100"
38111
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : (_authdetailsContext$i13 = _authdetailsContext$i12.instcategories[0]) === null || _authdetailsContext$i13 === void 0 ? void 0 : (_authdetailsContext$i14 = _authdetailsContext$i13.parentcolletions[Choosenindex]) === null || _authdetailsContext$i14 === void 0 ? void 0 : (_authdetailsContext$i15 = _authdetailsContext$i14.collections) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.map(function (item, index) {
38112
+ return /*#__PURE__*/React__default["default"].createElement("div", {
38113
+ "class": "col-lg-4 p-0",
38114
+ onClick: function onClick() {
38115
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
38116
+ }
38117
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
38118
+ "class": "col-lg-12 pl-1 pr-1"
38119
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
38120
+ "class": slideshow_styles.collectionName + ' cursor-pointer wordbreak wordbreak2 mb-1 ',
38121
+ style: {
38122
+ textAlign: langdetect == 'en' ? 'left' : 'right'
38123
+ }
38124
+ }, langdetect == 'en' ? item.title_en : item.title_ar)));
37709
38125
  }))))))), /*#__PURE__*/React__default["default"].createElement("div", {
37710
38126
  "class": sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 col-sm-12 p-0 d-flex justify-content-center h-sm-auto' : 'col-lg-12 p-0 d-flex justify-content-center h-sm-auto',
37711
38127
  style: {
@@ -38018,12 +38434,12 @@
38018
38434
  background: sectionproperties.backgroundColor
38019
38435
  }
38020
38436
  }, /*#__PURE__*/React__default["default"].createElement("div", {
38021
- "class": cardarrayofobjs.length != 0 ? 'col-lg-12 p-0 d-flex d-sm-none justify-content-center h-md-auto h-sm-auto' : 'col-lg-12 p-0 d-flex d-sm-none justify-content-center h-md-auto h-sm-auto',
38437
+ "class": cardarrayofobjs.length != 0 ? 'col-lg-12 p-0 d-flex justify-content-center' : 'col-lg-12 p-0 d-flex justify-content-center h-md-auto h-sm-auto',
38022
38438
  style: {
38023
38439
  height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
38024
38440
  }
38025
38441
  }, /*#__PURE__*/React__default["default"].createElement("div", {
38026
- "class": "h-md-auto h-sm-auto",
38442
+ "class": cardarrayofobjs.length != 0 ? '' : 'h-md-auto h-sm-auto',
38027
38443
  style: {
38028
38444
  position: 'relative',
38029
38445
  borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
@@ -38043,7 +38459,7 @@
38043
38459
  easing: "ease"
38044
38460
  }), Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
38045
38461
  return /*#__PURE__*/React__default["default"].createElement("div", {
38046
- "class": "row m-0 w-100 h-md-auto h-sm-auto",
38462
+ "class": cardarrayofobjs.length != 0 ? 'row m-0 w-100' : 'row m-0 w-100 h-md-auto h-sm-auto',
38047
38463
  style: {
38048
38464
  borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38049
38465
  borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
@@ -38052,43 +38468,7 @@
38052
38468
  height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
38053
38469
  }
38054
38470
  }, /*#__PURE__*/React__default["default"].createElement("div", {
38055
- "class": slideshow_styles.slideshow_styles + ' p-0 align-items-center d-flex d-sm-none h-md-auto h-sm-auto ',
38056
- key: index,
38057
- style: {
38058
- cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38059
- width: '100%',
38060
- height: '100%',
38061
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38062
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
38063
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
38064
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
38065
- paddingTop: sectionproperties.paddingTop + 'px',
38066
- paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
38067
- paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
38068
- },
38069
- onClick: function onClick() {
38070
- if (item.IsClickableimg == 'Yes') {
38071
- if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
38072
- routingcountext(item.clickableimg_page_route, false, '');
38073
- } else {
38074
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
38075
- }
38076
- }
38077
- }
38078
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
38079
- urlEndpoint: IKurlEndpoint,
38080
- publicKey: IKpublicKey,
38081
- path: langdetect == 'en' ? item.imageen : item.imagear,
38082
- style: {
38083
- cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38084
- objectFit: sectionproperties.bgcovercontain,
38085
- margin: 0,
38086
- padding: 0,
38087
- width: '100%',
38088
- height: '100%'
38089
- }
38090
- }), SlideShowTextContainer(item)), /*#__PURE__*/React__default["default"].createElement("div", {
38091
- "class": slideshow_styles.beforebg + ' p-0 align-items-center d-none d-sm-flex ',
38471
+ "class": slideshow_styles.slideshow_styles + ' p-0 align-items-center d-flex d-md-none ',
38092
38472
  key: index,
38093
38473
  style: {
38094
38474
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
@@ -38114,80 +38494,17 @@
38114
38494
  }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
38115
38495
  urlEndpoint: IKurlEndpoint,
38116
38496
  publicKey: IKpublicKey,
38117
- path: langdetect == 'en' ? item.image_resp_en : item.image_resp_ar,
38497
+ path: langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.imageen : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.imagear,
38118
38498
  style: {
38119
38499
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38120
- objectFit: 'contain',
38500
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
38121
38501
  margin: 0,
38122
38502
  padding: 0,
38123
38503
  width: '100%',
38124
38504
  height: '100%'
38125
38505
  }
38126
- }), SlideShowTextContainer(item)));
38127
- })), cardarrayofobjs.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
38128
- style: {
38129
- position: 'absolute',
38130
- left: 0,
38131
- bottom: 60,
38132
- zIndex: 100
38133
- },
38134
- "class": "row m-0 w-100 "
38135
- }, /*#__PURE__*/React__default["default"].createElement("div", {
38136
- "class": ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'
38137
- }, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
38138
- itemClassName: "slideshowCard"
38139
- // LeftArrow={LeftArrow}
38140
- // RightArrow={RightArrow}
38141
- ,
38142
- transitionDuration: 500,
38143
- transitionEase: easingFunctions['linear'],
38144
- scrollContainerClassName: 'scrollmenuclasssubscrollbar'
38145
- }, Object.keys(cardarrayofobjs).length != 0 && cardarrayofobjs.map(function (cardItem, cardIndex) {
38146
- var id = cardIndex;
38147
- return /*#__PURE__*/React__default["default"].createElement(CardsArrayOfObjects, {
38148
- title: id,
38149
- itemId: id,
38150
- key: id,
38151
- cardItem: cardItem,
38152
- sectionproperties: sectionproperties,
38153
- props: props
38154
- });
38155
- })))))), /*#__PURE__*/React__default["default"].createElement("div", {
38156
- "class": cardarrayofobjs.length != 0 ? 'col-lg-12 p-0 d-none d-sm-flex justify-content-center h-md-auto h-sm-auto' : 'col-lg-12 p-0 d-none d-sm-flex justify-content-center h-md-auto h-sm-auto',
38157
- style: {
38158
- height: sectionproperties.height + 'vh'
38159
- }
38160
- }, /*#__PURE__*/React__default["default"].createElement("div", {
38161
- "class": "h-md-auto h-sm-auto",
38162
- style: {
38163
- position: 'relative',
38164
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38165
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
38166
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
38167
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
38168
- width: sectionproperties.width + 'vw',
38169
- marginBottom: sectionproperties.marginBottom + 'px',
38170
- marginTop: sectionproperties.marginTop + 'px',
38171
- height: sectionproperties.height + 'vh',
38172
- overflow: 'hidden'
38173
- }
38174
- }, /*#__PURE__*/React__default["default"].createElement(reactSlideshowImage.Zoom, _extends__default["default"]({}, Slideshowsettings, {
38175
- transitionDuration: 1500,
38176
- duration: 1500,
38177
- arrow: true,
38178
- easing: "ease"
38179
- }), Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
38180
- return /*#__PURE__*/React__default["default"].createElement("div", {
38181
- "class": "row m-0 w-100 h-md-auto h-sm-auto",
38182
- style: {
38183
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38184
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
38185
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
38186
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
38187
- height: sectionproperties.height + 'vh'
38188
- }
38189
- }, /*#__PURE__*/React__default["default"].createElement("div", {
38190
- "class": 'beforebg p-0 align-items-center d-none d-sm-flex ',
38506
+ }), SlideShowTextContainer(item)), /*#__PURE__*/React__default["default"].createElement("div", {
38507
+ "class": slideshow_styles.beforebg + ' p-0 align-items-center d-none d-md-flex ',
38191
38508
  key: index,
38192
38509
  style: {
38193
38510
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
@@ -38213,10 +38530,10 @@
38213
38530
  }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
38214
38531
  urlEndpoint: IKurlEndpoint,
38215
38532
  publicKey: IKpublicKey,
38216
- path: langdetect == 'en' ? item.image_resp_en : item.image_resp_ar,
38533
+ path: langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + item.image_resp_en : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + item.image_resp_ar,
38217
38534
  style: {
38218
38535
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38219
- objectFit: 'contain',
38536
+ objectFit: sectionproperties.bgcovercontainresponsive == 'Cover' ? 'cover' : 'contain',
38220
38537
  margin: 0,
38221
38538
  padding: 0,
38222
38539
  width: '100%',
@@ -39410,7 +39727,16 @@
39410
39727
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
39411
39728
  props.actions.lang;
39412
39729
  var langdetect = props.actions.langdetect;
39730
+ var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
39731
+ var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
39413
39732
  var routingcountext = props.actions.routingcountext;
39733
+ var _useState5 = React.useState(false),
39734
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
39735
+ showquantity = _useState6[0],
39736
+ setshowquantity = _useState6[1];
39737
+ var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
39738
+ var AddtoCartContext = props.actions.AddtoCartContext;
39739
+ var NotificationManager = props.actions.NotificationManager;
39414
39740
 
39415
39741
  // Sectionproperties
39416
39742
  React.useEffect(function () {
@@ -39424,6 +39750,13 @@
39424
39750
  });
39425
39751
  setsectionproperties(_objectSpread$B({}, secpropobj));
39426
39752
  }, [StatePagePropertiesContext]);
39753
+ React.useEffect(function () {
39754
+ if (item.quantity == 0) {
39755
+ setshowquantity(false);
39756
+ } else {
39757
+ setshowquantity(true);
39758
+ }
39759
+ }, [props.cardinfoitemprops]);
39427
39760
 
39428
39761
  // Card Information
39429
39762
  React.useEffect(function () {
@@ -39431,6 +39764,51 @@
39431
39764
  setitem(props.cardinfoitemprops);
39432
39765
  }
39433
39766
  }, [props.cardinfoitemprops]);
39767
+ var addtocartfunc = function addtocartfunc(type, quantity) {
39768
+ var addtocardpayloadobj = {
39769
+ functype: 'add',
39770
+ productid: item.productid,
39771
+ variantid: '',
39772
+ quantity: quantity
39773
+ };
39774
+ var runfunc = false;
39775
+ if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
39776
+ if (item.hasvariants == 1) {
39777
+ if (addtocardpayloadobj.variantid.length != 0) {
39778
+ runfunc = true;
39779
+ } else {
39780
+ NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر متغير');
39781
+ }
39782
+ } else {
39783
+ runfunc = true;
39784
+ }
39785
+ } else {
39786
+ NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
39787
+ }
39788
+ if (runfunc == true) {
39789
+ AddtoCartContext(addtocardpayloadobj);
39790
+ }
39791
+ };
39792
+ var addtocartbuttonrender = function addtocartbuttonrender() {
39793
+ if (AddtoCartMutationContext.isLoading) {
39794
+ var _AddtoCartMutationCon;
39795
+ if ((AddtoCartMutationContext === null || AddtoCartMutationContext === void 0 ? void 0 : (_AddtoCartMutationCon = AddtoCartMutationContext.variables) === null || _AddtoCartMutationCon === void 0 ? void 0 : _AddtoCartMutationCon.productid) == item.productid) {
39796
+ return /*#__PURE__*/React__default["default"].createElement("div", {
39797
+ "class": ' d-flex align-items-center justify-content-center '
39798
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
39799
+ color: sectionproperties.quantitybtn_textcolor,
39800
+ width: "20px",
39801
+ height: "20px",
39802
+ duration: "1s"
39803
+ }));
39804
+ } else {
39805
+ return item.quantity;
39806
+ }
39807
+ }
39808
+ if (!AddtoCartMutationContext.isLoading) {
39809
+ return item.quantity;
39810
+ }
39811
+ };
39434
39812
 
39435
39813
  // Styles
39436
39814
  var card_cssstyles = {
@@ -39463,19 +39841,6 @@
39463
39841
  paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
39464
39842
  paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
39465
39843
  }),
39466
- button_styles: glamor.css({
39467
- width: sectionproperties.generalbtn_width + 'px',
39468
- height: sectionproperties.generalbtn_height + 'px',
39469
- border: sectionproperties.generalbtn_borderwidth + 'px solid' + sectionproperties.generalbtn_bordercolor,
39470
- borderRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
39471
- backgroundColor: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
39472
- color: sectionproperties.generalbtn_textColor,
39473
- ':hover': {
39474
- backgroundColor: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
39475
- color: sectionproperties.generalbtn_textColoronhover,
39476
- transition: '.3s'
39477
- }
39478
- }),
39479
39844
  cart_btn: glamor.css({
39480
39845
  width: sectionproperties.cartBtnWidth + 'px',
39481
39846
  height: sectionproperties.cartBtnHeight + 'px',
@@ -39492,6 +39857,86 @@
39492
39857
  color: sectionproperties.cartBtnTextcoloronhover
39493
39858
  }
39494
39859
  }),
39860
+ button_styles: glamor.css({
39861
+ width: sectionproperties.generalbtn_width + 'px',
39862
+ height: sectionproperties.generalbtn_height + 'px',
39863
+ border: sectionproperties.generalbtn_borderwidth + 'px solid' + sectionproperties.generalbtn_bordercolor,
39864
+ borderRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
39865
+ backgroundColor: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
39866
+ ':hover': {
39867
+ backgroundColor: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
39868
+ color: sectionproperties.generalbtn_textColoronhover,
39869
+ transition: '.3s'
39870
+ }
39871
+ }),
39872
+ quantitybtn: glamor.css({
39873
+ height: sectionproperties.quantitybtn_height + 'px',
39874
+ width: sectionproperties.quantitybtn_width + 'px',
39875
+ display: 'flex',
39876
+ flexDirection: 'row',
39877
+ overflow: 'hidden',
39878
+ borderRadius: sectionproperties.quantitybtn_borderradius + 'px',
39879
+ background: sectionproperties.quantitybtn_bgcolor,
39880
+ alignItems: 'center',
39881
+ justifyContent: 'center',
39882
+ margin: 0,
39883
+ position: 'relative',
39884
+ fontWeight: sectionproperties.quantitybtn_textfontweight,
39885
+ color: sectionproperties.quantitybtn_textcolor,
39886
+ fontSize: sectionproperties.quantitybtn_textfontsize + 'px',
39887
+ border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor
39888
+ }),
39889
+ quantitybtn_text: glamor.css({
39890
+ margin: 'auto'
39891
+ }),
39892
+ add_quantitybtn_icon_container: glamor.css({
39893
+ position: 'relative',
39894
+ width: sectionproperties.add_quantitybtn_width + 'px',
39895
+ height: sectionproperties.add_quantitybtn_height + 'px',
39896
+ background: sectionproperties.add_quantitybtn_bgcolor,
39897
+ display: 'flex',
39898
+ alignItems: 'center',
39899
+ justifyContent: 'center',
39900
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
39901
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
39902
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
39903
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
39904
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
39905
+ color: sectionproperties.add_quantitybtn_textcolor,
39906
+ transition: '.3s',
39907
+ ':hover': {
39908
+ color: sectionproperties.add_quantitybtn_textcoloronhover,
39909
+ background: sectionproperties.add_quantitybtn_bgcoloronhover
39910
+ },
39911
+ ':hover .addbtn': {
39912
+ color: sectionproperties.add_quantitybtn_textcoloronhover,
39913
+ transition: '.3s'
39914
+ }
39915
+ }),
39916
+ minus_quantitybtn_icon_container: glamor.css({
39917
+ position: 'relative',
39918
+ display: 'flex',
39919
+ alignItems: 'center',
39920
+ justifyContent: 'center',
39921
+ width: sectionproperties.remove_quantitybtn_width + 'px',
39922
+ height: sectionproperties.remove_quantitybtn_height + 'px',
39923
+ background: sectionproperties.remove_quantitybtn_bgcolor,
39924
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
39925
+ color: sectionproperties.remove_quantitybtn_textcolor,
39926
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_leftborderradius + 'px' : sectionproperties.remove_quantitybtn_rightborderradius + 'px',
39927
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_leftborderradius + 'px' : sectionproperties.remove_quantitybtn_rightborderradius + 'px',
39928
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_rightborderradius + 'px' : sectionproperties.remove_quantitybtn_leftborderradius + 'px',
39929
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_rightborderradius + 'px' : sectionproperties.remove_quantitybtn_leftborderradius + 'px',
39930
+ transition: '.3s',
39931
+ ':hover': {
39932
+ color: sectionproperties.remove_quantitybtn_textcoloronhover,
39933
+ background: sectionproperties.remove_quantitybtn_bgcoloronhover
39934
+ },
39935
+ ':hover .minusbtn': {
39936
+ transition: '.3s',
39937
+ color: sectionproperties.remove_quantitybtn_textcoloronhover
39938
+ }
39939
+ }),
39495
39940
  wishlist_btn: glamor.css({
39496
39941
  width: sectionproperties.favBtnWidth + 'px',
39497
39942
  height: sectionproperties.favBtnHeight + 'px',
@@ -39528,9 +39973,18 @@
39528
39973
  })
39529
39974
  };
39530
39975
  return /*#__PURE__*/React__default["default"].createElement("div", {
39531
- "class": card_cssstyles.productcard + ' row m-0 w-100 '
39976
+ "class": card_cssstyles.productcard + ' row ml-0 mr-0 w-100 '
39532
39977
  }, /*#__PURE__*/React__default["default"].createElement("div", {
39533
- "class": "col-lg-12 p-0 h-100"
39978
+ "class": "col-lg-12 pl-0 pr-0 h-100",
39979
+ style: {
39980
+ paddingTop: sectionproperties.paddingTop + 'px',
39981
+ paddingBottom: sectionproperties.paddingBottom + 'px',
39982
+ backgroundColor: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
39983
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
39984
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
39985
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
39986
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px'
39987
+ }
39534
39988
  }, /*#__PURE__*/React__default["default"].createElement("div", {
39535
39989
  "class": "row mt-0 ml-0 mr-0 w-100 align-items-center justify-content-center",
39536
39990
  style: {
@@ -39538,21 +39992,21 @@
39538
39992
  height: sectionproperties.image_height + 'px',
39539
39993
  marginBottom: sectionproperties.image_mb + 'px',
39540
39994
  paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
39541
- paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
39542
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
39543
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
39544
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
39545
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
39546
- backgroundColor: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
39995
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
39547
39996
  }
39548
39997
  }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
39549
39998
  urlEndpoint: IKurlEndpoint,
39550
39999
  publicKey: IKpublicKey,
39551
- path: '/tr:w-350,h-300/' + item.image,
40000
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
39552
40001
  style: {
39553
40002
  width: '100%',
39554
40003
  height: '100%',
39555
- objectFit: 'contain'
40004
+ objectFit: sectionproperties.bgcovercontain == 'Contain' ? 'contain' : 'cover',
40005
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'Transparent' : sectionproperties.image_bgcolor,
40006
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
40007
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
40008
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
40009
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px'
39556
40010
  },
39557
40011
  loading: "lazy"
39558
40012
  }), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -39574,15 +40028,65 @@
39574
40028
  "class": "h-100 d-flex align-items-center justify-content-center"
39575
40029
  }, /*#__PURE__*/React__default["default"].createElement(FaRegEye.FaRegEye, {
39576
40030
  size: sectionproperties.generalbtn_fontsize
39577
- }))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
39578
- "class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ',
40031
+ }))), sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
40032
+ "class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-sm-100px font-sm-12 ',
39579
40033
  onClick: function onClick() {
39580
- if (props.fetchingtypeprops == 'products') {
40034
+ setShowProductInfoModalContext(true);
40035
+ setProductIdProdutInfoModalContext(item.productid);
40036
+ }
40037
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), sectionproperties.quantitybtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", null, sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("button", {
40038
+ "class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-sm-100px font-sm-12 ',
40039
+ onClick: function onClick() {
40040
+ setshowquantity(true);
40041
+ }
40042
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), showquantity == true && /*#__PURE__*/React__default["default"].createElement("div", {
40043
+ "class": "".concat(card_cssstyles.quantitybtn) + ' w-sm-100px p-0 d-flex align-items-center justify-content-center ml-2 mr-2 ml-sm-1 mr-sm-1 ',
40044
+ style: {
40045
+ direction: 'ltr'
40046
+ }
40047
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
40048
+ "class": "".concat(card_cssstyles.minus_quantitybtn_icon_container),
40049
+ onClick: function onClick() {
40050
+ if (item.hasvariants == 0) {
40051
+ var tempitem = _objectSpread$B({}, item);
40052
+ tempitem.quantity = parseInt(tempitem.quantity);
40053
+ tempitem.quantity = tempitem.quantity - 1;
40054
+ if (tempitem.quantity <= 0) {
40055
+ tempitem.quantity = 0;
40056
+ }
40057
+ setitem(_objectSpread$B({}, tempitem));
40058
+ addtocartfunc('add', tempitem.quantity);
40059
+ } else {
39581
40060
  setShowProductInfoModalContext(true);
39582
40061
  setProductIdProdutInfoModalContext(item.productid);
39583
40062
  }
39584
- }
39585
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
40063
+ },
40064
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
40065
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
40066
+ "class": "h-100 allcentered minusbtn"
40067
+ }, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, null))), /*#__PURE__*/React__default["default"].createElement("span", {
40068
+ "class": "".concat(card_cssstyles.quantitybtn_text) + ' d-flex align-items-center justify-content-center '
40069
+ }, addtocartbuttonrender()), /*#__PURE__*/React__default["default"].createElement("button", {
40070
+ "class": "".concat(card_cssstyles.add_quantitybtn_icon_container),
40071
+ onClick: function onClick() {
40072
+ if (item.hasvariants == 0) {
40073
+ var tempitem = _objectSpread$B({}, item);
40074
+ tempitem.quantity = parseInt(tempitem.quantity);
40075
+ tempitem.quantity = tempitem.quantity + 1;
40076
+ if (tempitem.quantity <= 0) {
40077
+ tempitem.quantity = 0;
40078
+ }
40079
+ setitem(_objectSpread$B({}, tempitem));
40080
+ addtocartfunc('add', tempitem.quantity);
40081
+ } else {
40082
+ setShowProductInfoModalContext(true);
40083
+ setProductIdProdutInfoModalContext(item.productid);
40084
+ }
40085
+ },
40086
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
40087
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
40088
+ "class": "h-100 allcentered addbtn"
40089
+ }, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, null))))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
39586
40090
  "class": " ".concat(card_cssstyles.wishlist_btn) + '',
39587
40091
  onClick: function onClick() {
39588
40092
  addtofavoritescontext(item.productid);
@@ -39606,7 +40110,11 @@
39606
40110
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
39607
40111
  size: sectionproperties.favBtnIconfontsize
39608
40112
  }))))), /*#__PURE__*/React__default["default"].createElement("div", {
39609
- "class": "col-lg-12 p-0"
40113
+ "class": "col-lg-12",
40114
+ style: {
40115
+ paddingRight: langdetect == 'en' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px',
40116
+ paddingLeft: langdetect == 'en' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px'
40117
+ }
39610
40118
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
39611
40119
  "class": "row m-0 w-100 align-items-center justify-content-start"
39612
40120
  }, /*#__PURE__*/React__default["default"].createElement("p", {
@@ -39617,7 +40125,7 @@
39617
40125
  routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
39618
40126
  }
39619
40127
  },
39620
- "class": "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 m-0 '
40128
+ "class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 m-0 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 m-0 '
39621
40129
  }, item.name)), /*#__PURE__*/React__default["default"].createElement("div", {
39622
40130
  "class": "row m-0 w-100 align-items-center justify-content-start"
39623
40131
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {