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.esm.js CHANGED
@@ -94,6 +94,8 @@ import { IoBagRemoveOutline } from '@react-icons/all-files/io5/IoBagRemoveOutlin
94
94
  import { useInView } from 'react-intersection-observer';
95
95
  import { FiFilter } from '@react-icons/all-files/fi/FiFilter';
96
96
  import { FiSliders } from '@react-icons/all-files/fi/FiSliders';
97
+ import { BsGridFill } from '@react-icons/all-files/bs/BsGridFill';
98
+ import { FaBars } from '@react-icons/all-files/fa/FaBars';
97
99
  import { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';
98
100
  import { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';
99
101
  import { HiOutlineArrowRight } from '@react-icons/all-files/hi/HiOutlineArrowRight';
@@ -26129,22 +26131,26 @@ var CardsSection = function CardsSection(props) {
26129
26131
  _useState8 = _slicedToArray(_useState7, 2),
26130
26132
  sectionitem = _useState8[0],
26131
26133
  setsectionitem = _useState8[1];
26132
- var _useState9 = useState({
26134
+ var _useState9 = useState('multi'),
26135
+ _useState0 = _slicedToArray(_useState9, 2),
26136
+ cardsinglerow = _useState0[0],
26137
+ setcardsinglerow = _useState0[1];
26138
+ var _useState1 = useState({
26133
26139
  productfetchingtype: 'Random',
26134
26140
  collectionid: '',
26135
26141
  grouptype: ''
26136
26142
  }),
26137
- _useState0 = _slicedToArray(_useState9, 2),
26138
- ProductsFetchingTypeSectionObj = _useState0[0],
26139
- setProductsFetchingTypeSectionObj = _useState0[1];
26140
- var _useState1 = useState([]),
26141
26143
  _useState10 = _slicedToArray(_useState1, 2),
26142
- maincontainerarrayofobjs = _useState10[0],
26143
- setmaincontainerarrayofobjs = _useState10[1];
26144
- var _useState11 = useState(12),
26144
+ ProductsFetchingTypeSectionObj = _useState10[0],
26145
+ setProductsFetchingTypeSectionObj = _useState10[1];
26146
+ var _useState11 = useState([]),
26145
26147
  _useState12 = _slicedToArray(_useState11, 2),
26146
- perpageItems = _useState12[0],
26147
- setperpageItems = _useState12[1];
26148
+ maincontainerarrayofobjs = _useState12[0],
26149
+ setmaincontainerarrayofobjs = _useState12[1];
26150
+ var _useState13 = useState(12),
26151
+ _useState14 = _slicedToArray(_useState13, 2),
26152
+ perpageItems = _useState14[0],
26153
+ setperpageItems = _useState14[1];
26148
26154
  var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
26149
26155
  var authdetailsContext = props.actions.authdetailsContext;
26150
26156
  props.actions.FetchVendors_byproductsQuery;
@@ -27310,7 +27316,32 @@ var CardsSection = function CardsSection(props) {
27310
27316
  marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
27311
27317
  marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0
27312
27318
  }
27313
- }, SectionTitle()), sectionproperties.sectiontitleshow == 'Show' && sectionproperties.filterType != 'Title & Sort By Only' && /*#__PURE__*/React.createElement("div", {
27319
+ }, /*#__PURE__*/React.createElement("div", {
27320
+ "class": "row m-0 w-100"
27321
+ }, /*#__PURE__*/React.createElement("div", {
27322
+ "class": authdetailsContext.instinfo.instid == '6a0e0bcb82d2d' && sectionproperties.sectionTitleContent == 'ALL PRODUCTS' ? 'col-9 p-0 text-start' : 'col-12 p-0 text-start'
27323
+ }, SectionTitle()), authdetailsContext.instinfo.instid == '6a0e0bcb82d2d' && sectionproperties.sectionTitleContent == 'ALL PRODUCTS' && /*#__PURE__*/React.createElement("div", {
27324
+ "class": "col-3 p-0 text-end"
27325
+ }, /*#__PURE__*/React.createElement(BsGridFill, {
27326
+ color: sectionproperties.sectionTitleColor,
27327
+ "class": "mx-2 cursor-pointer",
27328
+ onClick: function onClick() {
27329
+ setcardsinglerow('multi');
27330
+ // alert(cardsinglerow);
27331
+ },
27332
+ style: {
27333
+ opacity: cardsinglerow == 'multi' ? 1 : 0.3
27334
+ }
27335
+ }), /*#__PURE__*/React.createElement(FaBars, {
27336
+ color: sectionproperties.sectionTitleColor,
27337
+ "class": "mx-2 cursor-pointer",
27338
+ onClick: function onClick() {
27339
+ setcardsinglerow('single');
27340
+ },
27341
+ style: {
27342
+ opacity: cardsinglerow == 'single' ? 1 : 0.3
27343
+ }
27344
+ })))), sectionproperties.sectiontitleshow == 'Show' && sectionproperties.filterType != 'Title & Sort By Only' && /*#__PURE__*/React.createElement("div", {
27314
27345
  "class": "".concat(generalstyles.sectiontitlecont) + ' col-lg-12 p-0 d-none d-md-flex align-items-center ',
27315
27346
  style: {
27316
27347
  justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
@@ -27388,8 +27419,51 @@ var CardsSection = function CardsSection(props) {
27388
27419
  marginTop: sectionproperties.sectiontitleposition == 'Centered' ? sectionproperties.viewmoremt + 'px' : 0
27389
27420
  }
27390
27421
  }, /*#__PURE__*/React.createElement("div", {
27391
- "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 '
27392
- }, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React.createElement("button", {
27422
+ "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 '
27423
+ }, authdetailsContext.instinfo.instid == '6a0e0bcb82d2d' && sectionproperties.sectionTitleContent == 'ALL PRODUCTS' && /*#__PURE__*/React.createElement("div", {
27424
+ "class": "p-0 d-none d-md-flex justify-content-end align-items-center"
27425
+ }, /*#__PURE__*/React.createElement(BsGridFill, {
27426
+ color: sectionproperties.sectionTitleColor,
27427
+ "class": "mx-2 cursor-pointer",
27428
+ size: 18,
27429
+ onClick: function onClick() {
27430
+ setcardsinglerow('multi');
27431
+ // alert(cardsinglerow);
27432
+ },
27433
+ style: {
27434
+ opacity: cardsinglerow == 'multi' ? 1 : 0.3
27435
+ }
27436
+ }), /*#__PURE__*/React.createElement(FaBars, {
27437
+ color: sectionproperties.sectionTitleColor,
27438
+ "class": "mx-2 cursor-pointer",
27439
+ size: 18,
27440
+ onClick: function onClick() {
27441
+ setcardsinglerow('single');
27442
+ },
27443
+ style: {
27444
+ opacity: cardsinglerow == 'single' ? 1 : 0.3
27445
+ }
27446
+ }), 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.createElement("button", {
27447
+ "class": ' d-none d-md-flex justify-content-end ',
27448
+ onClick: function onClick() {
27449
+ setopenFilterSlider(true);
27450
+ // var element = document.getElementById('filterslider');
27451
+ // element.classList.add(filterstyles.filterslider_container_opened);
27452
+ }
27453
+ }, /*#__PURE__*/React.createElement("div", {
27454
+ "class": "".concat(section_cssstyles.filterbtn) + ' allcentered '
27455
+ }, sectionproperties.filterbtnfontsize != 0 && /*#__PURE__*/React.createElement("span", {
27456
+ "class": "allcentered",
27457
+ style: {
27458
+ fontSize: sectionproperties.filterbtnfontsize + 'px'
27459
+ }
27460
+ }, langdetect == 'en' ? sectionproperties.filterbtntexten : sectionproperties.filterbtntextar), sectionproperties.filterbtniconfontsize != 0 && /*#__PURE__*/React.createElement("i", {
27461
+ "class": "h-100 d-flex align-items-center justify-content-center"
27462
+ }, /*#__PURE__*/React.createElement(FiFilter, {
27463
+ style: {
27464
+ fontSize: sectionproperties.filterbtniconfontsize
27465
+ }
27466
+ }))))), sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React.createElement("button", {
27393
27467
  "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 ',
27394
27468
  onClick: function onClick() {
27395
27469
  if (fetchingtype == 'products') {
@@ -27431,7 +27505,7 @@ var CardsSection = function CardsSection(props) {
27431
27505
  }) : /*#__PURE__*/React.createElement(HiOutlineArrowLeft, {
27432
27506
  size: sectionproperties.viewmoreiconfontsizeresp,
27433
27507
  color: sectionproperties.viewmorebtn_Textcolor
27434
- })))), 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.createElement("button", {
27508
+ })))), 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.createElement("button", {
27435
27509
  "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 ',
27436
27510
  onClick: function onClick() {
27437
27511
  setopenFilterSlider(true);
@@ -27816,7 +27890,7 @@ var CardsSection = function CardsSection(props) {
27816
27890
  } else {
27817
27891
  if (sectionproperties.overallnumberofcards == 0) {
27818
27892
  return /*#__PURE__*/React.createElement("div", {
27819
- "class": bootstapclass
27893
+ "class": cardsinglerow == 'single' ? 'col-12 p-0 d-flex justify-content-center p-0 ' : bootstapclass
27820
27894
  }, /*#__PURE__*/React.createElement(Sectioncomp, {
27821
27895
  sectiontypeprops: 'horizontal',
27822
27896
  sectiontypeprops2: 'vertical',
@@ -27828,7 +27902,8 @@ var CardsSection = function CardsSection(props) {
27828
27902
  actions: actions,
27829
27903
  fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
27830
27904
  numberOfColsvertical: sectionproperties.numberOfColsvertical,
27831
- AddtoCartMutationContext: AddtoCartMutationContext
27905
+ AddtoCartMutationContext: AddtoCartMutationContext,
27906
+ cardsinglerow: cardsinglerow
27832
27907
  }));
27833
27908
  } else if (sectionproperties.overallnumberofcards != 0) {
27834
27909
  if (cardinfoindex < sectionproperties.overallnumberofcards) {
@@ -51909,7 +51984,7 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
51909
51984
  "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' allcenetered m-0 p-0 '
51910
51985
  }, /*#__PURE__*/React.createElement("p", {
51911
51986
  "class": ' allcenetered m-0 p-0 '
51912
- }, langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), /*#__PURE__*/React.createElement(Dropdown.Item, {
51987
+ }, langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement(Dropdown.Item, {
51913
51988
  onClick: function onClick() {
51914
51989
  routingcountext(StaticPagesLinksContext.Wishlist);
51915
51990
  }
@@ -97324,7 +97399,7 @@ var Variants_J_Cards = function Variants_J_Cards(props) {
97324
97399
  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; }
97325
97400
  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(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; }
97326
97401
  var Simpleproductcard = function Simpleproductcard(props) {
97327
- 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;
97402
+ 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;
97328
97403
  var _useState = useState(''),
97329
97404
  _useState2 = _slicedToArray(_useState, 2),
97330
97405
  sectionproperties = _useState2[0],
@@ -97373,6 +97448,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
97373
97448
  _useState16 = _slicedToArray(_useState15, 2);
97374
97449
  _useState16[0];
97375
97450
  _useState16[1];
97451
+ var cardsinglerow = props.cardsinglerow;
97376
97452
  var plainString = function plainString(html) {
97377
97453
  var divContainer = document.createElement('div');
97378
97454
  divContainer.innerHTML = html;
@@ -97941,7 +98017,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
97941
98017
  handleClick();
97942
98018
  }
97943
98019
  }
97944
- }, /*#__PURE__*/React.createElement("div", {
98020
+ }, cardsinglerow != 'single' && /*#__PURE__*/React.createElement("div", {
97945
98021
  "class": authdetailsContext.instinfo.instid == '6978ef34b2564' && sectionproperties.shownameonhover == 'Yes' ? card_cssstyles.cardconttt + ' cursor-pointer w-100 h-100 ' : card_cssstyles.cardconttt + ' cursor-pointer w-100 ',
97946
98022
  style: {}
97947
98023
  }, sectionproperties.image_show == 'show' && /*#__PURE__*/React.createElement("div", {
@@ -98538,7 +98614,402 @@ var Simpleproductcard = function Simpleproductcard(props) {
98538
98614
  }
98539
98615
  }),
98540
98616
  activeColor: "#ffd700"
98541
- }))))));
98617
+ }))))), cardsinglerow == 'single' && /*#__PURE__*/React.createElement("div", {
98618
+ "class": card_cssstyles.cardconttt + ' cursor-pointer w-100 p-2',
98619
+ style: {}
98620
+ }, /*#__PURE__*/React.createElement("div", {
98621
+ "class": "row m-0 w-100"
98622
+ }, sectionproperties.image_show == 'show' && /*#__PURE__*/React.createElement("div", {
98623
+ "class": "col-lg-3 col-md-4 p-0"
98624
+ }, /*#__PURE__*/React.createElement("div", {
98625
+ "class": card_cssstyles.icontainer + ' w-100 ',
98626
+ style: {
98627
+ position: 'relative'
98628
+ }
98629
+ }, (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React.createElement("div", {
98630
+ "class": "allcentered",
98631
+ style: {
98632
+ zIndex: 2,
98633
+ position: 'absolute',
98634
+ top: sectionproperties.badgeposition == 'Top' ? sectionproperties.badge_top + 'px' : '',
98635
+ bottom: sectionproperties.badgeposition == 'Bottom' ? sectionproperties.badge_top + 'px' : '',
98636
+ left: sectionproperties.badge_right + 'px',
98637
+ // right: langdetect == 'en' ? '' : sectionproperties.badge_right + 'px',
98638
+ width: sectionproperties.badge_width == 0 ? '90%' : sectionproperties.badge_width + 'px',
98639
+ height: sectionproperties.badge_height + 'px',
98640
+ background: sectionproperties.badge_bgcolor,
98641
+ borderRadius: sectionproperties.badge_borderradius + 'px'
98642
+ }
98643
+ }, /*#__PURE__*/React.createElement("p", {
98644
+ "class": "m-0 p-0",
98645
+ style: {
98646
+ color: sectionproperties.badge_color,
98647
+ fontSize: sectionproperties.badge_fontsize + 'px'
98648
+ }
98649
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && has_sale == 1 && sectionproperties.counterposition == 'Top' && /*#__PURE__*/React.createElement("div", {
98650
+ style: {
98651
+ position: 'absolute',
98652
+ top: sectionproperties.pillpositionfromtop + 'px',
98653
+ left: sectionproperties.pillpositionfromright + 'px',
98654
+ // right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
98655
+ zIndex: 3
98656
+ }
98657
+ }, PillContainer()), /*#__PURE__*/React.createElement("div", {
98658
+ "class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$8.imagecontainer) + ' d-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex ',
98659
+ onClick: function onClick(e) {
98660
+ var _sectionproperties$se2;
98661
+ if (((_sectionproperties$se2 = sectionproperties.sectionproperties) === null || _sectionproperties$se2 === void 0 ? void 0 : _sectionproperties$se2.onClickRoute) == 'None') ; else {
98662
+ e.stopPropagation();
98663
+ var productidtobesend = null;
98664
+ if (sectionproperties.urlwithproductname == 'Yes') {
98665
+ productidtobesend = item.productendpointurl;
98666
+ } else {
98667
+ productidtobesend = item.productid;
98668
+ }
98669
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
98670
+ }
98671
+ },
98672
+ style: {
98673
+ borderRadius: sectionproperties.image_bordertopleftradius + 'px'
98674
+ }
98675
+ }, Image('normal')))), /*#__PURE__*/React.createElement("div", {
98676
+ "class": "col-lg-9 col-md-8"
98677
+ }, /*#__PURE__*/React.createElement("div", {
98678
+ "class": sectionproperties.productnamecentered == 'Centered' ? card_cssstyles.innersection + ' row m-0 w-100 allcentered ' : card_cssstyles.innersection + ' row m-0 w-100 ',
98679
+ style: {}
98680
+ }, sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React.createElement("p", {
98681
+ "class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 ',
98682
+ style: {
98683
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
98684
+ fontSize: sectionproperties.measurementunitfontsize + 'px',
98685
+ color: sectionproperties.measurementunitcolor
98686
+ }
98687
+ }, item.measurmentunit), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
98688
+ "class": "col-lg-12 pl-0 pr-0",
98689
+ style: {
98690
+ minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh',
98691
+ background: sectionproperties.prodNameBackgroundColor,
98692
+ borderRadius: '15px',
98693
+ paddingTop: sectionproperties.productnamepaddingvertical + 'px',
98694
+ paddingBottom: sectionproperties.productnamepaddingvertical + 'px'
98695
+ }
98696
+ }, /*#__PURE__*/React.createElement("p", {
98697
+ onClick: function onClick() {
98698
+ if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute) == 'None') ; else {
98699
+ var productidtobesend = null;
98700
+ if (sectionproperties.urlwithproductname == 'Yes') {
98701
+ productidtobesend = item.productendpointurl;
98702
+ } else {
98703
+ productidtobesend = item.productid;
98704
+ }
98705
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
98706
+ }
98707
+ },
98708
+ "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 ',
98709
+ style: {
98710
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
98711
+ }
98712
+ }, 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.createElement("div", {
98713
+ "class": "allcentered",
98714
+ style: {
98715
+ width: '100%',
98716
+ left: 0,
98717
+ right: 0,
98718
+ zIndex: 100
98719
+ }
98720
+ }, /*#__PURE__*/React.createElement("div", {
98721
+ "class": "px-3 py-1",
98722
+ style: {
98723
+ width: 'fit-content',
98724
+ background: sectionproperties.tagbackgroundcolor,
98725
+ borderRadius: sectionproperties.tagborderradius + 'px',
98726
+ color: sectionproperties.tagcolor,
98727
+ fontSize: 12
98728
+ }
98729
+ }, 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.createElement("div", {
98730
+ "class": "col-lg-12 pl-0 pr-0",
98731
+ style: {}
98732
+ }, /*#__PURE__*/React.createElement("p", {
98733
+ "class": "".concat(card_cssstyles.sku) + ' wordbreak wordbreak1 font-md-13 m-0 ',
98734
+ style: {
98735
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
98736
+ }
98737
+ }, langdetect == 'en' ? 'SKU: ' : 'كود: ', item.sku)), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'No' && /*#__PURE__*/React.createElement("p", {
98738
+ "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 ',
98739
+ style: {
98740
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
98741
+ },
98742
+ dangerouslySetInnerHTML: {
98743
+ __html: item.shortdescription
98744
+ }
98745
+ }), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'Yes' && /*#__PURE__*/React.createElement("p", {
98746
+ "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 ',
98747
+ style: {
98748
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
98749
+ }
98750
+ }, plainString(item.shortdescription)), /*#__PURE__*/React.createElement("div", {
98751
+ style: {
98752
+ flexDirection: 'column',
98753
+ display: sectionproperties.prodPriceShow == 'Hide' && sectionproperties.showprofitcontainer == 'Hide' && sectionproperties.cartBtnShow == 'Hide' && sectionproperties.prodsalePriceshow == 'Hide' ? 'none' : 'flex'
98754
+ },
98755
+ "class": "col-lg-12 d-flex align-items-center justify-content-center p-0 mt-1 "
98756
+ }, /*#__PURE__*/React.createElement("div", {
98757
+ "class": "row m-0 w-100 "
98758
+ }, /*#__PURE__*/React.createElement("div", {
98759
+ "class": " d-flex flex-row col-lg-12 mx-0 p-0 align-items-center ",
98760
+ style: {
98761
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
98762
+ marginTop: sectionproperties.productpricemarginTop + 'px',
98763
+ marginBottom: sectionproperties.productpricemarginBottom + 'px'
98764
+ }
98765
+ }, /*#__PURE__*/React.createElement("div", {
98766
+ "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 ',
98767
+ style: {
98768
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
98769
+ minHeight: sectionproperties.priceDirection == 'Horizontal Direction' ? '' : '6.5vh'
98770
+ }
98771
+ }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
98772
+ "class": sectionproperties.priceDirection == 'Horizontal Direction' ? "".concat(card_cssstyles.productPricestyles) + ' m-0 ' : "".concat(card_cssstyles.productPricestyles) + ' m-0 '
98773
+ }, langdetect == 'en' ? item.currencyname : '', " ", has_sale == 1 ? sale_price : price, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && has_sale == 1 && /*#__PURE__*/React.createElement("div", {
98774
+ "class": sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'
98775
+ }, /*#__PURE__*/React.createElement("p", {
98776
+ "class": "".concat(card_cssstyles.productSalePricestyles) + ' linethrough m-0 mr-2 ml-2 '
98777
+ }, langdetect == 'en' ? item.currencyname : '', " ", price, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.showpill == 'Show' && has_sale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && /*#__PURE__*/React.createElement("div", {
98778
+ style: {}
98779
+ }, PillContainer()))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '696b839eebc8c' && /*#__PURE__*/React.createElement("div", {
98780
+ "class": "col-12 p-0 d-flex flex-row align-items-center mb-2",
98781
+ style: {
98782
+ visibility: item.currentquantity > 1 ? 'visible' : 'hidden'
98783
+ }
98784
+ }, /*#__PURE__*/React.createElement("p", {
98785
+ "class": "m-0 p-0",
98786
+ style: {
98787
+ width: 8,
98788
+ height: 8,
98789
+ borderRadius: 100,
98790
+ background: 'green'
98791
+ }
98792
+ }), /*#__PURE__*/React.createElement("p", {
98793
+ "class": 'm-0 mx-2 p-0',
98794
+ style: {
98795
+ color: 'green',
98796
+ fontSize: 13,
98797
+ fontWeight: 400
98798
+ }
98799
+ }, langdetect == 'en' ? 'In Stock' : 'متوفر')), sectionproperties.showvariantscont == 'Show' && /*#__PURE__*/React.createElement("div", {
98800
+ "class": "col-12 p-0"
98801
+ }, /*#__PURE__*/React.createElement(Variants_J_Cards, {
98802
+ actions: {
98803
+ sectionproperties: sectionproperties,
98804
+ item: item,
98805
+ cardonclickfunctionContext: cardonclickfunctionContext,
98806
+ fetchingtypeprops: props.fetchingtypeprops
98807
+ },
98808
+ foundMatchedVariantFunc: function foundMatchedVariantFunc(variantCompletedObj) {
98809
+ // alert(JSON.stringify(variantCompletedObj));
98810
+ // console.log(variantCompletedObj);
98811
+ setvariantObj(variantCompletedObj);
98812
+ var variant_price = 0;
98813
+ var variant_saleprice = 0;
98814
+ var variant_hassale = 0;
98815
+ var is_found = false;
98816
+ if (variantCompletedObj != null && variantCompletedObj != undefined) {
98817
+ var _variantCompletedObj$1;
98818
+ 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) {
98819
+ var _variantCompletedObj$10, _variantCompletedObj$11, _variantCompletedObj$13, _variantCompletedObj$14, _variantCompletedObj$16, _variantCompletedObj$17;
98820
+ 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) {
98821
+ var _variantCompletedObj$12;
98822
+ variant_price = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$12 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$12 === void 0 ? void 0 : _variantCompletedObj$12.price;
98823
+ is_found = true;
98824
+ }
98825
+ 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) {
98826
+ var _variantCompletedObj$15;
98827
+ variant_saleprice = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$15 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$15 === void 0 ? void 0 : _variantCompletedObj$15.saleprice;
98828
+ }
98829
+ 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) {
98830
+ var _variantCompletedObj$18;
98831
+ variant_hassale = variantCompletedObj === null || variantCompletedObj === void 0 || (_variantCompletedObj$18 = variantCompletedObj.variant_prices[0]) === null || _variantCompletedObj$18 === void 0 ? void 0 : _variantCompletedObj$18.hassale;
98832
+ }
98833
+ }
98834
+ }
98835
+ if (is_found) {
98836
+ setprice(variant_price);
98837
+ setsale_price(variant_saleprice);
98838
+ sethas_sale(variant_hassale);
98839
+ }
98840
+ },
98841
+ foundImageColorMatchingFunc: function foundImageColorMatchingFunc(variantIMAGECompletedObj) {
98842
+ setVariant_Color_ImageObj(variantIMAGECompletedObj);
98843
+ }
98844
+ })), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
98845
+ "class": "col-lg-12 p-0",
98846
+ style: {
98847
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
98848
+ }
98849
+ }, /*#__PURE__*/React.createElement("div", {
98850
+ "class": card_cssstyles.profitcontainer + ' d-flex align-items-center flex-sm-column px-2',
98851
+ style: {
98852
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
98853
+ }
98854
+ }, /*#__PURE__*/React.createElement("p", {
98855
+ "class": ' m-0 p-0 d-flex align-items-center ',
98856
+ style: {
98857
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
98858
+ }
98859
+ }, /*#__PURE__*/React.createElement("span", {
98860
+ style: {
98861
+ fontWeight: sectionproperties.profitcontainerfontweight
98862
+ }
98863
+ }, langdetect == 'en' ? sectionproperties.profitcontainercontenten : sectionproperties.profitcontainercontentar, ":", ' '), /*#__PURE__*/React.createElement("span", {
98864
+ "class": "mx-1",
98865
+ style: {
98866
+ fontWeight: sectionproperties.profitcontainersecondaryfontweight
98867
+ }
98868
+ }, 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.createElement("div", {
98869
+ "class": "col-lg-12 p-0 d-flex align-items-center",
98870
+ style: {
98871
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
98872
+ }
98873
+ }, /*#__PURE__*/React.createElement("p", {
98874
+ "class": "m-0 p-0",
98875
+ style: {
98876
+ fontSize: sectionproperties.quantityfontsize,
98877
+ color: sectionproperties.quantitycolor,
98878
+ fontWeight: sectionproperties.quantityfontweight
98879
+ }
98880
+ }, 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.createElement("div", {
98881
+ "class": "col-lg-12 p-0 d-flex align-items-center allcentered"
98882
+ }, /*#__PURE__*/React.createElement("div", {
98883
+ "class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mx-auto mb-2 w-md-70 ',
98884
+ style: {
98885
+ direction: 'ltr'
98886
+ }
98887
+ }, /*#__PURE__*/React.createElement("button", {
98888
+ "class": "".concat(card_cssstyles.minus_quantitybtn_icon_container),
98889
+ onClick: function onClick() {
98890
+ var tempitem = _objectSpread$6({}, item);
98891
+ tempitem.quantity = parseInt(tempitem.quantity);
98892
+ tempitem.quantity = tempitem.quantity - 1;
98893
+ if (tempitem.quantity <= 0) {
98894
+ tempitem.quantity = 0;
98895
+ }
98896
+ setitem(_objectSpread$6({}, tempitem));
98897
+ // addtocartfuncquantity('add', tempitem.quantity);
98898
+ },
98899
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
98900
+ }, /*#__PURE__*/React.createElement("i", {
98901
+ "class": "h-100 allcentered minusbtn"
98902
+ }, /*#__PURE__*/React.createElement(FiMinus, null))), /*#__PURE__*/React.createElement("span", {
98903
+ "class": ' d-flex align-items-center justify-content-center ',
98904
+ style: {
98905
+ fontSize: 14,
98906
+ fontWeight: 500,
98907
+ color: sectionproperties.cartBtnbgColor,
98908
+ flex: 1
98909
+ }
98910
+ }, addtocartbuttonrenderquantity()), /*#__PURE__*/React.createElement("button", {
98911
+ "class": "".concat(card_cssstyles.minus_quantitybtn_icon_container),
98912
+ onClick: function onClick() {
98913
+ var tempitem = _objectSpread$6({}, item);
98914
+ tempitem.quantity = parseInt(tempitem.quantity);
98915
+ tempitem.quantity = tempitem.quantity + 1;
98916
+ if (tempitem.quantity <= 0) {
98917
+ tempitem.quantity = 0;
98918
+ }
98919
+ setitem(_objectSpread$6({}, tempitem));
98920
+ // addtocartfuncquantity('add', tempitem.quantity);
98921
+ },
98922
+ disabled: AddtoCartMutationContext.isLoading == true ? true : false
98923
+ }, /*#__PURE__*/React.createElement("i", {
98924
+ "class": "h-100 allcentered addbtn"
98925
+ }, /*#__PURE__*/React.createElement(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.createElement("div", {
98926
+ "class": "col-12 p-0 d-flex flex-row align-items-center",
98927
+ style: {
98928
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
98929
+ visibility: item.quantavailtype == 'nolimit' ? 'visible' : item.currentquantity > 1 ? 'visible' : 'hidden'
98930
+ }
98931
+ }, /*#__PURE__*/React.createElement("p", {
98932
+ "class": "m-0 p-0",
98933
+ style: {
98934
+ width: 8,
98935
+ height: 8,
98936
+ borderRadius: 100,
98937
+ background: 'green'
98938
+ }
98939
+ }), /*#__PURE__*/React.createElement("p", {
98940
+ "class": 'm-0 mx-2 p-0',
98941
+ style: {
98942
+ color: 'green',
98943
+ fontSize: 13,
98944
+ fontWeight: 400
98945
+ }
98946
+ }, langdetect == 'en' ? 'In Stock' : 'متوفر')), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("div", {
98947
+ "class": "col-lg-12 p-0 d-flex align-items-center",
98948
+ style: {
98949
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
98950
+ }
98951
+ }, /*#__PURE__*/React.createElement("p", {
98952
+ "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
98953
+ onClick: function onClick() {
98954
+ var _authdetailsContext$i18;
98955
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.contactinfo.instid) == '68527dfef348b') {
98956
+ // alert(item.path);
98957
+ window.open((ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint) + item.image, '_blank');
98958
+ } else if (sectionproperties.showvariantscont == 'Show') {
98959
+ addtocartfunc();
98960
+ } else {
98961
+ var productidtobesend = null;
98962
+ if (sectionproperties.urlwithproductname == 'Yes') {
98963
+ productidtobesend = item.productendpointurl;
98964
+ } else {
98965
+ productidtobesend = item.productid;
98966
+ }
98967
+ if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
98968
+ if (item.extrafieldsarray.length == 0) {
98969
+ addtocartfunc();
98970
+ } else {
98971
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
98972
+ }
98973
+ } else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
98974
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
98975
+ } else {
98976
+ var productidtobesend = null;
98977
+ if (sectionproperties.urlwithproductname == 'Yes') {
98978
+ productidtobesend = item.productendpointurl;
98979
+ } else {
98980
+ productidtobesend = item.productid;
98981
+ }
98982
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid, item.skiplayeronclick);
98983
+ }
98984
+ }
98985
+ }
98986
+ }, addtocartbuttonrender())))), sectionproperties.showrating == 'Show' && item.productcanrate == 1 && /*#__PURE__*/React.createElement("div", {
98987
+ "class": "col-lg-12 d-flex align-items-center p-0",
98988
+ style: {
98989
+ justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
98990
+ }
98991
+ }, /*#__PURE__*/React.createElement(ReactStars, {
98992
+ count: 5,
98993
+ value: item.productoverallrate,
98994
+ edit: false,
98995
+ size: 16,
98996
+ emptyIcon: /*#__PURE__*/React.createElement("i", {
98997
+ className: "far fa-star",
98998
+ style: {
98999
+ color: '#cccccc'
99000
+ }
99001
+ }),
99002
+ halfIcon: /*#__PURE__*/React.createElement("i", {
99003
+ className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
99004
+ }),
99005
+ filledIcon: /*#__PURE__*/React.createElement("i", {
99006
+ className: "fa fa-star",
99007
+ style: {
99008
+ color: '#FAB400'
99009
+ }
99010
+ }),
99011
+ activeColor: "#ffd700"
99012
+ })))))));
98542
99013
  };
98543
99014
 
98544
99015
  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; }