tabexseriescomponents 0.0.711 → 0.0.713

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/app.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "expo": {}
3
+ }
package/dist/index.cjs.js CHANGED
@@ -10321,7 +10321,7 @@ var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
10321
10321
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
10322
10322
  });
10323
10323
  var Checkout = function Checkout(props) {
10324
- var _css, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _fetchcustomercartQue78, _fetchcustomercartQue80, _authdetailsContext$i4, _fetchcustomercartQue82, _authdetailsContext$i5, _fetchcustomercartQue84, _authdetailsContext$i6, _fetchcustomercartQue86, _authdetailsContext$i7, _fetchcustomercartQue88, _fetchcustomercartQue90;
10324
+ var _css, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _authdetailsContext$i4, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _fetchcustomercartQue78, _fetchcustomercartQue80, _authdetailsContext$i5, _fetchcustomercartQue82, _authdetailsContext$i6, _fetchcustomercartQue84, _authdetailsContext$i7, _fetchcustomercartQue86, _authdetailsContext$i8, _fetchcustomercartQue88, _fetchcustomercartQue90;
10325
10325
  var _useState = React.useState(null),
10326
10326
  _useState2 = _slicedToArray__default["default"](_useState, 2);
10327
10327
  _useState2[0];
@@ -10372,6 +10372,7 @@ var Checkout = function Checkout(props) {
10372
10372
  _useState14 = _slicedToArray__default["default"](_useState13, 2),
10373
10373
  shippingmethods = _useState14[0],
10374
10374
  setshippingmethods = _useState14[1];
10375
+ // const [orderextrafeilds, setorderextrafeilds] = useState([]);
10375
10376
  React.useEffect(function () {
10376
10377
  var _templatepropcontext$;
10377
10378
  var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
@@ -10445,6 +10446,7 @@ var Checkout = function Checkout(props) {
10445
10446
  var cityid = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.customercart.cityid;
10446
10447
  fetchshippingmethods(cityid);
10447
10448
  }
10449
+ // fetchorderextrafields();
10448
10450
  }, [fetchcustomercartQueryContext.data]);
10449
10451
  var fetchshippingmethods = function fetchshippingmethods(cityid) {
10450
10452
  GeneralAPIMutationContext.mutate({
@@ -10457,6 +10459,17 @@ var Checkout = function Checkout(props) {
10457
10459
  }
10458
10460
  });
10459
10461
  };
10462
+ // const fetchorderextrafields = () => {
10463
+ // GeneralAPIMutationContext.mutate({
10464
+ // endpointurl: '/InitiateCheckout',
10465
+
10466
+ // mutateSuccesscallback: (data) => {
10467
+ // if (data != undefined && data.data != undefined && data.data.status == true) {
10468
+ // setorderextrafeilds(data.data.data);
10469
+ // }
10470
+ // },
10471
+ // });
10472
+ // };
10460
10473
  var cartinfoupdater = function cartinfoupdater(key, value) {
10461
10474
  var _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20;
10462
10475
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
@@ -11520,6 +11533,27 @@ var Checkout = function Checkout(props) {
11520
11533
  return /*#__PURE__*/React__default["default"].createElement("option", {
11521
11534
  value: item.id
11522
11535
  }, langdetect == 'en' ? item.name_en : item.name_ar);
11536
+ }))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '66b4a0338cb14' && /*#__PURE__*/React__default["default"].createElement("div", {
11537
+ className: "col-lg-12 p-0 w-100 py-3"
11538
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11539
+ "class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
11540
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11541
+ className: "row m-0 w-100 mb-3 pl-3 pr-3"
11542
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11543
+ className: "col-lg-4 col-md-12 mb-3"
11544
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
11545
+ className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
11546
+ }, langdetect == 'en' ? 'Event Date' : 'تاريخ الايفنت'), /*#__PURE__*/React__default["default"].createElement("input", {
11547
+ type: 'date',
11548
+ className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control)
11549
+ // value={}
11550
+ ,
11551
+ onChange: function onChange(event) {
11552
+ // cartinfoupdater('email', event.target.value);
11553
+ },
11554
+ style: {
11555
+ boxShadow: 'none'
11556
+ }
11523
11557
  }))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11524
11558
  className: "col-lg-12 p-0 w-100"
11525
11559
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -11644,7 +11678,7 @@ var Checkout = function Checkout(props) {
11644
11678
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11645
11679
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11646
11680
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11647
- }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11681
+ }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11648
11682
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11649
11683
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11650
11684
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11665,7 +11699,7 @@ var Checkout = function Checkout(props) {
11665
11699
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11666
11700
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11667
11701
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11668
- }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11702
+ }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11669
11703
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11670
11704
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11671
11705
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11686,7 +11720,7 @@ var Checkout = function Checkout(props) {
11686
11720
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11687
11721
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11688
11722
  className: "".concat(formstyles.checkbox_label, " + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '")
11689
- }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11723
+ }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11690
11724
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11691
11725
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11692
11726
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11707,7 +11741,7 @@ var Checkout = function Checkout(props) {
11707
11741
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11708
11742
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11709
11743
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11710
- }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11744
+ }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11711
11745
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11712
11746
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11713
11747
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -23093,7 +23127,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
23093
23127
  }), menuactive == true && /*#__PURE__*/React__default["default"].createElement(AiOutlineClose.AiOutlineClose, {
23094
23128
  size: sectionproperties.resp_sidenav_size,
23095
23129
  color: sectionproperties.resp_sidenav_color
23096
- }))), sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
23130
+ }))), sectionproperties.searchbar_show == 'Show' && sectionproperties.searchbtnresponsiveposition == 'Left' && /*#__PURE__*/React__default["default"].createElement("div", {
23097
23131
  style: {
23098
23132
  width: '30px',
23099
23133
  height: sectionproperties.cart_BtnHeight_resp + 'px'
@@ -23154,6 +23188,19 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
23154
23188
  }, /*#__PURE__*/React__default["default"].createElement(IoSearchOutline.IoSearchOutline, {
23155
23189
  size: 22,
23156
23190
  color: sectionproperties.cart_BtnTextcolor_resp
23191
+ }))), sectionproperties.searchbar_show == 'Show' && sectionproperties.searchbtnresponsiveposition == 'Right' && /*#__PURE__*/React__default["default"].createElement("div", {
23192
+ style: {
23193
+ width: '30px',
23194
+ height: sectionproperties.cart_BtnHeight_resp + 'px'
23195
+ }
23196
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
23197
+ "class": "h-100 allcentered",
23198
+ onClick: function onClick() {
23199
+ setopenSearch(true);
23200
+ }
23201
+ }, /*#__PURE__*/React__default["default"].createElement(IoSearchOutline.IoSearchOutline, {
23202
+ size: 22,
23203
+ color: sectionproperties.cart_BtnTextcolor_resp
23157
23204
  }))), templateproperties_context.showfavorites == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
23158
23205
  style: {
23159
23206
  width: '30px',
@@ -42553,6 +42600,15 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42553
42600
  setopenSideNav = _useState8[1];
42554
42601
  var setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
42555
42602
  var scrollYposittionprops = props.actions.scrollYposittionprops;
42603
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
42604
+ var _useState9 = React.useState(''),
42605
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
42606
+ Choosenindex = _useState10[0],
42607
+ setChoosenindex = _useState10[1];
42608
+ var _useState11 = React.useState([]),
42609
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
42610
+ pcollarray = _useState12[0],
42611
+ setpcollarray = _useState12[1];
42556
42612
  React.useEffect(function () {
42557
42613
  var secpropobj = {};
42558
42614
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -42577,6 +42633,23 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42577
42633
  }
42578
42634
  }
42579
42635
  }, [templateproperties_context]);
42636
+ React.useEffect(function () {
42637
+ if (fetchCategoriesQueryContext.isSuccess == true && fetchCategoriesQueryContext.data.data.status == true) {
42638
+ var _fetchCategoriesQuery;
42639
+ var temppcollarray = _toConsumableArray__default["default"](pcollarray);
42640
+ fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 || _fetchCategoriesQuery.categories.forEach(function (arrayItem) {
42641
+ if (arrayItem.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
42642
+ arrayItem === null || arrayItem === void 0 || arrayItem.parentcolletions.forEach(function (item) {
42643
+ if (item.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
42644
+ temppcollarray.push(item);
42645
+ }
42646
+ });
42647
+ }
42648
+ });
42649
+ setpcollarray(_toConsumableArray__default["default"](temppcollarray));
42650
+ }
42651
+ // alert(JSON.stringify(pcollarray));
42652
+ }, [fetchCategoriesQueryContext.isSuccess]);
42580
42653
  var header_cssstyles = {
42581
42654
  upperheadersection: glamor.css({
42582
42655
  background: sectionproperties.uppersection_bgcolor,
@@ -42798,6 +42871,15 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42798
42871
  '@media (max-width: 800px)': {
42799
42872
  width: '50%'
42800
42873
  }
42874
+ }),
42875
+ collectionname: glamor.css({
42876
+ fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
42877
+ color: sectionproperties.collectionsectiontextcolor,
42878
+ fontWeight: sectionproperties.collectionsectiontextfontweight,
42879
+ ':hover': {
42880
+ color: sectionproperties.collectionsectiontextcoloronhover,
42881
+ transition: '.3s'
42882
+ }
42801
42883
  })
42802
42884
  };
42803
42885
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -42810,8 +42892,8 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42810
42892
  target: '_blank',
42811
42893
  style: {
42812
42894
  position: 'fixed',
42813
- bottom: 10,
42814
- right: 10,
42895
+ bottom: sectionproperties.whatsapppositionfrombottom + 'px',
42896
+ right: sectionproperties.whatsapppositionfromright + 'px',
42815
42897
  zIndex: 999999,
42816
42898
  transition: 'all 0.3s ease-out'
42817
42899
  }
@@ -42825,8 +42907,8 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42825
42907
  })), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42826
42908
  style: {
42827
42909
  position: 'fixed',
42828
- bottom: 15,
42829
- right: 15,
42910
+ bottom: sectionproperties.floatingbtnfrombottom + 'px',
42911
+ right: sectionproperties.floatingbtnfromright + 'px',
42830
42912
  zIndex: 999999,
42831
42913
  transition: 'all 0.3s ease-out',
42832
42914
  width: '100%'
@@ -42845,8 +42927,8 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42845
42927
  target: '_self',
42846
42928
  style: {
42847
42929
  position: 'fixed',
42848
- bottom: 60,
42849
- right: 10,
42930
+ bottom: sectionproperties.callppositionfrombottom + 'px',
42931
+ right: sectionproperties.callppositionfromright + 'px',
42850
42932
  zIndex: 999999,
42851
42933
  transition: 'all 0.3s ease-out'
42852
42934
  }
@@ -43254,7 +43336,119 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
43254
43336
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43255
43337
  className: templateproperties_context.templatefontfamilyarabic == 'Changa' ? 'row m-0 w-100 mt-3 Changa' : templateproperties_context.templatefontfamily == 'OPTIRadiantBold-Condensed' ? 'row m-0 w-100 mt-3 fontfamilybold' : templateproperties_context.templatefontfamily == 'ASUL' ? 'row m-0 w-100 mt-3 ASUL' : templateproperties_context.templatefontfamily == 'Alata' ? 'row m-0 w-100 mt-3 alata' : templateproperties_context.templatefontfamilyarabic == 'Roboto' ? 'row m-0 w-100 mt-3 roboto' : templateproperties_context.templatefontfamilyarabic == 'ZaridSlab' ? 'row m-0 w-100 mt-3 zaridslab' : 'row m-0 w-100 mt-3'
43256
43338
  }, templatepropcontext.pagesnprop.map(function (item, index) {
43257
- if (item.isnavigation == 1 && item.isactive == 1) {
43339
+ if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex == 0) {
43340
+ return /*#__PURE__*/React__default["default"].createElement("div", {
43341
+ "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43342
+ onClick: function onClick() {
43343
+ routingcountext(item.navigationroute);
43344
+ },
43345
+ style: {
43346
+ marginTop: sectionproperties.navitemmarginvertical + 'px',
43347
+ marginBottom: sectionproperties.navitemmarginvertical + 'px'
43348
+ }
43349
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43350
+ "class": "row m-0 w-100"
43351
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43352
+ "class": "col-lg-9 p-0 d-flex align-items-center justify-content-start"
43353
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43354
+ "class": "m-0 p-0"
43355
+ }, " ", langdetect == 'en' ? item.pagename : item.pagename_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
43356
+ "class": "col-lg-3 p-0 d-flex align-items-center justify-content-end"
43357
+ }, /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
43358
+ style: {
43359
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
43360
+ }
43361
+ }))));
43362
+ }
43363
+ }), sectionproperties.subheaderParentType == 'Parent Collections' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
43364
+ allowMultipleExpanded: false,
43365
+ allowZeroExpanded: true
43366
+ }, pcollarray.map(function (item, index) {
43367
+ if (item.isshowntocustomers == 1) {
43368
+ var _item$collections;
43369
+ return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
43370
+ uuid: index
43371
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, {
43372
+ onClick: function onClick() {
43373
+ setChoosenindex(index);
43374
+ }
43375
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
43376
+ className: ' row m-0 p-0 '
43377
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43378
+ "class": header_cssstyles.navbarItem + ' col-lg-10 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43379
+ onClick: function onClick() {
43380
+ // routingcountext(item.navigationroute);
43381
+ },
43382
+ style: {
43383
+ marginTop: sectionproperties.navitemmarginvertical + 'px',
43384
+ marginBottom: sectionproperties.navitemmarginvertical + 'px'
43385
+ }
43386
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43387
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 '
43388
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
43389
+ className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
43390
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
43391
+ if (state.expanded == true) {
43392
+ return /*#__PURE__*/React__default["default"].createElement("i", {
43393
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
43394
+ }, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, {
43395
+ style: {
43396
+ color: '#000',
43397
+ fontSize: 15
43398
+ }
43399
+ }));
43400
+ } else {
43401
+ return /*#__PURE__*/React__default["default"].createElement("i", {
43402
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
43403
+ }, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, {
43404
+ style: {
43405
+ color: '#000',
43406
+ fontSize: 15
43407
+ }
43408
+ }));
43409
+ }
43410
+ }))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
43411
+ className: "p-0"
43412
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43413
+ className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
43414
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43415
+ "class": "col-lg-12 p-0"
43416
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43417
+ className: ' row m-0 p-0 mb-2 '
43418
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43419
+ className: ' row m-0 w-100 px-3 '
43420
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43421
+ className: "col-10 p-0 text-start",
43422
+ onClick: function onClick() {
43423
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
43424
+ setopenSideNav(false);
43425
+ }
43426
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43427
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 ',
43428
+ style: {}
43429
+ }, langdetect == 'en' ? 'SHOP' : 'تسوق', " ", langdetect == 'en' ? item.title_en : item.title_ar))))), Choosenindex.length != 0 && (item === null || item === void 0 ? void 0 : item.collections.length) != 0 && (item === null || item === void 0 || (_item$collections = item.collections) === null || _item$collections === void 0 ? void 0 : _item$collections.map(function (collitem, collindex) {
43430
+ if (collitem.isshowntocustomers == 1) {
43431
+ return /*#__PURE__*/React__default["default"].createElement("div", {
43432
+ "class": "col-lg-12 p-0"
43433
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43434
+ className: ' row m-0 p-0 mb-2 '
43435
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43436
+ className: ' row m-0 w-100 px-3 '
43437
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43438
+ className: "col-10 p-0 text-start",
43439
+ onClick: function onClick() {
43440
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
43441
+ setopenSideNav(false);
43442
+ }
43443
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43444
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 ',
43445
+ style: {}
43446
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar)))));
43447
+ }
43448
+ })))));
43449
+ }
43450
+ })), templatepropcontext.pagesnprop.map(function (item, index) {
43451
+ if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex > 0) {
43258
43452
  return /*#__PURE__*/React__default["default"].createElement("div", {
43259
43453
  "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43260
43454
  onClick: function onClick() {
package/dist/index.esm.js CHANGED
@@ -10273,7 +10273,7 @@ var Select$3 = /*#__PURE__*/React.lazy(function () {
10273
10273
  return import('react-select');
10274
10274
  });
10275
10275
  var Checkout = function Checkout(props) {
10276
- var _css, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _fetchcustomercartQue78, _fetchcustomercartQue80, _authdetailsContext$i4, _fetchcustomercartQue82, _authdetailsContext$i5, _fetchcustomercartQue84, _authdetailsContext$i6, _fetchcustomercartQue86, _authdetailsContext$i7, _fetchcustomercartQue88, _fetchcustomercartQue90;
10276
+ var _css, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _authdetailsContext$i4, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _fetchcustomercartQue78, _fetchcustomercartQue80, _authdetailsContext$i5, _fetchcustomercartQue82, _authdetailsContext$i6, _fetchcustomercartQue84, _authdetailsContext$i7, _fetchcustomercartQue86, _authdetailsContext$i8, _fetchcustomercartQue88, _fetchcustomercartQue90;
10277
10277
  var _useState = useState(null),
10278
10278
  _useState2 = _slicedToArray(_useState, 2);
10279
10279
  _useState2[0];
@@ -10324,6 +10324,7 @@ var Checkout = function Checkout(props) {
10324
10324
  _useState14 = _slicedToArray(_useState13, 2),
10325
10325
  shippingmethods = _useState14[0],
10326
10326
  setshippingmethods = _useState14[1];
10327
+ // const [orderextrafeilds, setorderextrafeilds] = useState([]);
10327
10328
  useEffect(function () {
10328
10329
  var _templatepropcontext$;
10329
10330
  var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
@@ -10397,6 +10398,7 @@ var Checkout = function Checkout(props) {
10397
10398
  var cityid = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.customercart.cityid;
10398
10399
  fetchshippingmethods(cityid);
10399
10400
  }
10401
+ // fetchorderextrafields();
10400
10402
  }, [fetchcustomercartQueryContext.data]);
10401
10403
  var fetchshippingmethods = function fetchshippingmethods(cityid) {
10402
10404
  GeneralAPIMutationContext.mutate({
@@ -10409,6 +10411,17 @@ var Checkout = function Checkout(props) {
10409
10411
  }
10410
10412
  });
10411
10413
  };
10414
+ // const fetchorderextrafields = () => {
10415
+ // GeneralAPIMutationContext.mutate({
10416
+ // endpointurl: '/InitiateCheckout',
10417
+
10418
+ // mutateSuccesscallback: (data) => {
10419
+ // if (data != undefined && data.data != undefined && data.data.status == true) {
10420
+ // setorderextrafeilds(data.data.data);
10421
+ // }
10422
+ // },
10423
+ // });
10424
+ // };
10412
10425
  var cartinfoupdater = function cartinfoupdater(key, value) {
10413
10426
  var _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20;
10414
10427
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
@@ -11472,6 +11485,27 @@ var Checkout = function Checkout(props) {
11472
11485
  return /*#__PURE__*/React.createElement("option", {
11473
11486
  value: item.id
11474
11487
  }, langdetect == 'en' ? item.name_en : item.name_ar);
11488
+ }))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '66b4a0338cb14' && /*#__PURE__*/React.createElement("div", {
11489
+ className: "col-lg-12 p-0 w-100 py-3"
11490
+ }, /*#__PURE__*/React.createElement("div", {
11491
+ "class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
11492
+ }, /*#__PURE__*/React.createElement("div", {
11493
+ className: "row m-0 w-100 mb-3 pl-3 pr-3"
11494
+ }, /*#__PURE__*/React.createElement("div", {
11495
+ className: "col-lg-4 col-md-12 mb-3"
11496
+ }, /*#__PURE__*/React.createElement("label", {
11497
+ className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
11498
+ }, langdetect == 'en' ? 'Event Date' : 'تاريخ الايفنت'), /*#__PURE__*/React.createElement("input", {
11499
+ type: 'date',
11500
+ className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control)
11501
+ // value={}
11502
+ ,
11503
+ onChange: function onChange(event) {
11504
+ // cartinfoupdater('email', event.target.value);
11505
+ },
11506
+ style: {
11507
+ boxShadow: 'none'
11508
+ }
11475
11509
  }))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React.createElement("div", {
11476
11510
  className: "col-lg-12 p-0 w-100"
11477
11511
  }, /*#__PURE__*/React.createElement("div", {
@@ -11596,7 +11630,7 @@ var Checkout = function Checkout(props) {
11596
11630
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11597
11631
  })), /*#__PURE__*/React.createElement("p", {
11598
11632
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11599
- }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.acceptForsaCard) == 1 && /*#__PURE__*/React.createElement("div", {
11633
+ }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.acceptForsaCard) == 1 && /*#__PURE__*/React.createElement("div", {
11600
11634
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11601
11635
  }, /*#__PURE__*/React.createElement("label", {
11602
11636
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11617,7 +11651,7 @@ var Checkout = function Checkout(props) {
11617
11651
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11618
11652
  })), /*#__PURE__*/React.createElement("p", {
11619
11653
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11620
- }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.acceptonlinePaypal) == 1 && /*#__PURE__*/React.createElement("div", {
11654
+ }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.acceptonlinePaypal) == 1 && /*#__PURE__*/React.createElement("div", {
11621
11655
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11622
11656
  }, /*#__PURE__*/React.createElement("label", {
11623
11657
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11638,7 +11672,7 @@ var Checkout = function Checkout(props) {
11638
11672
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11639
11673
  })), /*#__PURE__*/React.createElement("p", {
11640
11674
  className: "".concat(formstyles.checkbox_label, " + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '")
11641
- }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React.createElement("div", {
11675
+ }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React.createElement("div", {
11642
11676
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11643
11677
  }, /*#__PURE__*/React.createElement("label", {
11644
11678
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11659,7 +11693,7 @@ var Checkout = function Checkout(props) {
11659
11693
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11660
11694
  })), /*#__PURE__*/React.createElement("p", {
11661
11695
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11662
- }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.acceptAmanCard) == 1 && /*#__PURE__*/React.createElement("div", {
11696
+ }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.acceptAmanCard) == 1 && /*#__PURE__*/React.createElement("div", {
11663
11697
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11664
11698
  }, /*#__PURE__*/React.createElement("label", {
11665
11699
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -23045,7 +23079,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
23045
23079
  }), menuactive == true && /*#__PURE__*/React.createElement(AiOutlineClose, {
23046
23080
  size: sectionproperties.resp_sidenav_size,
23047
23081
  color: sectionproperties.resp_sidenav_color
23048
- }))), sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React.createElement("div", {
23082
+ }))), sectionproperties.searchbar_show == 'Show' && sectionproperties.searchbtnresponsiveposition == 'Left' && /*#__PURE__*/React.createElement("div", {
23049
23083
  style: {
23050
23084
  width: '30px',
23051
23085
  height: sectionproperties.cart_BtnHeight_resp + 'px'
@@ -23106,6 +23140,19 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
23106
23140
  }, /*#__PURE__*/React.createElement(IoSearchOutline, {
23107
23141
  size: 22,
23108
23142
  color: sectionproperties.cart_BtnTextcolor_resp
23143
+ }))), sectionproperties.searchbar_show == 'Show' && sectionproperties.searchbtnresponsiveposition == 'Right' && /*#__PURE__*/React.createElement("div", {
23144
+ style: {
23145
+ width: '30px',
23146
+ height: sectionproperties.cart_BtnHeight_resp + 'px'
23147
+ }
23148
+ }, /*#__PURE__*/React.createElement("i", {
23149
+ "class": "h-100 allcentered",
23150
+ onClick: function onClick() {
23151
+ setopenSearch(true);
23152
+ }
23153
+ }, /*#__PURE__*/React.createElement(IoSearchOutline, {
23154
+ size: 22,
23155
+ color: sectionproperties.cart_BtnTextcolor_resp
23109
23156
  }))), templateproperties_context.showfavorites == 'Show' && /*#__PURE__*/React.createElement("div", {
23110
23157
  style: {
23111
23158
  width: '30px',
@@ -42505,6 +42552,15 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42505
42552
  setopenSideNav = _useState8[1];
42506
42553
  var setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
42507
42554
  var scrollYposittionprops = props.actions.scrollYposittionprops;
42555
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
42556
+ var _useState9 = useState(''),
42557
+ _useState10 = _slicedToArray(_useState9, 2),
42558
+ Choosenindex = _useState10[0],
42559
+ setChoosenindex = _useState10[1];
42560
+ var _useState11 = useState([]),
42561
+ _useState12 = _slicedToArray(_useState11, 2),
42562
+ pcollarray = _useState12[0],
42563
+ setpcollarray = _useState12[1];
42508
42564
  useEffect(function () {
42509
42565
  var secpropobj = {};
42510
42566
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -42529,6 +42585,23 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42529
42585
  }
42530
42586
  }
42531
42587
  }, [templateproperties_context]);
42588
+ useEffect(function () {
42589
+ if (fetchCategoriesQueryContext.isSuccess == true && fetchCategoriesQueryContext.data.data.status == true) {
42590
+ var _fetchCategoriesQuery;
42591
+ var temppcollarray = _toConsumableArray(pcollarray);
42592
+ fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 || _fetchCategoriesQuery.categories.forEach(function (arrayItem) {
42593
+ if (arrayItem.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
42594
+ arrayItem === null || arrayItem === void 0 || arrayItem.parentcolletions.forEach(function (item) {
42595
+ if (item.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
42596
+ temppcollarray.push(item);
42597
+ }
42598
+ });
42599
+ }
42600
+ });
42601
+ setpcollarray(_toConsumableArray(temppcollarray));
42602
+ }
42603
+ // alert(JSON.stringify(pcollarray));
42604
+ }, [fetchCategoriesQueryContext.isSuccess]);
42532
42605
  var header_cssstyles = {
42533
42606
  upperheadersection: css({
42534
42607
  background: sectionproperties.uppersection_bgcolor,
@@ -42750,6 +42823,15 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42750
42823
  '@media (max-width: 800px)': {
42751
42824
  width: '50%'
42752
42825
  }
42826
+ }),
42827
+ collectionname: css({
42828
+ fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
42829
+ color: sectionproperties.collectionsectiontextcolor,
42830
+ fontWeight: sectionproperties.collectionsectiontextfontweight,
42831
+ ':hover': {
42832
+ color: sectionproperties.collectionsectiontextcoloronhover,
42833
+ transition: '.3s'
42834
+ }
42753
42835
  })
42754
42836
  };
42755
42837
  return /*#__PURE__*/React.createElement("div", {
@@ -42762,8 +42844,8 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42762
42844
  target: '_blank',
42763
42845
  style: {
42764
42846
  position: 'fixed',
42765
- bottom: 10,
42766
- right: 10,
42847
+ bottom: sectionproperties.whatsapppositionfrombottom + 'px',
42848
+ right: sectionproperties.whatsapppositionfromright + 'px',
42767
42849
  zIndex: 999999,
42768
42850
  transition: 'all 0.3s ease-out'
42769
42851
  }
@@ -42777,8 +42859,8 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42777
42859
  })), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React.createElement("div", {
42778
42860
  style: {
42779
42861
  position: 'fixed',
42780
- bottom: 15,
42781
- right: 15,
42862
+ bottom: sectionproperties.floatingbtnfrombottom + 'px',
42863
+ right: sectionproperties.floatingbtnfromright + 'px',
42782
42864
  zIndex: 999999,
42783
42865
  transition: 'all 0.3s ease-out',
42784
42866
  width: '100%'
@@ -42797,8 +42879,8 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
42797
42879
  target: '_self',
42798
42880
  style: {
42799
42881
  position: 'fixed',
42800
- bottom: 60,
42801
- right: 10,
42882
+ bottom: sectionproperties.callppositionfrombottom + 'px',
42883
+ right: sectionproperties.callppositionfromright + 'px',
42802
42884
  zIndex: 999999,
42803
42885
  transition: 'all 0.3s ease-out'
42804
42886
  }
@@ -43206,7 +43288,119 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
43206
43288
  }, /*#__PURE__*/React.createElement("div", {
43207
43289
  className: templateproperties_context.templatefontfamilyarabic == 'Changa' ? 'row m-0 w-100 mt-3 Changa' : templateproperties_context.templatefontfamily == 'OPTIRadiantBold-Condensed' ? 'row m-0 w-100 mt-3 fontfamilybold' : templateproperties_context.templatefontfamily == 'ASUL' ? 'row m-0 w-100 mt-3 ASUL' : templateproperties_context.templatefontfamily == 'Alata' ? 'row m-0 w-100 mt-3 alata' : templateproperties_context.templatefontfamilyarabic == 'Roboto' ? 'row m-0 w-100 mt-3 roboto' : templateproperties_context.templatefontfamilyarabic == 'ZaridSlab' ? 'row m-0 w-100 mt-3 zaridslab' : 'row m-0 w-100 mt-3'
43208
43290
  }, templatepropcontext.pagesnprop.map(function (item, index) {
43209
- if (item.isnavigation == 1 && item.isactive == 1) {
43291
+ if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex == 0) {
43292
+ return /*#__PURE__*/React.createElement("div", {
43293
+ "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43294
+ onClick: function onClick() {
43295
+ routingcountext(item.navigationroute);
43296
+ },
43297
+ style: {
43298
+ marginTop: sectionproperties.navitemmarginvertical + 'px',
43299
+ marginBottom: sectionproperties.navitemmarginvertical + 'px'
43300
+ }
43301
+ }, /*#__PURE__*/React.createElement("div", {
43302
+ "class": "row m-0 w-100"
43303
+ }, /*#__PURE__*/React.createElement("div", {
43304
+ "class": "col-lg-9 p-0 d-flex align-items-center justify-content-start"
43305
+ }, /*#__PURE__*/React.createElement("p", {
43306
+ "class": "m-0 p-0"
43307
+ }, " ", langdetect == 'en' ? item.pagename : item.pagename_ar)), /*#__PURE__*/React.createElement("div", {
43308
+ "class": "col-lg-3 p-0 d-flex align-items-center justify-content-end"
43309
+ }, /*#__PURE__*/React.createElement(BsChevronRight, {
43310
+ style: {
43311
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
43312
+ }
43313
+ }))));
43314
+ }
43315
+ }), sectionproperties.subheaderParentType == 'Parent Collections' && /*#__PURE__*/React.createElement(Accordion, {
43316
+ allowMultipleExpanded: false,
43317
+ allowZeroExpanded: true
43318
+ }, pcollarray.map(function (item, index) {
43319
+ if (item.isshowntocustomers == 1) {
43320
+ var _item$collections;
43321
+ return /*#__PURE__*/React.createElement(AccordionItem, {
43322
+ uuid: index
43323
+ }, /*#__PURE__*/React.createElement(AccordionItemHeading, {
43324
+ onClick: function onClick() {
43325
+ setChoosenindex(index);
43326
+ }
43327
+ }, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
43328
+ className: ' row m-0 p-0 '
43329
+ }, /*#__PURE__*/React.createElement("div", {
43330
+ "class": header_cssstyles.navbarItem + ' col-lg-10 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43331
+ onClick: function onClick() {
43332
+ // routingcountext(item.navigationroute);
43333
+ },
43334
+ style: {
43335
+ marginTop: sectionproperties.navitemmarginvertical + 'px',
43336
+ marginBottom: sectionproperties.navitemmarginvertical + 'px'
43337
+ }
43338
+ }, /*#__PURE__*/React.createElement("p", {
43339
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 '
43340
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
43341
+ className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
43342
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
43343
+ if (state.expanded == true) {
43344
+ return /*#__PURE__*/React.createElement("i", {
43345
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
43346
+ }, /*#__PURE__*/React.createElement(FiChevronDown, {
43347
+ style: {
43348
+ color: '#000',
43349
+ fontSize: 15
43350
+ }
43351
+ }));
43352
+ } else {
43353
+ return /*#__PURE__*/React.createElement("i", {
43354
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
43355
+ }, /*#__PURE__*/React.createElement(FiChevronUp, {
43356
+ style: {
43357
+ color: '#000',
43358
+ fontSize: 15
43359
+ }
43360
+ }));
43361
+ }
43362
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
43363
+ className: "p-0"
43364
+ }, /*#__PURE__*/React.createElement("div", {
43365
+ className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
43366
+ }, /*#__PURE__*/React.createElement("div", {
43367
+ "class": "col-lg-12 p-0"
43368
+ }, /*#__PURE__*/React.createElement("div", {
43369
+ className: ' row m-0 p-0 mb-2 '
43370
+ }, /*#__PURE__*/React.createElement("div", {
43371
+ className: ' row m-0 w-100 px-3 '
43372
+ }, /*#__PURE__*/React.createElement("div", {
43373
+ className: "col-10 p-0 text-start",
43374
+ onClick: function onClick() {
43375
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
43376
+ setopenSideNav(false);
43377
+ }
43378
+ }, /*#__PURE__*/React.createElement("p", {
43379
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 ',
43380
+ style: {}
43381
+ }, langdetect == 'en' ? 'SHOP' : 'تسوق', " ", langdetect == 'en' ? item.title_en : item.title_ar))))), Choosenindex.length != 0 && (item === null || item === void 0 ? void 0 : item.collections.length) != 0 && (item === null || item === void 0 || (_item$collections = item.collections) === null || _item$collections === void 0 ? void 0 : _item$collections.map(function (collitem, collindex) {
43382
+ if (collitem.isshowntocustomers == 1) {
43383
+ return /*#__PURE__*/React.createElement("div", {
43384
+ "class": "col-lg-12 p-0"
43385
+ }, /*#__PURE__*/React.createElement("div", {
43386
+ className: ' row m-0 p-0 mb-2 '
43387
+ }, /*#__PURE__*/React.createElement("div", {
43388
+ className: ' row m-0 w-100 px-3 '
43389
+ }, /*#__PURE__*/React.createElement("div", {
43390
+ className: "col-10 p-0 text-start",
43391
+ onClick: function onClick() {
43392
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
43393
+ setopenSideNav(false);
43394
+ }
43395
+ }, /*#__PURE__*/React.createElement("p", {
43396
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 ',
43397
+ style: {}
43398
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar)))));
43399
+ }
43400
+ })))));
43401
+ }
43402
+ })), templatepropcontext.pagesnprop.map(function (item, index) {
43403
+ if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex > 0) {
43210
43404
  return /*#__PURE__*/React.createElement("div", {
43211
43405
  "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43212
43406
  onClick: function onClick() {
package/dist/index.umd.js CHANGED
@@ -10146,7 +10146,7 @@
10146
10146
  return import('react-select');
10147
10147
  });
10148
10148
  var Checkout = function Checkout(props) {
10149
- var _css, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _fetchcustomercartQue78, _fetchcustomercartQue80, _authdetailsContext$i4, _fetchcustomercartQue82, _authdetailsContext$i5, _fetchcustomercartQue84, _authdetailsContext$i6, _fetchcustomercartQue86, _authdetailsContext$i7, _fetchcustomercartQue88, _fetchcustomercartQue90;
10149
+ var _css, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _authdetailsContext$i4, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _fetchcustomercartQue78, _fetchcustomercartQue80, _authdetailsContext$i5, _fetchcustomercartQue82, _authdetailsContext$i6, _fetchcustomercartQue84, _authdetailsContext$i7, _fetchcustomercartQue86, _authdetailsContext$i8, _fetchcustomercartQue88, _fetchcustomercartQue90;
10150
10150
  var _useState = React.useState(null),
10151
10151
  _useState2 = _slicedToArray__default["default"](_useState, 2);
10152
10152
  _useState2[0];
@@ -10197,6 +10197,7 @@
10197
10197
  _useState14 = _slicedToArray__default["default"](_useState13, 2),
10198
10198
  shippingmethods = _useState14[0],
10199
10199
  setshippingmethods = _useState14[1];
10200
+ // const [orderextrafeilds, setorderextrafeilds] = useState([]);
10200
10201
  React.useEffect(function () {
10201
10202
  var _templatepropcontext$;
10202
10203
  var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
@@ -10270,6 +10271,7 @@
10270
10271
  var cityid = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 || (_fetchcustomercartQue9 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.customercart.cityid;
10271
10272
  fetchshippingmethods(cityid);
10272
10273
  }
10274
+ // fetchorderextrafields();
10273
10275
  }, [fetchcustomercartQueryContext.data]);
10274
10276
  var fetchshippingmethods = function fetchshippingmethods(cityid) {
10275
10277
  GeneralAPIMutationContext.mutate({
@@ -10282,6 +10284,17 @@
10282
10284
  }
10283
10285
  });
10284
10286
  };
10287
+ // const fetchorderextrafields = () => {
10288
+ // GeneralAPIMutationContext.mutate({
10289
+ // endpointurl: '/InitiateCheckout',
10290
+
10291
+ // mutateSuccesscallback: (data) => {
10292
+ // if (data != undefined && data.data != undefined && data.data.status == true) {
10293
+ // setorderextrafeilds(data.data.data);
10294
+ // }
10295
+ // },
10296
+ // });
10297
+ // };
10285
10298
  var cartinfoupdater = function cartinfoupdater(key, value) {
10286
10299
  var _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20;
10287
10300
  var cartarr = queryClient.getQueryData('fetchcustomercart_API');
@@ -11345,6 +11358,27 @@
11345
11358
  return /*#__PURE__*/React__default["default"].createElement("option", {
11346
11359
  value: item.id
11347
11360
  }, langdetect == 'en' ? item.name_en : item.name_ar);
11361
+ }))))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '66b4a0338cb14' && /*#__PURE__*/React__default["default"].createElement("div", {
11362
+ className: "col-lg-12 p-0 w-100 py-3"
11363
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11364
+ "class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
11365
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11366
+ className: "row m-0 w-100 mb-3 pl-3 pr-3"
11367
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11368
+ className: "col-lg-4 col-md-12 mb-3"
11369
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
11370
+ className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
11371
+ }, langdetect == 'en' ? 'Event Date' : 'تاريخ الايفنت'), /*#__PURE__*/React__default["default"].createElement("input", {
11372
+ type: 'date',
11373
+ className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control)
11374
+ // value={}
11375
+ ,
11376
+ onChange: function onChange(event) {
11377
+ // cartinfoupdater('email', event.target.value);
11378
+ },
11379
+ style: {
11380
+ boxShadow: 'none'
11381
+ }
11348
11382
  }))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11349
11383
  className: "col-lg-12 p-0 w-100"
11350
11384
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -11469,7 +11503,7 @@
11469
11503
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11470
11504
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11471
11505
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11472
- }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11506
+ }, langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11473
11507
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11474
11508
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11475
11509
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11490,7 +11524,7 @@
11490
11524
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11491
11525
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11492
11526
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11493
- }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11527
+ }, langdetect == 'en' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11494
11528
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11495
11529
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11496
11530
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11511,7 +11545,7 @@
11511
11545
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11512
11546
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11513
11547
  className: "".concat(formstyles.checkbox_label, " + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '")
11514
- }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11548
+ }, langdetect == 'en' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11515
11549
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11516
11550
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11517
11551
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -11532,7 +11566,7 @@
11532
11566
  d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
11533
11567
  })), /*#__PURE__*/React__default["default"].createElement("p", {
11534
11568
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
11535
- }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11569
+ }, langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11536
11570
  className: "col-xl-4 col-lg-4 col-md-12 mb-3"
11537
11571
  }, /*#__PURE__*/React__default["default"].createElement("label", {
11538
11572
  className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
@@ -22918,7 +22952,7 @@
22918
22952
  }), menuactive == true && /*#__PURE__*/React__default["default"].createElement(AiOutlineClose.AiOutlineClose, {
22919
22953
  size: sectionproperties.resp_sidenav_size,
22920
22954
  color: sectionproperties.resp_sidenav_color
22921
- }))), sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
22955
+ }))), sectionproperties.searchbar_show == 'Show' && sectionproperties.searchbtnresponsiveposition == 'Left' && /*#__PURE__*/React__default["default"].createElement("div", {
22922
22956
  style: {
22923
22957
  width: '30px',
22924
22958
  height: sectionproperties.cart_BtnHeight_resp + 'px'
@@ -22979,6 +23013,19 @@
22979
23013
  }, /*#__PURE__*/React__default["default"].createElement(IoSearchOutline.IoSearchOutline, {
22980
23014
  size: 22,
22981
23015
  color: sectionproperties.cart_BtnTextcolor_resp
23016
+ }))), sectionproperties.searchbar_show == 'Show' && sectionproperties.searchbtnresponsiveposition == 'Right' && /*#__PURE__*/React__default["default"].createElement("div", {
23017
+ style: {
23018
+ width: '30px',
23019
+ height: sectionproperties.cart_BtnHeight_resp + 'px'
23020
+ }
23021
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
23022
+ "class": "h-100 allcentered",
23023
+ onClick: function onClick() {
23024
+ setopenSearch(true);
23025
+ }
23026
+ }, /*#__PURE__*/React__default["default"].createElement(IoSearchOutline.IoSearchOutline, {
23027
+ size: 22,
23028
+ color: sectionproperties.cart_BtnTextcolor_resp
22982
23029
  }))), templateproperties_context.showfavorites == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
22983
23030
  style: {
22984
23031
  width: '30px',
@@ -42378,6 +42425,15 @@
42378
42425
  setopenSideNav = _useState8[1];
42379
42426
  var setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
42380
42427
  var scrollYposittionprops = props.actions.scrollYposittionprops;
42428
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
42429
+ var _useState9 = React.useState(''),
42430
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
42431
+ Choosenindex = _useState10[0],
42432
+ setChoosenindex = _useState10[1];
42433
+ var _useState11 = React.useState([]),
42434
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
42435
+ pcollarray = _useState12[0],
42436
+ setpcollarray = _useState12[1];
42381
42437
  React.useEffect(function () {
42382
42438
  var secpropobj = {};
42383
42439
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -42402,6 +42458,23 @@
42402
42458
  }
42403
42459
  }
42404
42460
  }, [templateproperties_context]);
42461
+ React.useEffect(function () {
42462
+ if (fetchCategoriesQueryContext.isSuccess == true && fetchCategoriesQueryContext.data.data.status == true) {
42463
+ var _fetchCategoriesQuery;
42464
+ var temppcollarray = _toConsumableArray__default["default"](pcollarray);
42465
+ fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 || _fetchCategoriesQuery.categories.forEach(function (arrayItem) {
42466
+ if (arrayItem.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
42467
+ arrayItem === null || arrayItem === void 0 || arrayItem.parentcolletions.forEach(function (item) {
42468
+ if (item.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
42469
+ temppcollarray.push(item);
42470
+ }
42471
+ });
42472
+ }
42473
+ });
42474
+ setpcollarray(_toConsumableArray__default["default"](temppcollarray));
42475
+ }
42476
+ // alert(JSON.stringify(pcollarray));
42477
+ }, [fetchCategoriesQueryContext.isSuccess]);
42405
42478
  var header_cssstyles = {
42406
42479
  upperheadersection: glamor.css({
42407
42480
  background: sectionproperties.uppersection_bgcolor,
@@ -42623,6 +42696,15 @@
42623
42696
  '@media (max-width: 800px)': {
42624
42697
  width: '50%'
42625
42698
  }
42699
+ }),
42700
+ collectionname: glamor.css({
42701
+ fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
42702
+ color: sectionproperties.collectionsectiontextcolor,
42703
+ fontWeight: sectionproperties.collectionsectiontextfontweight,
42704
+ ':hover': {
42705
+ color: sectionproperties.collectionsectiontextcoloronhover,
42706
+ transition: '.3s'
42707
+ }
42626
42708
  })
42627
42709
  };
42628
42710
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -42635,8 +42717,8 @@
42635
42717
  target: '_blank',
42636
42718
  style: {
42637
42719
  position: 'fixed',
42638
- bottom: 10,
42639
- right: 10,
42720
+ bottom: sectionproperties.whatsapppositionfrombottom + 'px',
42721
+ right: sectionproperties.whatsapppositionfromright + 'px',
42640
42722
  zIndex: 999999,
42641
42723
  transition: 'all 0.3s ease-out'
42642
42724
  }
@@ -42650,8 +42732,8 @@
42650
42732
  })), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42651
42733
  style: {
42652
42734
  position: 'fixed',
42653
- bottom: 15,
42654
- right: 15,
42735
+ bottom: sectionproperties.floatingbtnfrombottom + 'px',
42736
+ right: sectionproperties.floatingbtnfromright + 'px',
42655
42737
  zIndex: 999999,
42656
42738
  transition: 'all 0.3s ease-out',
42657
42739
  width: '100%'
@@ -42670,8 +42752,8 @@
42670
42752
  target: '_self',
42671
42753
  style: {
42672
42754
  position: 'fixed',
42673
- bottom: 60,
42674
- right: 10,
42755
+ bottom: sectionproperties.callppositionfrombottom + 'px',
42756
+ right: sectionproperties.callppositionfromright + 'px',
42675
42757
  zIndex: 999999,
42676
42758
  transition: 'all 0.3s ease-out'
42677
42759
  }
@@ -43079,7 +43161,119 @@
43079
43161
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43080
43162
  className: templateproperties_context.templatefontfamilyarabic == 'Changa' ? 'row m-0 w-100 mt-3 Changa' : templateproperties_context.templatefontfamily == 'OPTIRadiantBold-Condensed' ? 'row m-0 w-100 mt-3 fontfamilybold' : templateproperties_context.templatefontfamily == 'ASUL' ? 'row m-0 w-100 mt-3 ASUL' : templateproperties_context.templatefontfamily == 'Alata' ? 'row m-0 w-100 mt-3 alata' : templateproperties_context.templatefontfamilyarabic == 'Roboto' ? 'row m-0 w-100 mt-3 roboto' : templateproperties_context.templatefontfamilyarabic == 'ZaridSlab' ? 'row m-0 w-100 mt-3 zaridslab' : 'row m-0 w-100 mt-3'
43081
43163
  }, templatepropcontext.pagesnprop.map(function (item, index) {
43082
- if (item.isnavigation == 1 && item.isactive == 1) {
43164
+ if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex == 0) {
43165
+ return /*#__PURE__*/React__default["default"].createElement("div", {
43166
+ "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43167
+ onClick: function onClick() {
43168
+ routingcountext(item.navigationroute);
43169
+ },
43170
+ style: {
43171
+ marginTop: sectionproperties.navitemmarginvertical + 'px',
43172
+ marginBottom: sectionproperties.navitemmarginvertical + 'px'
43173
+ }
43174
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43175
+ "class": "row m-0 w-100"
43176
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43177
+ "class": "col-lg-9 p-0 d-flex align-items-center justify-content-start"
43178
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43179
+ "class": "m-0 p-0"
43180
+ }, " ", langdetect == 'en' ? item.pagename : item.pagename_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
43181
+ "class": "col-lg-3 p-0 d-flex align-items-center justify-content-end"
43182
+ }, /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
43183
+ style: {
43184
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
43185
+ }
43186
+ }))));
43187
+ }
43188
+ }), sectionproperties.subheaderParentType == 'Parent Collections' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
43189
+ allowMultipleExpanded: false,
43190
+ allowZeroExpanded: true
43191
+ }, pcollarray.map(function (item, index) {
43192
+ if (item.isshowntocustomers == 1) {
43193
+ var _item$collections;
43194
+ return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
43195
+ uuid: index
43196
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, {
43197
+ onClick: function onClick() {
43198
+ setChoosenindex(index);
43199
+ }
43200
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
43201
+ className: ' row m-0 p-0 '
43202
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43203
+ "class": header_cssstyles.navbarItem + ' col-lg-10 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43204
+ onClick: function onClick() {
43205
+ // routingcountext(item.navigationroute);
43206
+ },
43207
+ style: {
43208
+ marginTop: sectionproperties.navitemmarginvertical + 'px',
43209
+ marginBottom: sectionproperties.navitemmarginvertical + 'px'
43210
+ }
43211
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43212
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 '
43213
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
43214
+ className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
43215
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
43216
+ if (state.expanded == true) {
43217
+ return /*#__PURE__*/React__default["default"].createElement("i", {
43218
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
43219
+ }, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, {
43220
+ style: {
43221
+ color: '#000',
43222
+ fontSize: 15
43223
+ }
43224
+ }));
43225
+ } else {
43226
+ return /*#__PURE__*/React__default["default"].createElement("i", {
43227
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
43228
+ }, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, {
43229
+ style: {
43230
+ color: '#000',
43231
+ fontSize: 15
43232
+ }
43233
+ }));
43234
+ }
43235
+ }))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
43236
+ className: "p-0"
43237
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43238
+ className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
43239
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43240
+ "class": "col-lg-12 p-0"
43241
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43242
+ className: ' row m-0 p-0 mb-2 '
43243
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43244
+ className: ' row m-0 w-100 px-3 '
43245
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43246
+ className: "col-10 p-0 text-start",
43247
+ onClick: function onClick() {
43248
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
43249
+ setopenSideNav(false);
43250
+ }
43251
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43252
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 ',
43253
+ style: {}
43254
+ }, langdetect == 'en' ? 'SHOP' : 'تسوق', " ", langdetect == 'en' ? item.title_en : item.title_ar))))), Choosenindex.length != 0 && (item === null || item === void 0 ? void 0 : item.collections.length) != 0 && (item === null || item === void 0 || (_item$collections = item.collections) === null || _item$collections === void 0 ? void 0 : _item$collections.map(function (collitem, collindex) {
43255
+ if (collitem.isshowntocustomers == 1) {
43256
+ return /*#__PURE__*/React__default["default"].createElement("div", {
43257
+ "class": "col-lg-12 p-0"
43258
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43259
+ className: ' row m-0 p-0 mb-2 '
43260
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43261
+ className: ' row m-0 w-100 px-3 '
43262
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43263
+ className: "col-10 p-0 text-start",
43264
+ onClick: function onClick() {
43265
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
43266
+ setopenSideNav(false);
43267
+ }
43268
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43269
+ className: "".concat(header_cssstyles.navbarItem) + ' mb-0 p-0 ',
43270
+ style: {}
43271
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar)))));
43272
+ }
43273
+ })))));
43274
+ }
43275
+ })), templatepropcontext.pagesnprop.map(function (item, index) {
43276
+ if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex > 0) {
43083
43277
  return /*#__PURE__*/React__default["default"].createElement("div", {
43084
43278
  "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer ',
43085
43279
  onClick: function onClick() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.711",
3
+ "version": "0.0.713",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {