tabexseriescomponents 0.0.395 → 0.0.396

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
@@ -19282,7 +19282,7 @@ var SocialMediaSection = function SocialMediaSection(props) {
19282
19282
  function ownKeys$1V(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; }
19283
19283
  function _objectSpread$1V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19284
19284
  var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19285
- var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
19285
+ var _css, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _returnpolicyobj15, _returnpolicyobj16, _fetchCategoriesQuery2, _authdetailsContext$i2;
19286
19286
  var actions = props.actions;
19287
19287
  var LogoutMutationContext = props.actions.LogoutMutationContext;
19288
19288
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
@@ -19299,16 +19299,16 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19299
19299
  var routingcountext = props.actions.routingcountext;
19300
19300
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
19301
19301
  props.actions.setcurrencyfunccontext;
19302
- props.actions.fetchCategoriesQueryContext;
19302
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
19303
19303
  var ikimagecredcontext = props.actions.ikimagecredcontext;
19304
19304
  var _useState = useState(''),
19305
19305
  _useState2 = _slicedToArray(_useState, 2),
19306
19306
  sectionproperties = _useState2[0],
19307
19307
  setsectionproperties = _useState2[1];
19308
19308
  var _useState3 = useState(''),
19309
- _useState4 = _slicedToArray(_useState3, 2);
19310
- _useState4[0];
19311
- _useState4[1];
19309
+ _useState4 = _slicedToArray(_useState3, 2),
19310
+ Choosenindex = _useState4[0],
19311
+ setChoosenindex = _useState4[1];
19312
19312
  var _useState5 = useState(false),
19313
19313
  _useState6 = _slicedToArray(_useState5, 2),
19314
19314
  menuactive = _useState6[0],
@@ -19329,7 +19329,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19329
19329
  var _useState11 = useState(false),
19330
19330
  _useState12 = _slicedToArray(_useState11, 2);
19331
19331
  _useState12[0];
19332
- _useState12[1];
19332
+ var setopenCnvas = _useState12[1];
19333
19333
  var _useState13 = useState(''),
19334
19334
  _useState14 = _slicedToArray(_useState13, 2),
19335
19335
  activeTab = _useState14[0],
@@ -19558,6 +19558,51 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19558
19558
  }
19559
19559
  }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0));
19560
19560
  };
19561
+ var _useState15 = useState(false),
19562
+ _useState16 = _slicedToArray(_useState15, 2),
19563
+ openmenuCanvas = _useState16[0],
19564
+ setopenmenuCanvas = _useState16[1];
19565
+ var _useState17 = useState([]),
19566
+ _useState18 = _slicedToArray(_useState17, 2),
19567
+ pcollarray = _useState18[0],
19568
+ setpcollarray = _useState18[1];
19569
+ useEffect(function () {
19570
+ if (fetchCategoriesQueryContext.isSuccess == true && fetchCategoriesQueryContext.data.data.status == true) {
19571
+ var _fetchCategoriesQuery;
19572
+ var temppcollarray = _toConsumableArray(pcollarray);
19573
+ fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 || _fetchCategoriesQuery.categories.forEach(function (arrayItem) {
19574
+ if (arrayItem.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
19575
+ arrayItem === null || arrayItem === void 0 || arrayItem.parentcolletions.forEach(function (item) {
19576
+ if (item.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
19577
+ temppcollarray.push(item);
19578
+ }
19579
+ });
19580
+ }
19581
+ });
19582
+ setpcollarray(_toConsumableArray(temppcollarray));
19583
+ }
19584
+ // alert(JSON.stringify(pcollarray));
19585
+ }, [fetchCategoriesQueryContext.isSuccess]);
19586
+ var InstLogoContainer = function InstLogoContainer() {
19587
+ var _logoarrayofobjects$, _logoarrayofobjects$2;
19588
+ return /*#__PURE__*/React.createElement("div", {
19589
+ className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
19590
+ style: {
19591
+ cursor: 'pointer'
19592
+ },
19593
+ onClick: function onClick() {
19594
+ routingcountext('home');
19595
+ }
19596
+ }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
19597
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
19598
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
19599
+ path: langdetect == 'en' ? (_logoarrayofobjects$ = logoarrayofobjects[0]) === null || _logoarrayofobjects$ === void 0 ? void 0 : _logoarrayofobjects$.englishlogo : (_logoarrayofobjects$2 = logoarrayofobjects[0]) === null || _logoarrayofobjects$2 === void 0 ? void 0 : _logoarrayofobjects$2.arabiclogo,
19600
+ style: {
19601
+ maxWidth: '100%',
19602
+ maxHeight: '100%'
19603
+ }
19604
+ }));
19605
+ };
19561
19606
  return /*#__PURE__*/React.createElement("div", {
19562
19607
  className: "row m-0 w-100"
19563
19608
  }, sectionproperties.length != 0 && /*#__PURE__*/React.createElement("div", {
@@ -19577,27 +19622,28 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19577
19622
  style: {
19578
19623
  position: 'relative'
19579
19624
  }
19580
- }, /*#__PURE__*/React.createElement("div", {
19581
- className: "col-md-6 col-sm-6 d-flex filter align-items-center p-0"
19582
- }, /*#__PURE__*/React.createElement("div", {
19583
- className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
19625
+ }, sectionproperties.logocentered == 'Centered' && /*#__PURE__*/React.createElement("div", {
19626
+ className: "col-md-4 col-sm-4 text-start p-0"
19627
+ }, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React.createElement("div", {
19584
19628
  style: {
19585
- cursor: 'pointer'
19586
- },
19587
- onClick: function onClick() {
19588
- routingcountext('home');
19629
+ width: '30px',
19630
+ height: sectionproperties.cart_BtnHeight_resp + 'px'
19589
19631
  }
19590
- }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
19591
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
19592
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
19593
- path: langdetect == 'en' ? (_logoarrayofobjects$ = logoarrayofobjects[0]) === null || _logoarrayofobjects$ === void 0 ? void 0 : _logoarrayofobjects$.englishlogo : (_logoarrayofobjects$2 = logoarrayofobjects[0]) === null || _logoarrayofobjects$2 === void 0 ? void 0 : _logoarrayofobjects$2.arabiclogo,
19594
- style: {
19595
- maxWidth: '100%',
19596
- maxHeight: '100%'
19632
+ }, /*#__PURE__*/React.createElement("i", {
19633
+ "class": "h-100 allcentered",
19634
+ onClick: function onClick() {
19635
+ setopenSearch(true);
19597
19636
  }
19598
- }))), /*#__PURE__*/React.createElement("div", {
19599
- className: "col-md-6 col-sm-6 d-flex align-items-center justify-content-end p-0"
19600
- }, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React.createElement("div", {
19637
+ }, /*#__PURE__*/React.createElement(IoSearchOutline, {
19638
+ size: 22,
19639
+ color: sectionproperties.cart_BtnTextcolor_resp
19640
+ })))), sectionproperties.logocentered == 'Not Centered' && /*#__PURE__*/React.createElement("div", {
19641
+ className: "col-md-6 col-sm-6 d-flex filter align-items-center p-0"
19642
+ }, InstLogoContainer()), sectionproperties.logocentered == 'Centered' && /*#__PURE__*/React.createElement("div", {
19643
+ className: "col-md-4 col-sm-4 allcentered p-0"
19644
+ }, InstLogoContainer()), /*#__PURE__*/React.createElement("div", {
19645
+ className: sectionproperties.logocentered != 'Centered' ? 'col-md-6 col-sm-6 d-flex align-items-center justify-content-end p-0' : 'col-md-4 col-sm-4 d-flex align-items-center justify-content-end p-0'
19646
+ }, sectionproperties.searchbar_show == 'Show' && sectionproperties.logocentered == 'Not Centered' && /*#__PURE__*/React.createElement("div", {
19601
19647
  style: {
19602
19648
  width: '30px',
19603
19649
  height: sectionproperties.cart_BtnHeight_resp + 'px'
@@ -19621,10 +19667,15 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19621
19667
  color: sectionproperties.cart_BtnTextcolor_resp
19622
19668
  },
19623
19669
  onClick: function onClick() {
19624
- if (menuactive == true) {
19625
- setmenuactive(false);
19670
+ if (sectionproperties.responsiveheaderstyle == 'Style 2') {
19671
+ if (menuactive == true) {
19672
+ setmenuactive(false);
19673
+ } else {
19674
+ setmenuactive(true);
19675
+ }
19626
19676
  } else {
19627
- setmenuactive(true);
19677
+ setopenmenuCanvas(true);
19678
+ setactiveTab('menu');
19628
19679
  }
19629
19680
  }
19630
19681
  }, menuactive == false && /*#__PURE__*/React.createElement(FiMenu, {
@@ -19646,46 +19697,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19646
19697
  zIndex: 10000,
19647
19698
  overflow: 'scroll'
19648
19699
  }
19649
- }, sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React.createElement("div", {
19650
- className: "row m-0 w-100 mb-5",
19651
- style: {
19652
- borderBottom: '1px solid #eee'
19653
- }
19654
19700
  }, /*#__PURE__*/React.createElement("div", {
19655
- className: 'col-6 allcentered py-3',
19656
- onClick: function onClick() {
19657
- setactiveTab('menu');
19658
- },
19659
- style: {
19660
- background: activeTab == 'menu' ? 'white' : '#eee'
19661
- }
19662
- }, /*#__PURE__*/React.createElement("p", {
19663
- className: "m-0 p-0",
19664
- style: {
19665
- textTransform: 'uppercase',
19666
- fontWeight: 500,
19667
- fontSize: '15px',
19668
- transition: '.3s',
19669
- color: '#000'
19670
- }
19671
- }, langdetect == 'en' ? 'MENU' : 'القائمة')), /*#__PURE__*/React.createElement("div", {
19672
- className: 'col-6 allcentered py-3',
19673
- onClick: function onClick() {
19674
- setactiveTab('categories');
19675
- },
19676
- style: {
19677
- background: activeTab == 'categories' ? 'white' : '#eee'
19678
- }
19679
- }, /*#__PURE__*/React.createElement("p", {
19680
- className: "m-0 p-0",
19681
- style: {
19682
- textTransform: 'uppercase',
19683
- fontWeight: 500,
19684
- fontSize: '15px',
19685
- transition: '.3s',
19686
- color: '#000'
19687
- }
19688
- }, langdetect == 'en' ? 'SHOP' : 'تسوق'))), sectionproperties.responsiveheaderstyle != 'Style 2 With Subheader' && /*#__PURE__*/React.createElement("div", {
19689
19701
  "class": "col-lg-12 text-end anim"
19690
19702
  }, /*#__PURE__*/React.createElement("i", {
19691
19703
  "class": ' h-100 allcentered ',
@@ -19900,7 +19912,379 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19900
19912
  color: sectionproperties.language_container_color_resp
19901
19913
  }
19902
19914
  }, "\u0644\u063A\u0629 \u0639\u0631\u0628\u064A\u0629"))))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement("div", {
19903
- "class": "row m-0 w-100 mt-5"
19915
+ "class": "row m-0 w-100 mt-5"
19916
+ }, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement("button", {
19917
+ "class": "".concat(header_cssstyles.userbtn_respContainer) + ' anim d-flex align-items-center justify-content-start p-0 m-0 ',
19918
+ onClick: function onClick() {
19919
+ routingcountext(StaticPagesLinksContext.Login);
19920
+ setmenuactive(false);
19921
+ }
19922
+ }, /*#__PURE__*/React.createElement("i", {
19923
+ "class": "".concat(header_cssstyles.userbtnLoggedin_icon) + ' h-100 allcentered userbtn_resp m-0 p-0 p-0 '
19924
+ }, /*#__PURE__*/React.createElement(BiUser, null)), /*#__PURE__*/React.createElement("span", {
19925
+ "class": "userbtn_resp mx-2"
19926
+ }, langdetect == 'en' ? 'Login/Register' : 'تسجيل دخول/إنشاء حساب')), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("button", {
19927
+ "class": "".concat(header_cssstyles.userbtn_respContainer) + ' anim d-flex align-items-center justify-content-start p-0 m-0 ',
19928
+ onClick: function onClick() {
19929
+ routingcountext(StaticPagesLinksContext.accountinfo);
19930
+ setmenuactive(false);
19931
+ }
19932
+ }, /*#__PURE__*/React.createElement("i", {
19933
+ "class": "".concat(header_cssstyles.userbtnLoggedin_icon) + ' h-100 allcentered userbtn_resp m-0 p-0 p-0 '
19934
+ }, /*#__PURE__*/React.createElement(BiUser, null)), /*#__PURE__*/React.createElement("span", {
19935
+ "class": header_cssstyles.loggedintext + ' text-start text-overflow d-block loggedintext mx-2 '
19936
+ }, authdetailsContext.customerinfo.name))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
19937
+ "class": "row m-0 w-100 mt-5 allcentered anim"
19938
+ }, /*#__PURE__*/React.createElement("button", {
19939
+ "class": ' d-flex align-items-center justify-content-center p-0 m-0 ',
19940
+ onClick: function onClick() {
19941
+ LogoutMutationContext.mutate();
19942
+ setmenuactive(false);
19943
+ },
19944
+ style: {
19945
+ width: '90%',
19946
+ height: 40,
19947
+ background: 'white',
19948
+ color: '#000',
19949
+ fontSize: 16
19950
+ }
19951
+ }, lang.logout)))))), openSearch == true && /*#__PURE__*/React.createElement("div", {
19952
+ "class": "col-12 d-flex align-items-center"
19953
+ }, /*#__PURE__*/React.createElement("button", {
19954
+ style: {
19955
+ width: 40,
19956
+ height: 40,
19957
+ position: 'absolute',
19958
+ top: 10,
19959
+ right: 10,
19960
+ zIndex: 10000
19961
+ },
19962
+ "class": "allcentered",
19963
+ onClick: function onClick() {
19964
+ setopenSearch(false);
19965
+ setSearchHeaderInputContext('');
19966
+ }
19967
+ }, /*#__PURE__*/React.createElement(IoClose, {
19968
+ style: {
19969
+ fontSize: 20,
19970
+ color: '#000'
19971
+ }
19972
+ })), /*#__PURE__*/React.createElement("div", {
19973
+ "class": header_cssstyles.searchbarcont
19974
+ }, /*#__PURE__*/React.createElement("input", {
19975
+ type: "text",
19976
+ placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
19977
+ "class": "".concat(header_cssstyles.searchbarcont_input) + ' pb-1 ',
19978
+ onChange: function onChange(event) {
19979
+ setSearchHeaderInputContext(event.target.value);
19980
+ }
19981
+ }), /*#__PURE__*/React.createElement(Searchlist$1, {
19982
+ sectionpropertiesprops: sectionproperties,
19983
+ srcfromprops: 'fullheader',
19984
+ actions: actions
19985
+ }))), sectionproperties.length != 0 && sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React.createElement(Offcanvas, {
19986
+ show: openmenuCanvas,
19987
+ onHide: function onHide() {
19988
+ setopenmenuCanvas(false);
19989
+ },
19990
+ placement: langdetect == 'en' ? 'start' : 'end',
19991
+ scroll: true,
19992
+ style: {
19993
+ width: '90%',
19994
+ backgroundColor: 'white'
19995
+ },
19996
+ backdrop: true
19997
+ }, /*#__PURE__*/React.createElement(Offcanvas.Header, null, /*#__PURE__*/React.createElement(Offcanvas.Title, null, langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
19998
+ "class": "allcentered",
19999
+ style: {
20000
+ position: 'absolute',
20001
+ right: -34,
20002
+ top: 5,
20003
+ width: 30,
20004
+ height: 30,
20005
+ background: '#000'
20006
+ },
20007
+ onClick: function onClick() {
20008
+ setopenmenuCanvas(false);
20009
+ }
20010
+ }, /*#__PURE__*/React.createElement(IoMdClose, {
20011
+ color: '#fff',
20012
+ size: 16
20013
+ })), langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
20014
+ "class": "allcentered",
20015
+ style: {
20016
+ position: 'absolute',
20017
+ left: -34,
20018
+ top: 5,
20019
+ width: 30,
20020
+ height: 30,
20021
+ background: '#000'
20022
+ },
20023
+ onClick: function onClick() {
20024
+ setopenCnvas(false);
20025
+ }
20026
+ }, /*#__PURE__*/React.createElement(IoMdClose, {
20027
+ color: '#fff',
20028
+ size: 16
20029
+ })), /*#__PURE__*/React.createElement("div", {
20030
+ className: "row m-0 w-100 mb-5",
20031
+ style: {
20032
+ borderBottom: '1px solid #eee'
20033
+ }
20034
+ }, /*#__PURE__*/React.createElement("div", {
20035
+ className: 'col-6 allcentered py-3',
20036
+ onClick: function onClick() {
20037
+ setactiveTab('menu');
20038
+ },
20039
+ style: {
20040
+ background: activeTab == 'menu' ? 'white' : '#eee'
20041
+ }
20042
+ }, /*#__PURE__*/React.createElement("p", {
20043
+ className: "m-0 p-0",
20044
+ style: {
20045
+ textTransform: 'uppercase',
20046
+ fontWeight: 500,
20047
+ fontSize: '15px',
20048
+ transition: '.3s',
20049
+ color: '#000'
20050
+ }
20051
+ }, langdetect == 'en' ? 'MENU' : 'القائمة')), /*#__PURE__*/React.createElement("div", {
20052
+ className: 'col-6 allcentered py-3',
20053
+ onClick: function onClick() {
20054
+ setactiveTab('categories');
20055
+ },
20056
+ style: {
20057
+ background: activeTab == 'categories' ? 'white' : '#eee'
20058
+ }
20059
+ }, /*#__PURE__*/React.createElement("p", {
20060
+ className: "m-0 p-0",
20061
+ style: {
20062
+ textTransform: 'uppercase',
20063
+ fontWeight: 500,
20064
+ fontSize: '15px',
20065
+ transition: '.3s',
20066
+ color: '#000'
20067
+ }
20068
+ }, langdetect == 'en' ? 'SHOP' : 'تسوق'))))), /*#__PURE__*/React.createElement(Offcanvas.Body, null, activeTab == 'menu' && /*#__PURE__*/React.createElement("div", {
20069
+ className: ' row m-0 w-100 anim '
20070
+ }, /*#__PURE__*/React.createElement("div", {
20071
+ className: "col-lg-12 p-0"
20072
+ }, /*#__PURE__*/React.createElement("ul", {
20073
+ className: ' d-flex justify-content-center flex-column p-0 '
20074
+ }, templatepropcontext.pagesnprop.map(function (item, index) {
20075
+ if (item.isnavigation == 1 && item.isactive == 1) {
20076
+ return /*#__PURE__*/React.createElement("div", {
20077
+ className: "row m-0 w-100"
20078
+ }, /*#__PURE__*/React.createElement("div", {
20079
+ className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
20080
+ style: {
20081
+ paddingTop: index == 0 ? 5 : 0
20082
+ }
20083
+ }, /*#__PURE__*/React.createElement("div", {
20084
+ onClick: function onClick() {
20085
+ routingcountext(item.navigationroute, false, '');
20086
+ setopenCnvas(false);
20087
+ }
20088
+ }, /*#__PURE__*/React.createElement("p", {
20089
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20090
+ }, langdetect == 'en' ? item.pagename : item.pagename_ar))), /*#__PURE__*/React.createElement("div", {
20091
+ className: "col-lg-12 p-0"
20092
+ }, /*#__PURE__*/React.createElement("hr", {
20093
+ className: "mt-4 mb-4",
20094
+ style: {
20095
+ borderColor: sectionproperties.resp_header_separatorbg
20096
+ }
20097
+ })));
20098
+ }
20099
+ }), authdetailsContext.loggedin == true && sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement("div", {
20100
+ className: "row m-0 w-100"
20101
+ }, /*#__PURE__*/React.createElement("div", {
20102
+ className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
20103
+ onClick: function onClick() {
20104
+ routingcountext(StaticPagesLinksContext.Ordershistory);
20105
+ setopenCnvas(false);
20106
+ }
20107
+ }, /*#__PURE__*/React.createElement("p", {
20108
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
20109
+ }, lang.orderhistory)), /*#__PURE__*/React.createElement("div", {
20110
+ className: "col-lg-12 p-0"
20111
+ }, /*#__PURE__*/React.createElement("hr", {
20112
+ className: "mt-4 mb-4",
20113
+ style: {
20114
+ borderColor: sectionproperties.resp_header_separatorbg
20115
+ }
20116
+ }))), templateproperties_context.showfavorites == 'Show' && /*#__PURE__*/React.createElement("div", {
20117
+ className: "row m-0 w-100"
20118
+ }, /*#__PURE__*/React.createElement("div", {
20119
+ className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
20120
+ onClick: function onClick() {
20121
+ routingcountext(StaticPagesLinksContext.Wishlist);
20122
+ setopenCnvas(false);
20123
+ }
20124
+ }, /*#__PURE__*/React.createElement("p", {
20125
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
20126
+ }, lang.wishlist)), /*#__PURE__*/React.createElement("div", {
20127
+ className: "col-lg-12 p-0"
20128
+ }, /*#__PURE__*/React.createElement("hr", {
20129
+ className: "mt-4 mb-4",
20130
+ style: {
20131
+ borderColor: sectionproperties.resp_header_separatorbg
20132
+ }
20133
+ }))), templateproperties_context.separatepolicies == 'No' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
20134
+ className: "row m-0 w-100"
20135
+ }, /*#__PURE__*/React.createElement("div", {
20136
+ className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
20137
+ onClick: function onClick() {
20138
+ routingcountext(StaticPagesLinksContext.Policies);
20139
+ setmenuactive(false);
20140
+ }
20141
+ }, /*#__PURE__*/React.createElement("p", {
20142
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
20143
+ }, lang.policies)), /*#__PURE__*/React.createElement("div", {
20144
+ className: "col-lg-12 p-0"
20145
+ }, /*#__PURE__*/React.createElement("hr", {
20146
+ className: "mt-4 mb-4",
20147
+ style: {
20148
+ borderColor: sectionproperties.resp_header_separatorbg
20149
+ }
20150
+ }))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
20151
+ className: "row m-0 w-100"
20152
+ }, /*#__PURE__*/React.createElement("div", {
20153
+ className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
20154
+ }, /*#__PURE__*/React.createElement("div", {
20155
+ onClick: function onClick() {
20156
+ routingcountext(StaticPagesLinksContext.PrivacyPolicy);
20157
+ setmenuactive(false);
20158
+ }
20159
+ }, /*#__PURE__*/React.createElement("p", {
20160
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20161
+ }, langdetect == 'en' ? (_returnpolicyobj9 = returnpolicyobj('Privacy Policy')) === null || _returnpolicyobj9 === void 0 ? void 0 : _returnpolicyobj9.policypagename_en : (_returnpolicyobj10 = returnpolicyobj('Privacy Policy')) === null || _returnpolicyobj10 === void 0 ? void 0 : _returnpolicyobj10.policypagename_ar))), /*#__PURE__*/React.createElement("div", {
20162
+ className: "col-lg-12 p-0"
20163
+ }, /*#__PURE__*/React.createElement("hr", {
20164
+ className: "mt-3 mb-3",
20165
+ style: {
20166
+ borderColor: sectionproperties.resp_header_separatorbg
20167
+ }
20168
+ }))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
20169
+ className: "row m-0 w-100"
20170
+ }, /*#__PURE__*/React.createElement("div", {
20171
+ className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
20172
+ }, /*#__PURE__*/React.createElement("div", {
20173
+ onClick: function onClick() {
20174
+ routingcountext(StaticPagesLinksContext.ShippingPolicy);
20175
+ setmenuactive(false);
20176
+ }
20177
+ }, /*#__PURE__*/React.createElement("p", {
20178
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20179
+ }, langdetect == 'en' ? (_returnpolicyobj11 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj11 === void 0 ? void 0 : _returnpolicyobj11.policypagename_en : (_returnpolicyobj12 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj12 === void 0 ? void 0 : _returnpolicyobj12.policypagename_ar))), /*#__PURE__*/React.createElement("div", {
20180
+ className: "col-lg-12 p-0"
20181
+ }, /*#__PURE__*/React.createElement("hr", {
20182
+ className: "mt-3 mb-3",
20183
+ style: {
20184
+ borderColor: sectionproperties.resp_header_separatorbg
20185
+ }
20186
+ }))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
20187
+ className: "row m-0 w-100"
20188
+ }, /*#__PURE__*/React.createElement("div", {
20189
+ className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
20190
+ }, /*#__PURE__*/React.createElement("div", {
20191
+ onClick: function onClick() {
20192
+ routingcountext(StaticPagesLinksContext.RefundPolicy);
20193
+ setmenuactive(false);
20194
+ }
20195
+ }, /*#__PURE__*/React.createElement("p", {
20196
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20197
+ }, langdetect == 'en' ? (_returnpolicyobj13 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj13 === void 0 ? void 0 : _returnpolicyobj13.policypagename_en : (_returnpolicyobj14 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj14 === void 0 ? void 0 : _returnpolicyobj14.policypagename_ar))), /*#__PURE__*/React.createElement("div", {
20198
+ className: "col-lg-12 p-0"
20199
+ }, /*#__PURE__*/React.createElement("hr", {
20200
+ className: "mt-3 mb-3",
20201
+ style: {
20202
+ borderColor: sectionproperties.resp_header_separatorbg
20203
+ }
20204
+ }))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
20205
+ className: "row m-0 w-100"
20206
+ }, /*#__PURE__*/React.createElement("div", {
20207
+ className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
20208
+ }, /*#__PURE__*/React.createElement("div", {
20209
+ onClick: function onClick() {
20210
+ routingcountext(StaticPagesLinksContext.TermsConditions);
20211
+ setmenuactive(false);
20212
+ }
20213
+ }, /*#__PURE__*/React.createElement("p", {
20214
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20215
+ }, langdetect == 'en' ? (_returnpolicyobj15 = returnpolicyobj('Terms & Conditions')) === null || _returnpolicyobj15 === void 0 ? void 0 : _returnpolicyobj15.policypagename_en : (_returnpolicyobj16 = returnpolicyobj('Terms & Conditions')) === null || _returnpolicyobj16 === void 0 ? void 0 : _returnpolicyobj16.policypagename_ar))), /*#__PURE__*/React.createElement("div", {
20216
+ className: "col-lg-12 p-0"
20217
+ }, /*#__PURE__*/React.createElement("hr", {
20218
+ className: "mt-3 mb-3",
20219
+ style: {
20220
+ borderColor: sectionproperties.resp_header_separatorbg
20221
+ }
20222
+ }))), authdetailsContext.loggedin == true && templateproperties_context.showprevorder == 'Show' && /*#__PURE__*/React.createElement("div", {
20223
+ className: "row m-0 w-100"
20224
+ }, /*#__PURE__*/React.createElement("div", {
20225
+ className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
20226
+ }, /*#__PURE__*/React.createElement("div", {
20227
+ onClick: function onClick() {
20228
+ routingcountext(StaticPagesLinksContext.Ordershistory);
20229
+ setmenuactive(false);
20230
+ }
20231
+ }, /*#__PURE__*/React.createElement("p", {
20232
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20233
+ }, langdetect == 'en' ? templateproperties_context.previousorders_titleen : templateproperties_context.previousorders_titlear))), /*#__PURE__*/React.createElement("div", {
20234
+ className: "col-lg-12 p-0"
20235
+ }, /*#__PURE__*/React.createElement("hr", {
20236
+ className: "mt-3 mb-3",
20237
+ style: {
20238
+ borderColor: sectionproperties.resp_header_separatorbg
20239
+ }
20240
+ }))), sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
20241
+ className: "row m-0 w-100 pl-3 pr-3"
20242
+ }, /*#__PURE__*/React.createElement("div", {
20243
+ "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start mb-2 ',
20244
+ style: {}
20245
+ }, /*#__PURE__*/React.createElement("p", {
20246
+ "class": "".concat(header_cssstyles.navbar_item_text_responsive) + ' m-0 p-0 ',
20247
+ style: {
20248
+ cursor: 'default'
20249
+ }
20250
+ }, langdetect == 'en' ? 'Language' : 'اللغة')), /*#__PURE__*/React.createElement("div", {
20251
+ "class": "col-lg-12 p-0 d-flex align-items-center justify-content-start my-1"
20252
+ }, /*#__PURE__*/React.createElement("div", {
20253
+ "class": "row m-0 w-100",
20254
+ style: {
20255
+ background: sectionproperties.langcontainerbgresp,
20256
+ borderRadius: 5
20257
+ }
20258
+ }, /*#__PURE__*/React.createElement("div", {
20259
+ "class": header_cssstyles.navbarItem + ' col-6 p-0 allcentered py-2 px-2 cursor-pointer ',
20260
+ onClick: function onClick() {
20261
+ setlang('en');
20262
+ setmenuactive(false);
20263
+ }
20264
+ }, /*#__PURE__*/React.createElement("p", {
20265
+ "class": "m-0 p-0 w-100 allcentered py-3",
20266
+ style: {
20267
+ background: langdetect == 'en' ? sectionproperties.langcontainerbgresp_active : 'transparent',
20268
+ borderRadius: 5,
20269
+ fontSize: 15,
20270
+ color: sectionproperties.language_container_color_resp
20271
+ }
20272
+ }, "English")), /*#__PURE__*/React.createElement("div", {
20273
+ "class": header_cssstyles.navbarItem + ' col-6 p-0 allcentered py-2 px-2 cursor-pointer ',
20274
+ onClick: function onClick() {
20275
+ setlang('ar');
20276
+ setmenuactive(false);
20277
+ }
20278
+ }, /*#__PURE__*/React.createElement("p", {
20279
+ "class": "m-0 p-0 w-100 allcentered py-3",
20280
+ style: {
20281
+ borderRadius: 5,
20282
+ background: langdetect == 'ar' ? sectionproperties.langcontainerbgresp_active : 'transparent',
20283
+ fontSize: 15,
20284
+ color: sectionproperties.language_container_color_resp
20285
+ }
20286
+ }, "\u0644\u063A\u0629 \u0639\u0631\u0628\u064A\u0629"))))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement("div", {
20287
+ className: "row m-0 w-100 pl-3 pr-3 mt-5"
19904
20288
  }, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement("button", {
19905
20289
  "class": "".concat(header_cssstyles.userbtn_respContainer) + ' anim d-flex align-items-center justify-content-start p-0 m-0 ',
19906
20290
  onClick: function onClick() {
@@ -19922,7 +20306,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19922
20306
  }, /*#__PURE__*/React.createElement(BiUser, null)), /*#__PURE__*/React.createElement("span", {
19923
20307
  "class": header_cssstyles.loggedintext + ' text-start text-overflow d-block loggedintext mx-2 '
19924
20308
  }, authdetailsContext.customerinfo.name))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
19925
- "class": "row m-0 w-100 mt-5 allcentered anim"
20309
+ className: "row m-0 w-100"
19926
20310
  }, /*#__PURE__*/React.createElement("button", {
19927
20311
  "class": ' d-flex align-items-center justify-content-center p-0 m-0 ',
19928
20312
  onClick: function onClick() {
@@ -19936,41 +20320,249 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
19936
20320
  color: '#000',
19937
20321
  fontSize: 16
19938
20322
  }
19939
- }, lang.logout)))))), openSearch == true && /*#__PURE__*/React.createElement("div", {
19940
- "class": "col-12 d-flex align-items-center"
19941
- }, /*#__PURE__*/React.createElement("button", {
19942
- style: {
19943
- width: 40,
19944
- height: 40,
19945
- position: 'absolute',
19946
- top: 10,
19947
- right: 10,
19948
- zIndex: 10000
19949
- },
19950
- "class": "allcentered",
19951
- onClick: function onClick() {
19952
- setopenSearch(false);
19953
- setSearchHeaderInputContext('');
20323
+ }, lang.logout))))), activeTab == 'categories' && /*#__PURE__*/React.createElement("div", {
20324
+ className: ' row m-0 w-100 accordionContainer anim'
20325
+ }, sectionproperties.subheaderParentType == 'Categories' && /*#__PURE__*/React.createElement(Accordion, {
20326
+ allowMultipleExpanded: true,
20327
+ allowZeroExpanded: true
20328
+ }, fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories.map(function (item, index) {
20329
+ if (item.isshowntocustomers == 1) {
20330
+ var _fetchCategoriesQuery3, _fetchCategoriesQuery4;
20331
+ return /*#__PURE__*/React.createElement(AccordionItem, {
20332
+ uuid: index
20333
+ }, /*#__PURE__*/React.createElement(AccordionItemHeading, {
20334
+ onClick: function onClick() {
20335
+ setChoosenindex(index);
20336
+ }
20337
+ }, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
20338
+ className: ' row m-0 p-0 mb-2 '
20339
+ }, /*#__PURE__*/React.createElement("div", {
20340
+ className: ' row m-0 w-100 px-3 '
20341
+ }, /*#__PURE__*/React.createElement("div", {
20342
+ className: "col-10 p-0 text-start"
20343
+ // onClick={() => {
20344
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
20345
+ // }}
20346
+ }, /*#__PURE__*/React.createElement("p", {
20347
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20348
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
20349
+ className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
20350
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
20351
+ if (state.expanded == true) {
20352
+ return /*#__PURE__*/React.createElement("i", {
20353
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
20354
+ }, /*#__PURE__*/React.createElement(FiChevronDown, {
20355
+ style: {
20356
+ color: '#000',
20357
+ fontSize: 15
20358
+ }
20359
+ }));
20360
+ } else {
20361
+ return /*#__PURE__*/React.createElement("i", {
20362
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
20363
+ }, /*#__PURE__*/React.createElement(FiChevronUp, {
20364
+ style: {
20365
+ color: '#000',
20366
+ fontSize: 15
20367
+ }
20368
+ }));
20369
+ }
20370
+ }))), /*#__PURE__*/React.createElement("div", {
20371
+ className: "col-lg-12 p-0"
20372
+ }, /*#__PURE__*/React.createElement("hr", {
20373
+ className: "mt-4 mb-4",
20374
+ style: {
20375
+ borderColor: sectionproperties.resp_header_separatorbg
20376
+ }
20377
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
20378
+ className: "p-0"
20379
+ }, /*#__PURE__*/React.createElement("div", {
20380
+ className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
20381
+ }, /*#__PURE__*/React.createElement(Accordion, {
20382
+ allowMultipleExpanded: true,
20383
+ allowZeroExpanded: true
20384
+ }, Choosenindex.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 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.parentcolletions) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.length) != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery4 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery4 === void 0 || (_fetchCategoriesQuery4 = _fetchCategoriesQuery4.data) === null || _fetchCategoriesQuery4 === void 0 || (_fetchCategoriesQuery4 = _fetchCategoriesQuery4.categories[Choosenindex]) === null || _fetchCategoriesQuery4 === void 0 ? void 0 : _fetchCategoriesQuery4.parentcolletions.map(function (pitem, pindex) {
20385
+ if (pitem.isshowntocustomers == 1) {
20386
+ return /*#__PURE__*/React.createElement(AccordionItem, {
20387
+ uuid: pindex
20388
+ }, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
20389
+ className: ' row m-0 p-0 mb-2 '
20390
+ }, /*#__PURE__*/React.createElement("div", {
20391
+ className: ' row m-0 w-100 px-4 '
20392
+ }, /*#__PURE__*/React.createElement("div", {
20393
+ className: "col-10 p-0 text-start",
20394
+ onClick: function onClick() {
20395
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
20396
+ }
20397
+ }, /*#__PURE__*/React.createElement("p", {
20398
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20399
+ }, langdetect == 'en' ? pitem.title_en : pitem.title_ar)), /*#__PURE__*/React.createElement("div", {
20400
+ className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
20401
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
20402
+ if (state.expanded == true) {
20403
+ return /*#__PURE__*/React.createElement("i", {
20404
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
20405
+ }, /*#__PURE__*/React.createElement(FiChevronDown, {
20406
+ style: {
20407
+ color: '#000',
20408
+ fontSize: 15
20409
+ }
20410
+ }));
20411
+ } else {
20412
+ return /*#__PURE__*/React.createElement("i", {
20413
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
20414
+ }, /*#__PURE__*/React.createElement(FiChevronUp, {
20415
+ style: {
20416
+ color: '#000',
20417
+ fontSize: 15
20418
+ }
20419
+ }));
20420
+ }
20421
+ }))), /*#__PURE__*/React.createElement("div", {
20422
+ className: "col-lg-12 p-0"
20423
+ }, /*#__PURE__*/React.createElement("hr", {
20424
+ className: "mt-4 mb-4",
20425
+ style: {
20426
+ borderColor: sectionproperties.resp_header_separatorbg
20427
+ }
20428
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
20429
+ className: "p-0"
20430
+ }, pitem.collections.length != 0 && pitem.collections.map(function (collitem, collindex) {
20431
+ if (collitem.isshowntocustomers == 1) {
20432
+ return /*#__PURE__*/React.createElement("div", {
20433
+ className: ' row m-0 p-0 mb-2 '
20434
+ }, /*#__PURE__*/React.createElement("div", {
20435
+ className: ' row m-0 w-100 px-5 '
20436
+ }, /*#__PURE__*/React.createElement("div", {
20437
+ className: "col-10 p-0 text-start",
20438
+ onClick: function onClick() {
20439
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
20440
+ setopenCnvas(false);
20441
+ }
20442
+ }, /*#__PURE__*/React.createElement("p", {
20443
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20444
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar))), /*#__PURE__*/React.createElement("div", {
20445
+ className: "col-lg-12 p-0"
20446
+ }, /*#__PURE__*/React.createElement("hr", {
20447
+ className: "mt-4 mb-4",
20448
+ style: {
20449
+ borderColor: sectionproperties.resp_header_separatorbg
20450
+ }
20451
+ })));
20452
+ }
20453
+ })));
20454
+ }
20455
+ }))))));
19954
20456
  }
19955
- }, /*#__PURE__*/React.createElement(IoClose, {
19956
- style: {
19957
- fontSize: 20,
19958
- color: '#000'
20457
+ })), sectionproperties.subheaderParentType == 'Parent Collections' && /*#__PURE__*/React.createElement(Accordion, {
20458
+ allowMultipleExpanded: true,
20459
+ allowZeroExpanded: true
20460
+ }, pcollarray.map(function (item, index) {
20461
+ if (item.isshowntocustomers == 1) {
20462
+ var _item$collections;
20463
+ return /*#__PURE__*/React.createElement(AccordionItem, {
20464
+ uuid: index
20465
+ }, /*#__PURE__*/React.createElement(AccordionItemHeading, {
20466
+ onClick: function onClick() {
20467
+ setChoosenindex(index);
20468
+ }
20469
+ }, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
20470
+ className: ' row m-0 p-0 mb-2 '
20471
+ }, /*#__PURE__*/React.createElement("div", {
20472
+ className: ' row m-0 w-100 px-3 '
20473
+ }, /*#__PURE__*/React.createElement("div", {
20474
+ className: "col-10 p-0 text-start"
20475
+ }, /*#__PURE__*/React.createElement("p", {
20476
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20477
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
20478
+ className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
20479
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
20480
+ if (state.expanded == true) {
20481
+ return /*#__PURE__*/React.createElement("i", {
20482
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
20483
+ }, /*#__PURE__*/React.createElement(FiChevronDown, {
20484
+ style: {
20485
+ color: '#000',
20486
+ fontSize: 15
20487
+ }
20488
+ }));
20489
+ } else {
20490
+ return /*#__PURE__*/React.createElement("i", {
20491
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
20492
+ }, /*#__PURE__*/React.createElement(FiChevronUp, {
20493
+ style: {
20494
+ color: '#000',
20495
+ fontSize: 15
20496
+ }
20497
+ }));
20498
+ }
20499
+ }))), /*#__PURE__*/React.createElement("div", {
20500
+ className: "col-lg-12 p-0"
20501
+ }, /*#__PURE__*/React.createElement("hr", {
20502
+ className: "mt-4 mb-4",
20503
+ style: {
20504
+ borderColor: sectionproperties.resp_header_separatorbg
20505
+ }
20506
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
20507
+ className: "p-0"
20508
+ }, /*#__PURE__*/React.createElement("div", {
20509
+ className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
20510
+ }, 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) {
20511
+ if (collitem.isshowntocustomers == 1) {
20512
+ return /*#__PURE__*/React.createElement("div", {
20513
+ "class": "col-lg-12 p-0"
20514
+ }, /*#__PURE__*/React.createElement("div", {
20515
+ className: ' row m-0 p-0 mb-2 '
20516
+ }, /*#__PURE__*/React.createElement("div", {
20517
+ className: ' row m-0 w-100 px-5 '
20518
+ }, /*#__PURE__*/React.createElement("div", {
20519
+ className: "col-10 p-0 text-start",
20520
+ onClick: function onClick() {
20521
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
20522
+ setopenCnvas(false);
20523
+ }
20524
+ }, /*#__PURE__*/React.createElement("p", {
20525
+ className: ' mb-0 p-0 ',
20526
+ style: {
20527
+ color: sectionproperties.collectionsectiontextcolor,
20528
+ fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
20529
+ textTransform: sectionproperties.collectionsectiontexttransform,
20530
+ fontWeight: sectionproperties.collectionsectiontextfontweight,
20531
+ transition: '.3s'
20532
+ }
20533
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar))), /*#__PURE__*/React.createElement("div", {
20534
+ className: "col-lg-12 p-0"
20535
+ }, /*#__PURE__*/React.createElement("hr", {
20536
+ className: "mt-4 mb-4",
20537
+ style: {
20538
+ borderColor: sectionproperties.resp_header_separatorbg
20539
+ }
20540
+ }))));
20541
+ }
20542
+ })))));
19959
20543
  }
19960
- })), /*#__PURE__*/React.createElement("div", {
19961
- "class": header_cssstyles.searchbarcont
19962
- }, /*#__PURE__*/React.createElement("input", {
19963
- type: "text",
19964
- placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
19965
- "class": "".concat(header_cssstyles.searchbarcont_input) + ' pb-1 ',
19966
- onChange: function onChange(event) {
19967
- setSearchHeaderInputContext(event.target.value);
20544
+ })), sectionproperties.subheaderParentType == 'Collections' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 || (_authdetailsContext$i2 = _authdetailsContext$i2.instcollections) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.map(function (collitem, collindex) {
20545
+ if (collitem.isshowntocustomers == 1) {
20546
+ return /*#__PURE__*/React.createElement("div", {
20547
+ className: ' row m-0 p-0 mb-2 w-100 '
20548
+ }, /*#__PURE__*/React.createElement("div", {
20549
+ className: "col-12 p-0 text-start px-3",
20550
+ onClick: function onClick() {
20551
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
20552
+ setopenCnvas(false);
20553
+ }
20554
+ }, /*#__PURE__*/React.createElement("p", {
20555
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
20556
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar)), /*#__PURE__*/React.createElement("div", {
20557
+ className: "col-lg-12 p-0"
20558
+ }, /*#__PURE__*/React.createElement("hr", {
20559
+ className: "mt-4 mb-4",
20560
+ style: {
20561
+ borderColor: sectionproperties.resp_header_separatorbg
20562
+ }
20563
+ })));
19968
20564
  }
19969
- }), /*#__PURE__*/React.createElement(Searchlist$1, {
19970
- sectionpropertiesprops: sectionproperties,
19971
- srcfromprops: 'fullheader',
19972
- actions: actions
19973
- })))));
20565
+ })))))));
19974
20566
  };
19975
20567
 
19976
20568
  function ownKeys$1U(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; }
@@ -20559,6 +21151,9 @@ var ElegantHeader = function ElegantHeader(props) {
20559
21151
  }), sectionproperties.responsiveheaderstyle == 'Style 2' && /*#__PURE__*/React.createElement(HeaderresponsiveStyle2, {
20560
21152
  sectionpropertiesprops: sectionproperties,
20561
21153
  actions: actions
21154
+ }), sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React.createElement(HeaderresponsiveStyle2, {
21155
+ sectionpropertiesprops: sectionproperties,
21156
+ actions: actions
20562
21157
  }), /*#__PURE__*/React.createElement(Offcanvas, {
20563
21158
  show: openSideNav,
20564
21159
  onHide: function onHide() {