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.esm.js CHANGED
@@ -1248,7 +1248,8 @@ var Product_itemtype = function Product_itemtype(props) {
1248
1248
  borderRadius: 100,
1249
1249
  position: 'absolute',
1250
1250
  top: 7,
1251
- left: -4
1251
+ left: langdetect == 'en' ? -4 : '',
1252
+ right: langdetect == 'ar' ? -4 : ''
1252
1253
  }
1253
1254
  }), /*#__PURE__*/React.createElement("div", {
1254
1255
  className: "row m-0 w-100 d-flex align-items-start pb-3",
@@ -1271,7 +1272,9 @@ var Product_itemtype = function Product_itemtype(props) {
1271
1272
  backgroundColor: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.variantcontainer_bgcolor,
1272
1273
  minWidth: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'auto' : sectionproperties.variantcontainer_minwidth + 'px',
1273
1274
  height: sectionproperties.variantcontainer_bgcolortransparent == 'Transparent' ? 'auto' : sectionproperties.variantcontainer_height + 'px',
1274
- borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px'
1275
+ borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
1276
+ transform: 'none',
1277
+ cursor: 'default'
1275
1278
  }
1276
1279
  }, /*#__PURE__*/React.createElement("p", {
1277
1280
  className: 'm-0 p-0 allcentered font-weight-500',
@@ -1781,9 +1784,9 @@ var Product_itemtype = function Product_itemtype(props) {
1781
1784
  TabIndicatorProps: {
1782
1785
  style: {
1783
1786
  background: sectionproperties.activetabbordercolor,
1784
- width: sectionproperties.productInformationType == 'Product/Service Information' ? sectionproperties.showfirstpolicy == 'Hide' ? '50%' : sectionproperties.showsecondpolicy == 'Hide' ? '50%' : '33.3%' : '33.3%',
1785
- right: sectionproperties.productInformationType == 'Product/Service Information' ? sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '' : '',
1786
- margin: sectionproperties.productInformationType == 'Product/Service Information' ? sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : '' : ''
1787
+ width: '50%',
1788
+ right: sectionproperties.showfirstpolicy == 'Hide' ? 0 : sectionproperties.showsecondpolicy == 'Hide' ? 0 : '',
1789
+ margin: sectionproperties.showfirstpolicy == 'Hide' ? 'auto' : sectionproperties.showsecondpolicy == 'Hide' ? 'auto' : ''
1787
1790
  }
1788
1791
  },
1789
1792
  sx: {
@@ -16016,6 +16019,7 @@ var Header8 = function Header8(props) {
16016
16019
  borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
16017
16020
  color: sectionproperties.favBtniconcolor,
16018
16021
  border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
16022
+ fontSize: sectionproperties.favBtnIconfontsize + 'px',
16019
16023
  transition: '.3s',
16020
16024
  ':hover': {
16021
16025
  background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
@@ -16458,19 +16462,19 @@ var Header8 = function Header8(props) {
16458
16462
  onClick: function onClick() {
16459
16463
  routingcountext(StaticPagesLinksContext.Wishlist);
16460
16464
  }
16465
+ }, /*#__PURE__*/React.createElement("span", {
16466
+ "class": "".concat(header_cssstyles.wishlist_btn)
16467
+ }, /*#__PURE__*/React.createElement("i", {
16468
+ "class": "h-100 allcentered"
16461
16469
  }, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
16462
- "class": "".concat(header_cssstyles.wishlist_btn),
16463
- size: sectionproperties.favBtnIconfontsize,
16464
16470
  style: {
16465
16471
  position: 'relative'
16466
16472
  }
16467
16473
  }), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiFillStar, {
16468
- "class": "".concat(header_cssstyles.wishlist_btn),
16469
- size: sectionproperties.favBtnIconfontsize,
16470
16474
  style: {
16471
16475
  position: 'relative'
16472
16476
  }
16473
- }), /*#__PURE__*/React.createElement("div", {
16477
+ }))), /*#__PURE__*/React.createElement("div", {
16474
16478
  "class": "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.wishlistbadge)
16475
16479
  }, /*#__PURE__*/React.createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), /*#__PURE__*/React.createElement("div", {
16476
16480
  "class": " d-flex flex-row justify-content-end align-items-center"
@@ -16489,7 +16493,9 @@ var Header8 = function Header8(props) {
16489
16493
  "class": "".concat(header_cssstyles.cart_btn) + ' cursor-pointer d-flex align-items-center justify-content-center '
16490
16494
  }, /*#__PURE__*/React.createElement("div", {
16491
16495
  "class": "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.cartbadge)
16492
- }, (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.createElement(FiShoppingBag, {
16496
+ }, (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.createElement("i", {
16497
+ "class": "h-100 allcentered"
16498
+ }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React.createElement(FiShoppingBag, {
16493
16499
  size: sectionproperties.cartBtn_iconFontSize
16494
16500
  }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React.createElement(CgShoppingBag, {
16495
16501
  size: sectionproperties.cartBtn_iconFontSize
@@ -16501,7 +16507,7 @@ var Header8 = function Header8(props) {
16501
16507
  size: sectionproperties.cartBtn_iconFontSize
16502
16508
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
16503
16509
  size: sectionproperties.cartBtn_iconFontSize
16504
- })), /*#__PURE__*/React.createElement("div", {
16510
+ }))), /*#__PURE__*/React.createElement("div", {
16505
16511
  "class": langdetect == 'en' ? 'ml-2' : 'mr-2'
16506
16512
  }, /*#__PURE__*/React.createElement("div", {
16507
16513
  "class": "row m-0 w-100 d-flex align-items-center flex-column justify-content-start"
@@ -25972,23 +25978,15 @@ var Footer2 = function Footer2(props) {
25972
25978
  var templateproperties_context = props.actions.templateproperties_context;
25973
25979
  var templatepropcontext = props.actions.templatepropcontext;
25974
25980
  useEffect(function () {
25975
- if (props.srcfrom == 'addsectionform') {
25976
- var secpropobj = {};
25977
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
25978
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
25979
- });
25980
- setsectionproperties(_objectSpread$1l({}, secpropobj));
25981
- } else {
25982
- var secpropobj = {};
25983
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
25984
- if (sectionitem.sectionid == props.sectionidprops) {
25985
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
25986
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
25987
- });
25988
- }
25989
- });
25990
- setsectionproperties(_objectSpread$1l({}, secpropobj));
25991
- }
25981
+ var secpropobj = {};
25982
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
25983
+ if (sectionitem.sectionid == props.sectionidprops) {
25984
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
25985
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
25986
+ });
25987
+ }
25988
+ });
25989
+ setsectionproperties(_objectSpread$1l({}, secpropobj));
25992
25990
  }, [StatePagePropertiesContext]);
25993
25991
  useEffect(function () {
25994
25992
  if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
@@ -32263,13 +32261,11 @@ var UsersCardsSection = function UsersCardsSection(props) {
32263
32261
  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; }
32264
32262
  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(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; }
32265
32263
  var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategories(props) {
32266
- var _imagesarray$, _imagesarray$2, _imagesarray$3, _imagesarray$4, _imagesarray$5, _imagesarray$6;
32267
32264
  props.actions.lang;
32268
32265
  var langdetect = props.actions.langdetect;
32269
32266
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
32270
- props.actions.routingcountext;
32271
- props.actions.StaticPagesLinksContext;
32272
- props.sectionindexcontext;
32267
+ var routingcountext = props.actions.routingcountext;
32268
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
32273
32269
  var _useState = useState(''),
32274
32270
  _useState2 = _slicedToArray(_useState, 2),
32275
32271
  sectionproperties = _useState2[0],
@@ -32278,6 +32274,15 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
32278
32274
  _useState4 = _slicedToArray(_useState3, 2),
32279
32275
  imagesarray = _useState4[0],
32280
32276
  setimagesarray = _useState4[1];
32277
+ var authdetailsContext = props.actions.authdetailsContext;
32278
+ var _useState5 = useState(false),
32279
+ _useState6 = _slicedToArray(_useState5, 2);
32280
+ _useState6[0];
32281
+ var setshowdownheadermenu = _useState6[1];
32282
+ var _useState7 = useState(''),
32283
+ _useState8 = _slicedToArray(_useState7, 2),
32284
+ Choosenindex = _useState8[0],
32285
+ setChoosenindex = _useState8[1];
32281
32286
  useEffect(function () {
32282
32287
  if (props.srcfrom == 'addsectionform') {
32283
32288
  var secpropobj = {};
@@ -32307,6 +32312,21 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
32307
32312
  }
32308
32313
  }
32309
32314
  }, [sectionproperties]);
32315
+ var _useState9 = useState([]),
32316
+ _useState10 = _slicedToArray(_useState9, 2),
32317
+ pcollarray = _useState10[0],
32318
+ setpcollarray = _useState10[1];
32319
+ useEffect(function () {
32320
+ var _authdetailsContext$i, _authdetailsContext$i2;
32321
+ var temppcollarray = _toConsumableArray(pcollarray);
32322
+ 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) {
32323
+ var _arrayItem$parentcoll;
32324
+ arrayItem === null || arrayItem === void 0 ? void 0 : (_arrayItem$parentcoll = arrayItem.parentcolletions) === null || _arrayItem$parentcoll === void 0 ? void 0 : _arrayItem$parentcoll.forEach(function (item) {
32325
+ temppcollarray.push(item);
32326
+ });
32327
+ });
32328
+ setpcollarray(_toConsumableArray(temppcollarray));
32329
+ }, []);
32310
32330
  var sectionstyles = {
32311
32331
  imageBackground: css({
32312
32332
  ':before': {
@@ -32321,8 +32341,284 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
32321
32341
  borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32322
32342
  borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32323
32343
  }
32344
+ }),
32345
+ categoryname: css({
32346
+ color: sectionproperties.subheader_categorytitle_fontColor,
32347
+ fontSize: sectionproperties.subheader_categorytitle_fontSize + 'px',
32348
+ textTransform: sectionproperties.subheader_categorytitle_textTransform,
32349
+ fontWeight: sectionproperties.subheader_categorytitle_textfontweight,
32350
+ transition: '.3s',
32351
+ ':hover': {
32352
+ color: sectionproperties.subheader_categorytitle_coloronhover
32353
+ }
32354
+ }),
32355
+ parentcollection: css({
32356
+ color: sectionproperties.subheader_collectiontitle_fontColor,
32357
+ fontSize: sectionproperties.subheader_collectiontitle_fontSize + 'px',
32358
+ textTransform: sectionproperties.subheader_collectiontitle_textTransform,
32359
+ fontWeight: sectionproperties.subheader_collectiontitle_textfontweight,
32360
+ transition: '.3s',
32361
+ ':hover': {
32362
+ color: sectionproperties.subheader_collectiontitle_coloronhover
32363
+ }
32364
+ }),
32365
+ collectionName: css({
32366
+ color: sectionproperties.collectionsectiontextcolor,
32367
+ fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
32368
+ textTransform: sectionproperties.collectionsectiontexttransform,
32369
+ fontWeight: sectionproperties.collectionsectiontextfontweight,
32370
+ transition: '.3s',
32371
+ ':hover': {
32372
+ color: sectionproperties.collectionsectiontextcoloronhover
32373
+ }
32374
+ }),
32375
+ dropdowntitle: css({
32376
+ color: sectionproperties.collectionssectiontitlecolor,
32377
+ fontSize: sectionproperties.collectionssectiontitlefontsize + 'px',
32378
+ fontWeight: sectionproperties.collectionssectiontitlefonteweight,
32379
+ backgroundColor: sectionproperties.collectionssectiontitlebgcolor
32324
32380
  })
32325
32381
  };
32382
+ var CategoriesDropdown = function CategoriesDropdown() {
32383
+ 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;
32384
+ return /*#__PURE__*/React.createElement("div", {
32385
+ "class": "row m-0 w-100",
32386
+ style: {
32387
+ background: sectionproperties.collectionssectionbgcolor,
32388
+ boxShadow: '0 0 10px ' + sectionproperties.collectionssectionshadowcolor
32389
+ }
32390
+ }, /*#__PURE__*/React.createElement("div", {
32391
+ "class": "col-lg-12 p-0"
32392
+ }, /*#__PURE__*/React.createElement("div", {
32393
+ "class": "row m-0 w-100"
32394
+ }, /*#__PURE__*/React.createElement("div", {
32395
+ className: sectionstyles.dropdowntitle + ' col-lg-12 p-0 '
32396
+ }, /*#__PURE__*/React.createElement("p", {
32397
+ className: "m-0 p-3 text-center"
32398
+ }, langdetect == 'en' ? sectionproperties.collectionssectiontitleen : sectionproperties.collectionssectiontitlear)), /*#__PURE__*/React.createElement("div", {
32399
+ "class": "col-lg-12 flex-column cat_dropdown_hover scrollvertical pt-3 px-2",
32400
+ style: {
32401
+ height: sectionproperties.height + 'vh',
32402
+ overflowY: 'scroll'
32403
+ }
32404
+ }, 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) {
32405
+ var _authdetailsContext$i5;
32406
+ return /*#__PURE__*/React.createElement("div", {
32407
+ "class": sectionstyles.categoryname + ' row ml-0 mr-0 w-100 cursor-pointer ',
32408
+ onMouseEnter: function onMouseEnter() {
32409
+ setshowdownheadermenu(true);
32410
+ setChoosenindex(index);
32411
+ }
32412
+ }, /*#__PURE__*/React.createElement("div", {
32413
+ className: ' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '
32414
+ }, /*#__PURE__*/React.createElement("p", {
32415
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
32416
+ onClick: function onClick() {
32417
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
32418
+ }
32419
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
32420
+ className: 'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '
32421
+ }, /*#__PURE__*/React.createElement("i", {
32422
+ className: ' p-0 h-100 allcentered '
32423
+ }, langdetect == 'en' ? /*#__PURE__*/React.createElement(BsChevronRight, {
32424
+ size: sectionproperties.collectionsectioniconfontsize
32425
+ }) : /*#__PURE__*/React.createElement(BsChevronLeft, {
32426
+ size: sectionproperties.collectionsectioniconfontsize
32427
+ }))), 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.createElement("div", {
32428
+ className: "col-lg-12 p-0 mt-3 mb-3"
32429
+ }, /*#__PURE__*/React.createElement("hr", {
32430
+ "class": "m-0"
32431
+ })));
32432
+ })), sectionproperties.fetchparenttype == 'Parent Collections' && (pcollarray === null || pcollarray === void 0 ? void 0 : pcollarray.map(function (item, index) {
32433
+ if (item.isshowntocustomers == 1) {
32434
+ return /*#__PURE__*/React.createElement("div", {
32435
+ "class": sectionstyles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
32436
+ onMouseEnter: function onMouseEnter() {
32437
+ setshowdownheadermenu(true);
32438
+ setChoosenindex(index);
32439
+ }
32440
+ }, /*#__PURE__*/React.createElement("div", {
32441
+ className: ' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '
32442
+ }, /*#__PURE__*/React.createElement("p", {
32443
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
32444
+ onClick: function onClick() {
32445
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
32446
+ }
32447
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
32448
+ className: 'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '
32449
+ }, /*#__PURE__*/React.createElement("i", {
32450
+ className: ' p-0 h-100 allcentered '
32451
+ }, langdetect == 'en' ? /*#__PURE__*/React.createElement(BsChevronRight, {
32452
+ size: sectionproperties.collectionsectioniconfontsize
32453
+ }) : /*#__PURE__*/React.createElement(BsChevronLeft, {
32454
+ size: sectionproperties.collectionsectioniconfontsize
32455
+ }))), index != pcollarray - 1 && /*#__PURE__*/React.createElement("div", {
32456
+ className: "col-lg-12 p-0 mt-3 mb-3"
32457
+ }, /*#__PURE__*/React.createElement("hr", {
32458
+ "class": "m-0"
32459
+ })));
32460
+ }
32461
+ })), 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) {
32462
+ if (item.isshowntocustomers == 1) {
32463
+ return /*#__PURE__*/React.createElement("div", {
32464
+ "class": slideshow_styles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
32465
+ onMouseEnter: function onMouseEnter() {
32466
+ setshowdownheadermenu(true);
32467
+ setChoosenindex(index);
32468
+ }
32469
+ }, /*#__PURE__*/React.createElement("div", {
32470
+ className: ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center p-0 '
32471
+ }, /*#__PURE__*/React.createElement("p", {
32472
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
32473
+ onClick: function onClick() {
32474
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
32475
+ }
32476
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray - 1 && /*#__PURE__*/React.createElement("div", {
32477
+ className: "col-lg-12 p-0 mt-3 mb-3"
32478
+ }, /*#__PURE__*/React.createElement("hr", {
32479
+ "class": "m-0"
32480
+ })));
32481
+ }
32482
+ }))), 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.createElement("div", {
32483
+ "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
32484
+ style: {
32485
+ minHeight: sectionproperties.height + 'vh'
32486
+ },
32487
+ onMouseLeave: function onMouseLeave() {
32488
+ setChoosenindex('');
32489
+ }
32490
+ }, /*#__PURE__*/React.createElement("div", {
32491
+ "class": "row m-0 w-100"
32492
+ }, 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) {
32493
+ var _item$collections;
32494
+ return /*#__PURE__*/React.createElement("div", {
32495
+ "class": "col-lg-4 p-0"
32496
+ }, /*#__PURE__*/React.createElement("p", {
32497
+ "class": sectionstyles.parentcollection + ' m-0 p-0 mb-3 cursor-pointer wordbreak wordbreak2 ',
32498
+ onClick: function onClick() {
32499
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
32500
+ },
32501
+ style: {
32502
+ textAlign: langdetect == 'en' ? 'left' : 'right'
32503
+ }
32504
+ }, 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) {
32505
+ return /*#__PURE__*/React.createElement("div", {
32506
+ "class": "col-lg-12 pl-1 pr-1"
32507
+ }, /*#__PURE__*/React.createElement("p", {
32508
+ "class": sectionstyles.collectionName + ' cursor-pointer wordbreak wordbreak2 mb-1 ',
32509
+ onClick: function onClick() {
32510
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
32511
+ },
32512
+ style: {
32513
+ textAlign: langdetect == 'en' ? 'left' : 'right'
32514
+ }
32515
+ }, langdetect == 'en' ? item.title_en : item.title_ar));
32516
+ }));
32517
+ }))), sectionproperties.fetchparenttype == 'Parent Collections' && Choosenindex.length != 0 && /*#__PURE__*/React.createElement("div", {
32518
+ "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
32519
+ style: {
32520
+ minHeight: sectionproperties.height + 'vh'
32521
+ },
32522
+ onMouseLeave: function onMouseLeave() {
32523
+ setChoosenindex('');
32524
+ }
32525
+ }, /*#__PURE__*/React.createElement("div", {
32526
+ "class": "row m-0 w-100"
32527
+ }, 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) {
32528
+ return /*#__PURE__*/React.createElement("div", {
32529
+ "class": "col-lg-4 p-0",
32530
+ onClick: function onClick() {
32531
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
32532
+ }
32533
+ }, /*#__PURE__*/React.createElement("div", {
32534
+ "class": "col-lg-12 pl-1 pr-1"
32535
+ }, /*#__PURE__*/React.createElement("p", {
32536
+ "class": sectionstyles.collectionName + ' cursor-pointer wordbreak wordbreak2 mb-1 ',
32537
+ style: {
32538
+ textAlign: langdetect == 'en' ? 'left' : 'right'
32539
+ }
32540
+ }, langdetect == 'en' ? item.title_en : item.title_ar)));
32541
+ }))))));
32542
+ };
32543
+ var BackgroundImagesContent = function BackgroundImagesContent() {
32544
+ var _imagesarray$, _imagesarray$2, _imagesarray$3, _imagesarray$4, _imagesarray$5, _imagesarray$6;
32545
+ return /*#__PURE__*/React.createElement("div", {
32546
+ "class": "row m-0 w-100 align-items-center justify-content-center",
32547
+ onMouseEnter: function onMouseEnter() {
32548
+ setChoosenindex('');
32549
+ }
32550
+ }, /*#__PURE__*/React.createElement("div", {
32551
+ "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"
32552
+ }, /*#__PURE__*/React.createElement("div", {
32553
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32554
+ style: {
32555
+ height: sectionproperties.image_height + 'px',
32556
+ position: 'relative'
32557
+ }
32558
+ }, /*#__PURE__*/React.createElement(IKImage, {
32559
+ urlEndpoint: IKurlEndpoint,
32560
+ publicKey: IKpublicKey,
32561
+ 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) : '',
32562
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32563
+ style: {
32564
+ height: '100%',
32565
+ width: '100%',
32566
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
32567
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32568
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32569
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32570
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32571
+ }
32572
+ }))), /*#__PURE__*/React.createElement("div", {
32573
+ "class": "col-lg-5 p-sm-0"
32574
+ }, /*#__PURE__*/React.createElement("div", {
32575
+ "class": "row m-0 w-100"
32576
+ }, /*#__PURE__*/React.createElement("div", {
32577
+ "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"
32578
+ }, /*#__PURE__*/React.createElement("div", {
32579
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32580
+ style: {
32581
+ height: parseInt(sectionproperties.image_height / 2 - 5) + 'px',
32582
+ position: 'relative'
32583
+ }
32584
+ }, /*#__PURE__*/React.createElement(IKImage, {
32585
+ urlEndpoint: IKurlEndpoint,
32586
+ publicKey: IKpublicKey,
32587
+ 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) : '',
32588
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32589
+ style: {
32590
+ height: '100%',
32591
+ width: '100%',
32592
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
32593
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32594
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32595
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32596
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32597
+ }
32598
+ }))), /*#__PURE__*/React.createElement("div", {
32599
+ "class": "col-lg-12 col-md-6 col-sm-6 p-0 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1"
32600
+ }, /*#__PURE__*/React.createElement("div", {
32601
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32602
+ style: {
32603
+ height: parseInt(sectionproperties.image_height / 2 - 5) + 'px',
32604
+ position: 'relative'
32605
+ }
32606
+ }, /*#__PURE__*/React.createElement(IKImage, {
32607
+ urlEndpoint: IKurlEndpoint,
32608
+ publicKey: IKpublicKey,
32609
+ 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) : '',
32610
+ "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32611
+ style: {
32612
+ height: '100%',
32613
+ width: '100%',
32614
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
32615
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32616
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32617
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32618
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32619
+ }
32620
+ }))))));
32621
+ };
32326
32622
  return /*#__PURE__*/React.createElement("div", {
32327
32623
  "class": "row m-0 w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2",
32328
32624
  style: {
@@ -32330,87 +32626,18 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
32330
32626
  marginBottom: sectionproperties.marginBottom + 'px',
32331
32627
  paddingTop: sectionproperties.paddingTop + 'px',
32332
32628
  paddingBottom: sectionproperties.paddingBottom + 'px',
32333
- paddingLeft: sectionproperties.paddingLeft + 'px',
32334
- paddingRight: sectionproperties.paddingRight + 'px'
32335
- }
32336
- }, /*#__PURE__*/React.createElement("div", {
32337
- "class": "col-lg-12 p-0"
32338
- }, /*#__PURE__*/React.createElement("div", {
32339
- "class": "row m-0 w-100 align-items-center justify-content-center",
32340
- style: {
32341
- height: sectionproperties.image_height + 'vh'
32342
- }
32343
- }, /*#__PURE__*/React.createElement("div", {
32344
- "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"
32345
- }, /*#__PURE__*/React.createElement("div", {
32346
- "class": "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32347
- style: {
32348
- height: 400,
32349
- position: 'relative'
32350
- }
32351
- }, /*#__PURE__*/React.createElement(IKImage, {
32352
- urlEndpoint: IKurlEndpoint,
32353
- publicKey: IKpublicKey,
32354
- 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 : '',
32355
- "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32356
- style: {
32357
- height: '100%',
32358
- width: '100%',
32359
- objectFit: sectionproperties.bgcovercontain,
32360
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32361
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32362
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32363
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32364
- }
32365
- }))), /*#__PURE__*/React.createElement("div", {
32366
- "class": "col-lg-5 p-sm-0"
32367
- }, /*#__PURE__*/React.createElement("div", {
32368
- "class": "row m-0 w-100"
32369
- }, /*#__PURE__*/React.createElement("div", {
32370
- "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"
32371
- }, /*#__PURE__*/React.createElement("div", {
32372
- "class": "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32373
- style: {
32374
- height: '172px',
32375
- position: 'relative'
32376
- }
32377
- }, /*#__PURE__*/React.createElement(IKImage, {
32378
- urlEndpoint: IKurlEndpoint,
32379
- publicKey: IKpublicKey,
32380
- 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 : '',
32381
- "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32382
- style: {
32383
- height: '100%',
32384
- width: '100%',
32385
- objectFit: sectionproperties.bgcovercontain,
32386
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32387
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32388
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32389
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32390
- }
32391
- }))), /*#__PURE__*/React.createElement("div", {
32392
- "class": "col-lg-12 col-md-6 col-sm-6 p-0 pl-md-1 pl-sm-1 pr-md-1 pr-sm-1"
32393
- }, /*#__PURE__*/React.createElement("div", {
32394
- "class": "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
32395
- style: {
32396
- height: '215px',
32397
- position: 'relative'
32398
- }
32399
- }, /*#__PURE__*/React.createElement(IKImage, {
32400
- urlEndpoint: IKurlEndpoint,
32401
- publicKey: IKpublicKey,
32402
- 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 : '',
32403
- "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
32404
- style: {
32405
- height: '100%',
32406
- width: '100%',
32407
- objectFit: sectionproperties.bgcovercontain,
32408
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
32409
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
32410
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
32411
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
32629
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
32630
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
32631
+ background: sectionproperties.backgroundColor
32632
+ },
32633
+ onMouseLeave: function onMouseLeave() {
32634
+ setChoosenindex('');
32412
32635
  }
32413
- }))))))));
32636
+ }, sectionproperties.collectionssectionshow == 'Show' && /*#__PURE__*/React.createElement("div", {
32637
+ "class": "col-lg-2 d-md-none"
32638
+ }, CategoriesDropdown()), /*#__PURE__*/React.createElement("div", {
32639
+ "class": sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 p-0' : 'col-lg-12 p-0'
32640
+ }, BackgroundImagesContent()));
32414
32641
  };
32415
32642
 
32416
32643
  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; }
@@ -36010,6 +36237,8 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
36010
36237
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
36011
36238
  props.actions.lang;
36012
36239
  var langdetect = props.actions.langdetect;
36240
+ var authdetailsContext = props.actions.authdetailsContext;
36241
+ var routingcountext = props.actions.routingcountext;
36013
36242
  useEffect(function () {
36014
36243
  var secpropobj = {};
36015
36244
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -36069,6 +36298,51 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
36069
36298
  backgroundColor: sectionproperties.linebgcolor,
36070
36299
  borderRadius: '6px'
36071
36300
  }
36301
+ }),
36302
+ facebook_btn: css({
36303
+ cursor: 'pointer',
36304
+ background: sectionproperties.facebkbtnn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.facebkbtnnbgColor,
36305
+ width: sectionproperties.facebkbtnnWidth + 'px',
36306
+ height: sectionproperties.facebkbtnnHeight + 'px',
36307
+ borderRadius: sectionproperties.facebkbtnn_borderRadius + 'px',
36308
+ color: sectionproperties.facebkbtnnTextcolor,
36309
+ border: sectionproperties.facebkbtnnborderwidth + 'px solid ' + sectionproperties.facebkbtnnbordercolor,
36310
+ transition: '.3s',
36311
+ ':hover': {
36312
+ background: sectionproperties.facebkbtnntransparentbgcoloronhover == 'Transparent' ? 'Transparent' : sectionproperties.facebkbtnnbgColoronhover,
36313
+ color: sectionproperties.facebkbtnnTextcoloronhover,
36314
+ borderColor: sectionproperties.facebkbtnnTextcoloronhover
36315
+ }
36316
+ }),
36317
+ youtube_btn: css({
36318
+ cursor: 'pointer',
36319
+ background: sectionproperties.youtubebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColor,
36320
+ width: sectionproperties.youtubebtnWidth + 'px',
36321
+ height: sectionproperties.youtubebtnHeight + 'px',
36322
+ borderRadius: sectionproperties.youtubebtn_borderRadius + 'px',
36323
+ color: sectionproperties.youtubebtnTextcolor,
36324
+ border: sectionproperties.youtubebtnborderwidth + 'px solid ' + sectionproperties.youtubebtnbordercolor,
36325
+ transition: '.3s',
36326
+ ':hover': {
36327
+ background: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColoronhover,
36328
+ color: sectionproperties.youtubebtnTextcoloronhover,
36329
+ borderColor: sectionproperties.youtubebtnTextcoloronhover
36330
+ }
36331
+ }),
36332
+ instgram_btn: css({
36333
+ cursor: 'pointer',
36334
+ background: sectionproperties.instgrambtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColor,
36335
+ width: sectionproperties.instgrambtnWidth + 'px',
36336
+ height: sectionproperties.instgrambtnHeight + 'px',
36337
+ borderRadius: sectionproperties.instgrambtn_borderRadius + 'px',
36338
+ color: sectionproperties.instgrambtnTextcolor,
36339
+ border: sectionproperties.instgrambtnborderwidth + 'px solid ' + sectionproperties.instgrambtnbordercolor,
36340
+ transition: '.3s',
36341
+ ':hover': {
36342
+ background: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColoronhover,
36343
+ color: sectionproperties.instgrambtnTextcoloronhover,
36344
+ borderColor: sectionproperties.instgrambtnTextcoloronhover
36345
+ }
36072
36346
  })
36073
36347
  };
36074
36348
  var SectionTitle = function SectionTitle() {
@@ -36110,7 +36384,10 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
36110
36384
  fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
36111
36385
  }
36112
36386
  }, SectionTitle())), /*#__PURE__*/React.createElement("div", {
36113
- "class": "col-lg-12 p-0 d-flex justify-content-md-center"
36387
+ "class": "col-lg-12 p-0 d-flex justify-content-md-center",
36388
+ style: {
36389
+ justifyContent: sectionproperties.text2centered == 'Centered' ? 'center' : 'start'
36390
+ }
36114
36391
  }, /*#__PURE__*/React.createElement("p", {
36115
36392
  "class": "pb-0 text-md-center pl-md-2 pr-md-2",
36116
36393
  style: {
@@ -36128,16 +36405,67 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
36128
36405
  "class": "col-lg-12 p-0"
36129
36406
  }, /*#__PURE__*/React.createElement("button", {
36130
36407
  "class": "".concat(section_styles.btn)
36131
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))));
36408
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React.createElement("div", {
36409
+ "class": "col-lg-12 p-0 d-flex justify-content-start justify-content-sm-center mb-sm-4 align-items-center"
36410
+ }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
36411
+ "class": "".concat(section_styles.facebook_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
36412
+ onClick: function onClick() {
36413
+ var _authdetailsContext$i;
36414
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.facebooklink) != null) {
36415
+ var _authdetailsContext$i2;
36416
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.facebooklink, '_blank');
36417
+ }
36418
+ }
36419
+ }, /*#__PURE__*/React.createElement(FaFacebookF, {
36420
+ size: sectionproperties.facebkbtnniconfontsize
36421
+ })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
36422
+ "class": "".concat(section_styles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
36423
+ onClick: function onClick() {
36424
+ var _authdetailsContext$i3;
36425
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instagramlink) != null) {
36426
+ var _authdetailsContext$i4;
36427
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instagramlink, '_blank');
36428
+ }
36429
+ }
36430
+ }, /*#__PURE__*/React.createElement(AiFillInstagram, {
36431
+ size: sectionproperties.instgrambtniconfontsize
36432
+ })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
36433
+ "class": "".concat(section_styles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
36434
+ onClick: function onClick() {
36435
+ var _authdetailsContext$i5;
36436
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.whatsappnumber) != null) {
36437
+ var _authdetailsContext$i6;
36438
+ 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');
36439
+ }
36440
+ }
36441
+ }, /*#__PURE__*/React.createElement(FaWhatsapp, {
36442
+ size: sectionproperties.youtubebtniconfontsize
36443
+ })))));
36132
36444
  };
36133
36445
  var Image = function Image() {
36134
- var _imagesarray$, _imagesarray$2;
36446
+ var _imagesarray$, _imagesarray$7, _imagesarray$8;
36135
36447
  return /*#__PURE__*/React.createElement("div", {
36136
- "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'
36448
+ "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',
36449
+ style: {
36450
+ cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default'
36451
+ },
36452
+ onClick: function onClick() {
36453
+ var _imagesarray$2;
36454
+ if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickable) == 'Yes') {
36455
+ var _imagesarray$3, _imagesarray$4;
36456
+ 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) {
36457
+ var _imagesarray$5;
36458
+ routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickable_page_route, false, '');
36459
+ } else {
36460
+ var _imagesarray$6;
36461
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickable_Reference_Collection_ID));
36462
+ }
36463
+ }
36464
+ }
36137
36465
  }, /*#__PURE__*/React.createElement(IKImage, {
36138
36466
  urlEndpoint: IKurlEndpoint,
36139
36467
  publicKey: IKpublicKey,
36140
- 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) : '',
36468
+ 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) : '',
36141
36469
  style: {
36142
36470
  width: '100%',
36143
36471
  height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'px',
@@ -37562,6 +37890,20 @@ var Slideshowslide = function Slideshowslide(props) {
37562
37890
  Choosenindex = _useState10[0],
37563
37891
  setChoosenindex = _useState10[1];
37564
37892
  var authdetailsContext = props.actions.authdetailsContext;
37893
+ var _useState11 = useState([]),
37894
+ _useState12 = _slicedToArray(_useState11, 2),
37895
+ pcollarray = _useState12[0],
37896
+ setpcollarray = _useState12[1];
37897
+ useEffect(function () {
37898
+ var _authdetailsContext$i;
37899
+ var temppcollarray = _toConsumableArray(pcollarray);
37900
+ authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories.forEach(function (arrayItem) {
37901
+ arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.parentcolletions.forEach(function (item) {
37902
+ temppcollarray.push(item);
37903
+ });
37904
+ });
37905
+ setpcollarray(_toConsumableArray(temppcollarray));
37906
+ }, []);
37565
37907
  useEffect(function () {
37566
37908
  var secpropobj = {};
37567
37909
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -37716,7 +38058,7 @@ var Slideshowslide = function Slideshowslide(props) {
37716
38058
  }))));
37717
38059
  };
37718
38060
  var SlideshowContent = function SlideshowContent() {
37719
- var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9;
38061
+ 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;
37720
38062
  return /*#__PURE__*/React.createElement("div", {
37721
38063
  "class": "col-lg-12 p-0"
37722
38064
  }, /*#__PURE__*/React.createElement("div", {
@@ -37743,8 +38085,8 @@ var Slideshowslide = function Slideshowslide(props) {
37743
38085
  height: sectionproperties.height + 'vh',
37744
38086
  overflowY: 'scroll'
37745
38087
  }
37746
- }, 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) {
37747
- var _authdetailsContext$i3;
38088
+ }, 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) {
38089
+ var _authdetailsContext$i4;
37748
38090
  return /*#__PURE__*/React.createElement("div", {
37749
38091
  "class": slideshow_styles.categoryname + ' row ml-0 mr-0 w-100 cursor-pointer ',
37750
38092
  onMouseEnter: function onMouseEnter() {
@@ -37766,12 +38108,62 @@ var Slideshowslide = function Slideshowslide(props) {
37766
38108
  size: sectionproperties.collectionsectioniconfontsize
37767
38109
  }) : /*#__PURE__*/React.createElement(BsChevronLeft, {
37768
38110
  size: sectionproperties.collectionsectioniconfontsize
37769
- }))), 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.createElement("div", {
38111
+ }))), 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.createElement("div", {
37770
38112
  className: "col-lg-12 p-0 mt-3 mb-3"
37771
38113
  }, /*#__PURE__*/React.createElement("hr", {
37772
38114
  "class": "m-0"
37773
38115
  })));
37774
- })), 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.createElement("div", {
38116
+ })), sectionproperties.fetchparenttype == 'Parent Collections' && (pcollarray === null || pcollarray === void 0 ? void 0 : pcollarray.map(function (item, index) {
38117
+ if (item.isshowntocustomers == 1) {
38118
+ return /*#__PURE__*/React.createElement("div", {
38119
+ "class": slideshow_styles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
38120
+ onMouseEnter: function onMouseEnter() {
38121
+ setshowdownheadermenu(true);
38122
+ setChoosenindex(index);
38123
+ }
38124
+ }, /*#__PURE__*/React.createElement("div", {
38125
+ className: ' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '
38126
+ }, /*#__PURE__*/React.createElement("p", {
38127
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
38128
+ onClick: function onClick() {
38129
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
38130
+ }
38131
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
38132
+ className: 'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '
38133
+ }, /*#__PURE__*/React.createElement("i", {
38134
+ className: ' p-0 h-100 allcentered '
38135
+ }, langdetect == 'en' ? /*#__PURE__*/React.createElement(BsChevronRight, {
38136
+ size: sectionproperties.collectionsectioniconfontsize
38137
+ }) : /*#__PURE__*/React.createElement(BsChevronLeft, {
38138
+ size: sectionproperties.collectionsectioniconfontsize
38139
+ }))), index != pcollarray - 1 && /*#__PURE__*/React.createElement("div", {
38140
+ className: "col-lg-12 p-0 mt-3 mb-3"
38141
+ }, /*#__PURE__*/React.createElement("hr", {
38142
+ "class": "m-0"
38143
+ })));
38144
+ }
38145
+ })), 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) {
38146
+ if (item.isshowntocustomers == 1) {
38147
+ return /*#__PURE__*/React.createElement("div", {
38148
+ "class": slideshow_styles.parentcollection + ' row ml-0 mr-0 w-100 cursor-pointer ',
38149
+ onMouseEnter: function onMouseEnter() {
38150
+ setshowdownheadermenu(true);
38151
+ setChoosenindex(index);
38152
+ }
38153
+ }, /*#__PURE__*/React.createElement("div", {
38154
+ className: ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center p-0 '
38155
+ }, /*#__PURE__*/React.createElement("p", {
38156
+ "class": ' m-0 p-0 wordbreak wordbreak1 ',
38157
+ onClick: function onClick() {
38158
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
38159
+ }
38160
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray - 1 && /*#__PURE__*/React.createElement("div", {
38161
+ className: "col-lg-12 p-0 mt-3 mb-3"
38162
+ }, /*#__PURE__*/React.createElement("hr", {
38163
+ "class": "m-0"
38164
+ })));
38165
+ }
38166
+ }))), 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.createElement("div", {
37775
38167
  "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
37776
38168
  style: {
37777
38169
  minHeight: sectionproperties.height + 'vh'
@@ -37781,7 +38173,7 @@ var Slideshowslide = function Slideshowslide(props) {
37781
38173
  }
37782
38174
  }, /*#__PURE__*/React.createElement("div", {
37783
38175
  "class": "row m-0 w-100"
37784
- }, 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) {
38176
+ }, 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) {
37785
38177
  var _item$collections;
37786
38178
  return /*#__PURE__*/React.createElement("div", {
37787
38179
  "class": "col-lg-4 p-0"
@@ -37806,6 +38198,30 @@ var Slideshowslide = function Slideshowslide(props) {
37806
38198
  }
37807
38199
  }, langdetect == 'en' ? item.title_en : item.title_ar));
37808
38200
  }));
38201
+ }))), sectionproperties.fetchparenttype == 'Parent Collections' && Choosenindex.length != 0 && /*#__PURE__*/React.createElement("div", {
38202
+ "class": langdetect == 'en' ? 'cat_dropdown-menu cat_dropdown cat_dropdownen' : 'cat_dropdown-menu cat_dropdown cat_dropdownar',
38203
+ style: {
38204
+ minHeight: sectionproperties.height + 'vh'
38205
+ },
38206
+ onMouseLeave: function onMouseLeave() {
38207
+ setChoosenindex('');
38208
+ }
38209
+ }, /*#__PURE__*/React.createElement("div", {
38210
+ "class": "row m-0 w-100"
38211
+ }, 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) {
38212
+ return /*#__PURE__*/React.createElement("div", {
38213
+ "class": "col-lg-4 p-0",
38214
+ onClick: function onClick() {
38215
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
38216
+ }
38217
+ }, /*#__PURE__*/React.createElement("div", {
38218
+ "class": "col-lg-12 pl-1 pr-1"
38219
+ }, /*#__PURE__*/React.createElement("p", {
38220
+ "class": slideshow_styles.collectionName + ' cursor-pointer wordbreak wordbreak2 mb-1 ',
38221
+ style: {
38222
+ textAlign: langdetect == 'en' ? 'left' : 'right'
38223
+ }
38224
+ }, langdetect == 'en' ? item.title_en : item.title_ar)));
37809
38225
  }))))))), /*#__PURE__*/React.createElement("div", {
37810
38226
  "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',
37811
38227
  style: {
@@ -38118,12 +38534,12 @@ var Slideshowzoom = function Slideshowzoom(props) {
38118
38534
  background: sectionproperties.backgroundColor
38119
38535
  }
38120
38536
  }, /*#__PURE__*/React.createElement("div", {
38121
- "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',
38537
+ "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',
38122
38538
  style: {
38123
38539
  height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
38124
38540
  }
38125
38541
  }, /*#__PURE__*/React.createElement("div", {
38126
- "class": "h-md-auto h-sm-auto",
38542
+ "class": cardarrayofobjs.length != 0 ? '' : 'h-md-auto h-sm-auto',
38127
38543
  style: {
38128
38544
  position: 'relative',
38129
38545
  borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
@@ -38143,7 +38559,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
38143
38559
  easing: "ease"
38144
38560
  }), Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
38145
38561
  return /*#__PURE__*/React.createElement("div", {
38146
- "class": "row m-0 w-100 h-md-auto h-sm-auto",
38562
+ "class": cardarrayofobjs.length != 0 ? 'row m-0 w-100' : 'row m-0 w-100 h-md-auto h-sm-auto',
38147
38563
  style: {
38148
38564
  borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38149
38565
  borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
@@ -38152,43 +38568,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
38152
38568
  height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
38153
38569
  }
38154
38570
  }, /*#__PURE__*/React.createElement("div", {
38155
- "class": slideshow_styles.slideshow_styles + ' p-0 align-items-center d-flex d-sm-none h-md-auto h-sm-auto ',
38156
- key: index,
38157
- style: {
38158
- cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38159
- width: '100%',
38160
- height: '100%',
38161
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38162
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
38163
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
38164
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
38165
- paddingTop: sectionproperties.paddingTop + 'px',
38166
- paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
38167
- paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
38168
- },
38169
- onClick: function onClick() {
38170
- if (item.IsClickableimg == 'Yes') {
38171
- if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
38172
- routingcountext(item.clickableimg_page_route, false, '');
38173
- } else {
38174
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
38175
- }
38176
- }
38177
- }
38178
- }, /*#__PURE__*/React.createElement(IKImage, {
38179
- urlEndpoint: IKurlEndpoint,
38180
- publicKey: IKpublicKey,
38181
- path: langdetect == 'en' ? item.imageen : item.imagear,
38182
- style: {
38183
- cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38184
- objectFit: sectionproperties.bgcovercontain,
38185
- margin: 0,
38186
- padding: 0,
38187
- width: '100%',
38188
- height: '100%'
38189
- }
38190
- }), SlideShowTextContainer(item)), /*#__PURE__*/React.createElement("div", {
38191
- "class": slideshow_styles.beforebg + ' p-0 align-items-center d-none d-sm-flex ',
38571
+ "class": slideshow_styles.slideshow_styles + ' p-0 align-items-center d-flex d-md-none ',
38192
38572
  key: index,
38193
38573
  style: {
38194
38574
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
@@ -38214,80 +38594,17 @@ var Slideshowzoom = function Slideshowzoom(props) {
38214
38594
  }, /*#__PURE__*/React.createElement(IKImage, {
38215
38595
  urlEndpoint: IKurlEndpoint,
38216
38596
  publicKey: IKpublicKey,
38217
- path: langdetect == 'en' ? item.image_resp_en : item.image_resp_ar,
38597
+ 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,
38218
38598
  style: {
38219
38599
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38220
- objectFit: 'contain',
38600
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
38221
38601
  margin: 0,
38222
38602
  padding: 0,
38223
38603
  width: '100%',
38224
38604
  height: '100%'
38225
38605
  }
38226
- }), SlideShowTextContainer(item)));
38227
- })), cardarrayofobjs.length != 0 && /*#__PURE__*/React.createElement("div", {
38228
- style: {
38229
- position: 'absolute',
38230
- left: 0,
38231
- bottom: 60,
38232
- zIndex: 100
38233
- },
38234
- "class": "row m-0 w-100 "
38235
- }, /*#__PURE__*/React.createElement("div", {
38236
- "class": ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'
38237
- }, /*#__PURE__*/React.createElement(ScrollMenu, {
38238
- itemClassName: "slideshowCard"
38239
- // LeftArrow={LeftArrow}
38240
- // RightArrow={RightArrow}
38241
- ,
38242
- transitionDuration: 500,
38243
- transitionEase: easingFunctions['linear'],
38244
- scrollContainerClassName: 'scrollmenuclasssubscrollbar'
38245
- }, Object.keys(cardarrayofobjs).length != 0 && cardarrayofobjs.map(function (cardItem, cardIndex) {
38246
- var id = cardIndex;
38247
- return /*#__PURE__*/React.createElement(CardsArrayOfObjects, {
38248
- title: id,
38249
- itemId: id,
38250
- key: id,
38251
- cardItem: cardItem,
38252
- sectionproperties: sectionproperties,
38253
- props: props
38254
- });
38255
- })))))), /*#__PURE__*/React.createElement("div", {
38256
- "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',
38257
- style: {
38258
- height: sectionproperties.height + 'vh'
38259
- }
38260
- }, /*#__PURE__*/React.createElement("div", {
38261
- "class": "h-md-auto h-sm-auto",
38262
- style: {
38263
- position: 'relative',
38264
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38265
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
38266
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
38267
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
38268
- width: sectionproperties.width + 'vw',
38269
- marginBottom: sectionproperties.marginBottom + 'px',
38270
- marginTop: sectionproperties.marginTop + 'px',
38271
- height: sectionproperties.height + 'vh',
38272
- overflow: 'hidden'
38273
- }
38274
- }, /*#__PURE__*/React.createElement(Zoom, _extends({}, Slideshowsettings, {
38275
- transitionDuration: 1500,
38276
- duration: 1500,
38277
- arrow: true,
38278
- easing: "ease"
38279
- }), Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
38280
- return /*#__PURE__*/React.createElement("div", {
38281
- "class": "row m-0 w-100 h-md-auto h-sm-auto",
38282
- style: {
38283
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
38284
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
38285
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
38286
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
38287
- height: sectionproperties.height + 'vh'
38288
- }
38289
- }, /*#__PURE__*/React.createElement("div", {
38290
- "class": 'beforebg p-0 align-items-center d-none d-sm-flex ',
38606
+ }), SlideShowTextContainer(item)), /*#__PURE__*/React.createElement("div", {
38607
+ "class": slideshow_styles.beforebg + ' p-0 align-items-center d-none d-md-flex ',
38291
38608
  key: index,
38292
38609
  style: {
38293
38610
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
@@ -38313,10 +38630,10 @@ var Slideshowzoom = function Slideshowzoom(props) {
38313
38630
  }, /*#__PURE__*/React.createElement(IKImage, {
38314
38631
  urlEndpoint: IKurlEndpoint,
38315
38632
  publicKey: IKpublicKey,
38316
- path: langdetect == 'en' ? item.image_resp_en : item.image_resp_ar,
38633
+ 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,
38317
38634
  style: {
38318
38635
  cursor: item.IsClickableimg == 'Yes' ? 'pointer' : 'default',
38319
- objectFit: 'contain',
38636
+ objectFit: sectionproperties.bgcovercontainresponsive == 'Cover' ? 'cover' : 'contain',
38320
38637
  margin: 0,
38321
38638
  padding: 0,
38322
38639
  width: '100%',
@@ -39510,7 +39827,16 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39510
39827
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
39511
39828
  props.actions.lang;
39512
39829
  var langdetect = props.actions.langdetect;
39830
+ var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
39831
+ var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
39513
39832
  var routingcountext = props.actions.routingcountext;
39833
+ var _useState5 = useState(false),
39834
+ _useState6 = _slicedToArray(_useState5, 2),
39835
+ showquantity = _useState6[0],
39836
+ setshowquantity = _useState6[1];
39837
+ var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
39838
+ var AddtoCartContext = props.actions.AddtoCartContext;
39839
+ var NotificationManager = props.actions.NotificationManager;
39514
39840
 
39515
39841
  // Sectionproperties
39516
39842
  useEffect(function () {
@@ -39524,6 +39850,13 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39524
39850
  });
39525
39851
  setsectionproperties(_objectSpread$B({}, secpropobj));
39526
39852
  }, [StatePagePropertiesContext]);
39853
+ useEffect(function () {
39854
+ if (item.quantity == 0) {
39855
+ setshowquantity(false);
39856
+ } else {
39857
+ setshowquantity(true);
39858
+ }
39859
+ }, [props.cardinfoitemprops]);
39527
39860
 
39528
39861
  // Card Information
39529
39862
  useEffect(function () {
@@ -39531,6 +39864,51 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39531
39864
  setitem(props.cardinfoitemprops);
39532
39865
  }
39533
39866
  }, [props.cardinfoitemprops]);
39867
+ var addtocartfunc = function addtocartfunc(type, quantity) {
39868
+ var addtocardpayloadobj = {
39869
+ functype: 'add',
39870
+ productid: item.productid,
39871
+ variantid: '',
39872
+ quantity: quantity
39873
+ };
39874
+ var runfunc = false;
39875
+ if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
39876
+ if (item.hasvariants == 1) {
39877
+ if (addtocardpayloadobj.variantid.length != 0) {
39878
+ runfunc = true;
39879
+ } else {
39880
+ NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر متغير');
39881
+ }
39882
+ } else {
39883
+ runfunc = true;
39884
+ }
39885
+ } else {
39886
+ NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
39887
+ }
39888
+ if (runfunc == true) {
39889
+ AddtoCartContext(addtocardpayloadobj);
39890
+ }
39891
+ };
39892
+ var addtocartbuttonrender = function addtocartbuttonrender() {
39893
+ if (AddtoCartMutationContext.isLoading) {
39894
+ var _AddtoCartMutationCon;
39895
+ if ((AddtoCartMutationContext === null || AddtoCartMutationContext === void 0 ? void 0 : (_AddtoCartMutationCon = AddtoCartMutationContext.variables) === null || _AddtoCartMutationCon === void 0 ? void 0 : _AddtoCartMutationCon.productid) == item.productid) {
39896
+ return /*#__PURE__*/React.createElement("div", {
39897
+ "class": ' d-flex align-items-center justify-content-center '
39898
+ }, /*#__PURE__*/React.createElement(CircularProgress, {
39899
+ color: sectionproperties.quantitybtn_textcolor,
39900
+ width: "20px",
39901
+ height: "20px",
39902
+ duration: "1s"
39903
+ }));
39904
+ } else {
39905
+ return item.quantity;
39906
+ }
39907
+ }
39908
+ if (!AddtoCartMutationContext.isLoading) {
39909
+ return item.quantity;
39910
+ }
39911
+ };
39534
39912
 
39535
39913
  // Styles
39536
39914
  var card_cssstyles = {
@@ -39563,19 +39941,6 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39563
39941
  paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
39564
39942
  paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
39565
39943
  }),
39566
- button_styles: css({
39567
- width: sectionproperties.generalbtn_width + 'px',
39568
- height: sectionproperties.generalbtn_height + 'px',
39569
- border: sectionproperties.generalbtn_borderwidth + 'px solid' + sectionproperties.generalbtn_bordercolor,
39570
- borderRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
39571
- backgroundColor: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
39572
- color: sectionproperties.generalbtn_textColor,
39573
- ':hover': {
39574
- backgroundColor: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
39575
- color: sectionproperties.generalbtn_textColoronhover,
39576
- transition: '.3s'
39577
- }
39578
- }),
39579
39944
  cart_btn: css({
39580
39945
  width: sectionproperties.cartBtnWidth + 'px',
39581
39946
  height: sectionproperties.cartBtnHeight + 'px',
@@ -39592,6 +39957,86 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39592
39957
  color: sectionproperties.cartBtnTextcoloronhover
39593
39958
  }
39594
39959
  }),
39960
+ button_styles: css({
39961
+ width: sectionproperties.generalbtn_width + 'px',
39962
+ height: sectionproperties.generalbtn_height + 'px',
39963
+ border: sectionproperties.generalbtn_borderwidth + 'px solid' + sectionproperties.generalbtn_bordercolor,
39964
+ borderRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
39965
+ backgroundColor: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
39966
+ ':hover': {
39967
+ backgroundColor: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
39968
+ color: sectionproperties.generalbtn_textColoronhover,
39969
+ transition: '.3s'
39970
+ }
39971
+ }),
39972
+ quantitybtn: css({
39973
+ height: sectionproperties.quantitybtn_height + 'px',
39974
+ width: sectionproperties.quantitybtn_width + 'px',
39975
+ display: 'flex',
39976
+ flexDirection: 'row',
39977
+ overflow: 'hidden',
39978
+ borderRadius: sectionproperties.quantitybtn_borderradius + 'px',
39979
+ background: sectionproperties.quantitybtn_bgcolor,
39980
+ alignItems: 'center',
39981
+ justifyContent: 'center',
39982
+ margin: 0,
39983
+ position: 'relative',
39984
+ fontWeight: sectionproperties.quantitybtn_textfontweight,
39985
+ color: sectionproperties.quantitybtn_textcolor,
39986
+ fontSize: sectionproperties.quantitybtn_textfontsize + 'px',
39987
+ border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor
39988
+ }),
39989
+ quantitybtn_text: css({
39990
+ margin: 'auto'
39991
+ }),
39992
+ add_quantitybtn_icon_container: css({
39993
+ position: 'relative',
39994
+ width: sectionproperties.add_quantitybtn_width + 'px',
39995
+ height: sectionproperties.add_quantitybtn_height + 'px',
39996
+ background: sectionproperties.add_quantitybtn_bgcolor,
39997
+ display: 'flex',
39998
+ alignItems: 'center',
39999
+ justifyContent: 'center',
40000
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
40001
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_leftborderradius + 'px' : sectionproperties.add_quantitybtn_rightborderradius + 'px',
40002
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
40003
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.add_quantitybtn_rightborderradius + 'px' : sectionproperties.add_quantitybtn_leftborderradius + 'px',
40004
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
40005
+ color: sectionproperties.add_quantitybtn_textcolor,
40006
+ transition: '.3s',
40007
+ ':hover': {
40008
+ color: sectionproperties.add_quantitybtn_textcoloronhover,
40009
+ background: sectionproperties.add_quantitybtn_bgcoloronhover
40010
+ },
40011
+ ':hover .addbtn': {
40012
+ color: sectionproperties.add_quantitybtn_textcoloronhover,
40013
+ transition: '.3s'
40014
+ }
40015
+ }),
40016
+ minus_quantitybtn_icon_container: css({
40017
+ position: 'relative',
40018
+ display: 'flex',
40019
+ alignItems: 'center',
40020
+ justifyContent: 'center',
40021
+ width: sectionproperties.remove_quantitybtn_width + 'px',
40022
+ height: sectionproperties.remove_quantitybtn_height + 'px',
40023
+ background: sectionproperties.remove_quantitybtn_bgcolor,
40024
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
40025
+ color: sectionproperties.remove_quantitybtn_textcolor,
40026
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_leftborderradius + 'px' : sectionproperties.remove_quantitybtn_rightborderradius + 'px',
40027
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_leftborderradius + 'px' : sectionproperties.remove_quantitybtn_rightborderradius + 'px',
40028
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_rightborderradius + 'px' : sectionproperties.remove_quantitybtn_leftborderradius + 'px',
40029
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.remove_quantitybtn_rightborderradius + 'px' : sectionproperties.remove_quantitybtn_leftborderradius + 'px',
40030
+ transition: '.3s',
40031
+ ':hover': {
40032
+ color: sectionproperties.remove_quantitybtn_textcoloronhover,
40033
+ background: sectionproperties.remove_quantitybtn_bgcoloronhover
40034
+ },
40035
+ ':hover .minusbtn': {
40036
+ transition: '.3s',
40037
+ color: sectionproperties.remove_quantitybtn_textcoloronhover
40038
+ }
40039
+ }),
39595
40040
  wishlist_btn: css({
39596
40041
  width: sectionproperties.favBtnWidth + 'px',
39597
40042
  height: sectionproperties.favBtnHeight + 'px',
@@ -39628,9 +40073,18 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39628
40073
  })
39629
40074
  };
39630
40075
  return /*#__PURE__*/React.createElement("div", {
39631
- "class": card_cssstyles.productcard + ' row m-0 w-100 '
40076
+ "class": card_cssstyles.productcard + ' row ml-0 mr-0 w-100 '
39632
40077
  }, /*#__PURE__*/React.createElement("div", {
39633
- "class": "col-lg-12 p-0 h-100"
40078
+ "class": "col-lg-12 pl-0 pr-0 h-100",
40079
+ style: {
40080
+ paddingTop: sectionproperties.paddingTop + 'px',
40081
+ paddingBottom: sectionproperties.paddingBottom + 'px',
40082
+ backgroundColor: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
40083
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
40084
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
40085
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
40086
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px'
40087
+ }
39634
40088
  }, /*#__PURE__*/React.createElement("div", {
39635
40089
  "class": "row mt-0 ml-0 mr-0 w-100 align-items-center justify-content-center",
39636
40090
  style: {
@@ -39638,21 +40092,21 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39638
40092
  height: sectionproperties.image_height + 'px',
39639
40093
  marginBottom: sectionproperties.image_mb + 'px',
39640
40094
  paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
39641
- paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
39642
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
39643
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
39644
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
39645
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
39646
- backgroundColor: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
40095
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px'
39647
40096
  }
39648
40097
  }, /*#__PURE__*/React.createElement(IKImage, {
39649
40098
  urlEndpoint: IKurlEndpoint,
39650
40099
  publicKey: IKpublicKey,
39651
- path: '/tr:w-350,h-300/' + item.image,
40100
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
39652
40101
  style: {
39653
40102
  width: '100%',
39654
40103
  height: '100%',
39655
- objectFit: 'contain'
40104
+ objectFit: sectionproperties.bgcovercontain == 'Contain' ? 'contain' : 'cover',
40105
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'Transparent' : sectionproperties.image_bgcolor,
40106
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
40107
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
40108
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
40109
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px'
39656
40110
  },
39657
40111
  loading: "lazy"
39658
40112
  }), item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
@@ -39674,15 +40128,65 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39674
40128
  "class": "h-100 d-flex align-items-center justify-content-center"
39675
40129
  }, /*#__PURE__*/React.createElement(FaRegEye, {
39676
40130
  size: sectionproperties.generalbtn_fontsize
39677
- }))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
39678
- "class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ',
40131
+ }))), sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
40132
+ "class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-sm-100px font-sm-12 ',
39679
40133
  onClick: function onClick() {
39680
- if (props.fetchingtypeprops == 'products') {
40134
+ setShowProductInfoModalContext(true);
40135
+ setProductIdProdutInfoModalContext(item.productid);
40136
+ }
40137
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), sectionproperties.quantitybtn_show == 'Show' && /*#__PURE__*/React.createElement("div", null, sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React.createElement("button", {
40138
+ "class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-sm-100px font-sm-12 ',
40139
+ onClick: function onClick() {
40140
+ setshowquantity(true);
40141
+ }
40142
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), showquantity == true && /*#__PURE__*/React.createElement("div", {
40143
+ "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 ',
40144
+ style: {
40145
+ direction: 'ltr'
40146
+ }
40147
+ }, /*#__PURE__*/React.createElement("button", {
40148
+ "class": "".concat(card_cssstyles.minus_quantitybtn_icon_container),
40149
+ onClick: function onClick() {
40150
+ if (item.hasvariants == 0) {
40151
+ var tempitem = _objectSpread$B({}, item);
40152
+ tempitem.quantity = parseInt(tempitem.quantity);
40153
+ tempitem.quantity = tempitem.quantity - 1;
40154
+ if (tempitem.quantity <= 0) {
40155
+ tempitem.quantity = 0;
40156
+ }
40157
+ setitem(_objectSpread$B({}, tempitem));
40158
+ addtocartfunc('add', tempitem.quantity);
40159
+ } else {
39681
40160
  setShowProductInfoModalContext(true);
39682
40161
  setProductIdProdutInfoModalContext(item.productid);
39683
40162
  }
39684
- }
39685
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
40163
+ },
40164
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
40165
+ }, /*#__PURE__*/React.createElement("i", {
40166
+ "class": "h-100 allcentered minusbtn"
40167
+ }, /*#__PURE__*/React.createElement(FiMinus, null))), /*#__PURE__*/React.createElement("span", {
40168
+ "class": "".concat(card_cssstyles.quantitybtn_text) + ' d-flex align-items-center justify-content-center '
40169
+ }, addtocartbuttonrender()), /*#__PURE__*/React.createElement("button", {
40170
+ "class": "".concat(card_cssstyles.add_quantitybtn_icon_container),
40171
+ onClick: function onClick() {
40172
+ if (item.hasvariants == 0) {
40173
+ var tempitem = _objectSpread$B({}, item);
40174
+ tempitem.quantity = parseInt(tempitem.quantity);
40175
+ tempitem.quantity = tempitem.quantity + 1;
40176
+ if (tempitem.quantity <= 0) {
40177
+ tempitem.quantity = 0;
40178
+ }
40179
+ setitem(_objectSpread$B({}, tempitem));
40180
+ addtocartfunc('add', tempitem.quantity);
40181
+ } else {
40182
+ setShowProductInfoModalContext(true);
40183
+ setProductIdProdutInfoModalContext(item.productid);
40184
+ }
40185
+ },
40186
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
40187
+ }, /*#__PURE__*/React.createElement("i", {
40188
+ "class": "h-100 allcentered addbtn"
40189
+ }, /*#__PURE__*/React.createElement(FiPlus, null))))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
39686
40190
  "class": " ".concat(card_cssstyles.wishlist_btn) + '',
39687
40191
  onClick: function onClick() {
39688
40192
  addtofavoritescontext(item.productid);
@@ -39706,7 +40210,11 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39706
40210
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
39707
40211
  size: sectionproperties.favBtnIconfontsize
39708
40212
  }))))), /*#__PURE__*/React.createElement("div", {
39709
- "class": "col-lg-12 p-0"
40213
+ "class": "col-lg-12",
40214
+ style: {
40215
+ paddingRight: langdetect == 'en' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px',
40216
+ paddingLeft: langdetect == 'en' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px'
40217
+ }
39710
40218
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
39711
40219
  "class": "row m-0 w-100 align-items-center justify-content-start"
39712
40220
  }, /*#__PURE__*/React.createElement("p", {
@@ -39717,7 +40225,7 @@ var UpSlideEffectCard = function UpSlideEffectCard(props) {
39717
40225
  routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
39718
40226
  }
39719
40227
  },
39720
- "class": "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 m-0 '
40228
+ "class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 m-0 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 m-0 '
39721
40229
  }, item.name)), /*#__PURE__*/React.createElement("div", {
39722
40230
  "class": "row m-0 w-100 align-items-center justify-content-start"
39723
40231
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {