tabexseriescomponents 0.0.202 → 0.0.203
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 +162 -146
- package/dist/index.esm.js +162 -146
- package/dist/index.umd.js +162 -146
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10557,37 +10557,41 @@ var Subheader = function Subheader(props) {
|
|
|
10557
10557
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
10558
10558
|
}
|
|
10559
10559
|
})), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : (_fetchCategoriesQuery4 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery4 === void 0 ? void 0 : _fetchCategoriesQuery4.categories.map(function (item, index) {
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10560
|
+
if (item.isshowntocustomers == 1) {
|
|
10561
|
+
var _props$subheaderprope6, _props$subheaderprope7;
|
|
10562
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10563
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10564
|
+
onClick: function onClick() {
|
|
10565
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10566
|
+
},
|
|
10567
|
+
onMouseEnter: function onMouseEnter() {
|
|
10568
|
+
setshowdownheadermenu(true);
|
|
10569
|
+
setChoosenindex(index);
|
|
10570
|
+
},
|
|
10571
|
+
style: {
|
|
10572
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope6 = props.subheaderpropertiesprops) === null || _props$subheaderprope6 === void 0 ? void 0 : _props$subheaderprope6.paddingLeftprops : 0,
|
|
10573
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope7 = props.subheaderpropertiesprops) === null || _props$subheaderprope7 === void 0 ? void 0 : _props$subheaderprope7.paddingRightprops : 0
|
|
10574
|
+
}
|
|
10575
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10576
|
+
}
|
|
10575
10577
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10578
|
+
if (item.isshowntocustomers == 1) {
|
|
10579
|
+
var _props$subheaderprope8, _props$subheaderprope9;
|
|
10580
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10581
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10582
|
+
onClick: function onClick() {
|
|
10583
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10584
|
+
},
|
|
10585
|
+
onMouseEnter: function onMouseEnter() {
|
|
10586
|
+
setshowdownheadermenu(true);
|
|
10587
|
+
setChoosenindex(index);
|
|
10588
|
+
},
|
|
10589
|
+
style: {
|
|
10590
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingLeftprops : 0,
|
|
10591
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope9 = props.subheaderpropertiesprops) === null || _props$subheaderprope9 === void 0 ? void 0 : _props$subheaderprope9.paddingRightprops : 0
|
|
10592
|
+
}
|
|
10593
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10594
|
+
}
|
|
10591
10595
|
}), (props === null || props === void 0 ? void 0 : (_props$subheaderprope10 = props.subheaderpropertiesprops) === null || _props$subheaderprope10 === void 0 ? void 0 : _props$subheaderprope10.subheaderpositionprops) == 'in nav' && (templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$2 = templatepropcontext.pagesnprop) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.map(function (item, index) {
|
|
10592
10596
|
if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex > 0) {
|
|
10593
10597
|
var _props$subheaderprope11, _props$subheaderprope12;
|
|
@@ -10627,37 +10631,41 @@ var Subheader = function Subheader(props) {
|
|
|
10627
10631
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
10628
10632
|
}
|
|
10629
10633
|
})), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery5 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery5 === void 0 ? void 0 : (_fetchCategoriesQuery6 = _fetchCategoriesQuery5.data) === null || _fetchCategoriesQuery6 === void 0 ? void 0 : _fetchCategoriesQuery6.categories.map(function (item, index) {
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10634
|
+
if (item.isshowntocustomers == 1) {
|
|
10635
|
+
var _props$subheaderprope17, _props$subheaderprope18;
|
|
10636
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10637
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10638
|
+
onClick: function onClick() {
|
|
10639
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10640
|
+
},
|
|
10641
|
+
onMouseEnter: function onMouseEnter() {
|
|
10642
|
+
setshowdownheadermenu(true);
|
|
10643
|
+
setChoosenindex(index);
|
|
10644
|
+
},
|
|
10645
|
+
style: {
|
|
10646
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope17 = props.subheaderpropertiesprops) === null || _props$subheaderprope17 === void 0 ? void 0 : _props$subheaderprope17.paddingLeftprops : 0,
|
|
10647
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope18 = props.subheaderpropertiesprops) === null || _props$subheaderprope18 === void 0 ? void 0 : _props$subheaderprope18.paddingRightprops : 0
|
|
10648
|
+
}
|
|
10649
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10650
|
+
}
|
|
10645
10651
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10652
|
+
if (item.isshowntocustomers == 1) {
|
|
10653
|
+
var _props$subheaderprope19, _props$subheaderprope20;
|
|
10654
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10655
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10656
|
+
onClick: function onClick() {
|
|
10657
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10658
|
+
},
|
|
10659
|
+
onMouseEnter: function onMouseEnter() {
|
|
10660
|
+
setshowdownheadermenu(true);
|
|
10661
|
+
setChoosenindex(index);
|
|
10662
|
+
},
|
|
10663
|
+
style: {
|
|
10664
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope19 = props.subheaderpropertiesprops) === null || _props$subheaderprope19 === void 0 ? void 0 : _props$subheaderprope19.paddingLeftprops : 0,
|
|
10665
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope20 = props.subheaderpropertiesprops) === null || _props$subheaderprope20 === void 0 ? void 0 : _props$subheaderprope20.paddingRightprops : 0
|
|
10666
|
+
}
|
|
10667
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10668
|
+
}
|
|
10661
10669
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10662
10670
|
"class": "col-lg-12 m-auto d-none d-md-flex flex-column align-items-center justify-content-center pt-md-3 pb-md-3 pl-sm-2 pr-sm-2",
|
|
10663
10671
|
style: {
|
|
@@ -10676,45 +10684,49 @@ var Subheader = function Subheader(props) {
|
|
|
10676
10684
|
textAlign: 'center'
|
|
10677
10685
|
}
|
|
10678
10686
|
}, sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery7 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery7 === void 0 ? void 0 : (_fetchCategoriesQuery8 = _fetchCategoriesQuery7.data) === null || _fetchCategoriesQuery8 === void 0 ? void 0 : _fetchCategoriesQuery8.categories.map(function (item, index) {
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10687
|
+
if (item.isshowntocustomers == 1) {
|
|
10688
|
+
var _props$subheaderprope21, _props$subheaderprope22;
|
|
10689
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10690
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10691
|
+
onClick: function onClick() {
|
|
10692
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10693
|
+
},
|
|
10694
|
+
onMouseEnter: function onMouseEnter() {
|
|
10695
|
+
setshowdownheadermenu(true);
|
|
10696
|
+
setChoosenindex(index);
|
|
10697
|
+
},
|
|
10698
|
+
style: {
|
|
10699
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope21 = props.subheaderpropertiesprops) === null || _props$subheaderprope21 === void 0 ? void 0 : _props$subheaderprope21.paddingLeftprops : 0,
|
|
10700
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope22 = props.subheaderpropertiesprops) === null || _props$subheaderprope22 === void 0 ? void 0 : _props$subheaderprope22.paddingRightprops : 0,
|
|
10701
|
+
color: sectionproperties.subheader_categorytitle_fontColor_resp,
|
|
10702
|
+
fontSize: sectionproperties.subheader_categorytitle_fontSize_resp + 'px',
|
|
10703
|
+
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
10704
|
+
fontWeight: sectionproperties.subheader_categorytitle_textfontweight
|
|
10705
|
+
}
|
|
10706
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10707
|
+
}
|
|
10698
10708
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10709
|
+
if (item.isshowntocustomers == 1) {
|
|
10710
|
+
var _props$subheaderprope23, _props$subheaderprope24;
|
|
10711
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10712
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10713
|
+
onClick: function onClick() {
|
|
10714
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10715
|
+
},
|
|
10716
|
+
onMouseEnter: function onMouseEnter() {
|
|
10717
|
+
setshowdownheadermenu(true);
|
|
10718
|
+
setChoosenindex(index);
|
|
10719
|
+
},
|
|
10720
|
+
style: {
|
|
10721
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope23 = props.subheaderpropertiesprops) === null || _props$subheaderprope23 === void 0 ? void 0 : _props$subheaderprope23.paddingLeftprops : 0,
|
|
10722
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope24 = props.subheaderpropertiesprops) === null || _props$subheaderprope24 === void 0 ? void 0 : _props$subheaderprope24.paddingRightprops : 0,
|
|
10723
|
+
color: sectionproperties.subheader_categorytitle_fontColor_resp,
|
|
10724
|
+
fontSize: sectionproperties.subheader_categorytitle_fontSize_resp + 'px',
|
|
10725
|
+
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
10726
|
+
fontWeight: sectionproperties.subheader_categorytitle_textfontweight
|
|
10727
|
+
}
|
|
10728
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10729
|
+
}
|
|
10718
10730
|
}))), Choosenindex.length != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery9 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery9 === void 0 ? void 0 : (_fetchCategoriesQuery10 = _fetchCategoriesQuery9.data) === null || _fetchCategoriesQuery10 === void 0 ? void 0 : (_fetchCategoriesQuery11 = _fetchCategoriesQuery10.categories[Choosenindex]) === null || _fetchCategoriesQuery11 === void 0 ? void 0 : (_fetchCategoriesQuery12 = _fetchCategoriesQuery11.parentcolletions) === null || _fetchCategoriesQuery12 === void 0 ? void 0 : _fetchCategoriesQuery12.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10719
10731
|
"class": "".concat(headerstyles$f.dropmenu, " ").concat(header_cssstyles.dropdownmenu, " ").concat(showdownheadermenu ? 'd-flex' : 'd-none') + ' col-lg-12 ml-auto mr-auto flex-row justify-content-center align-items-center pl-lg-3 pr-lg-3 pl-md-2 pr-md-2 p-sm-0 position-md-relative ',
|
|
10720
10732
|
onMouseLeave: function onMouseLeave() {
|
|
@@ -10740,26 +10752,53 @@ var Subheader = function Subheader(props) {
|
|
|
10740
10752
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10741
10753
|
"class": "font-16 font-weight-500 m-0 p-0"
|
|
10742
10754
|
}, langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات')), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery17 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery17 === void 0 ? void 0 : (_fetchCategoriesQuery18 = _fetchCategoriesQuery17.data) === null || _fetchCategoriesQuery18 === void 0 ? void 0 : (_fetchCategoriesQuery19 = _fetchCategoriesQuery18.categories[Choosenindex]) === null || _fetchCategoriesQuery19 === void 0 ? void 0 : _fetchCategoriesQuery19.parentcolletions.map(function (item, index) {
|
|
10743
|
-
|
|
10744
|
-
"
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
"
|
|
10750
|
-
|
|
10751
|
-
"
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10755
|
+
if (item.isshowntocustomers == 1) {
|
|
10756
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10757
|
+
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10758
|
+
style: {
|
|
10759
|
+
cursor: 'pointer'
|
|
10760
|
+
}
|
|
10761
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10762
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10763
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10764
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
10765
|
+
onClick: function onClick() {
|
|
10766
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10767
|
+
}
|
|
10768
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10769
|
+
"class": "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 ',
|
|
10770
|
+
style: {
|
|
10771
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10772
|
+
}
|
|
10773
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), item.collections.map(function (item, index) {
|
|
10774
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10775
|
+
"class": "col-lg-12 mb-2",
|
|
10776
|
+
onClick: function onClick() {
|
|
10777
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10778
|
+
}
|
|
10779
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10780
|
+
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
10781
|
+
style: {
|
|
10782
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10783
|
+
}
|
|
10784
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar));
|
|
10785
|
+
}), index != item.collections.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10786
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10787
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10788
|
+
"class": "mt-3 mb-0"
|
|
10789
|
+
}))));
|
|
10790
|
+
}
|
|
10791
|
+
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray[Choosenindex].collections.map(function (item, index) {
|
|
10792
|
+
if (item.isshowntocustomers == 1) {
|
|
10761
10793
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10762
|
-
"class": "col-lg-12 mb-
|
|
10794
|
+
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10795
|
+
style: {
|
|
10796
|
+
cursor: 'pointer'
|
|
10797
|
+
}
|
|
10798
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10799
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10800
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10801
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
10763
10802
|
onClick: function onClick() {
|
|
10764
10803
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10765
10804
|
}
|
|
@@ -10768,35 +10807,12 @@ var Subheader = function Subheader(props) {
|
|
|
10768
10807
|
style: {
|
|
10769
10808
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10770
10809
|
}
|
|
10771
|
-
}, langdetect == 'en' ? item.title_en : item.title_ar))
|
|
10772
|
-
|
|
10773
|
-
"
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
}
|
|
10777
|
-
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray[Choosenindex].collections.map(function (item, index) {
|
|
10778
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10779
|
-
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10780
|
-
style: {
|
|
10781
|
-
cursor: 'pointer'
|
|
10782
|
-
}
|
|
10783
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10784
|
-
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10785
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10786
|
-
"class": "col-lg-12 p-0 mb-2",
|
|
10787
|
-
onClick: function onClick() {
|
|
10788
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10789
|
-
}
|
|
10790
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10791
|
-
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
10792
|
-
style: {
|
|
10793
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10794
|
-
}
|
|
10795
|
-
}, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray[Choosenindex].collections != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10796
|
-
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10797
|
-
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10798
|
-
"class": "mt-3 mb-0"
|
|
10799
|
-
}))));
|
|
10810
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray[Choosenindex].collections != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10811
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10812
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10813
|
+
"class": "mt-3 mb-0"
|
|
10814
|
+
}))));
|
|
10815
|
+
}
|
|
10800
10816
|
}))))));
|
|
10801
10817
|
};
|
|
10802
10818
|
|
package/dist/index.esm.js
CHANGED
|
@@ -10513,37 +10513,41 @@ var Subheader = function Subheader(props) {
|
|
|
10513
10513
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
10514
10514
|
}
|
|
10515
10515
|
})), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : (_fetchCategoriesQuery4 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery4 === void 0 ? void 0 : _fetchCategoriesQuery4.categories.map(function (item, index) {
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10516
|
+
if (item.isshowntocustomers == 1) {
|
|
10517
|
+
var _props$subheaderprope6, _props$subheaderprope7;
|
|
10518
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
10519
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10520
|
+
onClick: function onClick() {
|
|
10521
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10522
|
+
},
|
|
10523
|
+
onMouseEnter: function onMouseEnter() {
|
|
10524
|
+
setshowdownheadermenu(true);
|
|
10525
|
+
setChoosenindex(index);
|
|
10526
|
+
},
|
|
10527
|
+
style: {
|
|
10528
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope6 = props.subheaderpropertiesprops) === null || _props$subheaderprope6 === void 0 ? void 0 : _props$subheaderprope6.paddingLeftprops : 0,
|
|
10529
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope7 = props.subheaderpropertiesprops) === null || _props$subheaderprope7 === void 0 ? void 0 : _props$subheaderprope7.paddingRightprops : 0
|
|
10530
|
+
}
|
|
10531
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10532
|
+
}
|
|
10531
10533
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10534
|
+
if (item.isshowntocustomers == 1) {
|
|
10535
|
+
var _props$subheaderprope8, _props$subheaderprope9;
|
|
10536
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
10537
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10538
|
+
onClick: function onClick() {
|
|
10539
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10540
|
+
},
|
|
10541
|
+
onMouseEnter: function onMouseEnter() {
|
|
10542
|
+
setshowdownheadermenu(true);
|
|
10543
|
+
setChoosenindex(index);
|
|
10544
|
+
},
|
|
10545
|
+
style: {
|
|
10546
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingLeftprops : 0,
|
|
10547
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope9 = props.subheaderpropertiesprops) === null || _props$subheaderprope9 === void 0 ? void 0 : _props$subheaderprope9.paddingRightprops : 0
|
|
10548
|
+
}
|
|
10549
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10550
|
+
}
|
|
10547
10551
|
}), (props === null || props === void 0 ? void 0 : (_props$subheaderprope10 = props.subheaderpropertiesprops) === null || _props$subheaderprope10 === void 0 ? void 0 : _props$subheaderprope10.subheaderpositionprops) == 'in nav' && (templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$2 = templatepropcontext.pagesnprop) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.map(function (item, index) {
|
|
10548
10552
|
if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex > 0) {
|
|
10549
10553
|
var _props$subheaderprope11, _props$subheaderprope12;
|
|
@@ -10583,37 +10587,41 @@ var Subheader = function Subheader(props) {
|
|
|
10583
10587
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
10584
10588
|
}
|
|
10585
10589
|
})), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery5 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery5 === void 0 ? void 0 : (_fetchCategoriesQuery6 = _fetchCategoriesQuery5.data) === null || _fetchCategoriesQuery6 === void 0 ? void 0 : _fetchCategoriesQuery6.categories.map(function (item, index) {
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10590
|
+
if (item.isshowntocustomers == 1) {
|
|
10591
|
+
var _props$subheaderprope17, _props$subheaderprope18;
|
|
10592
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
10593
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10594
|
+
onClick: function onClick() {
|
|
10595
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10596
|
+
},
|
|
10597
|
+
onMouseEnter: function onMouseEnter() {
|
|
10598
|
+
setshowdownheadermenu(true);
|
|
10599
|
+
setChoosenindex(index);
|
|
10600
|
+
},
|
|
10601
|
+
style: {
|
|
10602
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope17 = props.subheaderpropertiesprops) === null || _props$subheaderprope17 === void 0 ? void 0 : _props$subheaderprope17.paddingLeftprops : 0,
|
|
10603
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope18 = props.subheaderpropertiesprops) === null || _props$subheaderprope18 === void 0 ? void 0 : _props$subheaderprope18.paddingRightprops : 0
|
|
10604
|
+
}
|
|
10605
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10606
|
+
}
|
|
10601
10607
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10608
|
+
if (item.isshowntocustomers == 1) {
|
|
10609
|
+
var _props$subheaderprope19, _props$subheaderprope20;
|
|
10610
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
10611
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10612
|
+
onClick: function onClick() {
|
|
10613
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10614
|
+
},
|
|
10615
|
+
onMouseEnter: function onMouseEnter() {
|
|
10616
|
+
setshowdownheadermenu(true);
|
|
10617
|
+
setChoosenindex(index);
|
|
10618
|
+
},
|
|
10619
|
+
style: {
|
|
10620
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope19 = props.subheaderpropertiesprops) === null || _props$subheaderprope19 === void 0 ? void 0 : _props$subheaderprope19.paddingLeftprops : 0,
|
|
10621
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope20 = props.subheaderpropertiesprops) === null || _props$subheaderprope20 === void 0 ? void 0 : _props$subheaderprope20.paddingRightprops : 0
|
|
10622
|
+
}
|
|
10623
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10624
|
+
}
|
|
10617
10625
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
10618
10626
|
"class": "col-lg-12 m-auto d-none d-md-flex flex-column align-items-center justify-content-center pt-md-3 pb-md-3 pl-sm-2 pr-sm-2",
|
|
10619
10627
|
style: {
|
|
@@ -10632,45 +10640,49 @@ var Subheader = function Subheader(props) {
|
|
|
10632
10640
|
textAlign: 'center'
|
|
10633
10641
|
}
|
|
10634
10642
|
}, sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery7 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery7 === void 0 ? void 0 : (_fetchCategoriesQuery8 = _fetchCategoriesQuery7.data) === null || _fetchCategoriesQuery8 === void 0 ? void 0 : _fetchCategoriesQuery8.categories.map(function (item, index) {
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10643
|
+
if (item.isshowntocustomers == 1) {
|
|
10644
|
+
var _props$subheaderprope21, _props$subheaderprope22;
|
|
10645
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
10646
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10647
|
+
onClick: function onClick() {
|
|
10648
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10649
|
+
},
|
|
10650
|
+
onMouseEnter: function onMouseEnter() {
|
|
10651
|
+
setshowdownheadermenu(true);
|
|
10652
|
+
setChoosenindex(index);
|
|
10653
|
+
},
|
|
10654
|
+
style: {
|
|
10655
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope21 = props.subheaderpropertiesprops) === null || _props$subheaderprope21 === void 0 ? void 0 : _props$subheaderprope21.paddingLeftprops : 0,
|
|
10656
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope22 = props.subheaderpropertiesprops) === null || _props$subheaderprope22 === void 0 ? void 0 : _props$subheaderprope22.paddingRightprops : 0,
|
|
10657
|
+
color: sectionproperties.subheader_categorytitle_fontColor_resp,
|
|
10658
|
+
fontSize: sectionproperties.subheader_categorytitle_fontSize_resp + 'px',
|
|
10659
|
+
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
10660
|
+
fontWeight: sectionproperties.subheader_categorytitle_textfontweight
|
|
10661
|
+
}
|
|
10662
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10663
|
+
}
|
|
10654
10664
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10665
|
+
if (item.isshowntocustomers == 1) {
|
|
10666
|
+
var _props$subheaderprope23, _props$subheaderprope24;
|
|
10667
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
10668
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10669
|
+
onClick: function onClick() {
|
|
10670
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10671
|
+
},
|
|
10672
|
+
onMouseEnter: function onMouseEnter() {
|
|
10673
|
+
setshowdownheadermenu(true);
|
|
10674
|
+
setChoosenindex(index);
|
|
10675
|
+
},
|
|
10676
|
+
style: {
|
|
10677
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope23 = props.subheaderpropertiesprops) === null || _props$subheaderprope23 === void 0 ? void 0 : _props$subheaderprope23.paddingLeftprops : 0,
|
|
10678
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope24 = props.subheaderpropertiesprops) === null || _props$subheaderprope24 === void 0 ? void 0 : _props$subheaderprope24.paddingRightprops : 0,
|
|
10679
|
+
color: sectionproperties.subheader_categorytitle_fontColor_resp,
|
|
10680
|
+
fontSize: sectionproperties.subheader_categorytitle_fontSize_resp + 'px',
|
|
10681
|
+
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
10682
|
+
fontWeight: sectionproperties.subheader_categorytitle_textfontweight
|
|
10683
|
+
}
|
|
10684
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10685
|
+
}
|
|
10674
10686
|
}))), Choosenindex.length != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery9 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery9 === void 0 ? void 0 : (_fetchCategoriesQuery10 = _fetchCategoriesQuery9.data) === null || _fetchCategoriesQuery10 === void 0 ? void 0 : (_fetchCategoriesQuery11 = _fetchCategoriesQuery10.categories[Choosenindex]) === null || _fetchCategoriesQuery11 === void 0 ? void 0 : (_fetchCategoriesQuery12 = _fetchCategoriesQuery11.parentcolletions) === null || _fetchCategoriesQuery12 === void 0 ? void 0 : _fetchCategoriesQuery12.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10675
10687
|
"class": "".concat(headerstyles$f.dropmenu, " ").concat(header_cssstyles.dropdownmenu, " ").concat(showdownheadermenu ? 'd-flex' : 'd-none') + ' col-lg-12 ml-auto mr-auto flex-row justify-content-center align-items-center pl-lg-3 pr-lg-3 pl-md-2 pr-md-2 p-sm-0 position-md-relative ',
|
|
10676
10688
|
onMouseLeave: function onMouseLeave() {
|
|
@@ -10696,26 +10708,53 @@ var Subheader = function Subheader(props) {
|
|
|
10696
10708
|
}), /*#__PURE__*/React.createElement("p", {
|
|
10697
10709
|
"class": "font-16 font-weight-500 m-0 p-0"
|
|
10698
10710
|
}, langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات')), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery17 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery17 === void 0 ? void 0 : (_fetchCategoriesQuery18 = _fetchCategoriesQuery17.data) === null || _fetchCategoriesQuery18 === void 0 ? void 0 : (_fetchCategoriesQuery19 = _fetchCategoriesQuery18.categories[Choosenindex]) === null || _fetchCategoriesQuery19 === void 0 ? void 0 : _fetchCategoriesQuery19.parentcolletions.map(function (item, index) {
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
"
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10711
|
+
if (item.isshowntocustomers == 1) {
|
|
10712
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10713
|
+
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10714
|
+
style: {
|
|
10715
|
+
cursor: 'pointer'
|
|
10716
|
+
}
|
|
10717
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10718
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10719
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10720
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
10721
|
+
onClick: function onClick() {
|
|
10722
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10723
|
+
}
|
|
10724
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
10725
|
+
"class": "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 ',
|
|
10726
|
+
style: {
|
|
10727
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10728
|
+
}
|
|
10729
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), item.collections.map(function (item, index) {
|
|
10730
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10731
|
+
"class": "col-lg-12 mb-2",
|
|
10732
|
+
onClick: function onClick() {
|
|
10733
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10734
|
+
}
|
|
10735
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
10736
|
+
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
10737
|
+
style: {
|
|
10738
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10739
|
+
}
|
|
10740
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar));
|
|
10741
|
+
}), index != item.collections.length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10742
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10743
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
10744
|
+
"class": "mt-3 mb-0"
|
|
10745
|
+
}))));
|
|
10746
|
+
}
|
|
10747
|
+
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray[Choosenindex].collections.map(function (item, index) {
|
|
10748
|
+
if (item.isshowntocustomers == 1) {
|
|
10717
10749
|
return /*#__PURE__*/React.createElement("div", {
|
|
10718
|
-
"class": "col-lg-12 mb-
|
|
10750
|
+
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10751
|
+
style: {
|
|
10752
|
+
cursor: 'pointer'
|
|
10753
|
+
}
|
|
10754
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10755
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10756
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10757
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
10719
10758
|
onClick: function onClick() {
|
|
10720
10759
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10721
10760
|
}
|
|
@@ -10724,35 +10763,12 @@ var Subheader = function Subheader(props) {
|
|
|
10724
10763
|
style: {
|
|
10725
10764
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10726
10765
|
}
|
|
10727
|
-
}, langdetect == 'en' ? item.title_en : item.title_ar))
|
|
10728
|
-
|
|
10729
|
-
"
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
}
|
|
10733
|
-
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray[Choosenindex].collections.map(function (item, index) {
|
|
10734
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
10735
|
-
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10736
|
-
style: {
|
|
10737
|
-
cursor: 'pointer'
|
|
10738
|
-
}
|
|
10739
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
10740
|
-
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10741
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
10742
|
-
"class": "col-lg-12 p-0 mb-2",
|
|
10743
|
-
onClick: function onClick() {
|
|
10744
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10745
|
-
}
|
|
10746
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
10747
|
-
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
10748
|
-
style: {
|
|
10749
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10750
|
-
}
|
|
10751
|
-
}, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray[Choosenindex].collections != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10752
|
-
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10753
|
-
}, /*#__PURE__*/React.createElement("hr", {
|
|
10754
|
-
"class": "mt-3 mb-0"
|
|
10755
|
-
}))));
|
|
10766
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray[Choosenindex].collections != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10767
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10768
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
10769
|
+
"class": "mt-3 mb-0"
|
|
10770
|
+
}))));
|
|
10771
|
+
}
|
|
10756
10772
|
}))))));
|
|
10757
10773
|
};
|
|
10758
10774
|
|
package/dist/index.umd.js
CHANGED
|
@@ -10413,37 +10413,41 @@
|
|
|
10413
10413
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
10414
10414
|
}
|
|
10415
10415
|
})), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : (_fetchCategoriesQuery4 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery4 === void 0 ? void 0 : _fetchCategoriesQuery4.categories.map(function (item, index) {
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10416
|
+
if (item.isshowntocustomers == 1) {
|
|
10417
|
+
var _props$subheaderprope6, _props$subheaderprope7;
|
|
10418
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10419
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10420
|
+
onClick: function onClick() {
|
|
10421
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10422
|
+
},
|
|
10423
|
+
onMouseEnter: function onMouseEnter() {
|
|
10424
|
+
setshowdownheadermenu(true);
|
|
10425
|
+
setChoosenindex(index);
|
|
10426
|
+
},
|
|
10427
|
+
style: {
|
|
10428
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope6 = props.subheaderpropertiesprops) === null || _props$subheaderprope6 === void 0 ? void 0 : _props$subheaderprope6.paddingLeftprops : 0,
|
|
10429
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope7 = props.subheaderpropertiesprops) === null || _props$subheaderprope7 === void 0 ? void 0 : _props$subheaderprope7.paddingRightprops : 0
|
|
10430
|
+
}
|
|
10431
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10432
|
+
}
|
|
10431
10433
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10434
|
+
if (item.isshowntocustomers == 1) {
|
|
10435
|
+
var _props$subheaderprope8, _props$subheaderprope9;
|
|
10436
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10437
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10438
|
+
onClick: function onClick() {
|
|
10439
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10440
|
+
},
|
|
10441
|
+
onMouseEnter: function onMouseEnter() {
|
|
10442
|
+
setshowdownheadermenu(true);
|
|
10443
|
+
setChoosenindex(index);
|
|
10444
|
+
},
|
|
10445
|
+
style: {
|
|
10446
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingLeftprops : 0,
|
|
10447
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope9 = props.subheaderpropertiesprops) === null || _props$subheaderprope9 === void 0 ? void 0 : _props$subheaderprope9.paddingRightprops : 0
|
|
10448
|
+
}
|
|
10449
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10450
|
+
}
|
|
10447
10451
|
}), (props === null || props === void 0 ? void 0 : (_props$subheaderprope10 = props.subheaderpropertiesprops) === null || _props$subheaderprope10 === void 0 ? void 0 : _props$subheaderprope10.subheaderpositionprops) == 'in nav' && (templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$2 = templatepropcontext.pagesnprop) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.map(function (item, index) {
|
|
10448
10452
|
if (item.isnavigation == 1 && item.isactive == 1 && item.pageorderindex > 0) {
|
|
10449
10453
|
var _props$subheaderprope11, _props$subheaderprope12;
|
|
@@ -10483,37 +10487,41 @@
|
|
|
10483
10487
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
10484
10488
|
}
|
|
10485
10489
|
})), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery5 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery5 === void 0 ? void 0 : (_fetchCategoriesQuery6 = _fetchCategoriesQuery5.data) === null || _fetchCategoriesQuery6 === void 0 ? void 0 : _fetchCategoriesQuery6.categories.map(function (item, index) {
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10490
|
+
if (item.isshowntocustomers == 1) {
|
|
10491
|
+
var _props$subheaderprope17, _props$subheaderprope18;
|
|
10492
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10493
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10494
|
+
onClick: function onClick() {
|
|
10495
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10496
|
+
},
|
|
10497
|
+
onMouseEnter: function onMouseEnter() {
|
|
10498
|
+
setshowdownheadermenu(true);
|
|
10499
|
+
setChoosenindex(index);
|
|
10500
|
+
},
|
|
10501
|
+
style: {
|
|
10502
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope17 = props.subheaderpropertiesprops) === null || _props$subheaderprope17 === void 0 ? void 0 : _props$subheaderprope17.paddingLeftprops : 0,
|
|
10503
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope18 = props.subheaderpropertiesprops) === null || _props$subheaderprope18 === void 0 ? void 0 : _props$subheaderprope18.paddingRightprops : 0
|
|
10504
|
+
}
|
|
10505
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10506
|
+
}
|
|
10501
10507
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10508
|
+
if (item.isshowntocustomers == 1) {
|
|
10509
|
+
var _props$subheaderprope19, _props$subheaderprope20;
|
|
10510
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10511
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10512
|
+
onClick: function onClick() {
|
|
10513
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10514
|
+
},
|
|
10515
|
+
onMouseEnter: function onMouseEnter() {
|
|
10516
|
+
setshowdownheadermenu(true);
|
|
10517
|
+
setChoosenindex(index);
|
|
10518
|
+
},
|
|
10519
|
+
style: {
|
|
10520
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope19 = props.subheaderpropertiesprops) === null || _props$subheaderprope19 === void 0 ? void 0 : _props$subheaderprope19.paddingLeftprops : 0,
|
|
10521
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope20 = props.subheaderpropertiesprops) === null || _props$subheaderprope20 === void 0 ? void 0 : _props$subheaderprope20.paddingRightprops : 0
|
|
10522
|
+
}
|
|
10523
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10524
|
+
}
|
|
10517
10525
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10518
10526
|
"class": "col-lg-12 m-auto d-none d-md-flex flex-column align-items-center justify-content-center pt-md-3 pb-md-3 pl-sm-2 pr-sm-2",
|
|
10519
10527
|
style: {
|
|
@@ -10532,45 +10540,49 @@
|
|
|
10532
10540
|
textAlign: 'center'
|
|
10533
10541
|
}
|
|
10534
10542
|
}, sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery7 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery7 === void 0 ? void 0 : (_fetchCategoriesQuery8 = _fetchCategoriesQuery7.data) === null || _fetchCategoriesQuery8 === void 0 ? void 0 : _fetchCategoriesQuery8.categories.map(function (item, index) {
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10543
|
+
if (item.isshowntocustomers == 1) {
|
|
10544
|
+
var _props$subheaderprope21, _props$subheaderprope22;
|
|
10545
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10546
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10547
|
+
onClick: function onClick() {
|
|
10548
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
|
|
10549
|
+
},
|
|
10550
|
+
onMouseEnter: function onMouseEnter() {
|
|
10551
|
+
setshowdownheadermenu(true);
|
|
10552
|
+
setChoosenindex(index);
|
|
10553
|
+
},
|
|
10554
|
+
style: {
|
|
10555
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope21 = props.subheaderpropertiesprops) === null || _props$subheaderprope21 === void 0 ? void 0 : _props$subheaderprope21.paddingLeftprops : 0,
|
|
10556
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope22 = props.subheaderpropertiesprops) === null || _props$subheaderprope22 === void 0 ? void 0 : _props$subheaderprope22.paddingRightprops : 0,
|
|
10557
|
+
color: sectionproperties.subheader_categorytitle_fontColor_resp,
|
|
10558
|
+
fontSize: sectionproperties.subheader_categorytitle_fontSize_resp + 'px',
|
|
10559
|
+
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
10560
|
+
fontWeight: sectionproperties.subheader_categorytitle_textfontweight
|
|
10561
|
+
}
|
|
10562
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10563
|
+
}
|
|
10554
10564
|
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray.map(function (item, index) {
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10565
|
+
if (item.isshowntocustomers == 1) {
|
|
10566
|
+
var _props$subheaderprope23, _props$subheaderprope24;
|
|
10567
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10568
|
+
"class": "".concat(headerstyles$f.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
10569
|
+
onClick: function onClick() {
|
|
10570
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10571
|
+
},
|
|
10572
|
+
onMouseEnter: function onMouseEnter() {
|
|
10573
|
+
setshowdownheadermenu(true);
|
|
10574
|
+
setChoosenindex(index);
|
|
10575
|
+
},
|
|
10576
|
+
style: {
|
|
10577
|
+
marginLeft: langdetect == 'ar' ? (_props$subheaderprope23 = props.subheaderpropertiesprops) === null || _props$subheaderprope23 === void 0 ? void 0 : _props$subheaderprope23.paddingLeftprops : 0,
|
|
10578
|
+
marginRight: langdetect == 'en' ? (_props$subheaderprope24 = props.subheaderpropertiesprops) === null || _props$subheaderprope24 === void 0 ? void 0 : _props$subheaderprope24.paddingRightprops : 0,
|
|
10579
|
+
color: sectionproperties.subheader_categorytitle_fontColor_resp,
|
|
10580
|
+
fontSize: sectionproperties.subheader_categorytitle_fontSize_resp + 'px',
|
|
10581
|
+
textTransform: sectionproperties.subheader_categorytitle_textTransform,
|
|
10582
|
+
fontWeight: sectionproperties.subheader_categorytitle_textfontweight
|
|
10583
|
+
}
|
|
10584
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
10585
|
+
}
|
|
10574
10586
|
}))), Choosenindex.length != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery9 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery9 === void 0 ? void 0 : (_fetchCategoriesQuery10 = _fetchCategoriesQuery9.data) === null || _fetchCategoriesQuery10 === void 0 ? void 0 : (_fetchCategoriesQuery11 = _fetchCategoriesQuery10.categories[Choosenindex]) === null || _fetchCategoriesQuery11 === void 0 ? void 0 : (_fetchCategoriesQuery12 = _fetchCategoriesQuery11.parentcolletions) === null || _fetchCategoriesQuery12 === void 0 ? void 0 : _fetchCategoriesQuery12.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10575
10587
|
"class": "".concat(headerstyles$f.dropmenu, " ").concat(header_cssstyles.dropdownmenu, " ").concat(showdownheadermenu ? 'd-flex' : 'd-none') + ' col-lg-12 ml-auto mr-auto flex-row justify-content-center align-items-center pl-lg-3 pr-lg-3 pl-md-2 pr-md-2 p-sm-0 position-md-relative ',
|
|
10576
10588
|
onMouseLeave: function onMouseLeave() {
|
|
@@ -10596,26 +10608,53 @@
|
|
|
10596
10608
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10597
10609
|
"class": "font-16 font-weight-500 m-0 p-0"
|
|
10598
10610
|
}, langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات')), sectionproperties.subheaderParentType == 'Categories' && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 ? void 0 : (_fetchCategoriesQuery17 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery17 === void 0 ? void 0 : (_fetchCategoriesQuery18 = _fetchCategoriesQuery17.data) === null || _fetchCategoriesQuery18 === void 0 ? void 0 : (_fetchCategoriesQuery19 = _fetchCategoriesQuery18.categories[Choosenindex]) === null || _fetchCategoriesQuery19 === void 0 ? void 0 : _fetchCategoriesQuery19.parentcolletions.map(function (item, index) {
|
|
10599
|
-
|
|
10600
|
-
"
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
"
|
|
10606
|
-
|
|
10607
|
-
"
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10611
|
+
if (item.isshowntocustomers == 1) {
|
|
10612
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10613
|
+
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10614
|
+
style: {
|
|
10615
|
+
cursor: 'pointer'
|
|
10616
|
+
}
|
|
10617
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10618
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10619
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10620
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
10621
|
+
onClick: function onClick() {
|
|
10622
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
|
|
10623
|
+
}
|
|
10624
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10625
|
+
"class": "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 ',
|
|
10626
|
+
style: {
|
|
10627
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10628
|
+
}
|
|
10629
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), item.collections.map(function (item, index) {
|
|
10630
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10631
|
+
"class": "col-lg-12 mb-2",
|
|
10632
|
+
onClick: function onClick() {
|
|
10633
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10634
|
+
}
|
|
10635
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10636
|
+
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
10637
|
+
style: {
|
|
10638
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10639
|
+
}
|
|
10640
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar));
|
|
10641
|
+
}), index != item.collections.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10642
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10643
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10644
|
+
"class": "mt-3 mb-0"
|
|
10645
|
+
}))));
|
|
10646
|
+
}
|
|
10647
|
+
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray[Choosenindex].collections.map(function (item, index) {
|
|
10648
|
+
if (item.isshowntocustomers == 1) {
|
|
10617
10649
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10618
|
-
"class": "col-lg-12 mb-
|
|
10650
|
+
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10651
|
+
style: {
|
|
10652
|
+
cursor: 'pointer'
|
|
10653
|
+
}
|
|
10654
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10655
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10656
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10657
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
10619
10658
|
onClick: function onClick() {
|
|
10620
10659
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10621
10660
|
}
|
|
@@ -10624,35 +10663,12 @@
|
|
|
10624
10663
|
style: {
|
|
10625
10664
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10626
10665
|
}
|
|
10627
|
-
}, langdetect == 'en' ? item.title_en : item.title_ar))
|
|
10628
|
-
|
|
10629
|
-
"
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
}
|
|
10633
|
-
})), sectionproperties.subheaderParentType == 'Parent Collections' && pcollarray[Choosenindex].collections.map(function (item, index) {
|
|
10634
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10635
|
-
"class": "col-lg-3 pl-2 pr-2 col-md-6 col-sm-12 mb-md-4",
|
|
10636
|
-
style: {
|
|
10637
|
-
cursor: 'pointer'
|
|
10638
|
-
}
|
|
10639
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10640
|
-
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
10641
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10642
|
-
"class": "col-lg-12 p-0 mb-2",
|
|
10643
|
-
onClick: function onClick() {
|
|
10644
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
10645
|
-
}
|
|
10646
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10647
|
-
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
10648
|
-
style: {
|
|
10649
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10650
|
-
}
|
|
10651
|
-
}, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray[Choosenindex].collections != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10652
|
-
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10653
|
-
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10654
|
-
"class": "mt-3 mb-0"
|
|
10655
|
-
}))));
|
|
10666
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), index != pcollarray[Choosenindex].collections != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10667
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
10668
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10669
|
+
"class": "mt-3 mb-0"
|
|
10670
|
+
}))));
|
|
10671
|
+
}
|
|
10656
10672
|
}))))));
|
|
10657
10673
|
};
|
|
10658
10674
|
|