tabexseriescomponents 0.0.335 → 0.0.336
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 +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1535,9 +1535,9 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1535
1535
|
React.useEffect(function () {
|
|
1536
1536
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
1537
1537
|
var price = '';
|
|
1538
|
-
if (fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
1538
|
+
if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
1539
1539
|
price = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
1540
|
-
} else if (fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
1540
|
+
} else if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
1541
1541
|
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
1542
1542
|
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : (_fetchProductInfoQuer4 = _fetchProductInfoQuer3.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.hassale) == 1) {
|
|
1543
1543
|
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
@@ -8352,7 +8352,7 @@ var Checkout = function Checkout(props) {
|
|
|
8352
8352
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8353
8353
|
className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
|
|
8354
8354
|
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8355
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2"
|
|
8355
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2 flex-column"
|
|
8356
8356
|
}, item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
|
|
8357
8357
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8358
8358
|
"class": "row m-0 w-100"
|
package/dist/index.esm.js
CHANGED
|
@@ -1488,9 +1488,9 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1488
1488
|
useEffect(function () {
|
|
1489
1489
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
1490
1490
|
var price = '';
|
|
1491
|
-
if (fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
1491
|
+
if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
1492
1492
|
price = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
1493
|
-
} else if (fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
1493
|
+
} else if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
1494
1494
|
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
1495
1495
|
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : (_fetchProductInfoQuer4 = _fetchProductInfoQuer3.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.hassale) == 1) {
|
|
1496
1496
|
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
@@ -8305,7 +8305,7 @@ var Checkout = function Checkout(props) {
|
|
|
8305
8305
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8306
8306
|
className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
|
|
8307
8307
|
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))))), /*#__PURE__*/React.createElement("div", {
|
|
8308
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2"
|
|
8308
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2 flex-column"
|
|
8309
8309
|
}, item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
|
|
8310
8310
|
return /*#__PURE__*/React.createElement("div", {
|
|
8311
8311
|
"class": "row m-0 w-100"
|
package/dist/index.umd.js
CHANGED
|
@@ -1376,9 +1376,9 @@
|
|
|
1376
1376
|
React.useEffect(function () {
|
|
1377
1377
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
1378
1378
|
var price = '';
|
|
1379
|
-
if (fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
1379
|
+
if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
|
|
1380
1380
|
price = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
|
|
1381
|
-
} else if (fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
1381
|
+
} else if (variantindexcompleted == undefined && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
|
|
1382
1382
|
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
1383
1383
|
} else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : (_fetchProductInfoQuer4 = _fetchProductInfoQuer3.variants[variantindexcompleted]) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.hassale) == 1) {
|
|
1384
1384
|
price = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
|
|
@@ -8193,7 +8193,7 @@
|
|
|
8193
8193
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8194
8194
|
className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
|
|
8195
8195
|
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8196
|
-
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2"
|
|
8196
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex mt-2 flex-column"
|
|
8197
8197
|
}, item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
|
|
8198
8198
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8199
8199
|
"class": "row m-0 w-100"
|