tabexseriescomponents 0.0.66 → 0.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -46,7 +46,6 @@ var BackgroundSlideshow = require('react-background-slideshow');
46
46
  var _extends = require('@babel/runtime/helpers/extends');
47
47
  var reactSlideshowImage = require('react-slideshow-image');
48
48
  var bi = require('react-icons/bi');
49
- require('@mui/material');
50
49
 
51
50
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
52
51
 
@@ -2050,7 +2049,16 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
2050
2049
  }]),
2051
2050
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
2052
2051
  tabsarray = _useState8[0];
2053
- _useState8[1];
2052
+ _useState8[1]; // useEffect(() => {
2053
+ // if (Object.keys(StatePagePropertiesContext).length != 0) {
2054
+ // var secpropobj = {};
2055
+ // StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2056
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2057
+ // });
2058
+ // setsectionproperties({ ...secpropobj });
2059
+ // }
2060
+ // }, [StatePagePropertiesContext]);
2061
+
2054
2062
 
2055
2063
  React.useEffect(function () {
2056
2064
  var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
@@ -2062,17 +2070,20 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
2062
2070
  }
2063
2071
  }, []);
2064
2072
  React.useEffect(function () {
2065
- var _templatepropcontext$, _templatepropcontext$2;
2066
-
2067
2073
  // if (CurrentSrcTypeContext == 'workplace') {
2068
2074
  // if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2069
- var secpropobj = {};
2070
- templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
2071
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2072
- });
2073
- setsectionproperties(_objectSpread$1t({}, secpropobj));
2074
- setnavigationstyle('Upper Navigation'); // }
2075
+ if (CurrentPageId.length != 0) {
2076
+ var _templatepropcontext$, _templatepropcontext$2;
2077
+
2078
+ var secpropobj = {};
2079
+ templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
2080
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2081
+ });
2082
+ setsectionproperties(_objectSpread$1t({}, secpropobj));
2083
+ setnavigationstyle('Upper Navigation');
2084
+ } // }
2075
2085
  // }
2086
+
2076
2087
  }, [CurrentPageId]);
2077
2088
  var styles = {
2078
2089
  generalbtn: glamor.css({
@@ -2181,8 +2192,10 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
2181
2192
  }
2182
2193
  })), /*#__PURE__*/React__default["default"].createElement("div", {
2183
2194
  className: "col-lg-12 p-0 d-flex align-items-center justify-content-center mt-3"
2184
- }, /*#__PURE__*/React__default["default"].createElement(Link, {
2185
- to: StaticPagesLinksContext.viewcart
2195
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2196
+ onClick: function onClick() {
2197
+ routingcountext(StaticPagesLinksContext.viewcart);
2198
+ }
2186
2199
  }, /*#__PURE__*/React__default["default"].createElement("button", {
2187
2200
  className: "".concat(styles.generalbtn) + ' d-flex align-items-center justify-content-center '
2188
2201
  }, /*#__PURE__*/React__default["default"].createElement(fi.FiShoppingCart, {
@@ -8043,6 +8056,7 @@ var CardsSection = function CardsSection(props) {
8043
8056
  props.actions.ParentCollectionsForCollectionQueryArr;
8044
8057
  var setfetchingtype = props.actions.setfetchingtype;
8045
8058
  var fetchingtype = props.actions.fetchingtype;
8059
+ props.actions.addtofavoritescontext;
8046
8060
  var actions = props.actions;
8047
8061
 
8048
8062
  var _useState = React.useState(''),
@@ -32955,22 +32969,18 @@ var ModernCardWithQuantityButton = function ModernCardWithQuantityButton(props)
32955
32969
  setShowProductInfoModalContext(true);
32956
32970
  setProductIdProdutInfoModalContext(item.productid);
32957
32971
  }
32958
- } // onClick={() => {
32959
- // if (item.hasvariants == 0) {
32960
- // updatequantity('remove');
32961
- // } else {
32962
- // setShowProductInfoModalContext(true);
32963
- // setProductIdProdutInfoModalContext(item.productid);
32964
- // }
32965
- // }}
32966
-
32972
+ }
32967
32973
  }, /*#__PURE__*/React__default["default"].createElement("i", {
32968
32974
  "class": "fa fa-chevron-up"
32969
32975
  })), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
32970
32976
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container),
32971
32977
  onClick: function onClick() {
32972
- updatequantity('add');
32973
- addtocartfunc();
32978
+ if (item.hasvariants == 0) {
32979
+ updatequantity('add');
32980
+ } else {
32981
+ setShowProductInfoModalContext(true);
32982
+ setProductIdProdutInfoModalContext(item.productid);
32983
+ }
32974
32984
  }
32975
32985
  }, /*#__PURE__*/React__default["default"].createElement("i", {
32976
32986
  "class": "fa fa-chevron-up font-12"
@@ -32982,7 +32992,12 @@ var ModernCardWithQuantityButton = function ModernCardWithQuantityButton(props)
32982
32992
  transform: ' rotate(-180deg)'
32983
32993
  },
32984
32994
  onClick: function onClick() {
32985
- updatequantity('remove');
32995
+ if (item.hasvariants == 0) {
32996
+ updatequantity('remove');
32997
+ } else {
32998
+ setShowProductInfoModalContext(true);
32999
+ setProductIdProdutInfoModalContext(item.productid);
33000
+ }
32986
33001
  }
32987
33002
  }, /*#__PURE__*/React__default["default"].createElement("i", {
32988
33003
  "class": "fa fa-chevron-up"
@@ -32990,20 +33005,12 @@ var ModernCardWithQuantityButton = function ModernCardWithQuantityButton(props)
32990
33005
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container),
32991
33006
  onClick: function onClick() {
32992
33007
  if (item.hasvariants == 0) {
32993
- updatequantity('add'); // addtocartfunc('add');
33008
+ updatequantity('add');
32994
33009
  } else {
32995
33010
  setShowProductInfoModalContext(true);
32996
33011
  setProductIdProdutInfoModalContext(item.productid);
32997
33012
  }
32998
- } // onClick={() => {
32999
- // if (item.hasvariants == 0) {
33000
- // updatequantity('add');
33001
- // } else {
33002
- // setShowProductInfoModalContext(true);
33003
- // setProductIdProdutInfoModalContext(item.productid);
33004
- // }
33005
- // }}
33006
-
33013
+ }
33007
33014
  }, /*#__PURE__*/React__default["default"].createElement("i", {
33008
33015
  "class": "fa fa-chevron-up"
33009
33016
  })))), showquantity == false && /*#__PURE__*/React__default["default"].createElement("div", {
package/dist/index.esm.js CHANGED
@@ -44,7 +44,6 @@ import BackgroundSlideshow from 'react-background-slideshow';
44
44
  import _extends from '@babel/runtime/helpers/extends';
45
45
  import { Fade, Slide, Zoom } from 'react-slideshow-image';
46
46
  import { BiUser, BiLogOutCircle, BiChevronDown, BiTimeFive } from 'react-icons/bi';
47
- import '@mui/material';
48
47
 
49
48
  // import asd from './index2.module.css'
50
49
  // import asd from './categorycard3.module.css'
@@ -2007,7 +2006,16 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
2007
2006
  }]),
2008
2007
  _useState8 = _slicedToArray(_useState7, 2),
2009
2008
  tabsarray = _useState8[0];
2010
- _useState8[1];
2009
+ _useState8[1]; // useEffect(() => {
2010
+ // if (Object.keys(StatePagePropertiesContext).length != 0) {
2011
+ // var secpropobj = {};
2012
+ // StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2013
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2014
+ // });
2015
+ // setsectionproperties({ ...secpropobj });
2016
+ // }
2017
+ // }, [StatePagePropertiesContext]);
2018
+
2011
2019
 
2012
2020
  useEffect(function () {
2013
2021
  var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
@@ -2019,17 +2027,20 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
2019
2027
  }
2020
2028
  }, []);
2021
2029
  useEffect(function () {
2022
- var _templatepropcontext$, _templatepropcontext$2;
2023
-
2024
2030
  // if (CurrentSrcTypeContext == 'workplace') {
2025
2031
  // if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2026
- var secpropobj = {};
2027
- templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
2028
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2029
- });
2030
- setsectionproperties(_objectSpread$1t({}, secpropobj));
2031
- setnavigationstyle('Upper Navigation'); // }
2032
+ if (CurrentPageId.length != 0) {
2033
+ var _templatepropcontext$, _templatepropcontext$2;
2034
+
2035
+ var secpropobj = {};
2036
+ templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
2037
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2038
+ });
2039
+ setsectionproperties(_objectSpread$1t({}, secpropobj));
2040
+ setnavigationstyle('Upper Navigation');
2041
+ } // }
2032
2042
  // }
2043
+
2033
2044
  }, [CurrentPageId]);
2034
2045
  var styles = {
2035
2046
  generalbtn: css({
@@ -2138,8 +2149,10 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
2138
2149
  }
2139
2150
  })), /*#__PURE__*/React.createElement("div", {
2140
2151
  className: "col-lg-12 p-0 d-flex align-items-center justify-content-center mt-3"
2141
- }, /*#__PURE__*/React.createElement(Link, {
2142
- to: StaticPagesLinksContext.viewcart
2152
+ }, /*#__PURE__*/React.createElement("div", {
2153
+ onClick: function onClick() {
2154
+ routingcountext(StaticPagesLinksContext.viewcart);
2155
+ }
2143
2156
  }, /*#__PURE__*/React.createElement("button", {
2144
2157
  className: "".concat(styles.generalbtn) + ' d-flex align-items-center justify-content-center '
2145
2158
  }, /*#__PURE__*/React.createElement(FiShoppingCart, {
@@ -8000,6 +8013,7 @@ var CardsSection = function CardsSection(props) {
8000
8013
  props.actions.ParentCollectionsForCollectionQueryArr;
8001
8014
  var setfetchingtype = props.actions.setfetchingtype;
8002
8015
  var fetchingtype = props.actions.fetchingtype;
8016
+ props.actions.addtofavoritescontext;
8003
8017
  var actions = props.actions;
8004
8018
 
8005
8019
  var _useState = useState(''),
@@ -32912,22 +32926,18 @@ var ModernCardWithQuantityButton = function ModernCardWithQuantityButton(props)
32912
32926
  setShowProductInfoModalContext(true);
32913
32927
  setProductIdProdutInfoModalContext(item.productid);
32914
32928
  }
32915
- } // onClick={() => {
32916
- // if (item.hasvariants == 0) {
32917
- // updatequantity('remove');
32918
- // } else {
32919
- // setShowProductInfoModalContext(true);
32920
- // setProductIdProdutInfoModalContext(item.productid);
32921
- // }
32922
- // }}
32923
-
32929
+ }
32924
32930
  }, /*#__PURE__*/React.createElement("i", {
32925
32931
  "class": "fa fa-chevron-up"
32926
32932
  })), langdetect == 'ar' && /*#__PURE__*/React.createElement("span", {
32927
32933
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container),
32928
32934
  onClick: function onClick() {
32929
- updatequantity('add');
32930
- addtocartfunc();
32935
+ if (item.hasvariants == 0) {
32936
+ updatequantity('add');
32937
+ } else {
32938
+ setShowProductInfoModalContext(true);
32939
+ setProductIdProdutInfoModalContext(item.productid);
32940
+ }
32931
32941
  }
32932
32942
  }, /*#__PURE__*/React.createElement("i", {
32933
32943
  "class": "fa fa-chevron-up font-12"
@@ -32939,7 +32949,12 @@ var ModernCardWithQuantityButton = function ModernCardWithQuantityButton(props)
32939
32949
  transform: ' rotate(-180deg)'
32940
32950
  },
32941
32951
  onClick: function onClick() {
32942
- updatequantity('remove');
32952
+ if (item.hasvariants == 0) {
32953
+ updatequantity('remove');
32954
+ } else {
32955
+ setShowProductInfoModalContext(true);
32956
+ setProductIdProdutInfoModalContext(item.productid);
32957
+ }
32943
32958
  }
32944
32959
  }, /*#__PURE__*/React.createElement("i", {
32945
32960
  "class": "fa fa-chevron-up"
@@ -32947,20 +32962,12 @@ var ModernCardWithQuantityButton = function ModernCardWithQuantityButton(props)
32947
32962
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container),
32948
32963
  onClick: function onClick() {
32949
32964
  if (item.hasvariants == 0) {
32950
- updatequantity('add'); // addtocartfunc('add');
32965
+ updatequantity('add');
32951
32966
  } else {
32952
32967
  setShowProductInfoModalContext(true);
32953
32968
  setProductIdProdutInfoModalContext(item.productid);
32954
32969
  }
32955
- } // onClick={() => {
32956
- // if (item.hasvariants == 0) {
32957
- // updatequantity('add');
32958
- // } else {
32959
- // setShowProductInfoModalContext(true);
32960
- // setProductIdProdutInfoModalContext(item.productid);
32961
- // }
32962
- // }}
32963
-
32970
+ }
32964
32971
  }, /*#__PURE__*/React.createElement("i", {
32965
32972
  "class": "fa fa-chevron-up"
32966
32973
  })))), showquantity == false && /*#__PURE__*/React.createElement("div", {
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-icons/ai'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('react-facebook-login/dist/facebook-login-render-props'), require('react-icons/fa'), require('react-image-gallery'), require('react-icons/md'), require('react-show-more-text'), require('react-router'), require('imagekitio-react'), require('react-icons/fi'), require('react-icons/hi'), require('react-icons/ri'), require('react-icons/cg'), require('react-icons/bs'), require('react-icons/io5'), require('@babel/runtime/helpers/toConsumableArray'), require('react-bootstrap'), require('react-icons/go'), require('react-icons/io'), require('react-router-dom'), require('react-textarea-autosize'), require('react-query'), require('react-notifications'), require('react-icons/gr'), require('react-accessible-accordion'), require('react-bootstrap/Dropdown'), require('react-intersection-observer'), require('react-horizontal-scrolling-menu'), require('react-select'), require('react-background-slideshow'), require('@babel/runtime/helpers/extends'), require('react-slideshow-image'), require('react-icons/bi'), require('@mui/material')) :
3
- typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-icons/ai', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', 'react-facebook-login/dist/facebook-login-render-props', 'react-icons/fa', 'react-image-gallery', 'react-icons/md', 'react-show-more-text', 'react-router', 'imagekitio-react', 'react-icons/fi', 'react-icons/hi', 'react-icons/ri', 'react-icons/cg', 'react-icons/bs', 'react-icons/io5', '@babel/runtime/helpers/toConsumableArray', 'react-bootstrap', 'react-icons/go', 'react-icons/io', 'react-router-dom', 'react-textarea-autosize', 'react-query', 'react-notifications', 'react-icons/gr', 'react-accessible-accordion', 'react-bootstrap/Dropdown', 'react-intersection-observer', 'react-horizontal-scrolling-menu', 'react-select', 'react-background-slideshow', '@babel/runtime/helpers/extends', 'react-slideshow-image', 'react-icons/bi', '@mui/material'], factory) :
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-icons/ai'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('react-facebook-login/dist/facebook-login-render-props'), require('react-icons/fa'), require('react-image-gallery'), require('react-icons/md'), require('react-show-more-text'), require('react-router'), require('imagekitio-react'), require('react-icons/fi'), require('react-icons/hi'), require('react-icons/ri'), require('react-icons/cg'), require('react-icons/bs'), require('react-icons/io5'), require('@babel/runtime/helpers/toConsumableArray'), require('react-bootstrap'), require('react-icons/go'), require('react-icons/io'), require('react-router-dom'), require('react-textarea-autosize'), require('react-query'), require('react-notifications'), require('react-icons/gr'), require('react-accessible-accordion'), require('react-bootstrap/Dropdown'), require('react-intersection-observer'), require('react-horizontal-scrolling-menu'), require('react-select'), require('react-background-slideshow'), require('@babel/runtime/helpers/extends'), require('react-slideshow-image'), require('react-icons/bi')) :
3
+ typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-icons/ai', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', 'react-facebook-login/dist/facebook-login-render-props', 'react-icons/fa', 'react-image-gallery', 'react-icons/md', 'react-show-more-text', 'react-router', 'imagekitio-react', 'react-icons/fi', 'react-icons/hi', 'react-icons/ri', 'react-icons/cg', 'react-icons/bs', 'react-icons/io5', '@babel/runtime/helpers/toConsumableArray', 'react-bootstrap', 'react-icons/go', 'react-icons/io', 'react-router-dom', 'react-textarea-autosize', 'react-query', 'react-notifications', 'react-icons/gr', 'react-accessible-accordion', 'react-bootstrap/Dropdown', 'react-intersection-observer', 'react-horizontal-scrolling-menu', 'react-select', 'react-background-slideshow', '@babel/runtime/helpers/extends', 'react-slideshow-image', 'react-icons/bi'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._defineProperty, global.Cookies, global.ai, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FacebookLogin, global.fa, global.ImageGallery, global.md, global.ShowMoreText, global.reactRouter, global.imagekitioReact, global.fi, global.hi, global.ri, global.cg, global.bs, global.io5, global._toConsumableArray, global.reactBootstrap, global.go, global.io, null, global.TextareaAutosize, null, null, global.gr, global.reactAccessibleAccordion, global.Dropdown, global.reactIntersectionObserver, global.reactHorizontalScrollingMenu, global.Select$2, global.BackgroundSlideshow, global._extends, global.reactSlideshowImage, global.bi));
5
5
  })(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _defineProperty, Cookies, ai, reactCssfxLoading, glamor, google, jwtDecode, FacebookLogin, fa, ImageGallery, md, ShowMoreText, reactRouter, imagekitioReact, fi, hi, ri, cg, bs, io5, _toConsumableArray, reactBootstrap, go, io, reactRouterDom, TextareaAutosize, reactQuery, reactNotifications, gr, reactAccessibleAccordion, Dropdown, reactIntersectionObserver, reactHorizontalScrollingMenu, Select$2, BackgroundSlideshow, _extends, reactSlideshowImage, bi) { 'use strict';
6
6
 
@@ -1988,7 +1988,16 @@
1988
1988
  }]),
1989
1989
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
1990
1990
  tabsarray = _useState8[0];
1991
- _useState8[1];
1991
+ _useState8[1]; // useEffect(() => {
1992
+ // if (Object.keys(StatePagePropertiesContext).length != 0) {
1993
+ // var secpropobj = {};
1994
+ // StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
1995
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1996
+ // });
1997
+ // setsectionproperties({ ...secpropobj });
1998
+ // }
1999
+ // }, [StatePagePropertiesContext]);
2000
+
1992
2001
 
1993
2002
  React.useEffect(function () {
1994
2003
  var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
@@ -2000,17 +2009,20 @@
2000
2009
  }
2001
2010
  }, []);
2002
2011
  React.useEffect(function () {
2003
- var _templatepropcontext$, _templatepropcontext$2;
2004
-
2005
2012
  // if (CurrentSrcTypeContext == 'workplace') {
2006
2013
  // if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2007
- var secpropobj = {};
2008
- templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
2009
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2010
- });
2011
- setsectionproperties(_objectSpread$1t({}, secpropobj));
2012
- setnavigationstyle('Upper Navigation'); // }
2014
+ if (CurrentPageId.length != 0) {
2015
+ var _templatepropcontext$, _templatepropcontext$2;
2016
+
2017
+ var secpropobj = {};
2018
+ templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
2019
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2020
+ });
2021
+ setsectionproperties(_objectSpread$1t({}, secpropobj));
2022
+ setnavigationstyle('Upper Navigation');
2023
+ } // }
2013
2024
  // }
2025
+
2014
2026
  }, [CurrentPageId]);
2015
2027
  var styles = {
2016
2028
  generalbtn: glamor.css({
@@ -2119,8 +2131,10 @@
2119
2131
  }
2120
2132
  })), /*#__PURE__*/React__default["default"].createElement("div", {
2121
2133
  className: "col-lg-12 p-0 d-flex align-items-center justify-content-center mt-3"
2122
- }, /*#__PURE__*/React__default["default"].createElement(Link, {
2123
- to: StaticPagesLinksContext.viewcart
2134
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2135
+ onClick: function onClick() {
2136
+ routingcountext(StaticPagesLinksContext.viewcart);
2137
+ }
2124
2138
  }, /*#__PURE__*/React__default["default"].createElement("button", {
2125
2139
  className: "".concat(styles.generalbtn) + ' d-flex align-items-center justify-content-center '
2126
2140
  }, /*#__PURE__*/React__default["default"].createElement(fi.FiShoppingCart, {
@@ -7981,6 +7995,7 @@
7981
7995
  props.actions.ParentCollectionsForCollectionQueryArr;
7982
7996
  var setfetchingtype = props.actions.setfetchingtype;
7983
7997
  var fetchingtype = props.actions.fetchingtype;
7998
+ props.actions.addtofavoritescontext;
7984
7999
  var actions = props.actions;
7985
8000
 
7986
8001
  var _useState = React.useState(''),
@@ -32893,22 +32908,18 @@
32893
32908
  setShowProductInfoModalContext(true);
32894
32909
  setProductIdProdutInfoModalContext(item.productid);
32895
32910
  }
32896
- } // onClick={() => {
32897
- // if (item.hasvariants == 0) {
32898
- // updatequantity('remove');
32899
- // } else {
32900
- // setShowProductInfoModalContext(true);
32901
- // setProductIdProdutInfoModalContext(item.productid);
32902
- // }
32903
- // }}
32904
-
32911
+ }
32905
32912
  }, /*#__PURE__*/React__default["default"].createElement("i", {
32906
32913
  "class": "fa fa-chevron-up"
32907
32914
  })), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
32908
32915
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container),
32909
32916
  onClick: function onClick() {
32910
- updatequantity('add');
32911
- addtocartfunc();
32917
+ if (item.hasvariants == 0) {
32918
+ updatequantity('add');
32919
+ } else {
32920
+ setShowProductInfoModalContext(true);
32921
+ setProductIdProdutInfoModalContext(item.productid);
32922
+ }
32912
32923
  }
32913
32924
  }, /*#__PURE__*/React__default["default"].createElement("i", {
32914
32925
  "class": "fa fa-chevron-up font-12"
@@ -32920,7 +32931,12 @@
32920
32931
  transform: ' rotate(-180deg)'
32921
32932
  },
32922
32933
  onClick: function onClick() {
32923
- updatequantity('remove');
32934
+ if (item.hasvariants == 0) {
32935
+ updatequantity('remove');
32936
+ } else {
32937
+ setShowProductInfoModalContext(true);
32938
+ setProductIdProdutInfoModalContext(item.productid);
32939
+ }
32924
32940
  }
32925
32941
  }, /*#__PURE__*/React__default["default"].createElement("i", {
32926
32942
  "class": "fa fa-chevron-up"
@@ -32928,20 +32944,12 @@
32928
32944
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container),
32929
32945
  onClick: function onClick() {
32930
32946
  if (item.hasvariants == 0) {
32931
- updatequantity('add'); // addtocartfunc('add');
32947
+ updatequantity('add');
32932
32948
  } else {
32933
32949
  setShowProductInfoModalContext(true);
32934
32950
  setProductIdProdutInfoModalContext(item.productid);
32935
32951
  }
32936
- } // onClick={() => {
32937
- // if (item.hasvariants == 0) {
32938
- // updatequantity('add');
32939
- // } else {
32940
- // setShowProductInfoModalContext(true);
32941
- // setProductIdProdutInfoModalContext(item.productid);
32942
- // }
32943
- // }}
32944
-
32952
+ }
32945
32953
  }, /*#__PURE__*/React__default["default"].createElement("i", {
32946
32954
  "class": "fa fa-chevron-up"
32947
32955
  })))), showquantity == false && /*#__PURE__*/React__default["default"].createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {