tabexseriescomponents 0.0.382 → 0.0.384

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
@@ -17787,7 +17787,7 @@ var Subheader = function Subheader(props) {
17787
17787
  function ownKeys$1Y(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; }
17788
17788
  function _objectSpread$1Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17789
17789
  var Headerresponsive = function Headerresponsive(props) {
17790
- var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5;
17790
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _fetchCategoriesQuery;
17791
17791
  var actions = props.actions;
17792
17792
  var LogoutMutationContext = props.actions.LogoutMutationContext;
17793
17793
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
@@ -17804,16 +17804,16 @@ var Headerresponsive = function Headerresponsive(props) {
17804
17804
  var routingcountext = props.actions.routingcountext;
17805
17805
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
17806
17806
  var setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
17807
- props.actions.fetchCategoriesQueryContext;
17807
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
17808
17808
  var ikimagecredcontext = props.actions.ikimagecredcontext;
17809
17809
  var _useState = useState(''),
17810
17810
  _useState2 = _slicedToArray(_useState, 2),
17811
17811
  sectionproperties = _useState2[0],
17812
17812
  setsectionproperties = _useState2[1];
17813
17813
  var _useState3 = useState(''),
17814
- _useState4 = _slicedToArray(_useState3, 2);
17815
- _useState4[0];
17816
- _useState4[1];
17814
+ _useState4 = _slicedToArray(_useState3, 2),
17815
+ Choosenindex = _useState4[0],
17816
+ setChoosenindex = _useState4[1];
17817
17817
  useEffect(function () {
17818
17818
  if (props.sectionpropertiesprops != undefined) {
17819
17819
  setsectionproperties(_objectSpread$1Y({}, props.sectionpropertiesprops));
@@ -17824,13 +17824,13 @@ var Headerresponsive = function Headerresponsive(props) {
17824
17824
  logoarrayofobjects = _useState6[0],
17825
17825
  setlogoarrayofobjects = _useState6[1];
17826
17826
  var _useState7 = useState(false),
17827
- _useState8 = _slicedToArray(_useState7, 2);
17828
- _useState8[0];
17829
- _useState8[1];
17827
+ _useState8 = _slicedToArray(_useState7, 2),
17828
+ openCnvas = _useState8[0],
17829
+ setopenCnvas = _useState8[1];
17830
17830
  var _useState9 = useState(''),
17831
- _useState10 = _slicedToArray(_useState9, 2);
17832
- _useState10[0];
17833
- _useState10[1];
17831
+ _useState10 = _slicedToArray(_useState9, 2),
17832
+ activeTab = _useState10[0],
17833
+ setactiveTab = _useState10[1];
17834
17834
  useEffect(function () {
17835
17835
  if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
17836
17836
  var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
@@ -18087,13 +18087,17 @@ var Headerresponsive = function Headerresponsive(props) {
18087
18087
  }, /*#__PURE__*/React.createElement("div", {
18088
18088
  className: langdetect == 'en' ? 'mr-1' : 'ml-1',
18089
18089
  onClick: function onClick() {
18090
- var element2 = document.getElementById('filter');
18091
- element2.classList.toggle('d-flex');
18092
- if (sectionproperties.showhidesubheader == 'Show') {
18093
- var element3 = document.getElementById('subheader');
18094
- element3.classList.toggle('d-none');
18090
+ if (sectionproperties.responsiveheaderstyle == 'Style 1 With Canvas') {
18091
+ setopenCnvas(true);
18092
+ setactiveTab('menu');
18093
+ } else {
18094
+ var element2 = document.getElementById('filter');
18095
+ element2.classList.toggle('d-flex');
18096
+ if (sectionproperties.showhidesubheader == 'Show') {
18097
+ var element3 = document.getElementById('subheader');
18098
+ element3.classList.toggle('d-none');
18099
+ }
18095
18100
  }
18096
- // setopenCnvas(true);
18097
18101
  }
18098
18102
  }, /*#__PURE__*/React.createElement("i", {
18099
18103
  "class": "h-100 allcentered"
@@ -18634,7 +18638,7 @@ var Headerresponsive = function Headerresponsive(props) {
18634
18638
  style: {
18635
18639
  borderColor: sectionproperties.resp_header_separatorbg
18636
18640
  }
18637
- }))))))), sectionproperties.showhidesubheader == 'Show' && /*#__PURE__*/React.createElement("div", {
18641
+ }))))))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.showresponsivesubheader != 'Hide' && /*#__PURE__*/React.createElement("div", {
18638
18642
  className: "col-lg-12 p-0 h-100",
18639
18643
  id: "subheader"
18640
18644
  }, /*#__PURE__*/React.createElement("div", {
@@ -18644,6 +18648,282 @@ var Headerresponsive = function Headerresponsive(props) {
18644
18648
  }, /*#__PURE__*/React.createElement(Subheader, {
18645
18649
  sectionpropertiesprops: sectionproperties,
18646
18650
  actions: actions
18651
+ }))))), sectionproperties.length != 0 && sectionproperties.responsiveheaderstyle == 'Style 1 With Canvas' && /*#__PURE__*/React.createElement(Offcanvas, {
18652
+ show: openCnvas,
18653
+ onHide: function onHide() {
18654
+ setopenCnvas(false);
18655
+ },
18656
+ placement: langdetect == 'en' ? 'start' : 'end',
18657
+ scroll: true,
18658
+ style: {
18659
+ width: '90%',
18660
+ backgroundColor: 'white'
18661
+ },
18662
+ backdrop: true
18663
+ }, /*#__PURE__*/React.createElement(Offcanvas.Header, null, /*#__PURE__*/React.createElement(Offcanvas.Title, null, /*#__PURE__*/React.createElement("div", {
18664
+ "class": "allcentered",
18665
+ style: {
18666
+ position: 'absolute',
18667
+ right: -34,
18668
+ top: 5,
18669
+ width: 30,
18670
+ height: 30,
18671
+ background: '#000'
18672
+ },
18673
+ onClick: function onClick() {
18674
+ setopenCnvas(false);
18675
+ }
18676
+ }, /*#__PURE__*/React.createElement(IoMdClose, {
18677
+ color: '#fff',
18678
+ size: 16
18679
+ })), /*#__PURE__*/React.createElement("div", {
18680
+ className: "row m-0 w-100 mb-5",
18681
+ style: {
18682
+ borderBottom: '1px solid #eee'
18683
+ }
18684
+ }, /*#__PURE__*/React.createElement("div", {
18685
+ className: 'col-6 allcentered py-3',
18686
+ onClick: function onClick() {
18687
+ setactiveTab('menu');
18688
+ },
18689
+ style: {
18690
+ background: activeTab == 'menu' ? 'white' : '#eee'
18691
+ }
18692
+ }, /*#__PURE__*/React.createElement("p", {
18693
+ className: "m-0 p-0",
18694
+ style: {
18695
+ textTransform: 'uppercase',
18696
+ fontWeight: 500,
18697
+ fontSize: '15px',
18698
+ transition: '.3s',
18699
+ color: '#000'
18700
+ }
18701
+ }, langdetect == 'en' ? 'MENU' : 'القائمة')), /*#__PURE__*/React.createElement("div", {
18702
+ className: 'col-6 allcentered py-3',
18703
+ onClick: function onClick() {
18704
+ setactiveTab('categories');
18705
+ },
18706
+ style: {
18707
+ background: activeTab == 'categories' ? 'white' : '#eee'
18708
+ }
18709
+ }, /*#__PURE__*/React.createElement("p", {
18710
+ className: "m-0 p-0",
18711
+ style: {
18712
+ textTransform: 'uppercase',
18713
+ fontWeight: 500,
18714
+ fontSize: '15px',
18715
+ transition: '.3s',
18716
+ color: '#000'
18717
+ }
18718
+ }, langdetect == 'en' ? 'COLLECTIONS' : 'المجموعات'))))), /*#__PURE__*/React.createElement(Offcanvas.Body, null, activeTab == 'menu' && /*#__PURE__*/React.createElement("div", {
18719
+ className: ' row m-0 w-100 anim '
18720
+ }, /*#__PURE__*/React.createElement("div", {
18721
+ className: "col-lg-12 p-0"
18722
+ }, /*#__PURE__*/React.createElement("ul", {
18723
+ className: ' d-flex justify-content-center flex-column p-0 '
18724
+ }, templatepropcontext.pagesnprop.map(function (item, index) {
18725
+ if (item.isnavigation == 1 && item.isactive == 1) {
18726
+ return /*#__PURE__*/React.createElement("div", {
18727
+ className: "row m-0 w-100"
18728
+ }, /*#__PURE__*/React.createElement("div", {
18729
+ className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
18730
+ style: {
18731
+ paddingTop: index == 0 ? 5 : 0
18732
+ }
18733
+ }, /*#__PURE__*/React.createElement("div", {
18734
+ onClick: function onClick() {
18735
+ routingcountext(item.navigationroute, false, '');
18736
+ setopenCnvas(false);
18737
+ }
18738
+ }, /*#__PURE__*/React.createElement("p", {
18739
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
18740
+ }, langdetect == 'en' ? item.pagename : item.pagename_ar))), /*#__PURE__*/React.createElement("div", {
18741
+ className: "col-lg-12 p-0"
18742
+ }, /*#__PURE__*/React.createElement("hr", {
18743
+ className: "mt-4 mb-4",
18744
+ style: {
18745
+ borderColor: sectionproperties.resp_header_separatorbg
18746
+ }
18747
+ })));
18748
+ }
18749
+ }), authdetailsContext.loggedin == true && sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement("div", {
18750
+ className: "row m-0 w-100"
18751
+ }, /*#__PURE__*/React.createElement("div", {
18752
+ className: "col-lg-12 d-flex justify-content-start",
18753
+ onClick: function onClick() {
18754
+ routingcountext(StaticPagesLinksContext.Ordershistory);
18755
+ setopenCnvas(false);
18756
+ }
18757
+ }, /*#__PURE__*/React.createElement("p", {
18758
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
18759
+ }, lang.orderhistory)), /*#__PURE__*/React.createElement("div", {
18760
+ className: "col-lg-12 p-0"
18761
+ }, /*#__PURE__*/React.createElement("hr", {
18762
+ className: "mt-4 mb-4",
18763
+ style: {
18764
+ borderColor: sectionproperties.resp_header_separatorbg
18765
+ }
18766
+ }))), /*#__PURE__*/React.createElement("div", {
18767
+ className: "row m-0 w-100"
18768
+ }, /*#__PURE__*/React.createElement("div", {
18769
+ className: "col-lg-12 d-flex justify-content-start",
18770
+ onClick: function onClick() {
18771
+ routingcountext(StaticPagesLinksContext.Wishlist);
18772
+ setopenCnvas(false);
18773
+ }
18774
+ }, /*#__PURE__*/React.createElement("p", {
18775
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
18776
+ }, lang.wishlist)), /*#__PURE__*/React.createElement("div", {
18777
+ className: "col-lg-12 p-0"
18778
+ }, /*#__PURE__*/React.createElement("hr", {
18779
+ className: "mt-3 mb-3",
18780
+ style: {
18781
+ borderColor: sectionproperties.resp_header_separatorbg
18782
+ }
18783
+ }))), /*#__PURE__*/React.createElement("div", {
18784
+ className: "row m-0 w-100"
18785
+ }, /*#__PURE__*/React.createElement("div", {
18786
+ className: "col-lg-12 d-flex justify-content-start",
18787
+ onClick: function onClick() {
18788
+ routingcountext(StaticPagesLinksContext.Policies);
18789
+ setopenCnvas(false);
18790
+ }
18791
+ }, /*#__PURE__*/React.createElement("p", {
18792
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
18793
+ }, lang.policies)))))), activeTab == 'categories' && /*#__PURE__*/React.createElement("div", {
18794
+ className: ' row m-0 w-100 accordionContainer anim'
18795
+ }, /*#__PURE__*/React.createElement(Accordion, {
18796
+ allowMultipleExpanded: true,
18797
+ allowZeroExpanded: true
18798
+ }, fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories.map(function (item, index) {
18799
+ if (item.isshowntocustomers == 1) {
18800
+ var _fetchCategoriesQuery2, _fetchCategoriesQuery3;
18801
+ return /*#__PURE__*/React.createElement(AccordionItem, {
18802
+ uuid: index
18803
+ }, /*#__PURE__*/React.createElement(AccordionItemHeading, {
18804
+ onClick: function onClick() {
18805
+ setChoosenindex(index);
18806
+ }
18807
+ }, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
18808
+ className: ' row m-0 p-0 mb-2 '
18809
+ }, /*#__PURE__*/React.createElement("div", {
18810
+ className: ' row m-0 w-100 px-3 '
18811
+ }, /*#__PURE__*/React.createElement("div", {
18812
+ className: "col-10 p-0"
18813
+ // onClick={() => {
18814
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
18815
+ // }}
18816
+ }, /*#__PURE__*/React.createElement("p", {
18817
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
18818
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
18819
+ className: "col-lg-2 col-md-2 col-sm-2 p-0"
18820
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
18821
+ if (state.expanded == true) {
18822
+ return /*#__PURE__*/React.createElement("i", {
18823
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
18824
+ }, /*#__PURE__*/React.createElement(FiChevronDown, {
18825
+ style: {
18826
+ color: '#000',
18827
+ fontSize: 15
18828
+ }
18829
+ }));
18830
+ } else {
18831
+ return /*#__PURE__*/React.createElement("i", {
18832
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
18833
+ }, /*#__PURE__*/React.createElement(FiChevronUp, {
18834
+ style: {
18835
+ color: '#000',
18836
+ fontSize: 15
18837
+ }
18838
+ }));
18839
+ }
18840
+ }))), /*#__PURE__*/React.createElement("div", {
18841
+ className: "col-lg-12 p-0"
18842
+ }, /*#__PURE__*/React.createElement("hr", {
18843
+ className: "mt-3 mb-3",
18844
+ style: {
18845
+ borderColor: sectionproperties.resp_header_separatorbg
18846
+ }
18847
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
18848
+ className: "p-0"
18849
+ }, /*#__PURE__*/React.createElement("div", {
18850
+ className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
18851
+ }, /*#__PURE__*/React.createElement(Accordion, {
18852
+ allowMultipleExpanded: true,
18853
+ allowZeroExpanded: true
18854
+ }, Choosenindex.length != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.categories[Choosenindex]) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.parentcolletions) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.length) != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.categories[Choosenindex]) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.parentcolletions.map(function (pitem, pindex) {
18855
+ if (pitem.isshowntocustomers == 1) {
18856
+ return /*#__PURE__*/React.createElement(AccordionItem, {
18857
+ uuid: pindex
18858
+ }, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
18859
+ className: ' row m-0 p-0 mb-2 '
18860
+ }, /*#__PURE__*/React.createElement("div", {
18861
+ className: ' row m-0 w-100 px-4 '
18862
+ }, /*#__PURE__*/React.createElement("div", {
18863
+ className: "col-10 p-0",
18864
+ onClick: function onClick() {
18865
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
18866
+ }
18867
+ }, /*#__PURE__*/React.createElement("p", {
18868
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
18869
+ }, langdetect == 'en' ? pitem.title_en : pitem.title_ar)), /*#__PURE__*/React.createElement("div", {
18870
+ className: "col-lg-2 col-md-2 col-sm-2 p-0"
18871
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
18872
+ if (state.expanded == true) {
18873
+ return /*#__PURE__*/React.createElement("i", {
18874
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
18875
+ }, /*#__PURE__*/React.createElement(FiChevronDown, {
18876
+ style: {
18877
+ color: '#000',
18878
+ fontSize: 15
18879
+ }
18880
+ }));
18881
+ } else {
18882
+ return /*#__PURE__*/React.createElement("i", {
18883
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
18884
+ }, /*#__PURE__*/React.createElement(FiChevronUp, {
18885
+ style: {
18886
+ color: '#000',
18887
+ fontSize: 15
18888
+ }
18889
+ }));
18890
+ }
18891
+ }))), /*#__PURE__*/React.createElement("div", {
18892
+ className: "col-lg-12 p-0"
18893
+ }, /*#__PURE__*/React.createElement("hr", {
18894
+ className: "mt-3 mb-3",
18895
+ style: {
18896
+ borderColor: sectionproperties.resp_header_separatorbg
18897
+ }
18898
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
18899
+ className: "p-0"
18900
+ }, pitem.collections.length != 0 && pitem.collections.map(function (collitem, collindex) {
18901
+ if (collitem.isshowntocustomers == 1) {
18902
+ return /*#__PURE__*/React.createElement("div", {
18903
+ className: ' row m-0 p-0 mb-2 '
18904
+ }, /*#__PURE__*/React.createElement("div", {
18905
+ className: ' row m-0 w-100 px-5 '
18906
+ }, /*#__PURE__*/React.createElement("div", {
18907
+ className: "col-10 p-0",
18908
+ onClick: function onClick() {
18909
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
18910
+ setopenCnvas(false);
18911
+ }
18912
+ }, /*#__PURE__*/React.createElement("p", {
18913
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
18914
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar))), /*#__PURE__*/React.createElement("div", {
18915
+ className: "col-lg-12 p-0"
18916
+ }, /*#__PURE__*/React.createElement("hr", {
18917
+ className: "mt-3 mb-3",
18918
+ style: {
18919
+ borderColor: sectionproperties.resp_header_separatorbg
18920
+ }
18921
+ })));
18922
+ }
18923
+ })));
18924
+ }
18925
+ }))))));
18926
+ }
18647
18927
  })))))));
18648
18928
  };
18649
18929
 
@@ -35786,7 +36066,7 @@ styleInject(css_248z$m);
35786
36066
  function ownKeys$1B(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; }
35787
36067
  function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35788
36068
  var TwoTieredWithCenteredLogoHeader = function TwoTieredWithCenteredLogoHeader(props) {
35789
- var _authdetailsContext$i2, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2;
36069
+ var _textarray$, _textarray$2, _authdetailsContext$i2, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2;
35790
36070
  var _useState = useState(''),
35791
36071
  _useState2 = _slicedToArray(_useState, 2),
35792
36072
  sectionproperties = _useState2[0],
@@ -35807,6 +36087,10 @@ var TwoTieredWithCenteredLogoHeader = function TwoTieredWithCenteredLogoHeader(p
35807
36087
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
35808
36088
  var ikimagecredcontext = props.actions.ikimagecredcontext;
35809
36089
  var actions = props.actions;
36090
+ var _useState3 = useState([]),
36091
+ _useState4 = _slicedToArray(_useState3, 2),
36092
+ textarray = _useState4[0],
36093
+ settextarray = _useState4[1];
35810
36094
  useEffect(function () {
35811
36095
  var secpropobj = {};
35812
36096
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -35823,10 +36107,10 @@ var TwoTieredWithCenteredLogoHeader = function TwoTieredWithCenteredLogoHeader(p
35823
36107
  }
35824
36108
  setsectionproperties(_objectSpread$1B({}, secpropobj));
35825
36109
  }, [StatePagePropertiesContext]);
35826
- var _useState3 = useState([]),
35827
- _useState4 = _slicedToArray(_useState3, 2),
35828
- logoarrayofobjects = _useState4[0],
35829
- setlogoarrayofobjects = _useState4[1];
36110
+ var _useState5 = useState([]),
36111
+ _useState6 = _slicedToArray(_useState5, 2),
36112
+ logoarrayofobjects = _useState6[0],
36113
+ setlogoarrayofobjects = _useState6[1];
35830
36114
  useEffect(function () {
35831
36115
  if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
35832
36116
  var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
@@ -36115,12 +36399,53 @@ var TwoTieredWithCenteredLogoHeader = function TwoTieredWithCenteredLogoHeader(p
36115
36399
  }
36116
36400
  })
36117
36401
  };
36402
+ useEffect(function () {
36403
+ if (templateproperties_context.length != 0 && templateproperties_context.txtArray != undefined) {
36404
+ var textarrayparsed = JSON.parse(templateproperties_context.txtArray);
36405
+ if (Array.isArray(textarrayparsed)) {
36406
+ settextarray(_toConsumableArray(textarrayparsed));
36407
+ }
36408
+ }
36409
+ }, [templateproperties_context]);
36118
36410
  return /*#__PURE__*/React.createElement("div", {
36119
36411
  "class": "row m-0 w-100 d-flex align-items-center justify-content-center "
36120
36412
  }, sectionproperties.showdownloadapp == 'Show' && /*#__PURE__*/React.createElement(DownloadApp, {
36121
36413
  sectionpropertiesprops: sectionproperties,
36122
36414
  actions: actions
36123
- }), /*#__PURE__*/React.createElement("div", {
36415
+ }), sectionproperties.showtextslider == 'Show' && /*#__PURE__*/React.createElement("div", {
36416
+ "class": "col-lg-12 px-0 allcentered",
36417
+ style: {
36418
+ background: templateproperties_context.textsliderbgcolor,
36419
+ paddingTop: templateproperties_context.paddinghorizontal + 'px',
36420
+ paddingBottom: templateproperties_context.paddinghorizontal + 'px'
36421
+ }
36422
+ }, /*#__PURE__*/React.createElement("div", {
36423
+ "class": "col-lg-4 col-md-6"
36424
+ }, templateproperties_context.textslidertype == 'Slider' && /*#__PURE__*/React.createElement("marquee", null, /*#__PURE__*/React.createElement("span", {
36425
+ "class": "d-flex flex-row align-items-center"
36426
+ }, textarray.map(function (item, index) {
36427
+ return /*#__PURE__*/React.createElement("p", {
36428
+ "class": header_cssstyles.textSlider + ' mb-0 p-0 ',
36429
+ style: {
36430
+ fontSize: templateproperties_context.textsliderfontsize + 'px',
36431
+ color: templateproperties_context.textsliderfontcolor,
36432
+ fontWeight: templateproperties_context.textsliderfontweight,
36433
+ marginLeft: 100,
36434
+ marginRight: 100
36435
+ }
36436
+ }, langdetect == 'en' ? item.textEnglish : item.textArabic);
36437
+ }))), templateproperties_context.textslidertype == 'Text' && /*#__PURE__*/React.createElement("div", {
36438
+ "class": "w-100 allcentered"
36439
+ }, /*#__PURE__*/React.createElement("p", {
36440
+ "class": header_cssstyles.textSlider + ' mb-0 p-0 ',
36441
+ style: {
36442
+ fontSize: templateproperties_context.textsliderfontsize + 'px',
36443
+ color: templateproperties_context.textsliderfontcolor,
36444
+ fontWeight: templateproperties_context.textsliderfontweight
36445
+ }
36446
+ }, langdetect == 'en' ? (_textarray$ = textarray[0]) === null || _textarray$ === void 0 ? void 0 : _textarray$.textEnglish : (_textarray$2 = textarray[0]) === null || _textarray$2 === void 0 ? void 0 : _textarray$2.textArabic))))
36447
+ // <MarqueeHeader sectionpropertiesprops={sectionproperties} actions={actions} />
36448
+ , /*#__PURE__*/React.createElement("div", {
36124
36449
  "class": " ".concat(header_cssstyles.headercontainer) + ' d-flex d-md-none align-items-center m-0 pl-lg-2 pr-lg-2 '
36125
36450
  }, /*#__PURE__*/React.createElement("div", {
36126
36451
  "class": "row m-0 w-100 "
@@ -44861,7 +45186,11 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
44861
45186
  borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
44862
45187
  borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
44863
45188
  borderColor: sectionproperties.sectioncardbordercolor,
44864
- border: sectionproperties.sectioncardborderwidth + 'px solid'
45189
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
45190
+ '@media (max-width: 800px)': {
45191
+ paddingTop: sectionproperties.paddingverticalresponsive + 'px',
45192
+ paddingBottom: sectionproperties.paddingverticalresponsive + 'px'
45193
+ }
44865
45194
  }),
44866
45195
  viewmorebtn: css({
44867
45196
  width: sectionproperties.viewmorebtn_Width + 'px',
@@ -50127,6 +50456,12 @@ var Twobgimages = function Twobgimages(props) {
50127
50456
  borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
50128
50457
  borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
50129
50458
  borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
50459
+ },
50460
+ height: '100%',
50461
+ width: '100%',
50462
+ '@media (max-width: 800px)': {
50463
+ width: sectionproperties.innerwidthheightresp + '%',
50464
+ height: sectionproperties.innerwidthheightresp + '%'
50130
50465
  }
50131
50466
  }),
50132
50467
  text1styles: css({
@@ -50205,7 +50540,7 @@ var Twobgimages = function Twobgimages(props) {
50205
50540
  }, /*#__PURE__*/React.createElement("div", {
50206
50541
  className: sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 p-md-0' : 'col-lg-12 p-0'
50207
50542
  }, /*#__PURE__*/React.createElement("div", {
50208
- className: "row m-0 w-100"
50543
+ className: sectionproperties.justifyContentCenter == 'Centered' ? 'row m-0 w-100 allcentered' : 'row m-0 w-100 allcentered'
50209
50544
  }, Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
50210
50545
  return /*#__PURE__*/React.createElement("div", {
50211
50546
  className: bgimagearrayofobjs[index].bg1_numberofcols != 12 ? ' d-flex align-items-stretch col-md-6 col-sm-12 pr-sm-2 pl-sm-2 mb-md-3 mt-md-3 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols : ' d-flex align-items-stretch col-md-12 col-sm-12 pr-md-0 pl-md-0 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols,
@@ -50231,16 +50566,13 @@ var Twobgimages = function Twobgimages(props) {
50231
50566
  }, /*#__PURE__*/React.createElement("div", {
50232
50567
  className: "row ml-0 mr-0 d-flex justify-content-center w-100"
50233
50568
  }, /*#__PURE__*/React.createElement("div", {
50234
- className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto' : 'col-lg-12 p-0',
50569
+ className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto allcentered' : 'col-lg-12 p-0 allcentered',
50235
50570
  style: {
50236
50571
  height: sectionproperties.bgcovercontain == 'Contain' ? 'auto' : sectionproperties.image_height + 'vh'
50237
50572
  }
50238
50573
  }, /*#__PURE__*/React.createElement("div", {
50239
50574
  className: "".concat(bgcssstyles.bgimage) + ' d-md-flex d-sm-none ',
50240
- style: {
50241
- height: '100%',
50242
- width: '100%'
50243
- }
50575
+ style: {}
50244
50576
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
50245
50577
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
50246
50578
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
@@ -50257,10 +50589,7 @@ var Twobgimages = function Twobgimages(props) {
50257
50589
  }
50258
50590
  })), /*#__PURE__*/React.createElement("div", {
50259
50591
  className: "".concat(bgcssstyles.bgimage) + ' d-none d-md-none d-sm-flex',
50260
- style: {
50261
- height: '100%',
50262
- width: '100%'
50263
- }
50592
+ style: {}
50264
50593
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
50265
50594
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
50266
50595
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
@@ -52217,6 +52546,32 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
52217
52546
  backgroundColor: sectionproperties.linebgcolor,
52218
52547
  borderRadius: '5px'
52219
52548
  }
52549
+ }),
52550
+ imageimage: css({
52551
+ width: '100%',
52552
+ height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'px',
52553
+ margin: 0,
52554
+ padding: 0,
52555
+ objectFit: sectionproperties.bgcovercontain,
52556
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
52557
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
52558
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
52559
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
52560
+ '@media (max-width: 800px)': {
52561
+ height: sectionproperties.height_responsive == 0 ? 'auto' : sectionproperties.height_responsive + '%'
52562
+ }
52563
+ }),
52564
+ editortext: css({
52565
+ textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : sectionproperties.text2centered == 'Justify' ? 'justify' : 'start',
52566
+ color: sectionproperties.slideshowText2ContentColor,
52567
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
52568
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
52569
+ paddingLeft: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginLeft + 'px' : sectionproperties.slideshowText2Content_marginRight + 'px',
52570
+ paddingRight: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginRight + 'px' : sectionproperties.slideshowText2Content_marginLeft + 'px',
52571
+ '@media (max-width: 800px)': {
52572
+ fontSize: sectionproperties.slideshowText2ContentFontSize_resp + 'px',
52573
+ textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : sectionproperties.text2centered == 'Justify' ? 'justify' : 'start'
52574
+ }
52220
52575
  })
52221
52576
  };
52222
52577
  var SectionTitle = function SectionTitle() {
@@ -52301,15 +52656,8 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
52301
52656
  justifyContent: sectionproperties.text2centered == 'Centered' ? 'center' : 'start'
52302
52657
  }
52303
52658
  }, /*#__PURE__*/React.createElement("p", {
52304
- "class": "pb-0 text-md-center pl-md-2 pr-md-2",
52305
- style: {
52306
- textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start',
52307
- color: sectionproperties.slideshowText2ContentColor,
52308
- fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
52309
- fontWeight: sectionproperties.slideshowText2ContentFontWeight,
52310
- paddingLeft: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginLeft + 'px' : sectionproperties.slideshowText2Content_marginRight + 'px',
52311
- paddingRight: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginRight + 'px' : sectionproperties.slideshowText2Content_marginLeft + 'px'
52312
- },
52659
+ "class": sectionproperties.text2centered == 'Justify' ? section_styles.editortext + ' pb-0 pl-md-2 pr-md-2 ' : section_styles.editortext + ' pb-0 text-md-center pl-md-2 pr-md-2 ',
52660
+ style: {},
52313
52661
  dangerouslySetInnerHTML: {
52314
52662
  __html: langdetect == 'en' ? sectionproperties.contenteditor : sectionproperties.text2editortextar
52315
52663
  }
@@ -52392,20 +52740,11 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
52392
52740
  }
52393
52741
  }
52394
52742
  }, imagesarray.length != 0 && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
52743
+ "class": section_styles.imageimage,
52395
52744
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
52396
52745
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
52397
52746
  path: langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$7 = imagesarray[0]) === null || _imagesarray$7 === void 0 ? void 0 : _imagesarray$7.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$8 = imagesarray[0]) === null || _imagesarray$8 === void 0 ? void 0 : _imagesarray$8.bgsection_image_ar),
52398
- style: {
52399
- width: '100%',
52400
- height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'px',
52401
- margin: 0,
52402
- padding: 0,
52403
- objectFit: sectionproperties.bgcovercontain,
52404
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
52405
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
52406
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
52407
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px'
52408
- }
52747
+ style: {}
52409
52748
  }));
52410
52749
  };
52411
52750
  return /*#__PURE__*/React.createElement("div", {
@@ -52423,12 +52762,12 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
52423
52762
  width: sectionproperties.width + 'vw'
52424
52763
  }
52425
52764
  }, /*#__PURE__*/React.createElement("div", {
52426
- "class": sectionproperties.paddingLeft != 0 && sectionproperties.paddingRight != 0 ? 'row m-0 w-100 d-flex justify-content-between plr-1025-1 pr-md-3 pl-md-3' : sectionproperties.paddingLeft != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : sectionproperties.paddingRight != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between',
52765
+ "class": sectionproperties.paddingLeft != 0 && sectionproperties.paddingRight != 0 ? section_styles.sectioncintainer + ' row m-0 w-100 d-flex justify-content-between plr-1025-1 pr-md-3 pl-md-3 ' : sectionproperties.paddingLeft != 0 ? langdetect == 'en' ? section_styles.sectioncintainer + ' row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3 ' : section_styles.sectioncintainer + ' row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3 ' : sectionproperties.paddingRight != 0 ? langdetect == 'en' ? section_styles.sectioncintainer + ' row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3 ' : section_styles.sectioncintainer + ' row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3 ' : section_styles.sectioncintainer + ' row m-0 w-100 d-flex justify-content-between ',
52427
52766
  style: {
52428
52767
  paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
52429
52768
  paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
52430
- paddingTop: sectionproperties.paddingTop + 'px',
52431
- paddingBottom: sectionproperties.paddingBottom + 'px',
52769
+ // paddingTop: sectionproperties.paddingTop + 'px',
52770
+ // paddingBottom: sectionproperties.paddingBottom + 'px',
52432
52771
  marginTop: sectionproperties.marginTop + 'px',
52433
52772
  marginBottom: sectionproperties.marginBottom + 'px',
52434
52773
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',