tabexseriescomponents 0.0.308 → 0.0.311

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
@@ -51800,23 +51800,41 @@ var Card23 = function Card23(props) {
51800
51800
  var _props$cardinfoitempr, _props$cardinfoitempr2;
51801
51801
  setitem(props.cardinfoitemprops);
51802
51802
  // alert(JSON.stringify(props.cardinfoitemprops));
51803
+ // if (props?.cardinfoitemprops?.productimages?.length == 1) {
51804
+ // setsecondimage(props?.cardinfoitemprops?.image);
51805
+ // } else {
51806
+ // if (props?.cardinfoitemprops?.productimages[0]?.path == props?.cardinfoitemprops?.image) {
51807
+ // if (props?.cardinfoitemprops?.productimages?.length > 2) {
51808
+ // if (props?.cardinfoitemprops?.productimages[1]?.length != 0) {
51809
+ // setsecondimage(props?.cardinfoitemprops?.productimages[1]?.path);
51810
+ // }
51811
+ // } else {
51812
+ // setsecondimage(props?.cardinfoitemprops?.image);
51813
+ // }
51814
+ // } else {
51815
+ // setsecondimage(props?.cardinfoitemprops?.productimages[0]?.path);
51816
+ // }
51817
+ // }
51803
51818
  if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 ? void 0 : (_props$cardinfoitempr2 = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.length) == 1) {
51804
51819
  var _props$cardinfoitempr3;
51805
51820
  setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.image);
51806
51821
  } else {
51807
- var _props$cardinfoitempr4, _props$cardinfoitempr5, _props$cardinfoitempr6;
51808
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : (_props$cardinfoitempr5 = _props$cardinfoitempr4.productimages[0]) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.image)) {
51809
- var _props$cardinfoitempr7, _props$cardinfoitempr8;
51810
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
51811
- var _props$cardinfoitempr9, _props$cardinfoitempr10;
51812
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : (_props$cardinfoitempr10 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.path);
51822
+ var _props$cardinfoitempr4, _props$cardinfoitempr5;
51823
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages) != undefined && Array.isArray(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages)) {
51824
+ var _props$cardinfoitempr6, _props$cardinfoitempr7, _props$cardinfoitempr8, _props$cardinfoitempr9;
51825
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.productimages[0]) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[0]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.image)) {
51826
+ var _props$cardinfoitempr10, _props$cardinfoitempr11;
51827
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : (_props$cardinfoitempr11 = _props$cardinfoitempr10.productimages[1]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.length) != 0) {
51828
+ var _props$cardinfoitempr12, _props$cardinfoitempr13;
51829
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[1]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
51830
+ } else {
51831
+ var _props$cardinfoitempr14;
51832
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr14 = props.cardinfoitemprops) === null || _props$cardinfoitempr14 === void 0 ? void 0 : _props$cardinfoitempr14.image);
51833
+ }
51813
51834
  } else {
51814
- var _props$cardinfoitempr11;
51815
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.image);
51835
+ var _props$cardinfoitempr15, _props$cardinfoitempr16;
51836
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr15 = props.cardinfoitemprops) === null || _props$cardinfoitempr15 === void 0 ? void 0 : (_props$cardinfoitempr16 = _props$cardinfoitempr15.productimages[0]) === null || _props$cardinfoitempr16 === void 0 ? void 0 : _props$cardinfoitempr16.path);
51816
51837
  }
51817
- } else {
51818
- var _props$cardinfoitempr12, _props$cardinfoitempr13;
51819
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[0]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
51820
51838
  }
51821
51839
  }
51822
51840
  }, [props.cardinfoitemprops]);
@@ -58202,24 +58220,26 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
58202
58220
  React.useEffect(function () {
58203
58221
  var _props$cardinfoitempr, _props$cardinfoitempr2;
58204
58222
  setitem(props.cardinfoitemprops);
58205
- // alert(JSON.stringify(props.cardinfoitemprops));
58206
58223
  if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 ? void 0 : (_props$cardinfoitempr2 = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.length) == 1) {
58207
58224
  var _props$cardinfoitempr3;
58208
58225
  setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.image);
58209
58226
  } else {
58210
- var _props$cardinfoitempr4, _props$cardinfoitempr5, _props$cardinfoitempr6;
58211
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : (_props$cardinfoitempr5 = _props$cardinfoitempr4.productimages[0]) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.image)) {
58212
- var _props$cardinfoitempr7, _props$cardinfoitempr8;
58213
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
58214
- var _props$cardinfoitempr9, _props$cardinfoitempr10;
58215
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : (_props$cardinfoitempr10 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.path);
58227
+ var _props$cardinfoitempr4, _props$cardinfoitempr5;
58228
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages) != undefined && Array.isArray(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages)) {
58229
+ var _props$cardinfoitempr6, _props$cardinfoitempr7, _props$cardinfoitempr8, _props$cardinfoitempr9;
58230
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.productimages[0]) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[0]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.image)) {
58231
+ var _props$cardinfoitempr10, _props$cardinfoitempr11;
58232
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : (_props$cardinfoitempr11 = _props$cardinfoitempr10.productimages[1]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.length) != 0) {
58233
+ var _props$cardinfoitempr12, _props$cardinfoitempr13;
58234
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[1]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
58235
+ } else {
58236
+ var _props$cardinfoitempr14;
58237
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr14 = props.cardinfoitemprops) === null || _props$cardinfoitempr14 === void 0 ? void 0 : _props$cardinfoitempr14.image);
58238
+ }
58216
58239
  } else {
58217
- var _props$cardinfoitempr11;
58218
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.image);
58240
+ var _props$cardinfoitempr15, _props$cardinfoitempr16;
58241
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr15 = props.cardinfoitemprops) === null || _props$cardinfoitempr15 === void 0 ? void 0 : (_props$cardinfoitempr16 = _props$cardinfoitempr15.productimages[0]) === null || _props$cardinfoitempr16 === void 0 ? void 0 : _props$cardinfoitempr16.path);
58219
58242
  }
58220
- } else {
58221
- var _props$cardinfoitempr12, _props$cardinfoitempr13;
58222
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[0]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
58223
58243
  }
58224
58244
  }
58225
58245
  }, [props.cardinfoitemprops]);
package/dist/index.esm.js CHANGED
@@ -51753,23 +51753,41 @@ var Card23 = function Card23(props) {
51753
51753
  var _props$cardinfoitempr, _props$cardinfoitempr2;
51754
51754
  setitem(props.cardinfoitemprops);
51755
51755
  // alert(JSON.stringify(props.cardinfoitemprops));
51756
+ // if (props?.cardinfoitemprops?.productimages?.length == 1) {
51757
+ // setsecondimage(props?.cardinfoitemprops?.image);
51758
+ // } else {
51759
+ // if (props?.cardinfoitemprops?.productimages[0]?.path == props?.cardinfoitemprops?.image) {
51760
+ // if (props?.cardinfoitemprops?.productimages?.length > 2) {
51761
+ // if (props?.cardinfoitemprops?.productimages[1]?.length != 0) {
51762
+ // setsecondimage(props?.cardinfoitemprops?.productimages[1]?.path);
51763
+ // }
51764
+ // } else {
51765
+ // setsecondimage(props?.cardinfoitemprops?.image);
51766
+ // }
51767
+ // } else {
51768
+ // setsecondimage(props?.cardinfoitemprops?.productimages[0]?.path);
51769
+ // }
51770
+ // }
51756
51771
  if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 ? void 0 : (_props$cardinfoitempr2 = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.length) == 1) {
51757
51772
  var _props$cardinfoitempr3;
51758
51773
  setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.image);
51759
51774
  } else {
51760
- var _props$cardinfoitempr4, _props$cardinfoitempr5, _props$cardinfoitempr6;
51761
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : (_props$cardinfoitempr5 = _props$cardinfoitempr4.productimages[0]) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.image)) {
51762
- var _props$cardinfoitempr7, _props$cardinfoitempr8;
51763
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
51764
- var _props$cardinfoitempr9, _props$cardinfoitempr10;
51765
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : (_props$cardinfoitempr10 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.path);
51775
+ var _props$cardinfoitempr4, _props$cardinfoitempr5;
51776
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages) != undefined && Array.isArray(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages)) {
51777
+ var _props$cardinfoitempr6, _props$cardinfoitempr7, _props$cardinfoitempr8, _props$cardinfoitempr9;
51778
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.productimages[0]) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[0]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.image)) {
51779
+ var _props$cardinfoitempr10, _props$cardinfoitempr11;
51780
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : (_props$cardinfoitempr11 = _props$cardinfoitempr10.productimages[1]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.length) != 0) {
51781
+ var _props$cardinfoitempr12, _props$cardinfoitempr13;
51782
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[1]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
51783
+ } else {
51784
+ var _props$cardinfoitempr14;
51785
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr14 = props.cardinfoitemprops) === null || _props$cardinfoitempr14 === void 0 ? void 0 : _props$cardinfoitempr14.image);
51786
+ }
51766
51787
  } else {
51767
- var _props$cardinfoitempr11;
51768
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.image);
51788
+ var _props$cardinfoitempr15, _props$cardinfoitempr16;
51789
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr15 = props.cardinfoitemprops) === null || _props$cardinfoitempr15 === void 0 ? void 0 : (_props$cardinfoitempr16 = _props$cardinfoitempr15.productimages[0]) === null || _props$cardinfoitempr16 === void 0 ? void 0 : _props$cardinfoitempr16.path);
51769
51790
  }
51770
- } else {
51771
- var _props$cardinfoitempr12, _props$cardinfoitempr13;
51772
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[0]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
51773
51791
  }
51774
51792
  }
51775
51793
  }, [props.cardinfoitemprops]);
@@ -58155,24 +58173,26 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
58155
58173
  useEffect(function () {
58156
58174
  var _props$cardinfoitempr, _props$cardinfoitempr2;
58157
58175
  setitem(props.cardinfoitemprops);
58158
- // alert(JSON.stringify(props.cardinfoitemprops));
58159
58176
  if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 ? void 0 : (_props$cardinfoitempr2 = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.length) == 1) {
58160
58177
  var _props$cardinfoitempr3;
58161
58178
  setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.image);
58162
58179
  } else {
58163
- var _props$cardinfoitempr4, _props$cardinfoitempr5, _props$cardinfoitempr6;
58164
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : (_props$cardinfoitempr5 = _props$cardinfoitempr4.productimages[0]) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.image)) {
58165
- var _props$cardinfoitempr7, _props$cardinfoitempr8;
58166
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
58167
- var _props$cardinfoitempr9, _props$cardinfoitempr10;
58168
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : (_props$cardinfoitempr10 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.path);
58180
+ var _props$cardinfoitempr4, _props$cardinfoitempr5;
58181
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages) != undefined && Array.isArray(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages)) {
58182
+ var _props$cardinfoitempr6, _props$cardinfoitempr7, _props$cardinfoitempr8, _props$cardinfoitempr9;
58183
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.productimages[0]) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[0]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.image)) {
58184
+ var _props$cardinfoitempr10, _props$cardinfoitempr11;
58185
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : (_props$cardinfoitempr11 = _props$cardinfoitempr10.productimages[1]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.length) != 0) {
58186
+ var _props$cardinfoitempr12, _props$cardinfoitempr13;
58187
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[1]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
58188
+ } else {
58189
+ var _props$cardinfoitempr14;
58190
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr14 = props.cardinfoitemprops) === null || _props$cardinfoitempr14 === void 0 ? void 0 : _props$cardinfoitempr14.image);
58191
+ }
58169
58192
  } else {
58170
- var _props$cardinfoitempr11;
58171
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.image);
58193
+ var _props$cardinfoitempr15, _props$cardinfoitempr16;
58194
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr15 = props.cardinfoitemprops) === null || _props$cardinfoitempr15 === void 0 ? void 0 : (_props$cardinfoitempr16 = _props$cardinfoitempr15.productimages[0]) === null || _props$cardinfoitempr16 === void 0 ? void 0 : _props$cardinfoitempr16.path);
58172
58195
  }
58173
- } else {
58174
- var _props$cardinfoitempr12, _props$cardinfoitempr13;
58175
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[0]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
58176
58196
  }
58177
58197
  }
58178
58198
  }, [props.cardinfoitemprops]);
package/dist/index.umd.js CHANGED
@@ -51645,23 +51645,41 @@
51645
51645
  var _props$cardinfoitempr, _props$cardinfoitempr2;
51646
51646
  setitem(props.cardinfoitemprops);
51647
51647
  // alert(JSON.stringify(props.cardinfoitemprops));
51648
+ // if (props?.cardinfoitemprops?.productimages?.length == 1) {
51649
+ // setsecondimage(props?.cardinfoitemprops?.image);
51650
+ // } else {
51651
+ // if (props?.cardinfoitemprops?.productimages[0]?.path == props?.cardinfoitemprops?.image) {
51652
+ // if (props?.cardinfoitemprops?.productimages?.length > 2) {
51653
+ // if (props?.cardinfoitemprops?.productimages[1]?.length != 0) {
51654
+ // setsecondimage(props?.cardinfoitemprops?.productimages[1]?.path);
51655
+ // }
51656
+ // } else {
51657
+ // setsecondimage(props?.cardinfoitemprops?.image);
51658
+ // }
51659
+ // } else {
51660
+ // setsecondimage(props?.cardinfoitemprops?.productimages[0]?.path);
51661
+ // }
51662
+ // }
51648
51663
  if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 ? void 0 : (_props$cardinfoitempr2 = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.length) == 1) {
51649
51664
  var _props$cardinfoitempr3;
51650
51665
  setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.image);
51651
51666
  } else {
51652
- var _props$cardinfoitempr4, _props$cardinfoitempr5, _props$cardinfoitempr6;
51653
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : (_props$cardinfoitempr5 = _props$cardinfoitempr4.productimages[0]) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.image)) {
51654
- var _props$cardinfoitempr7, _props$cardinfoitempr8;
51655
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
51656
- var _props$cardinfoitempr9, _props$cardinfoitempr10;
51657
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : (_props$cardinfoitempr10 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.path);
51667
+ var _props$cardinfoitempr4, _props$cardinfoitempr5;
51668
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages) != undefined && Array.isArray(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages)) {
51669
+ var _props$cardinfoitempr6, _props$cardinfoitempr7, _props$cardinfoitempr8, _props$cardinfoitempr9;
51670
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.productimages[0]) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[0]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.image)) {
51671
+ var _props$cardinfoitempr10, _props$cardinfoitempr11;
51672
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : (_props$cardinfoitempr11 = _props$cardinfoitempr10.productimages[1]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.length) != 0) {
51673
+ var _props$cardinfoitempr12, _props$cardinfoitempr13;
51674
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[1]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
51675
+ } else {
51676
+ var _props$cardinfoitempr14;
51677
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr14 = props.cardinfoitemprops) === null || _props$cardinfoitempr14 === void 0 ? void 0 : _props$cardinfoitempr14.image);
51678
+ }
51658
51679
  } else {
51659
- var _props$cardinfoitempr11;
51660
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.image);
51680
+ var _props$cardinfoitempr15, _props$cardinfoitempr16;
51681
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr15 = props.cardinfoitemprops) === null || _props$cardinfoitempr15 === void 0 ? void 0 : (_props$cardinfoitempr16 = _props$cardinfoitempr15.productimages[0]) === null || _props$cardinfoitempr16 === void 0 ? void 0 : _props$cardinfoitempr16.path);
51661
51682
  }
51662
- } else {
51663
- var _props$cardinfoitempr12, _props$cardinfoitempr13;
51664
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[0]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
51665
51683
  }
51666
51684
  }
51667
51685
  }, [props.cardinfoitemprops]);
@@ -58047,24 +58065,26 @@
58047
58065
  React.useEffect(function () {
58048
58066
  var _props$cardinfoitempr, _props$cardinfoitempr2;
58049
58067
  setitem(props.cardinfoitemprops);
58050
- // alert(JSON.stringify(props.cardinfoitemprops));
58051
58068
  if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 ? void 0 : (_props$cardinfoitempr2 = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.length) == 1) {
58052
58069
  var _props$cardinfoitempr3;
58053
58070
  setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.image);
58054
58071
  } else {
58055
- var _props$cardinfoitempr4, _props$cardinfoitempr5, _props$cardinfoitempr6;
58056
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : (_props$cardinfoitempr5 = _props$cardinfoitempr4.productimages[0]) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.image)) {
58057
- var _props$cardinfoitempr7, _props$cardinfoitempr8;
58058
- if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
58059
- var _props$cardinfoitempr9, _props$cardinfoitempr10;
58060
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : (_props$cardinfoitempr10 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.path);
58072
+ var _props$cardinfoitempr4, _props$cardinfoitempr5;
58073
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages) != undefined && Array.isArray(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages)) {
58074
+ var _props$cardinfoitempr6, _props$cardinfoitempr7, _props$cardinfoitempr8, _props$cardinfoitempr9;
58075
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.productimages[0]) != undefined && (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : (_props$cardinfoitempr8 = _props$cardinfoitempr7.productimages[0]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.path) == (props === null || props === void 0 ? void 0 : (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.image)) {
58076
+ var _props$cardinfoitempr10, _props$cardinfoitempr11;
58077
+ if ((props === null || props === void 0 ? void 0 : (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : (_props$cardinfoitempr11 = _props$cardinfoitempr10.productimages[1]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.length) != 0) {
58078
+ var _props$cardinfoitempr12, _props$cardinfoitempr13;
58079
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[1]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
58080
+ } else {
58081
+ var _props$cardinfoitempr14;
58082
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr14 = props.cardinfoitemprops) === null || _props$cardinfoitempr14 === void 0 ? void 0 : _props$cardinfoitempr14.image);
58083
+ }
58061
58084
  } else {
58062
- var _props$cardinfoitempr11;
58063
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.image);
58085
+ var _props$cardinfoitempr15, _props$cardinfoitempr16;
58086
+ setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr15 = props.cardinfoitemprops) === null || _props$cardinfoitempr15 === void 0 ? void 0 : (_props$cardinfoitempr16 = _props$cardinfoitempr15.productimages[0]) === null || _props$cardinfoitempr16 === void 0 ? void 0 : _props$cardinfoitempr16.path);
58064
58087
  }
58065
- } else {
58066
- var _props$cardinfoitempr12, _props$cardinfoitempr13;
58067
- setsecondimage(props === null || props === void 0 ? void 0 : (_props$cardinfoitempr12 = props.cardinfoitemprops) === null || _props$cardinfoitempr12 === void 0 ? void 0 : (_props$cardinfoitempr13 = _props$cardinfoitempr12.productimages[0]) === null || _props$cardinfoitempr13 === void 0 ? void 0 : _props$cardinfoitempr13.path);
58068
58088
  }
58069
58089
  }
58070
58090
  }, [props.cardinfoitemprops]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.308",
3
+ "version": "0.0.311",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {