tabexseriescomponents 0.0.394 → 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.cjs.js +770 -169
- package/dist/index.esm.js +770 -169
- package/dist/index.umd.js +770 -169
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -17412,7 +17412,7 @@ var MarqueeHeader = function MarqueeHeader(props) {
|
|
|
17412
17412
|
})
|
|
17413
17413
|
};
|
|
17414
17414
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17415
|
-
"class": "col-lg-12 px-0 d-flex align-items-center
|
|
17415
|
+
"class": "col-lg-12 px-0 d-flex align-items-center",
|
|
17416
17416
|
style: {
|
|
17417
17417
|
background: templateproperties_context.textsliderbgcolor,
|
|
17418
17418
|
paddingTop: templateproperties_context.paddinghorizontal + 'px',
|
|
@@ -19331,7 +19331,7 @@ var SocialMediaSection = function SocialMediaSection(props) {
|
|
|
19331
19331
|
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; }
|
|
19332
19332
|
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__default["default"](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; }
|
|
19333
19333
|
var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
19334
|
-
var _css,
|
|
19334
|
+
var _css, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _returnpolicyobj15, _returnpolicyobj16, _fetchCategoriesQuery2, _authdetailsContext$i2;
|
|
19335
19335
|
var actions = props.actions;
|
|
19336
19336
|
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
19337
19337
|
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -19348,16 +19348,16 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
19348
19348
|
var routingcountext = props.actions.routingcountext;
|
|
19349
19349
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
19350
19350
|
props.actions.setcurrencyfunccontext;
|
|
19351
|
-
props.actions.fetchCategoriesQueryContext;
|
|
19351
|
+
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
19352
19352
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
19353
19353
|
var _useState = React.useState(''),
|
|
19354
19354
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
19355
19355
|
sectionproperties = _useState2[0],
|
|
19356
19356
|
setsectionproperties = _useState2[1];
|
|
19357
19357
|
var _useState3 = React.useState(''),
|
|
19358
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2)
|
|
19359
|
-
_useState4[0]
|
|
19360
|
-
_useState4[1];
|
|
19358
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
19359
|
+
Choosenindex = _useState4[0],
|
|
19360
|
+
setChoosenindex = _useState4[1];
|
|
19361
19361
|
var _useState5 = React.useState(false),
|
|
19362
19362
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
19363
19363
|
menuactive = _useState6[0],
|
|
@@ -19378,7 +19378,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
19378
19378
|
var _useState11 = React.useState(false),
|
|
19379
19379
|
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
19380
19380
|
_useState12[0];
|
|
19381
|
-
_useState12[1];
|
|
19381
|
+
var setopenCnvas = _useState12[1];
|
|
19382
19382
|
var _useState13 = React.useState(''),
|
|
19383
19383
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
19384
19384
|
activeTab = _useState14[0],
|
|
@@ -19607,6 +19607,51 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
19607
19607
|
}
|
|
19608
19608
|
}, (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));
|
|
19609
19609
|
};
|
|
19610
|
+
var _useState15 = React.useState(false),
|
|
19611
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
19612
|
+
openmenuCanvas = _useState16[0],
|
|
19613
|
+
setopenmenuCanvas = _useState16[1];
|
|
19614
|
+
var _useState17 = React.useState([]),
|
|
19615
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2),
|
|
19616
|
+
pcollarray = _useState18[0],
|
|
19617
|
+
setpcollarray = _useState18[1];
|
|
19618
|
+
React.useEffect(function () {
|
|
19619
|
+
if (fetchCategoriesQueryContext.isSuccess == true && fetchCategoriesQueryContext.data.data.status == true) {
|
|
19620
|
+
var _fetchCategoriesQuery;
|
|
19621
|
+
var temppcollarray = _toConsumableArray__default["default"](pcollarray);
|
|
19622
|
+
fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 || _fetchCategoriesQuery.categories.forEach(function (arrayItem) {
|
|
19623
|
+
if (arrayItem.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
|
|
19624
|
+
arrayItem === null || arrayItem === void 0 || arrayItem.parentcolletions.forEach(function (item) {
|
|
19625
|
+
if (item.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
|
|
19626
|
+
temppcollarray.push(item);
|
|
19627
|
+
}
|
|
19628
|
+
});
|
|
19629
|
+
}
|
|
19630
|
+
});
|
|
19631
|
+
setpcollarray(_toConsumableArray__default["default"](temppcollarray));
|
|
19632
|
+
}
|
|
19633
|
+
// alert(JSON.stringify(pcollarray));
|
|
19634
|
+
}, [fetchCategoriesQueryContext.isSuccess]);
|
|
19635
|
+
var InstLogoContainer = function InstLogoContainer() {
|
|
19636
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2;
|
|
19637
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19638
|
+
className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
|
|
19639
|
+
style: {
|
|
19640
|
+
cursor: 'pointer'
|
|
19641
|
+
},
|
|
19642
|
+
onClick: function onClick() {
|
|
19643
|
+
routingcountext('home');
|
|
19644
|
+
}
|
|
19645
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
19646
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
19647
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
19648
|
+
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,
|
|
19649
|
+
style: {
|
|
19650
|
+
maxWidth: '100%',
|
|
19651
|
+
maxHeight: '100%'
|
|
19652
|
+
}
|
|
19653
|
+
}));
|
|
19654
|
+
};
|
|
19610
19655
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19611
19656
|
className: "row m-0 w-100"
|
|
19612
19657
|
}, sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -19626,27 +19671,28 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
19626
19671
|
style: {
|
|
19627
19672
|
position: 'relative'
|
|
19628
19673
|
}
|
|
19629
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19630
|
-
className: "col-md-
|
|
19631
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19632
|
-
className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
|
|
19674
|
+
}, sectionproperties.logocentered == 'Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19675
|
+
className: "col-md-4 col-sm-4 text-start p-0"
|
|
19676
|
+
}, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19633
19677
|
style: {
|
|
19634
|
-
|
|
19635
|
-
|
|
19636
|
-
onClick: function onClick() {
|
|
19637
|
-
routingcountext('home');
|
|
19678
|
+
width: '30px',
|
|
19679
|
+
height: sectionproperties.cart_BtnHeight_resp + 'px'
|
|
19638
19680
|
}
|
|
19639
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
19640
|
-
|
|
19641
|
-
|
|
19642
|
-
|
|
19643
|
-
style: {
|
|
19644
|
-
maxWidth: '100%',
|
|
19645
|
-
maxHeight: '100%'
|
|
19681
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19682
|
+
"class": "h-100 allcentered",
|
|
19683
|
+
onClick: function onClick() {
|
|
19684
|
+
setopenSearch(true);
|
|
19646
19685
|
}
|
|
19647
|
-
}
|
|
19648
|
-
|
|
19649
|
-
|
|
19686
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoSearchOutline.IoSearchOutline, {
|
|
19687
|
+
size: 22,
|
|
19688
|
+
color: sectionproperties.cart_BtnTextcolor_resp
|
|
19689
|
+
})))), sectionproperties.logocentered == 'Not Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19690
|
+
className: "col-md-6 col-sm-6 d-flex filter align-items-center p-0"
|
|
19691
|
+
}, InstLogoContainer()), sectionproperties.logocentered == 'Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19692
|
+
className: "col-md-4 col-sm-4 allcentered p-0"
|
|
19693
|
+
}, InstLogoContainer()), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19694
|
+
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'
|
|
19695
|
+
}, sectionproperties.searchbar_show == 'Show' && sectionproperties.logocentered == 'Not Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19650
19696
|
style: {
|
|
19651
19697
|
width: '30px',
|
|
19652
19698
|
height: sectionproperties.cart_BtnHeight_resp + 'px'
|
|
@@ -19670,10 +19716,15 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
19670
19716
|
color: sectionproperties.cart_BtnTextcolor_resp
|
|
19671
19717
|
},
|
|
19672
19718
|
onClick: function onClick() {
|
|
19673
|
-
if (
|
|
19674
|
-
|
|
19719
|
+
if (sectionproperties.responsiveheaderstyle == 'Style 2') {
|
|
19720
|
+
if (menuactive == true) {
|
|
19721
|
+
setmenuactive(false);
|
|
19722
|
+
} else {
|
|
19723
|
+
setmenuactive(true);
|
|
19724
|
+
}
|
|
19675
19725
|
} else {
|
|
19676
|
-
|
|
19726
|
+
setopenmenuCanvas(true);
|
|
19727
|
+
setactiveTab('menu');
|
|
19677
19728
|
}
|
|
19678
19729
|
}
|
|
19679
19730
|
}, menuactive == false && /*#__PURE__*/React__default["default"].createElement(FiMenu.FiMenu, {
|
|
@@ -19695,46 +19746,7 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
19695
19746
|
zIndex: 10000,
|
|
19696
19747
|
overflow: 'scroll'
|
|
19697
19748
|
}
|
|
19698
|
-
}, sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19699
|
-
className: "row m-0 w-100 mb-5",
|
|
19700
|
-
style: {
|
|
19701
|
-
borderBottom: '1px solid #eee'
|
|
19702
|
-
}
|
|
19703
19749
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19704
|
-
className: 'col-6 allcentered py-3',
|
|
19705
|
-
onClick: function onClick() {
|
|
19706
|
-
setactiveTab('menu');
|
|
19707
|
-
},
|
|
19708
|
-
style: {
|
|
19709
|
-
background: activeTab == 'menu' ? 'white' : '#eee'
|
|
19710
|
-
}
|
|
19711
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19712
|
-
className: "m-0 p-0",
|
|
19713
|
-
style: {
|
|
19714
|
-
textTransform: 'uppercase',
|
|
19715
|
-
fontWeight: 500,
|
|
19716
|
-
fontSize: '15px',
|
|
19717
|
-
transition: '.3s',
|
|
19718
|
-
color: '#000'
|
|
19719
|
-
}
|
|
19720
|
-
}, langdetect == 'en' ? 'MENU' : 'القائمة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19721
|
-
className: 'col-6 allcentered py-3',
|
|
19722
|
-
onClick: function onClick() {
|
|
19723
|
-
setactiveTab('categories');
|
|
19724
|
-
},
|
|
19725
|
-
style: {
|
|
19726
|
-
background: activeTab == 'categories' ? 'white' : '#eee'
|
|
19727
|
-
}
|
|
19728
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19729
|
-
className: "m-0 p-0",
|
|
19730
|
-
style: {
|
|
19731
|
-
textTransform: 'uppercase',
|
|
19732
|
-
fontWeight: 500,
|
|
19733
|
-
fontSize: '15px',
|
|
19734
|
-
transition: '.3s',
|
|
19735
|
-
color: '#000'
|
|
19736
|
-
}
|
|
19737
|
-
}, langdetect == 'en' ? 'SHOP' : 'تسوق'))), sectionproperties.responsiveheaderstyle != 'Style 2 With Subheader' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19738
19750
|
"class": "col-lg-12 text-end anim"
|
|
19739
19751
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19740
19752
|
"class": ' h-100 allcentered ',
|
|
@@ -20019,110 +20031,690 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
20019
20031
|
sectionpropertiesprops: sectionproperties,
|
|
20020
20032
|
srcfromprops: 'fullheader',
|
|
20021
20033
|
actions: actions
|
|
20022
|
-
})))
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
|
|
20026
|
-
|
|
20027
|
-
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
|
|
20035
|
-
|
|
20036
|
-
|
|
20037
|
-
|
|
20038
|
-
|
|
20039
|
-
|
|
20040
|
-
|
|
20041
|
-
|
|
20042
|
-
|
|
20043
|
-
|
|
20044
|
-
|
|
20045
|
-
|
|
20046
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
20047
|
-
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
20048
|
-
var actions = props.actions;
|
|
20049
|
-
var _useState3 = React.useState([]),
|
|
20050
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
20051
|
-
logoarrayofobjects = _useState4[0],
|
|
20052
|
-
setlogoarrayofobjects = _useState4[1];
|
|
20053
|
-
var _useState5 = React.useState([]),
|
|
20054
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
20055
|
-
textarray = _useState6[0],
|
|
20056
|
-
settextarray = _useState6[1];
|
|
20057
|
-
var _useState7 = React.useState(false),
|
|
20058
|
-
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
20059
|
-
openSideNav = _useState8[0],
|
|
20060
|
-
setopenSideNav = _useState8[1];
|
|
20061
|
-
var _useState9 = React.useState(false),
|
|
20062
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
20063
|
-
openSearchBar = _useState10[0],
|
|
20064
|
-
setopenSearchBar = _useState10[1];
|
|
20065
|
-
React.useEffect(function () {
|
|
20066
|
-
var secpropobj = {};
|
|
20067
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
20068
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
20069
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
20070
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
20071
|
-
});
|
|
20072
|
-
}
|
|
20073
|
-
});
|
|
20074
|
-
if (Object.keys(secpropobj).length === 0) {
|
|
20075
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
20076
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
20077
|
-
});
|
|
20034
|
+
}))), sectionproperties.length != 0 && sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
|
|
20035
|
+
show: openmenuCanvas,
|
|
20036
|
+
onHide: function onHide() {
|
|
20037
|
+
setopenmenuCanvas(false);
|
|
20038
|
+
},
|
|
20039
|
+
placement: langdetect == 'en' ? 'start' : 'end',
|
|
20040
|
+
scroll: true,
|
|
20041
|
+
style: {
|
|
20042
|
+
width: '90%',
|
|
20043
|
+
backgroundColor: 'white'
|
|
20044
|
+
},
|
|
20045
|
+
backdrop: true
|
|
20046
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Header, null, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Title, null, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20047
|
+
"class": "allcentered",
|
|
20048
|
+
style: {
|
|
20049
|
+
position: 'absolute',
|
|
20050
|
+
right: -34,
|
|
20051
|
+
top: 5,
|
|
20052
|
+
width: 30,
|
|
20053
|
+
height: 30,
|
|
20054
|
+
background: '#000'
|
|
20055
|
+
},
|
|
20056
|
+
onClick: function onClick() {
|
|
20057
|
+
setopenmenuCanvas(false);
|
|
20078
20058
|
}
|
|
20079
|
-
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20086
|
-
|
|
20059
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
20060
|
+
color: '#fff',
|
|
20061
|
+
size: 16
|
|
20062
|
+
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20063
|
+
"class": "allcentered",
|
|
20064
|
+
style: {
|
|
20065
|
+
position: 'absolute',
|
|
20066
|
+
left: -34,
|
|
20067
|
+
top: 5,
|
|
20068
|
+
width: 30,
|
|
20069
|
+
height: 30,
|
|
20070
|
+
background: '#000'
|
|
20071
|
+
},
|
|
20072
|
+
onClick: function onClick() {
|
|
20073
|
+
setopenCnvas(false);
|
|
20087
20074
|
}
|
|
20088
|
-
}, [
|
|
20089
|
-
|
|
20090
|
-
|
|
20091
|
-
|
|
20092
|
-
|
|
20093
|
-
|
|
20094
|
-
|
|
20075
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
20076
|
+
color: '#fff',
|
|
20077
|
+
size: 16
|
|
20078
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20079
|
+
className: "row m-0 w-100 mb-5",
|
|
20080
|
+
style: {
|
|
20081
|
+
borderBottom: '1px solid #eee'
|
|
20095
20082
|
}
|
|
20096
|
-
}, [
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
|
|
20101
|
-
|
|
20102
|
-
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
fontWeight:
|
|
20109
|
-
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20083
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20084
|
+
className: 'col-6 allcentered py-3',
|
|
20085
|
+
onClick: function onClick() {
|
|
20086
|
+
setactiveTab('menu');
|
|
20087
|
+
},
|
|
20088
|
+
style: {
|
|
20089
|
+
background: activeTab == 'menu' ? 'white' : '#eee'
|
|
20090
|
+
}
|
|
20091
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20092
|
+
className: "m-0 p-0",
|
|
20093
|
+
style: {
|
|
20094
|
+
textTransform: 'uppercase',
|
|
20095
|
+
fontWeight: 500,
|
|
20096
|
+
fontSize: '15px',
|
|
20097
|
+
transition: '.3s',
|
|
20098
|
+
color: '#000'
|
|
20099
|
+
}
|
|
20100
|
+
}, langdetect == 'en' ? 'MENU' : 'القائمة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20101
|
+
className: 'col-6 allcentered py-3',
|
|
20102
|
+
onClick: function onClick() {
|
|
20103
|
+
setactiveTab('categories');
|
|
20104
|
+
},
|
|
20105
|
+
style: {
|
|
20106
|
+
background: activeTab == 'categories' ? 'white' : '#eee'
|
|
20107
|
+
}
|
|
20108
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20109
|
+
className: "m-0 p-0",
|
|
20110
|
+
style: {
|
|
20111
|
+
textTransform: 'uppercase',
|
|
20112
|
+
fontWeight: 500,
|
|
20113
|
+
fontSize: '15px',
|
|
20114
|
+
transition: '.3s',
|
|
20115
|
+
color: '#000'
|
|
20116
|
+
}
|
|
20117
|
+
}, langdetect == 'en' ? 'SHOP' : 'تسوق'))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas.Body, null, activeTab == 'menu' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20118
|
+
className: ' row m-0 w-100 anim '
|
|
20119
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20120
|
+
className: "col-lg-12 p-0"
|
|
20121
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
20122
|
+
className: ' d-flex justify-content-center flex-column p-0 '
|
|
20123
|
+
}, templatepropcontext.pagesnprop.map(function (item, index) {
|
|
20124
|
+
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
20125
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20126
|
+
className: "row m-0 w-100"
|
|
20127
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20128
|
+
className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
|
|
20129
|
+
style: {
|
|
20130
|
+
paddingTop: index == 0 ? 5 : 0
|
|
20131
|
+
}
|
|
20132
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20133
|
+
onClick: function onClick() {
|
|
20134
|
+
routingcountext(item.navigationroute, false, '');
|
|
20135
|
+
setopenCnvas(false);
|
|
20136
|
+
}
|
|
20137
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20138
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20139
|
+
}, langdetect == 'en' ? item.pagename : item.pagename_ar))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20140
|
+
className: "col-lg-12 p-0"
|
|
20141
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20142
|
+
className: "mt-4 mb-4",
|
|
20143
|
+
style: {
|
|
20144
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20145
|
+
}
|
|
20146
|
+
})));
|
|
20147
|
+
}
|
|
20148
|
+
}), authdetailsContext.loggedin == true && sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20149
|
+
className: "row m-0 w-100"
|
|
20150
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20151
|
+
className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
|
|
20152
|
+
onClick: function onClick() {
|
|
20153
|
+
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
20154
|
+
setopenCnvas(false);
|
|
20155
|
+
}
|
|
20156
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20157
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
|
|
20158
|
+
}, lang.orderhistory)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20159
|
+
className: "col-lg-12 p-0"
|
|
20160
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20161
|
+
className: "mt-4 mb-4",
|
|
20162
|
+
style: {
|
|
20163
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20164
|
+
}
|
|
20165
|
+
}))), templateproperties_context.showfavorites == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20166
|
+
className: "row m-0 w-100"
|
|
20167
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20168
|
+
className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
|
|
20169
|
+
onClick: function onClick() {
|
|
20170
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
20171
|
+
setopenCnvas(false);
|
|
20172
|
+
}
|
|
20173
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20174
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
|
|
20175
|
+
}, lang.wishlist)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20176
|
+
className: "col-lg-12 p-0"
|
|
20177
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20178
|
+
className: "mt-4 mb-4",
|
|
20179
|
+
style: {
|
|
20180
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20181
|
+
}
|
|
20182
|
+
}))), templateproperties_context.separatepolicies == 'No' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20183
|
+
className: "row m-0 w-100"
|
|
20184
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20185
|
+
className: "col-lg-12 d-flex justify-content-start pl-3 pr-3",
|
|
20186
|
+
onClick: function onClick() {
|
|
20187
|
+
routingcountext(StaticPagesLinksContext.Policies);
|
|
20188
|
+
setmenuactive(false);
|
|
20189
|
+
}
|
|
20190
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20191
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 d-flex justify-content-start '
|
|
20192
|
+
}, lang.policies)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20193
|
+
className: "col-lg-12 p-0"
|
|
20194
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20195
|
+
className: "mt-4 mb-4",
|
|
20196
|
+
style: {
|
|
20197
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20198
|
+
}
|
|
20199
|
+
}))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20200
|
+
className: "row m-0 w-100"
|
|
20201
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20202
|
+
className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
|
|
20203
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20204
|
+
onClick: function onClick() {
|
|
20205
|
+
routingcountext(StaticPagesLinksContext.PrivacyPolicy);
|
|
20206
|
+
setmenuactive(false);
|
|
20207
|
+
}
|
|
20208
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20209
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20210
|
+
}, 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__default["default"].createElement("div", {
|
|
20211
|
+
className: "col-lg-12 p-0"
|
|
20212
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20213
|
+
className: "mt-3 mb-3",
|
|
20214
|
+
style: {
|
|
20215
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20216
|
+
}
|
|
20217
|
+
}))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20218
|
+
className: "row m-0 w-100"
|
|
20219
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20220
|
+
className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
|
|
20221
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20222
|
+
onClick: function onClick() {
|
|
20223
|
+
routingcountext(StaticPagesLinksContext.ShippingPolicy);
|
|
20224
|
+
setmenuactive(false);
|
|
20225
|
+
}
|
|
20226
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20227
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20228
|
+
}, 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__default["default"].createElement("div", {
|
|
20229
|
+
className: "col-lg-12 p-0"
|
|
20230
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20231
|
+
className: "mt-3 mb-3",
|
|
20232
|
+
style: {
|
|
20233
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20234
|
+
}
|
|
20235
|
+
}))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20236
|
+
className: "row m-0 w-100"
|
|
20237
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20238
|
+
className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
|
|
20239
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20240
|
+
onClick: function onClick() {
|
|
20241
|
+
routingcountext(StaticPagesLinksContext.RefundPolicy);
|
|
20242
|
+
setmenuactive(false);
|
|
20243
|
+
}
|
|
20244
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20245
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20246
|
+
}, 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__default["default"].createElement("div", {
|
|
20247
|
+
className: "col-lg-12 p-0"
|
|
20248
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20249
|
+
className: "mt-3 mb-3",
|
|
20250
|
+
style: {
|
|
20251
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20252
|
+
}
|
|
20253
|
+
}))), templateproperties_context.separatepolicies == 'Yes' && templateproperties_context.showpolicies == 'Yes' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20254
|
+
className: "row m-0 w-100"
|
|
20255
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20256
|
+
className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
|
|
20257
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20258
|
+
onClick: function onClick() {
|
|
20259
|
+
routingcountext(StaticPagesLinksContext.TermsConditions);
|
|
20260
|
+
setmenuactive(false);
|
|
20261
|
+
}
|
|
20262
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20263
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20264
|
+
}, 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__default["default"].createElement("div", {
|
|
20265
|
+
className: "col-lg-12 p-0"
|
|
20266
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20267
|
+
className: "mt-3 mb-3",
|
|
20268
|
+
style: {
|
|
20269
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20270
|
+
}
|
|
20271
|
+
}))), authdetailsContext.loggedin == true && templateproperties_context.showprevorder == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20272
|
+
className: "row m-0 w-100"
|
|
20273
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20274
|
+
className: "col-lg-12 pl-0 pr-0 d-flex justify-content-start pl-3 pr-3"
|
|
20275
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20276
|
+
onClick: function onClick() {
|
|
20277
|
+
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
20278
|
+
setmenuactive(false);
|
|
20279
|
+
}
|
|
20280
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20281
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20282
|
+
}, langdetect == 'en' ? templateproperties_context.previousorders_titleen : templateproperties_context.previousorders_titlear))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20283
|
+
className: "col-lg-12 p-0"
|
|
20284
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20285
|
+
className: "mt-3 mb-3",
|
|
20286
|
+
style: {
|
|
20287
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20288
|
+
}
|
|
20289
|
+
}))), sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20290
|
+
className: "row m-0 w-100 pl-3 pr-3"
|
|
20291
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20292
|
+
"class": header_cssstyles.navbarItem + ' col-lg-12 p-0 d-flex align-items-center justify-content-start mb-2 ',
|
|
20293
|
+
style: {}
|
|
20294
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20295
|
+
"class": "".concat(header_cssstyles.navbar_item_text_responsive) + ' m-0 p-0 ',
|
|
20296
|
+
style: {
|
|
20297
|
+
cursor: 'default'
|
|
20298
|
+
}
|
|
20299
|
+
}, langdetect == 'en' ? 'Language' : 'اللغة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20300
|
+
"class": "col-lg-12 p-0 d-flex align-items-center justify-content-start my-1"
|
|
20301
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20302
|
+
"class": "row m-0 w-100",
|
|
20303
|
+
style: {
|
|
20304
|
+
background: sectionproperties.langcontainerbgresp,
|
|
20305
|
+
borderRadius: 5
|
|
20306
|
+
}
|
|
20307
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20308
|
+
"class": header_cssstyles.navbarItem + ' col-6 p-0 allcentered py-2 px-2 cursor-pointer ',
|
|
20309
|
+
onClick: function onClick() {
|
|
20310
|
+
setlang('en');
|
|
20311
|
+
setmenuactive(false);
|
|
20312
|
+
}
|
|
20313
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20314
|
+
"class": "m-0 p-0 w-100 allcentered py-3",
|
|
20315
|
+
style: {
|
|
20316
|
+
background: langdetect == 'en' ? sectionproperties.langcontainerbgresp_active : 'transparent',
|
|
20317
|
+
borderRadius: 5,
|
|
20318
|
+
fontSize: 15,
|
|
20319
|
+
color: sectionproperties.language_container_color_resp
|
|
20320
|
+
}
|
|
20321
|
+
}, "English")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20322
|
+
"class": header_cssstyles.navbarItem + ' col-6 p-0 allcentered py-2 px-2 cursor-pointer ',
|
|
20323
|
+
onClick: function onClick() {
|
|
20324
|
+
setlang('ar');
|
|
20325
|
+
setmenuactive(false);
|
|
20326
|
+
}
|
|
20327
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20328
|
+
"class": "m-0 p-0 w-100 allcentered py-3",
|
|
20329
|
+
style: {
|
|
20330
|
+
borderRadius: 5,
|
|
20331
|
+
background: langdetect == 'ar' ? sectionproperties.langcontainerbgresp_active : 'transparent',
|
|
20332
|
+
fontSize: 15,
|
|
20333
|
+
color: sectionproperties.language_container_color_resp
|
|
20334
|
+
}
|
|
20335
|
+
}, "\u0644\u063A\u0629 \u0639\u0631\u0628\u064A\u0629"))))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20336
|
+
className: "row m-0 w-100 pl-3 pr-3 mt-5"
|
|
20337
|
+
}, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
20338
|
+
"class": "".concat(header_cssstyles.userbtn_respContainer) + ' anim d-flex align-items-center justify-content-start p-0 m-0 ',
|
|
20339
|
+
onClick: function onClick() {
|
|
20340
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
20341
|
+
setmenuactive(false);
|
|
20342
|
+
}
|
|
20343
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20344
|
+
"class": "".concat(header_cssstyles.userbtnLoggedin_icon) + ' h-100 allcentered userbtn_resp m-0 p-0 p-0 '
|
|
20345
|
+
}, /*#__PURE__*/React__default["default"].createElement(BiUser.BiUser, null)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
20346
|
+
"class": "userbtn_resp mx-2"
|
|
20347
|
+
}, langdetect == 'en' ? 'Login/Register' : 'تسجيل دخول/إنشاء حساب')), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
20348
|
+
"class": "".concat(header_cssstyles.userbtn_respContainer) + ' anim d-flex align-items-center justify-content-start p-0 m-0 ',
|
|
20349
|
+
onClick: function onClick() {
|
|
20350
|
+
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
20351
|
+
setmenuactive(false);
|
|
20352
|
+
}
|
|
20353
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20354
|
+
"class": "".concat(header_cssstyles.userbtnLoggedin_icon) + ' h-100 allcentered userbtn_resp m-0 p-0 p-0 '
|
|
20355
|
+
}, /*#__PURE__*/React__default["default"].createElement(BiUser.BiUser, null)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
20356
|
+
"class": header_cssstyles.loggedintext + ' text-start text-overflow d-block loggedintext mx-2 '
|
|
20357
|
+
}, authdetailsContext.customerinfo.name))), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20358
|
+
className: "row m-0 w-100"
|
|
20359
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
20360
|
+
"class": ' d-flex align-items-center justify-content-center p-0 m-0 ',
|
|
20361
|
+
onClick: function onClick() {
|
|
20362
|
+
LogoutMutationContext.mutate();
|
|
20363
|
+
setmenuactive(false);
|
|
20364
|
+
},
|
|
20365
|
+
style: {
|
|
20366
|
+
width: '90%',
|
|
20367
|
+
height: 40,
|
|
20368
|
+
background: 'white',
|
|
20369
|
+
color: '#000',
|
|
20370
|
+
fontSize: 16
|
|
20371
|
+
}
|
|
20372
|
+
}, lang.logout))))), activeTab == 'categories' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20373
|
+
className: ' row m-0 w-100 accordionContainer anim'
|
|
20374
|
+
}, sectionproperties.subheaderParentType == 'Categories' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
20375
|
+
allowMultipleExpanded: true,
|
|
20376
|
+
allowZeroExpanded: true
|
|
20377
|
+
}, 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) {
|
|
20378
|
+
if (item.isshowntocustomers == 1) {
|
|
20379
|
+
var _fetchCategoriesQuery3, _fetchCategoriesQuery4;
|
|
20380
|
+
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
20381
|
+
uuid: index
|
|
20382
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, {
|
|
20383
|
+
onClick: function onClick() {
|
|
20384
|
+
setChoosenindex(index);
|
|
20385
|
+
}
|
|
20386
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20387
|
+
className: ' row m-0 p-0 mb-2 '
|
|
20388
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20389
|
+
className: ' row m-0 w-100 px-3 '
|
|
20390
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20391
|
+
className: "col-10 p-0 text-start"
|
|
20392
|
+
// onClick={() => {
|
|
20393
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
20394
|
+
// }}
|
|
20395
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20396
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20397
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20398
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
|
|
20399
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
20400
|
+
if (state.expanded == true) {
|
|
20401
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20402
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
20403
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, {
|
|
20404
|
+
style: {
|
|
20405
|
+
color: '#000',
|
|
20406
|
+
fontSize: 15
|
|
20407
|
+
}
|
|
20408
|
+
}));
|
|
20409
|
+
} else {
|
|
20410
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20411
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
20412
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, {
|
|
20413
|
+
style: {
|
|
20414
|
+
color: '#000',
|
|
20415
|
+
fontSize: 15
|
|
20416
|
+
}
|
|
20417
|
+
}));
|
|
20418
|
+
}
|
|
20419
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20420
|
+
className: "col-lg-12 p-0"
|
|
20421
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20422
|
+
className: "mt-4 mb-4",
|
|
20423
|
+
style: {
|
|
20424
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20425
|
+
}
|
|
20426
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
20427
|
+
className: "p-0"
|
|
20428
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20429
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
20430
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
20431
|
+
allowMultipleExpanded: true,
|
|
20432
|
+
allowZeroExpanded: true
|
|
20433
|
+
}, 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) {
|
|
20434
|
+
if (pitem.isshowntocustomers == 1) {
|
|
20435
|
+
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
20436
|
+
uuid: pindex
|
|
20437
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20438
|
+
className: ' row m-0 p-0 mb-2 '
|
|
20439
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20440
|
+
className: ' row m-0 w-100 px-4 '
|
|
20441
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20442
|
+
className: "col-10 p-0 text-start",
|
|
20443
|
+
onClick: function onClick() {
|
|
20444
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
20445
|
+
}
|
|
20446
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20447
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20448
|
+
}, langdetect == 'en' ? pitem.title_en : pitem.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20449
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
|
|
20450
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
20451
|
+
if (state.expanded == true) {
|
|
20452
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20453
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
20454
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, {
|
|
20455
|
+
style: {
|
|
20456
|
+
color: '#000',
|
|
20457
|
+
fontSize: 15
|
|
20458
|
+
}
|
|
20459
|
+
}));
|
|
20460
|
+
} else {
|
|
20461
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20462
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
20463
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, {
|
|
20464
|
+
style: {
|
|
20465
|
+
color: '#000',
|
|
20466
|
+
fontSize: 15
|
|
20467
|
+
}
|
|
20468
|
+
}));
|
|
20469
|
+
}
|
|
20470
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20471
|
+
className: "col-lg-12 p-0"
|
|
20472
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20473
|
+
className: "mt-4 mb-4",
|
|
20474
|
+
style: {
|
|
20475
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20476
|
+
}
|
|
20477
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
20478
|
+
className: "p-0"
|
|
20479
|
+
}, pitem.collections.length != 0 && pitem.collections.map(function (collitem, collindex) {
|
|
20480
|
+
if (collitem.isshowntocustomers == 1) {
|
|
20481
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20482
|
+
className: ' row m-0 p-0 mb-2 '
|
|
20483
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20484
|
+
className: ' row m-0 w-100 px-5 '
|
|
20485
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20486
|
+
className: "col-10 p-0 text-start",
|
|
20487
|
+
onClick: function onClick() {
|
|
20488
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
|
|
20489
|
+
setopenCnvas(false);
|
|
20490
|
+
}
|
|
20491
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20492
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20493
|
+
}, langdetect == 'en' ? collitem.title_en : collitem.title_ar))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20494
|
+
className: "col-lg-12 p-0"
|
|
20495
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20496
|
+
className: "mt-4 mb-4",
|
|
20497
|
+
style: {
|
|
20498
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20499
|
+
}
|
|
20500
|
+
})));
|
|
20501
|
+
}
|
|
20502
|
+
})));
|
|
20503
|
+
}
|
|
20504
|
+
}))))));
|
|
20505
|
+
}
|
|
20506
|
+
})), sectionproperties.subheaderParentType == 'Parent Collections' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
20507
|
+
allowMultipleExpanded: true,
|
|
20508
|
+
allowZeroExpanded: true
|
|
20509
|
+
}, pcollarray.map(function (item, index) {
|
|
20510
|
+
if (item.isshowntocustomers == 1) {
|
|
20511
|
+
var _item$collections;
|
|
20512
|
+
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
20513
|
+
uuid: index
|
|
20514
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, {
|
|
20515
|
+
onClick: function onClick() {
|
|
20516
|
+
setChoosenindex(index);
|
|
20517
|
+
}
|
|
20518
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20519
|
+
className: ' row m-0 p-0 mb-2 '
|
|
20520
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20521
|
+
className: ' row m-0 w-100 px-3 '
|
|
20522
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20523
|
+
className: "col-10 p-0 text-start"
|
|
20524
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20525
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20526
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20527
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
|
|
20528
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
20529
|
+
if (state.expanded == true) {
|
|
20530
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20531
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
20532
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, {
|
|
20533
|
+
style: {
|
|
20534
|
+
color: '#000',
|
|
20535
|
+
fontSize: 15
|
|
20536
|
+
}
|
|
20537
|
+
}));
|
|
20538
|
+
} else {
|
|
20539
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
20540
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
20541
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, {
|
|
20542
|
+
style: {
|
|
20543
|
+
color: '#000',
|
|
20544
|
+
fontSize: 15
|
|
20545
|
+
}
|
|
20546
|
+
}));
|
|
20547
|
+
}
|
|
20548
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20549
|
+
className: "col-lg-12 p-0"
|
|
20550
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20551
|
+
className: "mt-4 mb-4",
|
|
20552
|
+
style: {
|
|
20553
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20554
|
+
}
|
|
20555
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
20556
|
+
className: "p-0"
|
|
20557
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20558
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
20559
|
+
}, 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) {
|
|
20560
|
+
if (collitem.isshowntocustomers == 1) {
|
|
20561
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20562
|
+
"class": "col-lg-12 p-0"
|
|
20563
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20564
|
+
className: ' row m-0 p-0 mb-2 '
|
|
20565
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20566
|
+
className: ' row m-0 w-100 px-5 '
|
|
20567
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20568
|
+
className: "col-10 p-0 text-start",
|
|
20569
|
+
onClick: function onClick() {
|
|
20570
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
|
|
20571
|
+
setopenCnvas(false);
|
|
20572
|
+
}
|
|
20573
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20574
|
+
className: ' mb-0 p-0 ',
|
|
20575
|
+
style: {
|
|
20576
|
+
color: sectionproperties.collectionsectiontextcolor,
|
|
20577
|
+
fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
|
|
20578
|
+
textTransform: sectionproperties.collectionsectiontexttransform,
|
|
20579
|
+
fontWeight: sectionproperties.collectionsectiontextfontweight,
|
|
20580
|
+
transition: '.3s'
|
|
20581
|
+
}
|
|
20582
|
+
}, langdetect == 'en' ? collitem.title_en : collitem.title_ar))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20583
|
+
className: "col-lg-12 p-0"
|
|
20584
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20585
|
+
className: "mt-4 mb-4",
|
|
20586
|
+
style: {
|
|
20587
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20588
|
+
}
|
|
20589
|
+
}))));
|
|
20590
|
+
}
|
|
20591
|
+
})))));
|
|
20592
|
+
}
|
|
20593
|
+
})), 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) {
|
|
20594
|
+
if (collitem.isshowntocustomers == 1) {
|
|
20595
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20596
|
+
className: ' row m-0 p-0 mb-2 w-100 '
|
|
20597
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20598
|
+
className: "col-12 p-0 text-start px-3",
|
|
20599
|
+
onClick: function onClick() {
|
|
20600
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
|
|
20601
|
+
setopenCnvas(false);
|
|
20602
|
+
}
|
|
20603
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
20604
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
20605
|
+
}, langdetect == 'en' ? collitem.title_en : collitem.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20606
|
+
className: "col-lg-12 p-0"
|
|
20607
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
20608
|
+
className: "mt-4 mb-4",
|
|
20609
|
+
style: {
|
|
20610
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
20611
|
+
}
|
|
20612
|
+
})));
|
|
20613
|
+
}
|
|
20614
|
+
})))))));
|
|
20615
|
+
};
|
|
20616
|
+
|
|
20617
|
+
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; }
|
|
20618
|
+
function _objectSpread$1U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1U(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20619
|
+
var ElegantHeader = function ElegantHeader(props) {
|
|
20620
|
+
var _authdetailsContext$i, _authdetailsContext$i3, _textarray$, _textarray$2, _authdetailsContext$c, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
20621
|
+
var _useState = React.useState(''),
|
|
20622
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
20623
|
+
sectionproperties = _useState2[0],
|
|
20624
|
+
setsectionproperties = _useState2[1];
|
|
20625
|
+
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
20626
|
+
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
20627
|
+
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
20628
|
+
var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
20629
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
20630
|
+
var lang = props.actions.lang;
|
|
20631
|
+
var langdetect = props.actions.langdetect;
|
|
20632
|
+
var setlang = props.actions.setlang;
|
|
20633
|
+
var templatepropcontext = props.actions.templatepropcontext;
|
|
20634
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
20635
|
+
var templateproperties_context = props.actions.templateproperties_context;
|
|
20636
|
+
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
20637
|
+
var routingcountext = props.actions.routingcountext;
|
|
20638
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
20639
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
20640
|
+
var actions = props.actions;
|
|
20641
|
+
var _useState3 = React.useState([]),
|
|
20642
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
20643
|
+
logoarrayofobjects = _useState4[0],
|
|
20644
|
+
setlogoarrayofobjects = _useState4[1];
|
|
20645
|
+
var _useState5 = React.useState([]),
|
|
20646
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
20647
|
+
textarray = _useState6[0],
|
|
20648
|
+
settextarray = _useState6[1];
|
|
20649
|
+
var _useState7 = React.useState(false),
|
|
20650
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
20651
|
+
openSideNav = _useState8[0],
|
|
20652
|
+
setopenSideNav = _useState8[1];
|
|
20653
|
+
var _useState9 = React.useState(false),
|
|
20654
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
20655
|
+
openSearchBar = _useState10[0],
|
|
20656
|
+
setopenSearchBar = _useState10[1];
|
|
20657
|
+
React.useEffect(function () {
|
|
20658
|
+
var secpropobj = {};
|
|
20659
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
20660
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
20661
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
20662
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
20663
|
+
});
|
|
20664
|
+
}
|
|
20665
|
+
});
|
|
20666
|
+
if (Object.keys(secpropobj).length === 0) {
|
|
20667
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
20668
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
20669
|
+
});
|
|
20670
|
+
}
|
|
20671
|
+
setsectionproperties(_objectSpread$1U({}, secpropobj));
|
|
20672
|
+
}, [StatePagePropertiesContext]);
|
|
20673
|
+
React.useEffect(function () {
|
|
20674
|
+
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
20675
|
+
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
20676
|
+
if (Array.isArray(logoarrayofobjectsparsed)) {
|
|
20677
|
+
setlogoarrayofobjects(_toConsumableArray__default["default"](logoarrayofobjectsparsed));
|
|
20678
|
+
}
|
|
20679
|
+
}
|
|
20680
|
+
}, [templateproperties_context]);
|
|
20681
|
+
React.useEffect(function () {
|
|
20682
|
+
if (sectionproperties.length != 0 && sectionproperties.txtArray != undefined) {
|
|
20683
|
+
var textarrayparsed = JSON.parse(sectionproperties.txtArray);
|
|
20684
|
+
if (Array.isArray(textarrayparsed)) {
|
|
20685
|
+
settextarray(_toConsumableArray__default["default"](textarrayparsed));
|
|
20686
|
+
}
|
|
20687
|
+
}
|
|
20688
|
+
}, [sectionproperties]);
|
|
20689
|
+
var header_cssstyles = {
|
|
20690
|
+
upperheadersection: glamor.css({
|
|
20691
|
+
backgroundColor: sectionproperties.uppersection_bgcolor,
|
|
20692
|
+
paddingBottom: '5px',
|
|
20693
|
+
paddingTop: '5px',
|
|
20694
|
+
paddingLeft: sectionproperties.upperheaderpaddinghorizontal + 'px',
|
|
20695
|
+
paddingRight: sectionproperties.upperheaderpaddinghorizontal + 'px'
|
|
20696
|
+
}),
|
|
20697
|
+
storeinfotext: glamor.css({
|
|
20698
|
+
fontSize: sectionproperties.footerinfotext_fontsize + 'px',
|
|
20699
|
+
color: sectionproperties.footerinfotext_color,
|
|
20700
|
+
fontWeight: sectionproperties.footerinfotext_fontweight,
|
|
20701
|
+
':hover': {
|
|
20702
|
+
transition: '.3s',
|
|
20703
|
+
color: sectionproperties.footerinfotext_coloronhover
|
|
20704
|
+
}
|
|
20705
|
+
}),
|
|
20706
|
+
textSlider: glamor.css({
|
|
20707
|
+
fontSize: sectionproperties.textsliderfontsize + 'px',
|
|
20708
|
+
color: sectionproperties.textsliderfontcolor,
|
|
20709
|
+
fontWeight: sectionproperties.textsliderfontweight
|
|
20710
|
+
}),
|
|
20711
|
+
lowerheadersection: glamor.css({
|
|
20712
|
+
background: sectionproperties.header_backgroundColor,
|
|
20713
|
+
paddingLeft: sectionproperties.header_paddinghorizontal + 'px',
|
|
20714
|
+
paddingRight: sectionproperties.header_paddinghorizontal + 'px',
|
|
20715
|
+
paddingTop: sectionproperties.header_paddingTop + 'px',
|
|
20716
|
+
paddingBottom: sectionproperties.header_paddingBottom + 'px'
|
|
20717
|
+
}),
|
|
20126
20718
|
header_logo: glamor.css({
|
|
20127
20719
|
width: templateproperties_context.logo_width + 'px',
|
|
20128
20720
|
height: templateproperties_context.logo_height + 'px'
|
|
@@ -20291,7 +20883,13 @@ var ElegantHeader = function ElegantHeader(props) {
|
|
|
20291
20883
|
style: {
|
|
20292
20884
|
position: 'relative'
|
|
20293
20885
|
}
|
|
20294
|
-
},
|
|
20886
|
+
}, templateproperties_context.showtextslider == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
20887
|
+
"class": "col-lg-12 p-0 d-none d-md-block"
|
|
20888
|
+
}, /*#__PURE__*/React__default["default"].createElement(MarqueeHeader, {
|
|
20889
|
+
sectionpropertiesprops: sectionproperties,
|
|
20890
|
+
templateproperties_contextprops: templateproperties_context,
|
|
20891
|
+
actions: actions
|
|
20892
|
+
})), sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
|
|
20295
20893
|
href: 'https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber),
|
|
20296
20894
|
target: '_blank',
|
|
20297
20895
|
style: {
|
|
@@ -20602,6 +21200,9 @@ var ElegantHeader = function ElegantHeader(props) {
|
|
|
20602
21200
|
}), sectionproperties.responsiveheaderstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement(HeaderresponsiveStyle2, {
|
|
20603
21201
|
sectionpropertiesprops: sectionproperties,
|
|
20604
21202
|
actions: actions
|
|
21203
|
+
}), sectionproperties.responsiveheaderstyle == 'Style 2 With Subheader' && /*#__PURE__*/React__default["default"].createElement(HeaderresponsiveStyle2, {
|
|
21204
|
+
sectionpropertiesprops: sectionproperties,
|
|
21205
|
+
actions: actions
|
|
20605
21206
|
}), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Offcanvas, {
|
|
20606
21207
|
show: openSideNav,
|
|
20607
21208
|
onHide: function onHide() {
|