tabexseriescomponents 0.0.433 → 0.0.435

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
@@ -30,6 +30,11 @@ import { FiShoppingBag } from '@react-icons/all-files/fi/FiShoppingBag';
30
30
  import { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';
31
31
  import { AiFillStar as AiFillStar$1 } from '@react-icons/all-files/ai/AiFillStar';
32
32
  import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
33
+ import { FaPlus } from '@react-icons/all-files/fa/FaPlus';
34
+ import { FaMinus } from '@react-icons/all-files/fa/FaMinus';
35
+ import { FiBox } from '@react-icons/all-files/fi/FiBox';
36
+ import { RiArrowGoBackLine } from '@react-icons/all-files/ri/RiArrowGoBackLine';
37
+ import { Accordion, AccordionItem, AccordionItemHeading, AccordionItemButton, AccordionItemState, AccordionItemPanel } from 'react-accessible-accordion';
33
38
  import { FacebookShareButton, FacebookIcon, TwitterShareButton, WhatsappShareButton, WhatsappIcon, LinkedinShareButton, LinkedinIcon, TwitterIcon } from 'react-share';
34
39
  import { FiMinus } from '@react-icons/all-files/fi/FiMinus';
35
40
  import { FiPlus } from '@react-icons/all-files/fi/FiPlus';
@@ -70,7 +75,6 @@ import '@react-icons/all-files/ri/RiArrowUpSLine';
70
75
  import '@react-icons/all-files/ri/RiArrowDownSLine';
71
76
  import { IoIosArrowRoundForward } from '@react-icons/all-files/io/IoIosArrowRoundForward';
72
77
  import { IoIosArrowRoundBack } from '@react-icons/all-files/io/IoIosArrowRoundBack';
73
- import { Accordion, AccordionItem, AccordionItemHeading, AccordionItemButton, AccordionItemState, AccordionItemPanel } from 'react-accessible-accordion';
74
78
  import { FiChevronUp } from '@react-icons/all-files/fi/FiChevronUp';
75
79
  import { FiChevronDown } from '@react-icons/all-files/fi/FiChevronDown';
76
80
  import { HiOutlinePlus } from '@react-icons/all-files/hi/HiOutlinePlus';
@@ -137,8 +141,6 @@ import { FaLinkedinIn } from '@react-icons/all-files/fa/FaLinkedinIn';
137
141
  import { RiRoadMapLine } from '@react-icons/all-files/ri/RiRoadMapLine';
138
142
  import { HiOutlineClock } from '@react-icons/all-files/hi/HiOutlineClock';
139
143
  import { AiOutlineLinkedin } from '@react-icons/all-files/ai/AiOutlineLinkedin';
140
- import { FaPlus } from '@react-icons/all-files/fa/FaPlus';
141
- import { FaMinus } from '@react-icons/all-files/fa/FaMinus';
142
144
  import { FaArrowAltCircleRight } from '@react-icons/all-files/fa/FaArrowAltCircleRight';
143
145
  import { FaArrowAltCircleLeft } from '@react-icons/all-files/fa/FaArrowAltCircleLeft';
144
146
  import Select$5 from 'react-select';
@@ -2150,7 +2152,7 @@ var DescriptionContent = function DescriptionContent(props) {
2150
2152
  setShowMore = _useState2[1];
2151
2153
  var ikimagecredcontext = props.actions.ikimagecredcontext;
2152
2154
  return /*#__PURE__*/React.createElement("div", {
2153
- "class": props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : sectionproperties.gallerystyle == 'Style 1' ? 'col-lg-12 pl-5 pr-5 p-md-0 w-100' : 'col-lg-12 p-0 w-100'
2155
+ "class": props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : props.srcfromprops == 'undername' ? 'col-lg-12 p-0 w-100' : sectionproperties.gallerystyle == 'Style 1' ? 'col-lg-12 pl-5 pr-5 p-md-0 w-100' : 'col-lg-12 p-0 w-100'
2154
2156
  }, /*#__PURE__*/React.createElement("div", {
2155
2157
  "class": "row m-0 w-100"
2156
2158
  }, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
@@ -2163,13 +2165,13 @@ var DescriptionContent = function DescriptionContent(props) {
2163
2165
  fontWeight: sectionproperties.prodCatFontWeight
2164
2166
  }
2165
2167
  }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.description_en) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.description_en) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement("div", {
2166
- className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
2168
+ className: props.srcfromprops == 'collap' ? 'col-lg-12 p-0 d-flex justify-content-center' : 'col-lg-12 p-0 mb-4 d-flex justify-content-center'
2167
2169
  }, /*#__PURE__*/React.createElement("div", {
2168
2170
  className: "row m-0 w-100 d-flex"
2169
2171
  }, /*#__PURE__*/React.createElement("div", {
2170
2172
  "class": "col-lg-12 p-0 d-flex justify-content-start"
2171
2173
  }, /*#__PURE__*/React.createElement("p", {
2172
- className: 'text-black m-0 p-0 wordbreak',
2174
+ className: 'm-0 p-0 wordbreak',
2173
2175
  style: {
2174
2176
  textAlign: langdetect == 'en' ? 'left' : 'right'
2175
2177
  },
@@ -2237,11 +2239,11 @@ var DescriptionContent = function DescriptionContent(props) {
2237
2239
  function ownKeys$2t(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; }
2238
2240
  function _objectSpread$2t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2239
2241
  var Product_itemtype = function Product_itemtype(props) {
2240
- var _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40;
2242
+ var _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42;
2241
2243
  var lang = props.actions.lang;
2242
2244
  var langdetect = props.actions.langdetect;
2243
2245
  var srcfromprops = props.actions.srcfromprops;
2244
- props.actions.returnpolicyobj;
2246
+ var returnpolicyobj = props.actions.returnpolicyobj;
2245
2247
  var productinfo_cssstyles = props.actions.productinfo_cssstyles;
2246
2248
  var addtocartfunc = props.actions.addtocartfunc;
2247
2249
  props.actions.selectproductoptionvalue;
@@ -2419,8 +2421,11 @@ var Product_itemtype = function Product_itemtype(props) {
2419
2421
  style: {
2420
2422
  minHeight: sectionproperties.height + 'vh'
2421
2423
  }
2422
- }, sectionproperties.gallerystyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
2423
- "class": "w-100 scrollhorizontalwithscrollbar scrollhorizontalwithscrollbarremove"
2424
+ }, sectionproperties.gallerystyle == 'Style 2' &&
2425
+ /*#__PURE__*/
2426
+ // scrollhorizontalwithscrollbarremove
2427
+ React.createElement("div", {
2428
+ "class": "w-100 scrollhorizontalwithscrollbar "
2424
2429
  }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productimages) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.length) != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productimages.map(function (item, index) {
2425
2430
  return /*#__PURE__*/React.createElement("div", {
2426
2431
  "class": ' scrollhorizontalcard mx-2 ',
@@ -2506,7 +2511,17 @@ var Product_itemtype = function Product_itemtype(props) {
2506
2511
  // }
2507
2512
  }, /*#__PURE__*/React.createElement("div", {
2508
2513
  className: sectionproperties.evencols == 'Yes' ? 'row m-0 w-100 mt-md-5' : 'row m-0 w-100'
2509
- }, /*#__PURE__*/React.createElement("div", {
2514
+ }, sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React.createElement("div", {
2515
+ className: 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center mb-1 mt-3'
2516
+ }, /*#__PURE__*/React.createElement("p", {
2517
+ className: ' m-0 p-0 wordbreak d-flex justify-content-start ',
2518
+ style: {
2519
+ textAlign: langdetect == 'en' ? 'left' : 'right',
2520
+ fontWeight: 400,
2521
+ color: sectionproperties.measurementunitcolor,
2522
+ fontSize: sectionproperties.measurementunitcolor + 'px'
2523
+ }
2524
+ }, fetchProductInfoQueryContext.data.data.productinfo.measurmentunit)), /*#__PURE__*/React.createElement("div", {
2510
2525
  className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.productcanrate) == 1 ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : sectionproperties.btnposition == 'Top' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
2511
2526
  }, /*#__PURE__*/React.createElement("p", {
2512
2527
  className: props.srcfromprops != 'templatedraftrouter' ? "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ' : "".concat(productinfo_cssstyles.productname) + ' m-0 p-0 wordbreak d-flex justify-content-start font-sm-15 ',
@@ -2592,7 +2607,7 @@ var Product_itemtype = function Product_itemtype(props) {
2592
2607
  size: sectionproperties.favBtnIconfontsize
2593
2608
  }))))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.skuposition == 'Top' && /*#__PURE__*/React.createElement("div", {
2594
2609
  "class": 'col-lg-12 p-0 my-3 d-flex justify-content-start'
2595
- }, ProductsSKUContainer()), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.short_description_en) != null && /*#__PURE__*/React.createElement("div", {
2610
+ }, ProductsSKUContainer()), langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.short_description_en) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React.createElement("div", {
2596
2611
  "class": "col-lg-12 p-0"
2597
2612
  }, /*#__PURE__*/React.createElement("div", {
2598
2613
  "class": "col-lg-12 p-0 d-flex justify-content-start"
@@ -2604,7 +2619,7 @@ var Product_itemtype = function Product_itemtype(props) {
2604
2619
  dangerouslySetInnerHTML: {
2605
2620
  __html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.short_description_en
2606
2621
  }
2607
- }))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.short_description_ar) != null && /*#__PURE__*/React.createElement("div", {
2622
+ }))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.short_description_ar) != null && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React.createElement("div", {
2608
2623
  "class": "col-lg-12 p-0"
2609
2624
  }, /*#__PURE__*/React.createElement("div", {
2610
2625
  "class": "col-lg-12 p-0 d-flex justify-content-start"
@@ -2616,7 +2631,7 @@ var Product_itemtype = function Product_itemtype(props) {
2616
2631
  dangerouslySetInnerHTML: {
2617
2632
  __html: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.short_description_ar
2618
2633
  }
2619
- }))), sectionproperties.descriptionposition == 'Top' && /*#__PURE__*/React.createElement("div", {
2634
+ }))), sectionproperties.descriptionposition == 'Top' && sectionproperties.descriptionstyle == 'Style 1' && /*#__PURE__*/React.createElement("div", {
2620
2635
  "class": "col-lg-12 p-0"
2621
2636
  }, /*#__PURE__*/React.createElement("div", {
2622
2637
  "class": "row m-0 w-100"
@@ -2754,7 +2769,7 @@ var Product_itemtype = function Product_itemtype(props) {
2754
2769
  marginTop: sectionproperties.ctabuttnnsmarginvertical + 'px',
2755
2770
  marginBottom: sectionproperties.ctabuttnnsmarginvertical + 'px'
2756
2771
  }
2757
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.isproducthasquantitychange) == 1 && /*#__PURE__*/React.createElement("div", {
2772
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer23 === void 0 || (_fetchProductInfoQuer23 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer24 === void 0 || (_fetchProductInfoQuer24 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.isproducthasquantitychange) == 1 && sectionproperties.quantitybtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
2758
2773
  className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
2759
2774
  }, /*#__PURE__*/React.createElement("p", {
2760
2775
  className: "m-0 p-0",
@@ -3019,7 +3034,220 @@ var Product_itemtype = function Product_itemtype(props) {
3019
3034
  width: "20px",
3020
3035
  height: "20px",
3021
3036
  duration: "1s"
3022
- }))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
3037
+ }))))))), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
3038
+ "class": "col-lg-12 col-md-12 p-md-0 mt-3"
3039
+ }, /*#__PURE__*/React.createElement(Accordion, {
3040
+ allowMultipleExpanded: true,
3041
+ allowZeroExpanded: true
3042
+ }, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
3043
+ "class": "row m-0 w-100"
3044
+ }, /*#__PURE__*/React.createElement("div", {
3045
+ className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
3046
+ }, /*#__PURE__*/React.createElement("p", {
3047
+ "class": "m-0 p-0",
3048
+ style: {
3049
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3050
+ fontWeight: sectionproperties.prodCatFontWeight,
3051
+ color: sectionproperties.prodCatColor,
3052
+ fontSize: sectionproperties.prodCatFontSize + 'px'
3053
+ }
3054
+ }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React.createElement("div", {
3055
+ className: "col-lg-2 col-md-2 col-sm-2 p-0"
3056
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
3057
+ if (state.expanded == true) {
3058
+ return /*#__PURE__*/React.createElement("i", {
3059
+ className: ' h-100 d-flex align-items-center justify-content-end '
3060
+ }, /*#__PURE__*/React.createElement(FaMinus, {
3061
+ color: sectionproperties.prodCatColor
3062
+ }));
3063
+ } else {
3064
+ return /*#__PURE__*/React.createElement("i", {
3065
+ className: ' h-100 d-flex align-items-center justify-content-end '
3066
+ }, /*#__PURE__*/React.createElement(FaPlus, {
3067
+ color: sectionproperties.prodCatColor
3068
+ }));
3069
+ }
3070
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
3071
+ className: "p-0"
3072
+ }, /*#__PURE__*/React.createElement("div", {
3073
+ "class": "col-lg-12 p-0 mt-3"
3074
+ }, /*#__PURE__*/React.createElement(DescriptionContent, {
3075
+ actions: props.actions,
3076
+ srcfromprops: 'collap'
3077
+ })))))), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
3078
+ "class": "col-lg-12 col-md-12 my-3 p-md-0"
3079
+ }, /*#__PURE__*/React.createElement("hr", {
3080
+ "class": "m-0"
3081
+ })), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React.createElement("div", {
3082
+ "class": "col-lg-12 col-md-12 p-md-0"
3083
+ }, /*#__PURE__*/React.createElement(Accordion, {
3084
+ allowMultipleExpanded: true,
3085
+ allowZeroExpanded: true
3086
+ }, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
3087
+ "class": "row m-0 w-100"
3088
+ }, /*#__PURE__*/React.createElement("div", {
3089
+ className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
3090
+ }, /*#__PURE__*/React.createElement("p", {
3091
+ "class": "m-0 p-0",
3092
+ style: {
3093
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3094
+ fontWeight: sectionproperties.prodCatFontWeight,
3095
+ color: sectionproperties.prodCatColor,
3096
+ fontSize: sectionproperties.prodCatFontSize + 'px'
3097
+ }
3098
+ }, langdetect == 'en' ? sectionproperties.shortdescriptiontitle_en : sectionproperties.shortdescriptiontitle_ar)), /*#__PURE__*/React.createElement("div", {
3099
+ className: "col-lg-2 col-md-2 col-sm-2 p-0"
3100
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
3101
+ if (state.expanded == true) {
3102
+ return /*#__PURE__*/React.createElement("i", {
3103
+ className: ' h-100 d-flex align-items-center justify-content-end '
3104
+ }, /*#__PURE__*/React.createElement(FaMinus, {
3105
+ color: sectionproperties.prodCatColor
3106
+ }));
3107
+ } else {
3108
+ return /*#__PURE__*/React.createElement("i", {
3109
+ className: ' h-100 d-flex align-items-center justify-content-end '
3110
+ }, /*#__PURE__*/React.createElement(FaPlus, {
3111
+ color: sectionproperties.prodCatColor
3112
+ }));
3113
+ }
3114
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
3115
+ className: "p-0"
3116
+ }, /*#__PURE__*/React.createElement("div", {
3117
+ "class": "col-lg-12 p-0 mt-3"
3118
+ }, /*#__PURE__*/React.createElement("p", {
3119
+ className: 'm-0 p-0 wordbreak',
3120
+ style: {
3121
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3122
+ color: sectionproperties.prodCatColor
3123
+ },
3124
+ dangerouslySetInnerHTML: {
3125
+ __html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.short_description_ar
3126
+ }
3127
+ })))))), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
3128
+ "class": "col-lg-12 col-md-12 my-3 p-md-0"
3129
+ }, /*#__PURE__*/React.createElement("hr", {
3130
+ "class": "m-0"
3131
+ })), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React.createElement("div", {
3132
+ "class": "col-lg-12 col-md-12 p-md-0"
3133
+ }, /*#__PURE__*/React.createElement(Accordion, {
3134
+ allowMultipleExpanded: true,
3135
+ allowZeroExpanded: true
3136
+ }, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
3137
+ "class": "row m-0 w-100"
3138
+ }, /*#__PURE__*/React.createElement("div", {
3139
+ className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
3140
+ }, /*#__PURE__*/React.createElement("p", {
3141
+ "class": "m-0 p-0 ",
3142
+ style: {
3143
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3144
+ fontWeight: sectionproperties.prodCatFontWeight,
3145
+ color: sectionproperties.prodCatColor,
3146
+ fontSize: sectionproperties.prodCatFontSize + 'px'
3147
+ }
3148
+ }, langdetect == 'en' ? sectionproperties.policiestitleen : sectionproperties.policiestitlear)), /*#__PURE__*/React.createElement("div", {
3149
+ className: "col-lg-2 col-md-2 col-sm-2 p-0"
3150
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
3151
+ if (state.expanded == true) {
3152
+ return /*#__PURE__*/React.createElement("i", {
3153
+ className: ' h-100 d-flex align-items-center justify-content-end '
3154
+ }, /*#__PURE__*/React.createElement(FaMinus, {
3155
+ color: sectionproperties.prodCatColor
3156
+ }));
3157
+ } else {
3158
+ return /*#__PURE__*/React.createElement("i", {
3159
+ className: ' h-100 d-flex align-items-center justify-content-end '
3160
+ }, /*#__PURE__*/React.createElement(FaPlus, {
3161
+ color: sectionproperties.prodCatColor
3162
+ }));
3163
+ }
3164
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
3165
+ className: "p-0"
3166
+ }, /*#__PURE__*/React.createElement("div", {
3167
+ "class": "col-lg-12 p-0 mb-3 d-flex flex-row text-start align-items-center mt-3"
3168
+ }, /*#__PURE__*/React.createElement("i", {
3169
+ "class": "h-100 allcentered mx-2"
3170
+ }, /*#__PURE__*/React.createElement(FiBox, {
3171
+ size: 15,
3172
+ style: {
3173
+ color: sectionproperties.prodCatColor
3174
+ }
3175
+ })), /*#__PURE__*/React.createElement("p", {
3176
+ "class": "m-0 p-0 text-uppercase",
3177
+ style: {
3178
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3179
+ fontWeight: sectionproperties.prodCatFontWeight,
3180
+ color: sectionproperties.prodCatColor,
3181
+ fontSize: '14px'
3182
+ }
3183
+ }, langdetect == 'en' ? (_returnpolicyobj = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj === void 0 ? void 0 : _returnpolicyobj.policypagename_en : (_returnpolicyobj2 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj2 === void 0 ? void 0 : _returnpolicyobj2.policypagename_ar)), /*#__PURE__*/React.createElement("div", {
3184
+ "class": "col-lg-12 p-0 mb-4 px-4"
3185
+ }, /*#__PURE__*/React.createElement("p", {
3186
+ className: ' m-0 p-0 wordbreak ',
3187
+ style: {
3188
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3189
+ fontWeight: sectionproperties.prodCatFontWeight,
3190
+ color: sectionproperties.prodCatColor,
3191
+ fontSize: '15px'
3192
+ },
3193
+ dangerouslySetInnerHTML: {
3194
+ __html: langdetect == 'en' ? (_returnpolicyobj3 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj3 === void 0 ? void 0 : _returnpolicyobj3.policysummary_en : (_returnpolicyobj4 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj4 === void 0 ? void 0 : _returnpolicyobj4.policysummary_ar
3195
+ }
3196
+ })), /*#__PURE__*/React.createElement("div", {
3197
+ "class": "col-lg-12 p-0 mb-4 px-4"
3198
+ }, /*#__PURE__*/React.createElement("p", {
3199
+ className: ' m-0 p-0 wordbreak cursor-pointer ',
3200
+ style: {
3201
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3202
+ textDecoration: 'underline',
3203
+ color: sectionproperties.prodCatColor
3204
+ },
3205
+ onClick: function onClick() {
3206
+ routingcountext(StaticPagesLinksContext.ShippingPolicy);
3207
+ }
3208
+ }, "SEE MORE")), /*#__PURE__*/React.createElement("div", {
3209
+ "class": "col-lg-12 p-0 mb-3 d-flex flex-row text-start align-items-center"
3210
+ }, /*#__PURE__*/React.createElement("i", {
3211
+ "class": "h-100 allcentered mx-2"
3212
+ }, /*#__PURE__*/React.createElement(RiArrowGoBackLine, {
3213
+ size: 15,
3214
+ style: {
3215
+ color: sectionproperties.prodCatColor
3216
+ }
3217
+ })), /*#__PURE__*/React.createElement("p", {
3218
+ "class": "m-0 p-0 text-uppercase",
3219
+ style: {
3220
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3221
+ fontWeight: sectionproperties.prodCatFontWeight,
3222
+ color: sectionproperties.prodCatColor,
3223
+ fontSize: '14px'
3224
+ }
3225
+ }, langdetect == 'en' ? (_returnpolicyobj5 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj5 === void 0 ? void 0 : _returnpolicyobj5.policypagename_en : (_returnpolicyobj6 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj6 === void 0 ? void 0 : _returnpolicyobj6.policypagename_ar)), /*#__PURE__*/React.createElement("div", {
3226
+ "class": "col-lg-12 p-0 mb-4 px-4"
3227
+ }, /*#__PURE__*/React.createElement("p", {
3228
+ className: ' m-0 p-0 wordbreak ',
3229
+ style: {
3230
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3231
+ fontWeight: sectionproperties.prodCatFontWeight,
3232
+ color: sectionproperties.prodCatColor,
3233
+ fontSize: '15px'
3234
+ },
3235
+ dangerouslySetInnerHTML: {
3236
+ __html: langdetect == 'en' ? (_returnpolicyobj7 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj7 === void 0 ? void 0 : _returnpolicyobj7.policysummary_en : (_returnpolicyobj8 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj8 === void 0 ? void 0 : _returnpolicyobj8.policysummary_ar
3237
+ }
3238
+ })), /*#__PURE__*/React.createElement("div", {
3239
+ "class": "col-lg-12 p-0 mb-4 px-4"
3240
+ }, /*#__PURE__*/React.createElement("p", {
3241
+ className: ' m-0 p-0 wordbreak cursor-pointer ',
3242
+ style: {
3243
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3244
+ textDecoration: 'underline',
3245
+ color: sectionproperties.prodCatColor
3246
+ },
3247
+ onClick: function onClick() {
3248
+ routingcountext(StaticPagesLinksContext.RefundPolicy);
3249
+ }
3250
+ }, "SEE MORE")))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
3023
3251
  className: "col-lg-12 p-0 mb-3"
3024
3252
  }, /*#__PURE__*/React.createElement("div", {
3025
3253
  className: "row m-0 w-100 d-flex flex-row"
@@ -3042,7 +3270,7 @@ var Product_itemtype = function Product_itemtype(props) {
3042
3270
  }
3043
3271
  }, /*#__PURE__*/React.createElement("span", {
3044
3272
  className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right ' : ' d-flex align-items-center justify-content-end wordbreak text-left '
3045
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.variants[variantindexcompleted]) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.variants[variantindexcompleted]) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("p", {
3273
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.hassale) == 1 && parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.variants[variantindexcompleted]) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.hassale) == 0 && parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("p", {
3046
3274
  className: 'm-0 p-0 linethrough wordbreak',
3047
3275
  style: {
3048
3276
  color: sectionproperties.prodsalePriceColor,
@@ -3056,14 +3284,14 @@ var Product_itemtype = function Product_itemtype(props) {
3056
3284
  style: {
3057
3285
  textDecoration: 'none'
3058
3286
  }
3059
- }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.hassale) == 1 && /*#__PURE__*/React.createElement("span", {
3287
+ }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), variantindexcompleted != undefined && variantindexcompleted.length != 0 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer41 === void 0 || (_fetchProductInfoQuer41 = _fetchProductInfoQuer41.variants[variantindexcompleted]) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : _fetchProductInfoQuer41.hassale) == 1 && /*#__PURE__*/React.createElement("span", {
3060
3288
  className: langdetect == 'en' ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak ' : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
3061
3289
  }, /*#__PURE__*/React.createElement("span", {
3062
3290
  className: "ml-2 mr-2",
3063
3291
  style: {
3064
3292
  textDecoration: 'none'
3065
3293
  }
3066
- }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
3294
+ }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer42 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.data) === null || _fetchProductInfoQuer42 === void 0 || (_fetchProductInfoQuer42 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
3067
3295
  className: "col-lg-12 p-0 mb-3 mt-2"
3068
3296
  }, /*#__PURE__*/React.createElement("div", {
3069
3297
  style: {
@@ -3139,7 +3367,7 @@ var Product_itemtype = function Product_itemtype(props) {
3139
3367
  function ownKeys$2s(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; }
3140
3368
  function _objectSpread$2s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3141
3369
  var Serviceinfotabs = function Serviceinfotabs(props) {
3142
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14;
3370
+ var _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer17, _fetchProductInfoQuer18;
3143
3371
  var langdetect = props.actions.langdetect;
3144
3372
  var lang = props.actions.lang;
3145
3373
  var sectionproperties = props.actions.sectionproperties;
@@ -3313,11 +3541,148 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3313
3541
  }
3314
3542
  })
3315
3543
  };
3544
+ function getLastChoosedSlotIndex(slots) {
3545
+ var lastChoosedIndex = -1; // Initialize with -1 indicating no slot is choosed
3546
+ for (var i = 0; i < slots.length; i++) {
3547
+ if (slots[i].ischoosed) {
3548
+ lastChoosedIndex = i;
3549
+ }
3550
+ }
3551
+ return lastChoosedIndex;
3552
+ }
3553
+ var chooseitemslot = function chooseitemslot(slot, index) {
3554
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
3555
+ var reservedslottobetaken = null;
3556
+ var reservedslotArrtobetaken = [];
3557
+ var slotschooosedcounter_tobe_usedonly_in_merge = 0;
3558
+ var is_multi_slots = false;
3559
+ var is_slots_must_be_adjacent = false;
3560
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.is_slots_adjacent) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.is_slots_adjacent) == 1) {
3561
+ is_slots_must_be_adjacent = true;
3562
+ }
3563
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.is_slots_multi) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.is_slots_multi) == 1) {
3564
+ is_multi_slots = true;
3565
+ }
3566
+ var tempslots = _toConsumableArray(slots);
3567
+ if (is_multi_slots == false) {
3568
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3569
+ item.ischoosed = false;
3570
+ });
3571
+ }
3572
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3573
+ if (item.ischoosed == true) {
3574
+ slotschooosedcounter_tobe_usedonly_in_merge = slotschooosedcounter_tobe_usedonly_in_merge + 1;
3575
+ }
3576
+ });
3577
+ if (is_slots_must_be_adjacent == false) {
3578
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3579
+ if (tempslots[index].ischoosed == true) {
3580
+ tempslots[index].ischoosed = false;
3581
+ } else {
3582
+ tempslots[index].ischoosed = true;
3583
+ }
3584
+ } else {
3585
+ tempslots[index].ischoosed = true;
3586
+ }
3587
+ } else if (is_slots_must_be_adjacent == true) {
3588
+ var _tempslots$index;
3589
+ // Check if the selected slot is beside the previously selected slots
3590
+ if (slotschooosedcounter_tobe_usedonly_in_merge == 0) {
3591
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3592
+ if (tempslots[index].ischoosed == true) {
3593
+ tempslots[index].ischoosed = false;
3594
+ } else {
3595
+ tempslots[index].ischoosed = true;
3596
+ }
3597
+ } else {
3598
+ tempslots[index].ischoosed = true;
3599
+ }
3600
+ } else if (slotschooosedcounter_tobe_usedonly_in_merge == 1 && ((_tempslots$index = tempslots[index]) === null || _tempslots$index === void 0 ? void 0 : _tempslots$index.ischoosed) == true) {
3601
+ if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3602
+ if (tempslots[index].ischoosed == true) {
3603
+ tempslots[index].ischoosed = false;
3604
+ }
3605
+ }
3606
+ } else if (index > 0 && tempslots[index - 1].ischoosed) {
3607
+ // The selected slot is beside the previous slot, mark it as chosen
3608
+ if (tempslots[index].ischoosed == true) {
3609
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3610
+ // if (lastSelectedIndex === index) {
3611
+ tempslots[lastSelectedIndex].ischoosed = false;
3612
+ // }
3613
+ } else {
3614
+ tempslots[index].ischoosed = true;
3615
+ }
3616
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3617
+ } else if (index < tempslots.length - 1 && tempslots[index + 1].ischoosed) {
3618
+ // The selected slot is beside the next slot, mark it as chosen
3619
+ if (tempslots[index].ischoosed == true) {
3620
+ var lastSelectedIndex = getLastChoosedSlotIndex(tempslots);
3621
+ // if (lastSelectedIndex === index) {
3622
+ tempslots[lastSelectedIndex].ischoosed = false;
3623
+ // }
3624
+ } else {
3625
+ tempslots[index].ischoosed = true;
3626
+ }
3627
+ // tempslots[index].ischoosed = !tempslots[index].ischoosed;
3628
+ } else {
3629
+ // The selected slot is not beside the previously selected slots
3630
+ // Handle this case according to your requirements (e.g., show an error message)
3631
+ NotificationManager.warning('', 'You can only choose slots beside each other.');
3632
+ }
3633
+ }
3634
+ setslots(_toConsumableArray(tempslots));
3635
+ tempslots === null || tempslots === void 0 || tempslots.forEach(function (item, index) {
3636
+ if (item.ischoosed == true) {
3637
+ reservedslotArrtobetaken.push({
3638
+ slot: item.slot
3639
+ });
3640
+ }
3641
+ });
3642
+ if (reservedslotArrtobetaken.length != 0) {
3643
+ reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3644
+ setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3645
+ time: reservedslottobetaken,
3646
+ reserved_slots: reservedslotArrtobetaken,
3647
+ quantity: parseInt(reservedslotArrtobetaken.length)
3648
+ }));
3649
+ } else {
3650
+ NotificationManager.warning('', 'No Slots Reserved');
3651
+ }
3652
+ };
3653
+ // const chooseitemslot = (slot, index) => {
3654
+ // var reservedslottobetaken = null;
3655
+ // var reservedslotArrtobetaken = [];
3656
+ // var tempslots = [...slots];
3657
+ // if (tempslots[index].ischoosed != undefined && tempslots[index].ischoosed != null) {
3658
+ // if (tempslots[index].ischoosed == true) {
3659
+ // tempslots[index].ischoosed = false;
3660
+ // } else {
3661
+ // tempslots[index].ischoosed = true;
3662
+ // }
3663
+ // } else {
3664
+ // tempslots[index].ischoosed = true;
3665
+ // }
3666
+
3667
+ // setslots([...tempslots]);
3668
+ // tempslots?.forEach(function (item, index) {
3669
+ // if (item.ischoosed == true) {
3670
+ // reservedslotArrtobetaken.push({ slot: item.slot });
3671
+ // }
3672
+ // });
3673
+
3674
+ // if (reservedslotArrtobetaken.length != 0) {
3675
+ // reservedslottobetaken = reservedslotArrtobetaken[0].slot;
3676
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: reservedslottobetaken, reserved_slots: reservedslotArrtobetaken, quantity: parseInt(reservedslotArrtobetaken.length) });
3677
+ // } else {
3678
+ // NotificationManager.warning('', 'No Slots Reserved');
3679
+ // }
3680
+ // };
3316
3681
  return /*#__PURE__*/React.createElement("div", {
3317
- className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.serviceinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3682
+ className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' ? 'col-lg-12 mt-3 p-0' : 'col-lg-10 mt-3 p-0'
3318
3683
  }, /*#__PURE__*/React.createElement("div", {
3319
3684
  "class": "row m-0 w-100"
3320
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.serviceinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3685
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3321
3686
  "class": "row m-0 w-100"
3322
3687
  }, /*#__PURE__*/React.createElement("div", {
3323
3688
  "class": "col-lg-6 col-md-12 col-sm-12 mb-2 pl-1 pr-1"
@@ -3332,8 +3697,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3332
3697
  }, /*#__PURE__*/React.createElement("input", {
3333
3698
  type: "date",
3334
3699
  "class": TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 ',
3335
- min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.serviceinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.reservationstarts,
3336
- max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.serviceinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.reservationends,
3700
+ min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.reservationstarts,
3701
+ max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.reservationends,
3337
3702
  onChange: function onChange(event) {
3338
3703
  setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3339
3704
  from: event.target.value
@@ -3359,7 +3724,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3359
3724
  to: event.target.value
3360
3725
  }));
3361
3726
  }
3362
- }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.serviceinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.scheduletype) == 'minutes' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3727
+ }))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.serviceinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.scheduletype) == 'minutes' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3363
3728
  "class": "col-lg-12 col-md-12 col-sm-12 mb-2"
3364
3729
  }, /*#__PURE__*/React.createElement("div", {
3365
3730
  "class": "row m-0 w-100"
@@ -3406,7 +3771,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3406
3771
  "class": "w-100"
3407
3772
  }, slots.map(function (item, index) {
3408
3773
  var ischoosed = false;
3409
- if (item.slot == addtocardpayloadobj.time) {
3774
+ if (item.ischoosed) {
3410
3775
  ischoosed = true;
3411
3776
  }
3412
3777
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -3426,9 +3791,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3426
3791
  color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
3427
3792
  },
3428
3793
  onClick: function onClick() {
3429
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3430
- time: item.slot
3431
- }));
3794
+ chooseitemslot(item.slot, index);
3795
+ // setaddtocardpayloadobj({ ...addtocardpayloadobj, time: item.slot });
3432
3796
  }
3433
3797
  }, ischoosed == false && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar), ischoosed == true && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? sectionproperties.generalbtn_bookedcontent : sectionproperties.generalbtn_bookedcontent_ar))), /*#__PURE__*/React.createElement("div", {
3434
3798
  "class": "col-sm-3 p-0 d-none d-sm-flex justify-content-end justify-content-sm-center align-items-sm-center"
@@ -3469,7 +3833,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3469
3833
  }, slots.map(function (item, index) {
3470
3834
  var _slot, _slot2;
3471
3835
  var ischoosed = false;
3472
- if (item.slot == addtocardpayloadobj.time) {
3836
+ if (item.ischoosed) {
3473
3837
  ischoosed = true;
3474
3838
  }
3475
3839
  var slot = item.slot;
@@ -3509,9 +3873,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3509
3873
  "class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
3510
3874
  style: {},
3511
3875
  onClick: function onClick() {
3512
- setaddtocardpayloadobj(_objectSpread$2s(_objectSpread$2s({}, addtocardpayloadobj), {}, {
3513
- time: item.slot
3514
- }));
3876
+ chooseitemslot(item.slot, index);
3515
3877
  }
3516
3878
  }, /*#__PURE__*/React.createElement("p", {
3517
3879
  "class": ' p-0 m-0 '
@@ -3540,7 +3902,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3540
3902
  className: "col-lg-12 p-0 mb-3"
3541
3903
  }, /*#__PURE__*/React.createElement("div", {
3542
3904
  className: "row m-0 w-100"
3543
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.serviceinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3905
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.serviceinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.scheduletype) == 'days' && /*#__PURE__*/React.createElement("div", {
3544
3906
  className: "col-lg-12 p-0"
3545
3907
  }, /*#__PURE__*/React.createElement("div", {
3546
3908
  className: "row m-0 w-100"
@@ -3604,15 +3966,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3604
3966
  }, /*#__PURE__*/React.createElement("button", {
3605
3967
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
3606
3968
  onClick: function onClick() {
3607
- var _fetchProductInfoQuer7, _fetchProductInfoQuer8;
3608
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.serviceinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.scheduletype) == 'days') {
3969
+ var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
3970
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
3609
3971
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3610
3972
  addtocartfunc();
3611
3973
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
3612
3974
  // routingcountext(StaticPagesLinksContext.Checkout);
3613
3975
  // }
3614
3976
  }
3615
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.serviceinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.scheduletype) == 'minutes') {
3977
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
3616
3978
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3617
3979
  addtocartfunc();
3618
3980
  // if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -3645,7 +4007,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3645
4007
  size: sectionproperties.cartBtn_iconFontSize
3646
4008
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
3647
4009
  size: sectionproperties.cartBtn_iconFontSize
3648
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
4010
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
3649
4011
  className: ' d-flex align-items-center justify-content-center '
3650
4012
  }, /*#__PURE__*/React.createElement(CircularProgress, {
3651
4013
  color: "white",
@@ -3687,15 +4049,15 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3687
4049
  }, /*#__PURE__*/React.createElement("button", {
3688
4050
  className: "".concat(productinfo_cssstyles.cart_btn) + ' w-100 d-flex align-items-center justify-content-center ',
3689
4051
  onClick: function onClick() {
3690
- var _fetchProductInfoQuer11, _fetchProductInfoQuer12;
3691
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.scheduletype) == 'days') {
4052
+ var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
4053
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
3692
4054
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3693
4055
  addtocartfunc();
3694
4056
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
3695
4057
  routingcountext(StaticPagesLinksContext.Checkout);
3696
4058
  }
3697
4059
  }
3698
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.scheduletype) == 'minutes') {
4060
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
3699
4061
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3700
4062
  addtocartfunc();
3701
4063
  if (sectionproperties.cartbtntype == 'Goes to checkout') {
@@ -3728,7 +4090,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3728
4090
  size: sectionproperties.cartBtn_iconFontSize
3729
4091
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
3730
4092
  size: sectionproperties.cartBtn_iconFontSize
3731
- })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
4093
+ })), langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer17 === void 0 || (_fetchProductInfoQuer17 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : _fetchProductInfoQuer17.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer18 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.data) === null || _fetchProductInfoQuer18 === void 0 || (_fetchProductInfoQuer18 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.productactionbuttontext_ar), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
3732
4094
  className: ' d-flex align-items-center justify-content-center '
3733
4095
  }, /*#__PURE__*/React.createElement(CircularProgress, {
3734
4096
  color: "white",
@@ -3772,13 +4134,13 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3772
4134
  }, /*#__PURE__*/React.createElement("button", {
3773
4135
  className: "".concat(productinfo_cssstyles.checkoutbtn, " ") + ' d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 ',
3774
4136
  onClick: function onClick() {
3775
- var _fetchProductInfoQuer15, _fetchProductInfoQuer16;
3776
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.scheduletype) == 'days') {
4137
+ var _fetchProductInfoQuer19, _fetchProductInfoQuer20;
4138
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.productinfo) === null || _fetchProductInfoQuer19 === void 0 || (_fetchProductInfoQuer19 = _fetchProductInfoQuer19.serviceinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.scheduletype) == 'days') {
3777
4139
  if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
3778
4140
  addtocartfunc();
3779
4141
  routingcountext(StaticPagesLinksContext.Checkout);
3780
4142
  }
3781
- } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.scheduletype) == 'minutes') {
4143
+ } else if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer20 === void 0 || (_fetchProductInfoQuer20 = _fetchProductInfoQuer20.serviceinfo) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : _fetchProductInfoQuer20.scheduletype) == 'minutes') {
3782
4144
  if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
3783
4145
  addtocartfunc();
3784
4146
  routingcountext(StaticPagesLinksContext.Checkout);
@@ -22086,40 +22448,14 @@ var ElegantHeader = function ElegantHeader(props) {
22086
22448
  onClick: function onClick() {
22087
22449
  setlang('en');
22088
22450
  }
22089
- }, /*#__PURE__*/React.createElement("img", {
22090
- src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
22091
- style: {
22092
- maxWidth: '2vh',
22093
- maxHeight: '2vh'
22094
- }
22095
- }), /*#__PURE__*/React.createElement("div", {
22096
- style: {
22097
- height: '20px',
22098
- width: '1.5px',
22099
- background: '#e6e6e6'
22100
- },
22101
- "class": "ml-2 mr-2"
22102
- }), /*#__PURE__*/React.createElement("p", {
22451
+ }, /*#__PURE__*/React.createElement("p", {
22103
22452
  "class": "m-0 p-0"
22104
22453
  }, "\u0639")), langdetect == 'en' && sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
22105
22454
  "class": "".concat(header_cssstyles.languagecontainer) + ' allcentered mx-4 ',
22106
22455
  onClick: function onClick() {
22107
22456
  setlang('ar');
22108
22457
  }
22109
- }, /*#__PURE__*/React.createElement("img", {
22110
- src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
22111
- style: {
22112
- maxWidth: '2vh',
22113
- maxHeight: '2vh'
22114
- }
22115
- }), /*#__PURE__*/React.createElement("div", {
22116
- style: {
22117
- height: '20px',
22118
- width: '1.5px',
22119
- background: '#e6e6e6'
22120
- },
22121
- "class": "ml-2 mr-2"
22122
- }), /*#__PURE__*/React.createElement("p", {
22458
+ }, /*#__PURE__*/React.createElement("p", {
22123
22459
  "class": "m-0 p-0"
22124
22460
  }, "En")), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement("div", {
22125
22461
  "class": "allcentered"
@@ -45075,8 +45411,9 @@ var Newsletterfooter = function Newsletterfooter(props) {
45075
45411
  }, /*#__PURE__*/React.createElement("div", {
45076
45412
  "class": "row m-0 w-100 d-none d-md-flex editor-accordion"
45077
45413
  }, /*#__PURE__*/React.createElement(Accordion, {
45414
+ "class": "w-100",
45078
45415
  allowMultipleExpanded: true,
45079
- "class": "w-100"
45416
+ allowZeroExpanded: true
45080
45417
  }, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
45081
45418
  "class": "row m-0 w-100"
45082
45419
  }, /*#__PURE__*/React.createElement("div", {
@@ -45107,6 +45444,7 @@ var Newsletterfooter = function Newsletterfooter(props) {
45107
45444
  "class": "row m-0 w-100 d-none d-md-flex editor-accordion"
45108
45445
  }, /*#__PURE__*/React.createElement(Accordion, {
45109
45446
  allowMultipleExpanded: true,
45447
+ allowZeroExpanded: true,
45110
45448
  "class": "w-100"
45111
45449
  }, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
45112
45450
  "class": "row m-0 w-100"
@@ -45629,7 +45967,9 @@ var Newsletterincenter = function Newsletterincenter(props) {
45629
45967
  }, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
45630
45968
  "class": "col-lg-12 col-md-12 d-none d-md-flex"
45631
45969
  }, /*#__PURE__*/React.createElement(Accordion, {
45632
- "class": "w-100"
45970
+ "class": "w-100",
45971
+ allowMultipleExpanded: true,
45972
+ allowZeroExpanded: true
45633
45973
  }, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
45634
45974
  "class": "row m-0 w-100"
45635
45975
  }, /*#__PURE__*/React.createElement("div", {
@@ -45657,7 +45997,9 @@ var Newsletterincenter = function Newsletterincenter(props) {
45657
45997
  }, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
45658
45998
  "class": "col-lg-12 col-md-12 d-none d-md-flex"
45659
45999
  }, /*#__PURE__*/React.createElement(Accordion, {
45660
- "class": "w-100"
46000
+ "class": "w-100",
46001
+ allowMultipleExpanded: true,
46002
+ allowZeroExpanded: true
45661
46003
  }, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
45662
46004
  "class": "row m-0 w-100"
45663
46005
  }, /*#__PURE__*/React.createElement("div", {
@@ -71051,6 +71393,82 @@ var Simpleproductcard = function Simpleproductcard(props) {
71051
71393
  fontWeight: sectionproperties.prodCatFontWeight
71052
71394
  })
71053
71395
  };
71396
+ var _useState5 = useState(''),
71397
+ _useState6 = _slicedToArray(_useState5, 2),
71398
+ secondimage = _useState6[0],
71399
+ setsecondimage = _useState6[1];
71400
+ useEffect(function () {
71401
+ var _props$cardinfoitempr;
71402
+ setitem(props.cardinfoitemprops);
71403
+ if ((props === null || props === void 0 || (_props$cardinfoitempr = props.cardinfoitemprops) === null || _props$cardinfoitempr === void 0 || (_props$cardinfoitempr = _props$cardinfoitempr.productimages) === null || _props$cardinfoitempr === void 0 ? void 0 : _props$cardinfoitempr.length) == 1) {
71404
+ var _props$cardinfoitempr2;
71405
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr2 = props.cardinfoitemprops) === null || _props$cardinfoitempr2 === void 0 ? void 0 : _props$cardinfoitempr2.image);
71406
+ } else {
71407
+ var _props$cardinfoitempr3, _props$cardinfoitempr4;
71408
+ if ((props === null || props === void 0 ? void 0 : props.cardinfoitemprops) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr3 = props.cardinfoitemprops) === null || _props$cardinfoitempr3 === void 0 ? void 0 : _props$cardinfoitempr3.productimages) != undefined && Array.isArray(props === null || props === void 0 || (_props$cardinfoitempr4 = props.cardinfoitemprops) === null || _props$cardinfoitempr4 === void 0 ? void 0 : _props$cardinfoitempr4.productimages)) {
71409
+ var _props$cardinfoitempr5, _props$cardinfoitempr6, _props$cardinfoitempr7;
71410
+ if ((props === null || props === void 0 || (_props$cardinfoitempr5 = props.cardinfoitemprops) === null || _props$cardinfoitempr5 === void 0 ? void 0 : _props$cardinfoitempr5.productimages[0]) != undefined && (props === null || props === void 0 || (_props$cardinfoitempr6 = props.cardinfoitemprops) === null || _props$cardinfoitempr6 === void 0 || (_props$cardinfoitempr6 = _props$cardinfoitempr6.productimages[0]) === null || _props$cardinfoitempr6 === void 0 ? void 0 : _props$cardinfoitempr6.path) == (props === null || props === void 0 || (_props$cardinfoitempr7 = props.cardinfoitemprops) === null || _props$cardinfoitempr7 === void 0 ? void 0 : _props$cardinfoitempr7.image)) {
71411
+ var _props$cardinfoitempr8;
71412
+ if ((props === null || props === void 0 || (_props$cardinfoitempr8 = props.cardinfoitemprops) === null || _props$cardinfoitempr8 === void 0 || (_props$cardinfoitempr8 = _props$cardinfoitempr8.productimages[1]) === null || _props$cardinfoitempr8 === void 0 ? void 0 : _props$cardinfoitempr8.length) != 0) {
71413
+ var _props$cardinfoitempr9;
71414
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr9 = props.cardinfoitemprops) === null || _props$cardinfoitempr9 === void 0 || (_props$cardinfoitempr9 = _props$cardinfoitempr9.productimages[1]) === null || _props$cardinfoitempr9 === void 0 ? void 0 : _props$cardinfoitempr9.path);
71415
+ } else {
71416
+ var _props$cardinfoitempr10;
71417
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr10 = props.cardinfoitemprops) === null || _props$cardinfoitempr10 === void 0 ? void 0 : _props$cardinfoitempr10.image);
71418
+ }
71419
+ } else {
71420
+ var _props$cardinfoitempr11;
71421
+ setsecondimage(props === null || props === void 0 || (_props$cardinfoitempr11 = props.cardinfoitemprops) === null || _props$cardinfoitempr11 === void 0 || (_props$cardinfoitempr11 = _props$cardinfoitempr11.productimages[0]) === null || _props$cardinfoitempr11 === void 0 ? void 0 : _props$cardinfoitempr11.path);
71422
+ }
71423
+ }
71424
+ }
71425
+ }, [props.cardinfoitemprops]);
71426
+ var Image = function Image(type) {
71427
+ var transition = false;
71428
+ if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
71429
+ transition = true;
71430
+ }
71431
+ return /*#__PURE__*/React.createElement("div", {
71432
+ "class": "w-100 cursor-pointer",
71433
+ style: {
71434
+ position: 'relative'
71435
+ }
71436
+ }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
71437
+ "class": transition ? cardstyles$7.intialimage : '',
71438
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
71439
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
71440
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
71441
+ loading: "lazy",
71442
+ style: {
71443
+ width: sectionproperties.imageInnerWidth_Height + '%',
71444
+ height: sectionproperties.imageInnerWidth_Height + '%',
71445
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
71446
+ },
71447
+ onClick: function onClick(e) {
71448
+ e.stopPropagation();
71449
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
71450
+ }
71451
+ }), transition && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
71452
+ "class": cardstyles$7.secondaryimage,
71453
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
71454
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
71455
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + secondimage,
71456
+ loading: "lazy",
71457
+ style: {
71458
+ width: sectionproperties.imageInnerWidth_Height + '%',
71459
+ height: sectionproperties.imageInnerWidth_Height + '%',
71460
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
71461
+ },
71462
+ onClick: function onClick(e) {
71463
+ e.stopPropagation();
71464
+ cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
71465
+
71466
+ // setShowProductInfoModalContext(true);
71467
+ // setProductIdProdutInfoModalContext(item.productid);
71468
+ }
71469
+ }));
71470
+ };
71471
+
71054
71472
  return /*#__PURE__*/React.createElement("div", {
71055
71473
  "class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
71056
71474
  style: {
@@ -71166,31 +71584,16 @@ var Simpleproductcard = function Simpleproductcard(props) {
71166
71584
  direction: 'ltr'
71167
71585
  }
71168
71586
  }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React.createElement("div", {
71169
- onClick: function onClick() {
71170
- if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute) == 'Product Information') {
71171
- // setShowProductInfoModalContext(true);
71172
- // setProductIdProdutInfoModalContext(item.productid);
71173
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
71174
- } else {
71175
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
71176
- }
71177
- },
71178
- "class": "".concat(card_cssstyles.productcardimagecont) + ' w-100 p-0 d-flex align-items-center justify-content-center ',
71587
+ "class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-flex d-md-none ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-flex d-md-none ',
71179
71588
  style: {
71180
- zIndex: 1,
71181
71589
  marginBottom: sectionproperties.image_mb + 'px'
71182
71590
  }
71183
- }, item.image != '' && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
71184
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
71185
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
71186
- path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
71187
- loading: "lazy",
71591
+ }, Image('normal')), /*#__PURE__*/React.createElement("div", {
71592
+ "class": card_cssstyles.productcardimagecont + ' d-none d-md-flex ',
71188
71593
  style: {
71189
- width: sectionproperties.imageInnerWidth_Height + '%',
71190
- height: sectionproperties.imageInnerWidth_Height + '%',
71191
- objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
71594
+ marginBottom: sectionproperties.image_mb + 'px'
71192
71595
  }
71193
- })), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
71596
+ }, Image('responsive')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
71194
71597
  "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
71195
71598
  }, /*#__PURE__*/React.createElement("p", {
71196
71599
  "class": "m-0 p-0"