tabexseriescomponents 0.2.1364 → 0.2.1366
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +491 -20
- package/dist/index.esm.js +491 -20
- package/dist/index.umd.js +493 -24
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -96,6 +96,8 @@ var IoBagRemoveOutline = require('@react-icons/all-files/io5/IoBagRemoveOutline'
|
|
|
96
96
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
97
97
|
var FiFilter = require('@react-icons/all-files/fi/FiFilter');
|
|
98
98
|
var FiSliders = require('@react-icons/all-files/fi/FiSliders');
|
|
99
|
+
var BsGridFill = require('@react-icons/all-files/bs/BsGridFill');
|
|
100
|
+
var FaBars = require('@react-icons/all-files/fa/FaBars');
|
|
99
101
|
var FiChevronLeft = require('@react-icons/all-files/fi/FiChevronLeft');
|
|
100
102
|
var FiChevronRight = require('@react-icons/all-files/fi/FiChevronRight');
|
|
101
103
|
var HiOutlineArrowRight = require('@react-icons/all-files/hi/HiOutlineArrowRight');
|
|
@@ -26180,22 +26182,26 @@ var CardsSection = function CardsSection(props) {
|
|
|
26180
26182
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
26181
26183
|
sectionitem = _useState8[0],
|
|
26182
26184
|
setsectionitem = _useState8[1];
|
|
26183
|
-
var _useState9 = React.useState(
|
|
26185
|
+
var _useState9 = React.useState('multi'),
|
|
26186
|
+
_useState0 = _slicedToArray__default["default"](_useState9, 2),
|
|
26187
|
+
cardsinglerow = _useState0[0],
|
|
26188
|
+
setcardsinglerow = _useState0[1];
|
|
26189
|
+
var _useState1 = React.useState({
|
|
26184
26190
|
productfetchingtype: 'Random',
|
|
26185
26191
|
collectionid: '',
|
|
26186
26192
|
grouptype: ''
|
|
26187
26193
|
}),
|
|
26188
|
-
_useState0 = _slicedToArray__default["default"](_useState9, 2),
|
|
26189
|
-
ProductsFetchingTypeSectionObj = _useState0[0],
|
|
26190
|
-
setProductsFetchingTypeSectionObj = _useState0[1];
|
|
26191
|
-
var _useState1 = React.useState([]),
|
|
26192
26194
|
_useState10 = _slicedToArray__default["default"](_useState1, 2),
|
|
26193
|
-
|
|
26194
|
-
|
|
26195
|
-
var _useState11 = React.useState(
|
|
26195
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
26196
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
26197
|
+
var _useState11 = React.useState([]),
|
|
26196
26198
|
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
26197
|
-
|
|
26198
|
-
|
|
26199
|
+
maincontainerarrayofobjs = _useState12[0],
|
|
26200
|
+
setmaincontainerarrayofobjs = _useState12[1];
|
|
26201
|
+
var _useState13 = React.useState(12),
|
|
26202
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
26203
|
+
perpageItems = _useState14[0],
|
|
26204
|
+
setperpageItems = _useState14[1];
|
|
26199
26205
|
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
26200
26206
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
26201
26207
|
props.actions.FetchVendors_byproductsQuery;
|
|
@@ -27361,7 +27367,32 @@ var CardsSection = function CardsSection(props) {
|
|
|
27361
27367
|
marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
|
|
27362
27368
|
marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0
|
|
27363
27369
|
}
|
|
27364
|
-
},
|
|
27370
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27371
|
+
"class": "row m-0 w-100"
|
|
27372
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27373
|
+
"class": authdetailsContext.instinfo.instid == '6a0e0bcb82d2d' && sectionproperties.sectionTitleContent == 'ALL PRODUCTS' ? 'col-9 p-0 text-start' : 'col-12 p-0 text-start'
|
|
27374
|
+
}, SectionTitle()), authdetailsContext.instinfo.instid == '6a0e0bcb82d2d' && sectionproperties.sectionTitleContent == 'ALL PRODUCTS' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27375
|
+
"class": "col-3 p-0 text-end"
|
|
27376
|
+
}, /*#__PURE__*/React__default["default"].createElement(BsGridFill.BsGridFill, {
|
|
27377
|
+
color: sectionproperties.sectionTitleColor,
|
|
27378
|
+
"class": "mx-2 cursor-pointer",
|
|
27379
|
+
onClick: function onClick() {
|
|
27380
|
+
setcardsinglerow('multi');
|
|
27381
|
+
// alert(cardsinglerow);
|
|
27382
|
+
},
|
|
27383
|
+
style: {
|
|
27384
|
+
opacity: cardsinglerow == 'multi' ? 1 : 0.3
|
|
27385
|
+
}
|
|
27386
|
+
}), /*#__PURE__*/React__default["default"].createElement(FaBars.FaBars, {
|
|
27387
|
+
color: sectionproperties.sectionTitleColor,
|
|
27388
|
+
"class": "mx-2 cursor-pointer",
|
|
27389
|
+
onClick: function onClick() {
|
|
27390
|
+
setcardsinglerow('single');
|
|
27391
|
+
},
|
|
27392
|
+
style: {
|
|
27393
|
+
opacity: cardsinglerow == 'single' ? 1 : 0.3
|
|
27394
|
+
}
|
|
27395
|
+
})))), sectionproperties.sectiontitleshow == 'Show' && sectionproperties.filterType != 'Title & Sort By Only' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27365
27396
|
"class": "".concat(generalstyles.sectiontitlecont) + ' col-lg-12 p-0 d-none d-md-flex align-items-center ',
|
|
27366
27397
|
style: {
|
|
27367
27398
|
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
@@ -27439,8 +27470,51 @@ var CardsSection = function CardsSection(props) {
|
|
|
27439
27470
|
marginTop: sectionproperties.sectiontitleposition == 'Centered' ? sectionproperties.viewmoremt + 'px' : 0
|
|
27440
27471
|
}
|
|
27441
27472
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27442
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto ' : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
|
|
27443
|
-
},
|
|
27473
|
+
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto flex-row ' : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto flex-row '
|
|
27474
|
+
}, authdetailsContext.instinfo.instid == '6a0e0bcb82d2d' && sectionproperties.sectionTitleContent == 'ALL PRODUCTS' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27475
|
+
"class": "p-0 d-none d-md-flex justify-content-end align-items-center"
|
|
27476
|
+
}, /*#__PURE__*/React__default["default"].createElement(BsGridFill.BsGridFill, {
|
|
27477
|
+
color: sectionproperties.sectionTitleColor,
|
|
27478
|
+
"class": "mx-2 cursor-pointer",
|
|
27479
|
+
size: 18,
|
|
27480
|
+
onClick: function onClick() {
|
|
27481
|
+
setcardsinglerow('multi');
|
|
27482
|
+
// alert(cardsinglerow);
|
|
27483
|
+
},
|
|
27484
|
+
style: {
|
|
27485
|
+
opacity: cardsinglerow == 'multi' ? 1 : 0.3
|
|
27486
|
+
}
|
|
27487
|
+
}), /*#__PURE__*/React__default["default"].createElement(FaBars.FaBars, {
|
|
27488
|
+
color: sectionproperties.sectionTitleColor,
|
|
27489
|
+
"class": "mx-2 cursor-pointer",
|
|
27490
|
+
size: 18,
|
|
27491
|
+
onClick: function onClick() {
|
|
27492
|
+
setcardsinglerow('single');
|
|
27493
|
+
},
|
|
27494
|
+
style: {
|
|
27495
|
+
opacity: cardsinglerow == 'single' ? 1 : 0.3
|
|
27496
|
+
}
|
|
27497
|
+
}), sectionproperties.showFilter == 'show' && sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal' && sectionproperties.filterbtnstyle == 'Style 1' && authdetailsContext.instinfo.instid != '6790ae890234e' && window.location.pathname != '/Portfolio' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
27498
|
+
"class": ' d-none d-md-flex justify-content-end ',
|
|
27499
|
+
onClick: function onClick() {
|
|
27500
|
+
setopenFilterSlider(true);
|
|
27501
|
+
// var element = document.getElementById('filterslider');
|
|
27502
|
+
// element.classList.add(filterstyles.filterslider_container_opened);
|
|
27503
|
+
}
|
|
27504
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27505
|
+
"class": "".concat(section_cssstyles.filterbtn) + ' allcentered '
|
|
27506
|
+
}, sectionproperties.filterbtnfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
27507
|
+
"class": "allcentered",
|
|
27508
|
+
style: {
|
|
27509
|
+
fontSize: sectionproperties.filterbtnfontsize + 'px'
|
|
27510
|
+
}
|
|
27511
|
+
}, langdetect == 'en' ? sectionproperties.filterbtntexten : sectionproperties.filterbtntextar), sectionproperties.filterbtniconfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
27512
|
+
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
27513
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiFilter.FiFilter, {
|
|
27514
|
+
style: {
|
|
27515
|
+
fontSize: sectionproperties.filterbtniconfontsize
|
|
27516
|
+
}
|
|
27517
|
+
}))))), sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
27444
27518
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ',
|
|
27445
27519
|
onClick: function onClick() {
|
|
27446
27520
|
if (fetchingtype == 'products') {
|
|
@@ -27482,7 +27556,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
27482
27556
|
}) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
|
|
27483
27557
|
size: sectionproperties.viewmoreiconfontsizeresp,
|
|
27484
27558
|
color: sectionproperties.viewmorebtn_Textcolor
|
|
27485
|
-
})))), sectionproperties.showFilter == 'show' && sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal' && sectionproperties.filterbtnstyle == 'Style 1' && authdetailsContext.instinfo.instid != '6790ae890234e' && window.location.pathname != '/Portfolio' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
27559
|
+
})))), authdetailsContext.instinfo.instid != '6a0e0bcb82d2d' && sectionproperties.showFilter == 'show' && sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal' && sectionproperties.filterbtnstyle == 'Style 1' && authdetailsContext.instinfo.instid != '6790ae890234e' && window.location.pathname != '/Portfolio' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
27486
27560
|
"class": sectionproperties.filterdirection == 'Horizontal' || sectionproperties.filterdirection == 'Collections Vertical' ? ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end ' : ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end ',
|
|
27487
27561
|
onClick: function onClick() {
|
|
27488
27562
|
setopenFilterSlider(true);
|
|
@@ -27867,7 +27941,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
27867
27941
|
} else {
|
|
27868
27942
|
if (sectionproperties.overallnumberofcards == 0) {
|
|
27869
27943
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
27870
|
-
"class": bootstapclass
|
|
27944
|
+
"class": cardsinglerow == 'single' ? 'col-12 p-0 d-flex justify-content-center p-0 ' : bootstapclass
|
|
27871
27945
|
}, /*#__PURE__*/React__default["default"].createElement(Sectioncomp, {
|
|
27872
27946
|
sectiontypeprops: 'horizontal',
|
|
27873
27947
|
sectiontypeprops2: 'vertical',
|
|
@@ -27879,7 +27953,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
27879
27953
|
actions: actions,
|
|
27880
27954
|
fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
|
|
27881
27955
|
numberOfColsvertical: sectionproperties.numberOfColsvertical,
|
|
27882
|
-
AddtoCartMutationContext: AddtoCartMutationContext
|
|
27956
|
+
AddtoCartMutationContext: AddtoCartMutationContext,
|
|
27957
|
+
cardsinglerow: cardsinglerow
|
|
27883
27958
|
}));
|
|
27884
27959
|
} else if (sectionproperties.overallnumberofcards != 0) {
|
|
27885
27960
|
if (cardinfoindex < sectionproperties.overallnumberofcards) {
|
|
@@ -51960,7 +52035,7 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
|
|
|
51960
52035
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' allcenetered m-0 p-0 '
|
|
51961
52036
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
51962
52037
|
"class": ' allcenetered m-0 p-0 '
|
|
51963
|
-
}, langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
52038
|
+
}, langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
51964
52039
|
onClick: function onClick() {
|
|
51965
52040
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
51966
52041
|
}
|
|
@@ -97375,7 +97450,7 @@ var Variants_J_Cards = function Variants_J_Cards(props) {
|
|
|
97375
97450
|
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
97376
97451
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
97377
97452
|
var Simpleproductcard = function Simpleproductcard(props) {
|
|
97378
|
-
var _item$producttags, _authdetailsContext$i3, _item$producttags$, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _item$producttags2, _authdetailsContext$i1, _item$producttags$2, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12;
|
|
97453
|
+
var _item$producttags, _authdetailsContext$i3, _item$producttags$, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _item$producttags2, _authdetailsContext$i1, _item$producttags$2, _authdetailsContext$i10, _authdetailsContext$i11, _authdetailsContext$i12, _item$producttags3, _authdetailsContext$i14, _item$producttags$3, _authdetailsContext$i15, _authdetailsContext$i16, _authdetailsContext$i17;
|
|
97379
97454
|
var _useState = React.useState(''),
|
|
97380
97455
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
97381
97456
|
sectionproperties = _useState2[0],
|
|
@@ -97424,6 +97499,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
97424
97499
|
_useState16 = _slicedToArray__default["default"](_useState15, 2);
|
|
97425
97500
|
_useState16[0];
|
|
97426
97501
|
_useState16[1];
|
|
97502
|
+
var cardsinglerow = props.cardsinglerow;
|
|
97427
97503
|
var plainString = function plainString(html) {
|
|
97428
97504
|
var divContainer = document.createElement('div');
|
|
97429
97505
|
divContainer.innerHTML = html;
|
|
@@ -97992,7 +98068,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
97992
98068
|
handleClick();
|
|
97993
98069
|
}
|
|
97994
98070
|
}
|
|
97995
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98071
|
+
}, cardsinglerow != 'single' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
97996
98072
|
"class": authdetailsContext.instinfo.instid == '6978ef34b2564' && sectionproperties.shownameonhover == 'Yes' ? card_cssstyles.cardconttt + ' cursor-pointer w-100 h-100 ' : card_cssstyles.cardconttt + ' cursor-pointer w-100 ',
|
|
97997
98073
|
style: {}
|
|
97998
98074
|
}, sectionproperties.image_show == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -98589,7 +98665,402 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
98589
98665
|
}
|
|
98590
98666
|
}),
|
|
98591
98667
|
activeColor: "#ffd700"
|
|
98592
|
-
})))))
|
|
98668
|
+
}))))), cardsinglerow == 'single' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98669
|
+
"class": card_cssstyles.cardconttt + ' cursor-pointer w-100 p-2',
|
|
98670
|
+
style: {}
|
|
98671
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98672
|
+
"class": "row m-0 w-100"
|
|
98673
|
+
}, sectionproperties.image_show == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98674
|
+
"class": "col-lg-3 col-md-4 p-0"
|
|
98675
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98676
|
+
"class": card_cssstyles.icontainer + ' w-100 ',
|
|
98677
|
+
style: {
|
|
98678
|
+
position: 'relative'
|
|
98679
|
+
}
|
|
98680
|
+
}, (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98681
|
+
"class": "allcentered",
|
|
98682
|
+
style: {
|
|
98683
|
+
zIndex: 2,
|
|
98684
|
+
position: 'absolute',
|
|
98685
|
+
top: sectionproperties.badgeposition == 'Top' ? sectionproperties.badge_top + 'px' : '',
|
|
98686
|
+
bottom: sectionproperties.badgeposition == 'Bottom' ? sectionproperties.badge_top + 'px' : '',
|
|
98687
|
+
left: sectionproperties.badge_right + 'px',
|
|
98688
|
+
// right: langdetect == 'en' ? '' : sectionproperties.badge_right + 'px',
|
|
98689
|
+
width: sectionproperties.badge_width == 0 ? '90%' : sectionproperties.badge_width + 'px',
|
|
98690
|
+
height: sectionproperties.badge_height + 'px',
|
|
98691
|
+
background: sectionproperties.badge_bgcolor,
|
|
98692
|
+
borderRadius: sectionproperties.badge_borderradius + 'px'
|
|
98693
|
+
}
|
|
98694
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98695
|
+
"class": "m-0 p-0",
|
|
98696
|
+
style: {
|
|
98697
|
+
color: sectionproperties.badge_color,
|
|
98698
|
+
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
98699
|
+
}
|
|
98700
|
+
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && has_sale == 1 && sectionproperties.counterposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98701
|
+
style: {
|
|
98702
|
+
position: 'absolute',
|
|
98703
|
+
top: sectionproperties.pillpositionfromtop + 'px',
|
|
98704
|
+
left: sectionproperties.pillpositionfromright + 'px',
|
|
98705
|
+
// right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
|
|
98706
|
+
zIndex: 3
|
|
98707
|
+
}
|
|
98708
|
+
}, PillContainer()), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98709
|
+
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$8.imagecontainer) + ' d-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex ',
|
|
98710
|
+
onClick: function onClick(e) {
|
|
98711
|
+
var _sectionproperties$se2;
|
|
98712
|
+
if (((_sectionproperties$se2 = sectionproperties.sectionproperties) === null || _sectionproperties$se2 === void 0 ? void 0 : _sectionproperties$se2.onClickRoute) == 'None') ; else {
|
|
98713
|
+
e.stopPropagation();
|
|
98714
|
+
var productidtobesend = null;
|
|
98715
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
98716
|
+
productidtobesend = item.productendpointurl;
|
|
98717
|
+
} else {
|
|
98718
|
+
productidtobesend = item.productid;
|
|
98719
|
+
}
|
|
98720
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
|
|
98721
|
+
}
|
|
98722
|
+
},
|
|
98723
|
+
style: {
|
|
98724
|
+
borderRadius: sectionproperties.image_bordertopleftradius + 'px'
|
|
98725
|
+
}
|
|
98726
|
+
}, Image('normal')))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98727
|
+
"class": "col-lg-9 col-md-8"
|
|
98728
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98729
|
+
"class": sectionproperties.productnamecentered == 'Centered' ? card_cssstyles.innersection + ' row m-0 w-100 allcentered ' : card_cssstyles.innersection + ' row m-0 w-100 ',
|
|
98730
|
+
style: {}
|
|
98731
|
+
}, sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98732
|
+
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 ',
|
|
98733
|
+
style: {
|
|
98734
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
98735
|
+
fontSize: sectionproperties.measurementunitfontsize + 'px',
|
|
98736
|
+
color: sectionproperties.measurementunitcolor
|
|
98737
|
+
}
|
|
98738
|
+
}, item.measurmentunit), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98739
|
+
"class": "col-lg-12 pl-0 pr-0",
|
|
98740
|
+
style: {
|
|
98741
|
+
minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh',
|
|
98742
|
+
background: sectionproperties.prodNameBackgroundColor,
|
|
98743
|
+
borderRadius: '15px',
|
|
98744
|
+
paddingTop: sectionproperties.productnamepaddingvertical + 'px',
|
|
98745
|
+
paddingBottom: sectionproperties.productnamepaddingvertical + 'px'
|
|
98746
|
+
}
|
|
98747
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98748
|
+
onClick: function onClick() {
|
|
98749
|
+
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute) == 'None') ; else {
|
|
98750
|
+
var productidtobesend = null;
|
|
98751
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
98752
|
+
productidtobesend = item.productendpointurl;
|
|
98753
|
+
} else {
|
|
98754
|
+
productidtobesend = item.productid;
|
|
98755
|
+
}
|
|
98756
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
|
|
98757
|
+
}
|
|
98758
|
+
},
|
|
98759
|
+
"class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 font-md-13 m-0 pname ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 pname ',
|
|
98760
|
+
style: {
|
|
98761
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
98762
|
+
}
|
|
98763
|
+
}, item.name)), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags3 = item.producttags) === null || _item$producttags3 === void 0 ? void 0 : _item$producttags3.length) != 0 && sectionproperties.showtag == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '684fdf3f9e856' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98764
|
+
"class": "allcentered",
|
|
98765
|
+
style: {
|
|
98766
|
+
width: '100%',
|
|
98767
|
+
left: 0,
|
|
98768
|
+
right: 0,
|
|
98769
|
+
zIndex: 100
|
|
98770
|
+
}
|
|
98771
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98772
|
+
"class": "px-3 py-1",
|
|
98773
|
+
style: {
|
|
98774
|
+
width: 'fit-content',
|
|
98775
|
+
background: sectionproperties.tagbackgroundcolor,
|
|
98776
|
+
borderRadius: sectionproperties.tagborderradius + 'px',
|
|
98777
|
+
color: sectionproperties.tagcolor,
|
|
98778
|
+
fontSize: 12
|
|
98779
|
+
}
|
|
98780
|
+
}, item === null || item === void 0 || (_item$producttags$3 = item.producttags[0]) === null || _item$producttags$3 === void 0 || (_item$producttags$3 = _item$producttags$3.taginfo) === null || _item$producttags$3 === void 0 ? void 0 : _item$producttags$3.tagname)), sectionproperties.showSKU == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98781
|
+
"class": "col-lg-12 pl-0 pr-0",
|
|
98782
|
+
style: {}
|
|
98783
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98784
|
+
"class": "".concat(card_cssstyles.sku) + ' wordbreak wordbreak1 font-md-13 m-0 ',
|
|
98785
|
+
style: {
|
|
98786
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
98787
|
+
}
|
|
98788
|
+
}, langdetect == 'en' ? 'SKU: ' : 'كود: ', item.sku)), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'No' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98789
|
+
"class": sectionproperties.descriptionwordbreak == 'None' ? "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 mt-1 ' : "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 wordbreak wordbreak4 mt-1 ',
|
|
98790
|
+
style: {
|
|
98791
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
98792
|
+
},
|
|
98793
|
+
dangerouslySetInnerHTML: {
|
|
98794
|
+
__html: item.shortdescription
|
|
98795
|
+
}
|
|
98796
|
+
}), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'Yes' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98797
|
+
"class": sectionproperties.descriptionwordbreak == 'None' ? "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 mt-1 ' : "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak p-0 mt-1 ',
|
|
98798
|
+
style: {
|
|
98799
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
98800
|
+
}
|
|
98801
|
+
}, plainString(item.shortdescription)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98802
|
+
style: {
|
|
98803
|
+
flexDirection: 'column',
|
|
98804
|
+
display: sectionproperties.prodPriceShow == 'Hide' && sectionproperties.showprofitcontainer == 'Hide' && sectionproperties.cartBtnShow == 'Hide' && sectionproperties.prodsalePriceshow == 'Hide' ? 'none' : 'flex'
|
|
98805
|
+
},
|
|
98806
|
+
"class": "col-lg-12 d-flex align-items-center justify-content-center p-0 mt-1 "
|
|
98807
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98808
|
+
"class": "row m-0 w-100 "
|
|
98809
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98810
|
+
"class": " d-flex flex-row col-lg-12 mx-0 p-0 align-items-center ",
|
|
98811
|
+
style: {
|
|
98812
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
98813
|
+
marginTop: sectionproperties.productpricemarginTop + 'px',
|
|
98814
|
+
marginBottom: sectionproperties.productpricemarginBottom + 'px'
|
|
98815
|
+
}
|
|
98816
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98817
|
+
"class": sectionproperties.priceDirection == 'Horizontal Direction' ? ' d-flex align-items-center p-0 mb-0 flex-row ' : ' d-flex align-items-center p-0 mb-0 flex-column ',
|
|
98818
|
+
style: {
|
|
98819
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
98820
|
+
minHeight: sectionproperties.priceDirection == 'Horizontal Direction' ? '' : '6.5vh'
|
|
98821
|
+
}
|
|
98822
|
+
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98823
|
+
"class": sectionproperties.priceDirection == 'Horizontal Direction' ? "".concat(card_cssstyles.productPricestyles) + ' m-0 ' : "".concat(card_cssstyles.productPricestyles) + ' m-0 '
|
|
98824
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", has_sale == 1 ? sale_price : price, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && has_sale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98825
|
+
"class": sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'
|
|
98826
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98827
|
+
"class": "".concat(card_cssstyles.productSalePricestyles) + ' linethrough m-0 mr-2 ml-2 '
|
|
98828
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", price, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.showpill == 'Show' && has_sale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98829
|
+
style: {}
|
|
98830
|
+
}, PillContainer()))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '696b839eebc8c' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98831
|
+
"class": "col-12 p-0 d-flex flex-row align-items-center mb-2",
|
|
98832
|
+
style: {
|
|
98833
|
+
visibility: item.currentquantity > 1 ? 'visible' : 'hidden'
|
|
98834
|
+
}
|
|
98835
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98836
|
+
"class": "m-0 p-0",
|
|
98837
|
+
style: {
|
|
98838
|
+
width: 8,
|
|
98839
|
+
height: 8,
|
|
98840
|
+
borderRadius: 100,
|
|
98841
|
+
background: 'green'
|
|
98842
|
+
}
|
|
98843
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98844
|
+
"class": 'm-0 mx-2 p-0',
|
|
98845
|
+
style: {
|
|
98846
|
+
color: 'green',
|
|
98847
|
+
fontSize: 13,
|
|
98848
|
+
fontWeight: 400
|
|
98849
|
+
}
|
|
98850
|
+
}, langdetect == 'en' ? 'In Stock' : 'متوفر')), sectionproperties.showvariantscont == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98851
|
+
"class": "col-12 p-0"
|
|
98852
|
+
}, /*#__PURE__*/React__default["default"].createElement(Variants_J_Cards, {
|
|
98853
|
+
actions: {
|
|
98854
|
+
sectionproperties: sectionproperties,
|
|
98855
|
+
item: item,
|
|
98856
|
+
cardonclickfunctionContext: cardonclickfunctionContext,
|
|
98857
|
+
fetchingtypeprops: props.fetchingtypeprops
|
|
98858
|
+
},
|
|
98859
|
+
foundMatchedVariantFunc: function foundMatchedVariantFunc(variantCompletedObj) {
|
|
98860
|
+
// alert(JSON.stringify(variantCompletedObj));
|
|
98861
|
+
// console.log(variantCompletedObj);
|
|
98862
|
+
setvariantObj(variantCompletedObj);
|
|
98863
|
+
var variant_price = 0;
|
|
98864
|
+
var variant_saleprice = 0;
|
|
98865
|
+
var variant_hassale = 0;
|
|
98866
|
+
var is_found = false;
|
|
98867
|
+
if (variantCompletedObj != null && variantCompletedObj != undefined) {
|
|
98868
|
+
var _variantCompletedObj$1;
|
|
98869
|
+
if (variantCompletedObj.variant_prices != undefined && variantCompletedObj != null && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$1 = variantCompletedObj.variant_prices) === null || _variantCompletedObj$1 === void 0 ? void 0 : _variantCompletedObj$1.length) != 0) {
|
|
98870
|
+
var _variantCompletedObj$10, _variantCompletedObj$11, _variantCompletedObj$13, _variantCompletedObj$14, _variantCompletedObj$16, _variantCompletedObj$17;
|
|
98871
|
+
if ((variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$10 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$10 === void 0 ? void 0 : _variantCompletedObj$10.price) != undefined && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$11 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$11 === void 0 ? void 0 : _variantCompletedObj$11.price) != null) {
|
|
98872
|
+
var _variantCompletedObj$12;
|
|
98873
|
+
variant_price = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$12 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$12 === void 0 ? void 0 : _variantCompletedObj$12.price;
|
|
98874
|
+
is_found = true;
|
|
98875
|
+
}
|
|
98876
|
+
if ((variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$13 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$13 === void 0 ? void 0 : _variantCompletedObj$13.price) != undefined && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$14 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$14 === void 0 ? void 0 : _variantCompletedObj$14.price) != null) {
|
|
98877
|
+
var _variantCompletedObj$15;
|
|
98878
|
+
variant_saleprice = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$15 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$15 === void 0 ? void 0 : _variantCompletedObj$15.saleprice;
|
|
98879
|
+
}
|
|
98880
|
+
if ((variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$16 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$16 === void 0 ? void 0 : _variantCompletedObj$16.price) != undefined && (variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$17 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$17 === void 0 ? void 0 : _variantCompletedObj$17.price) != null) {
|
|
98881
|
+
var _variantCompletedObj$18;
|
|
98882
|
+
variant_hassale = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$18 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$18 === void 0 ? void 0 : _variantCompletedObj$18.hassale;
|
|
98883
|
+
}
|
|
98884
|
+
}
|
|
98885
|
+
}
|
|
98886
|
+
if (is_found) {
|
|
98887
|
+
setprice(variant_price);
|
|
98888
|
+
setsale_price(variant_saleprice);
|
|
98889
|
+
sethas_sale(variant_hassale);
|
|
98890
|
+
}
|
|
98891
|
+
},
|
|
98892
|
+
foundImageColorMatchingFunc: function foundImageColorMatchingFunc(variantIMAGECompletedObj) {
|
|
98893
|
+
setVariant_Color_ImageObj(variantIMAGECompletedObj);
|
|
98894
|
+
}
|
|
98895
|
+
})), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98896
|
+
"class": "col-lg-12 p-0",
|
|
98897
|
+
style: {
|
|
98898
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
98899
|
+
}
|
|
98900
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98901
|
+
"class": card_cssstyles.profitcontainer + ' d-flex align-items-center flex-sm-column px-2',
|
|
98902
|
+
style: {
|
|
98903
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
98904
|
+
}
|
|
98905
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98906
|
+
"class": ' m-0 p-0 d-flex align-items-center ',
|
|
98907
|
+
style: {
|
|
98908
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
98909
|
+
}
|
|
98910
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
98911
|
+
style: {
|
|
98912
|
+
fontWeight: sectionproperties.profitcontainerfontweight
|
|
98913
|
+
}
|
|
98914
|
+
}, langdetect == 'en' ? sectionproperties.profitcontainercontenten : sectionproperties.profitcontainercontentar, ":", ' '), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
98915
|
+
"class": "mx-1",
|
|
98916
|
+
style: {
|
|
98917
|
+
fontWeight: sectionproperties.profitcontainersecondaryfontweight
|
|
98918
|
+
}
|
|
98919
|
+
}, langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(has_sale == 1 ? sale_price : price) * (item.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname)))), sectionproperties.quantityshow == 'Show' && item.currentquantity > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98920
|
+
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
98921
|
+
style: {
|
|
98922
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
98923
|
+
}
|
|
98924
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98925
|
+
"class": "m-0 p-0",
|
|
98926
|
+
style: {
|
|
98927
|
+
fontSize: sectionproperties.quantityfontsize,
|
|
98928
|
+
color: sectionproperties.quantitycolor,
|
|
98929
|
+
fontWeight: sectionproperties.quantityfontweight
|
|
98930
|
+
}
|
|
98931
|
+
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.contactinfo.instid) == '6887802d26765' && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98932
|
+
"class": "col-lg-12 p-0 d-flex align-items-center allcentered"
|
|
98933
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98934
|
+
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mx-auto mb-2 w-md-70 ',
|
|
98935
|
+
style: {
|
|
98936
|
+
direction: 'ltr'
|
|
98937
|
+
}
|
|
98938
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
98939
|
+
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container),
|
|
98940
|
+
onClick: function onClick() {
|
|
98941
|
+
var tempitem = _objectSpread$6({}, item);
|
|
98942
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
98943
|
+
tempitem.quantity = tempitem.quantity - 1;
|
|
98944
|
+
if (tempitem.quantity <= 0) {
|
|
98945
|
+
tempitem.quantity = 0;
|
|
98946
|
+
}
|
|
98947
|
+
setitem(_objectSpread$6({}, tempitem));
|
|
98948
|
+
// addtocartfuncquantity('add', tempitem.quantity);
|
|
98949
|
+
},
|
|
98950
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
98951
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
98952
|
+
"class": "h-100 allcentered minusbtn"
|
|
98953
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiMinus.FiMinus, null))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
98954
|
+
"class": ' d-flex align-items-center justify-content-center ',
|
|
98955
|
+
style: {
|
|
98956
|
+
fontSize: 14,
|
|
98957
|
+
fontWeight: 500,
|
|
98958
|
+
color: sectionproperties.cartBtnbgColor,
|
|
98959
|
+
flex: 1
|
|
98960
|
+
}
|
|
98961
|
+
}, addtocartbuttonrenderquantity()), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
98962
|
+
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container),
|
|
98963
|
+
onClick: function onClick() {
|
|
98964
|
+
var tempitem = _objectSpread$6({}, item);
|
|
98965
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
98966
|
+
tempitem.quantity = tempitem.quantity + 1;
|
|
98967
|
+
if (tempitem.quantity <= 0) {
|
|
98968
|
+
tempitem.quantity = 0;
|
|
98969
|
+
}
|
|
98970
|
+
setitem(_objectSpread$6({}, tempitem));
|
|
98971
|
+
// addtocartfuncquantity('add', tempitem.quantity);
|
|
98972
|
+
},
|
|
98973
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
98974
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
98975
|
+
"class": "h-100 allcentered addbtn"
|
|
98976
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiPlus.FiPlus, null))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.contactinfo.instid) == '69eddfb81f141' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98977
|
+
"class": "col-12 p-0 d-flex flex-row align-items-center",
|
|
98978
|
+
style: {
|
|
98979
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
98980
|
+
visibility: item.quantavailtype == 'nolimit' ? 'visible' : item.currentquantity > 1 ? 'visible' : 'hidden'
|
|
98981
|
+
}
|
|
98982
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98983
|
+
"class": "m-0 p-0",
|
|
98984
|
+
style: {
|
|
98985
|
+
width: 8,
|
|
98986
|
+
height: 8,
|
|
98987
|
+
borderRadius: 100,
|
|
98988
|
+
background: 'green'
|
|
98989
|
+
}
|
|
98990
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
98991
|
+
"class": 'm-0 mx-2 p-0',
|
|
98992
|
+
style: {
|
|
98993
|
+
color: 'green',
|
|
98994
|
+
fontSize: 13,
|
|
98995
|
+
fontWeight: 400
|
|
98996
|
+
}
|
|
98997
|
+
}, langdetect == 'en' ? 'In Stock' : 'متوفر')), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
98998
|
+
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
98999
|
+
style: {
|
|
99000
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
99001
|
+
}
|
|
99002
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
99003
|
+
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
99004
|
+
onClick: function onClick() {
|
|
99005
|
+
var _authdetailsContext$i18;
|
|
99006
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) == '68527dfef348b') {
|
|
99007
|
+
// alert(item.path);
|
|
99008
|
+
window.open((ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + item.image, '_blank');
|
|
99009
|
+
} else if (sectionproperties.showvariantscont == 'Show') {
|
|
99010
|
+
addtocartfunc();
|
|
99011
|
+
} else {
|
|
99012
|
+
var productidtobesend = null;
|
|
99013
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
99014
|
+
productidtobesend = item.productendpointurl;
|
|
99015
|
+
} else {
|
|
99016
|
+
productidtobesend = item.productid;
|
|
99017
|
+
}
|
|
99018
|
+
if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
|
|
99019
|
+
if (item.extrafieldsarray.length == 0) {
|
|
99020
|
+
addtocartfunc();
|
|
99021
|
+
} else {
|
|
99022
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
|
|
99023
|
+
}
|
|
99024
|
+
} else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
99025
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
|
|
99026
|
+
} else {
|
|
99027
|
+
var productidtobesend = null;
|
|
99028
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
99029
|
+
productidtobesend = item.productendpointurl;
|
|
99030
|
+
} else {
|
|
99031
|
+
productidtobesend = item.productid;
|
|
99032
|
+
}
|
|
99033
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
|
|
99034
|
+
}
|
|
99035
|
+
}
|
|
99036
|
+
}
|
|
99037
|
+
}, addtocartbuttonrender())))), sectionproperties.showrating == 'Show' && item.productcanrate == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
99038
|
+
"class": "col-lg-12 d-flex align-items-center p-0",
|
|
99039
|
+
style: {
|
|
99040
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
99041
|
+
}
|
|
99042
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
99043
|
+
count: 5,
|
|
99044
|
+
value: item.productoverallrate,
|
|
99045
|
+
edit: false,
|
|
99046
|
+
size: 16,
|
|
99047
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
99048
|
+
className: "far fa-star",
|
|
99049
|
+
style: {
|
|
99050
|
+
color: '#cccccc'
|
|
99051
|
+
}
|
|
99052
|
+
}),
|
|
99053
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
99054
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
99055
|
+
}),
|
|
99056
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
99057
|
+
className: "fa fa-star",
|
|
99058
|
+
style: {
|
|
99059
|
+
color: '#FAB400'
|
|
99060
|
+
}
|
|
99061
|
+
}),
|
|
99062
|
+
activeColor: "#ffd700"
|
|
99063
|
+
})))))));
|
|
98593
99064
|
};
|
|
98594
99065
|
|
|
98595
99066
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|