tabexseriescomponents 0.0.7 → 0.0.10
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/Env.js +2 -0
- package/dist/index.cjs.css +807 -0
- package/dist/index.cjs.js +1287 -17
- package/dist/index.esm.css +807 -0
- package/dist/index.esm.js +1316 -47
- package/package.json +11 -2
- package/dist/indes.esm.js +0 -3
- package/dist/index.umd.js +0 -843
package/dist/index.cjs.js
CHANGED
|
@@ -15,6 +15,10 @@ var md = require('react-icons/md');
|
|
|
15
15
|
var imagekitioReact = require('imagekitio-react');
|
|
16
16
|
var bs = require('react-icons/bs');
|
|
17
17
|
var hi = require('react-icons/hi');
|
|
18
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
19
|
+
var reactIntersectionObserver = require('react-intersection-observer');
|
|
20
|
+
require('axios');
|
|
21
|
+
var reactHorizontalScrollingMenu = require('react-horizontal-scrolling-menu');
|
|
18
22
|
|
|
19
23
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
20
24
|
|
|
@@ -23,11 +27,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
23
27
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
24
28
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
25
29
|
var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
26
|
-
|
|
27
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
28
|
-
|
|
29
|
-
var css = ".buttonComponent {\n\tborder-radius: 3px;\n\tpadding: 0.3rem 0.5rem;\n\ttransition: all 0.3s ease-out;\n\tbox-shadow: #272727b0 1px 1px 1px, #272727b0 -1px -1px 1px;\n}\n.buttonComponent:hover {\n\tbox-shadow: #272727b0 1px 1px 3px, #272727b0 -1px -1px 3px;\n}\n.buttonComponent:active {\n\topacity: 0.8;\n}\n";
|
|
30
|
-
n(css,{});
|
|
30
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
31
31
|
|
|
32
32
|
var AwesomeButton = function AwesomeButton(props) {
|
|
33
33
|
var _useState = React.useState(null),
|
|
@@ -54,12 +54,15 @@ var AwesomeButton = function AwesomeButton(props) {
|
|
|
54
54
|
style: {
|
|
55
55
|
backgroundColor: color
|
|
56
56
|
}
|
|
57
|
-
}, "
|
|
57
|
+
}, "sdasdasdadsd", children.toUpperCase());
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
var IKurlEndpoint = 'https://ik.imagekit.io/kcrbhhnh0';
|
|
61
|
+
var IKpublicKey = 'public_ro8Tmo5Nlgw12YIFkn9MNUQLvQE=';
|
|
61
62
|
|
|
62
|
-
function
|
|
63
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
64
|
+
|
|
65
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
63
66
|
// import { Contexthandlerscontext } from '../../../../../../../Contexts/Contexthandlerscontext';
|
|
64
67
|
|
|
65
68
|
var Header8 = function Header8(props) {
|
|
@@ -78,6 +81,9 @@ var Header8 = function Header8(props) {
|
|
|
78
81
|
// templateproperties_context,
|
|
79
82
|
// } = useContext(FetchingContext);
|
|
80
83
|
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
84
|
+
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
85
|
+
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
86
|
+
var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
81
87
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
82
88
|
var lang = props.actions.lang;
|
|
83
89
|
var langdetect = props.actions.langdetect;
|
|
@@ -86,8 +92,9 @@ var Header8 = function Header8(props) {
|
|
|
86
92
|
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
87
93
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
88
94
|
var templateproperties_context = props.actions.templateproperties_context;
|
|
89
|
-
var StaticPagesLinksContext = props.actions.StaticPagesLinkxwsContext;
|
|
90
95
|
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
96
|
+
var routingcountext = props.actions.routingcountext;
|
|
97
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
91
98
|
|
|
92
99
|
var _useState = React.useState(''),
|
|
93
100
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -119,7 +126,7 @@ var Header8 = function Header8(props) {
|
|
|
119
126
|
});
|
|
120
127
|
}
|
|
121
128
|
|
|
122
|
-
setsectionproperties(_objectSpread({}, secpropobj));
|
|
129
|
+
setsectionproperties(_objectSpread$3({}, secpropobj));
|
|
123
130
|
}, [StatePagePropertiesContext]);
|
|
124
131
|
var header_cssstyles = {
|
|
125
132
|
headercontainer: glamor.css({
|
|
@@ -453,8 +460,8 @@ var Header8 = function Header8(props) {
|
|
|
453
460
|
routingcountext('home');
|
|
454
461
|
}
|
|
455
462
|
}, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
|
|
456
|
-
urlEndpoint:
|
|
457
|
-
publicKey:
|
|
463
|
+
urlEndpoint: IKurlEndpoint,
|
|
464
|
+
publicKey: IKpublicKey,
|
|
458
465
|
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,
|
|
459
466
|
style: {
|
|
460
467
|
maxWidth: '100%',
|
|
@@ -575,9 +582,7 @@ var Header8 = function Header8(props) {
|
|
|
575
582
|
className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
576
583
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
577
584
|
className: "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
|
|
578
|
-
}, /*#__PURE__*/React__default["default"].createElement(ai.AiOutlineLogin, null), /*#__PURE__*/React__default["default"].createElement("
|
|
579
|
-
className: "ml-2 mr-2"
|
|
580
|
-
}, lang.login)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, {
|
|
585
|
+
}, /*#__PURE__*/React__default["default"].createElement(ai.AiOutlineLogin, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, {
|
|
581
586
|
style: {
|
|
582
587
|
marginBottom: 0,
|
|
583
588
|
marginTop: 0
|
|
@@ -840,11 +845,1276 @@ var Header8 = function Header8(props) {
|
|
|
840
845
|
}))));
|
|
841
846
|
};
|
|
842
847
|
|
|
848
|
+
var generalstyles = {"shadow_bottom":"general-module_shadow_bottom__YcJR3","overflowY_scroll":"general-module_overflowY_scroll__m5upZ","sub_scrollbar":"general-module_sub_scrollbar__mpHTI","badge":"general-module_badge__GTiMs","badge_secondary":"general-module_badge_secondary__p6ErJ","divider":"general-module_divider__WFV-A","verical_divider":"general-module_verical_divider__u5DxE","table":"general-module_table__hdcWN","mw-200":"general-module_mw-200__PaU8G","table_bordered":"general-module_table_bordered__JKIJp","table_borderless":"general-module_table_borderless__OF0cl","table_striped":"general-module_table_striped__wWBA6","table_hover":"general-module_table_hover__EiJha","table_responsive":"general-module_table_responsive__JPCKF","table_translation":"general-module_table_translation__x1Rpf","table_icon":"general-module_table_icon__EMMDI","image_table":"general-module_image_table__HqRaH","shownumber_cont":"general-module_shownumber_cont__34Y5j","card_input_table":"general-module_card_input_table__vVK0p","btn":"general-module_btn__FAb1b","btn_rounded":"general-module_btn_rounded__Rkb8o","focus":"general-module_focus__8-F6p","disabled":"general-module_disabled__PRzt-","btn_tranparent":"general-module_btn_tranparent__GFTRs","btn_circle":"general-module_btn_circle__lOyd4","btn_white":"general-module_btn_white__H0esd","btn_black":"general-module_btn_black__NcqLp","btn_primary":"general-module_btn_primary__C5oTz","btn_secondary":"general-module_btn_secondary__MbOCN","btn_success":"general-module_btn_success__iV5-t","btn_info":"general-module_btn_info__-ClLB","btn_danger":"general-module_btn_danger__b0QkM","btn_dark":"general-module_btn_dark__hSWyC","active":"general-module_active__MPpsF","btn_grey":"general-module_btn_grey__fGIYU","btn_cardheader":"general-module_btn_cardheader__vccWl","border_primary":"general-module_border_primary__Jqm8o","border_secondary":"general-module_border_secondary__xiHt3","border_success":"general-module_border_success__kWv6N","border_info":"general-module_border_info__wfOF-","border_warning":"general-module_border_warning__mSIRm","border_danger":"general-module_border_danger__U7veI","border":"general-module_border__Pvp44","border_top":"general-module_border_top__0-KRU","border_right":"general-module_border_right__7QXHH","border_bottom":"general-module_border_bottom__Xyy95","border_left":"general-module_border_left__90qSD","border_0":"general-module_border_0__YO9qY","border_top_0":"general-module_border_top_0__KFIha","border_right_0":"general-module_border_right_0__FaED6","border_bottom_0":"general-module_border_bottom_0__NZhJm","border_left_0":"general-module_border_left_0__gjITr","app_container":"general-module_app_container__-NNzK","app_main":"general-module_app_main__3s9rd","app_main_inner":"general-module_app_main_inner__OdEv-","app_main_inner_headertwo":"general-module_app_main_inner_headertwo__UkOlN","app_main_inner_headerfour":"general-module_app_main_inner_headerfour__slUk1","card":"general-module_card__KT-JI","card_border_10":"general-module_card_border_10__M-cl-","app_main_outer":"general-module_app_main_outer__gNSLc","app_main_outertranslated":"general-module_app_main_outertranslated__IZRx2","pill":"general-module_pill__gHCcE","fadeIn":"general-module_fadeIn__bUx2u","fadeOut":"general-module_fadeOut__R13Fc","fadeInButton":"general-module_fadeInButton__1daVD","fadeOutButton":"general-module_fadeOutButton__8BRUG","sectiontitlecont":"general-module_sectiontitlecont__F-e6k","homesectiontitlecont":"general-module_homesectiontitlecont__ZfXNm","sectiontitlecont2":"general-module_sectiontitlecont2__mfEaP"};
|
|
849
|
+
|
|
850
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
851
|
+
|
|
852
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
853
|
+
// import { Contexthandlerscontext } from '../../../../../../../../Contexts/Contexthandlerscontext';
|
|
854
|
+
|
|
855
|
+
var CardsSection = function CardsSection(props) {
|
|
856
|
+
var _useInView = reactIntersectionObserver.useInView(),
|
|
857
|
+
ref = _useInView.ref,
|
|
858
|
+
inView = _useInView.inView; // const { lang, langdetect } = useContext(LanguageContext);
|
|
859
|
+
// const { TabexSectionsComponentsContext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
860
|
+
// const { FetchQueriesEngineContext, setFetchQueriesEngineContext, SearchHeaderMutationContext, favoriteprojectscountContext, fetchcustomercartQueryContext } = useContext(FetchingContext);
|
|
861
|
+
// const { templatepropcontext } = useContext(Contexthandlerscontext);
|
|
862
|
+
// const { ProductFilterObjContext, setProductFilterObjContext } = useContext(ProductsCardsSectionContext);
|
|
863
|
+
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
867
|
+
props.actions.lang;
|
|
868
|
+
var langdetect = props.actions.langdetect;
|
|
869
|
+
props.actions.setlang;
|
|
870
|
+
props.actions.templatepropcontext;
|
|
871
|
+
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
872
|
+
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
873
|
+
var routingcountext = props.actions.routingcountext;
|
|
874
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
875
|
+
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
876
|
+
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
877
|
+
var TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
|
|
878
|
+
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
879
|
+
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
880
|
+
var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
|
|
881
|
+
props.actions.serverbaselink;
|
|
882
|
+
props.actions.instapikey;
|
|
883
|
+
props.actions.fetchcollections_API;
|
|
884
|
+
var fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
885
|
+
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
886
|
+
var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
887
|
+
props.actions.ParentCollectionsForCollectionQueryArr;
|
|
888
|
+
var setfetchingtype = props.actions.setfetchingtype;
|
|
889
|
+
var fetchingtype = props.actions.fetchingtype;
|
|
890
|
+
|
|
891
|
+
var _useState = React.useState(''),
|
|
892
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
893
|
+
sectionproperties = _useState2[0],
|
|
894
|
+
setsectionproperties = _useState2[1];
|
|
895
|
+
|
|
896
|
+
var _useState3 = React.useState([]),
|
|
897
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
898
|
+
_useState4[0];
|
|
899
|
+
_useState4[1];
|
|
900
|
+
|
|
901
|
+
var _useState5 = React.useState([]),
|
|
902
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
903
|
+
cardsarray = _useState6[0],
|
|
904
|
+
setcardsarray = _useState6[1];
|
|
905
|
+
|
|
906
|
+
var _useState7 = React.useState(''),
|
|
907
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
908
|
+
searchinput = _useState8[0];
|
|
909
|
+
_useState8[1]; // const [ParentCollectionsForCollectionQueryArr, setParentCollectionsForCollectionQueryArr] = useState('');
|
|
910
|
+
// const fetchcollectionsQueryContext = useQuery(
|
|
911
|
+
// ['fetchcollections_API' + JSON.stringify(ParentCollectionsForCollectionQueryArr)],
|
|
912
|
+
// () => fetchcollections_API({ parentcollectionid: ParentCollectionsForCollectionQueryArr }),
|
|
913
|
+
// {
|
|
914
|
+
// keepPreviousData: true,
|
|
915
|
+
// staleTime: Infinity,
|
|
916
|
+
// enabled: instapikey().length != 0 && ParentCollectionsForCollectionQueryArr.length != 0 ? true : false,
|
|
917
|
+
// },
|
|
918
|
+
// );
|
|
919
|
+
// const FetchProductsAxios = (axiosdatatemp) => {
|
|
920
|
+
// var tempProductFilterObjContext = { ...ProductFilterObjContext };
|
|
921
|
+
// tempProductFilterObjContext.page = axiosdatatemp;
|
|
922
|
+
// if (templatepropcontext.instid == 'tabex') {
|
|
923
|
+
// tempProductFilterObjContext.instapikey = 'tabex';
|
|
924
|
+
// } else {
|
|
925
|
+
// tempProductFilterObjContext.instapikey = instapikey();
|
|
926
|
+
// }
|
|
927
|
+
// var serverbaselinktemp = window.location.hostname;
|
|
928
|
+
// if (serverbaselinktemp == 'localhost') {
|
|
929
|
+
// serverbaselinktemp = 'https://tabex-co.com';
|
|
930
|
+
// } else {
|
|
931
|
+
// serverbaselinktemp = 'https://' + serverbaselinktemp;
|
|
932
|
+
// }
|
|
933
|
+
// const axiosfetch = axios({
|
|
934
|
+
// method: 'post',
|
|
935
|
+
// url: serverbaselinktemp + '/customer/webapp/fetchproducts',
|
|
936
|
+
// headers: {
|
|
937
|
+
// Accept: 'application/json',
|
|
938
|
+
// 'Content-Type': 'application/json',
|
|
939
|
+
// },
|
|
940
|
+
// data: tempProductFilterObjContext,
|
|
941
|
+
// });
|
|
942
|
+
// return axiosfetch;
|
|
943
|
+
// };
|
|
944
|
+
// const fetchProductsQuery = useInfiniteQuery(['fetchproducts_API' + JSON.stringify(ProductFilterObjContext)], ({ pageParam = 0 }) => FetchProductsAxios(pageParam), {
|
|
945
|
+
// keepPreviousData: true,
|
|
946
|
+
// staleTime: Infinity,
|
|
947
|
+
// enabled:
|
|
948
|
+
// instapikey().length != 0 && fetchingtype == 'products' && ProductFilterObjContext.ProductFetchingType != undefined && ProductFilterObjContext.ProductFetchingType.length != 0
|
|
949
|
+
// ? true
|
|
950
|
+
// : false,
|
|
951
|
+
// initialPageParam: 0,
|
|
952
|
+
// getNextPageParam: (lastPage, allPages) => {
|
|
953
|
+
// var currentpagefrombackend = lastPage.data.page;
|
|
954
|
+
// if (currentpagefrombackend == 'full') {
|
|
955
|
+
// return undefined;
|
|
956
|
+
// } else {
|
|
957
|
+
// var nextpage = parseInt(currentpagefrombackend) + 1;
|
|
958
|
+
// return nextpage;
|
|
959
|
+
// }
|
|
960
|
+
// },
|
|
961
|
+
// getPreviousPageParam: (firstPage, allPages) => firstPage.data.page - 1,
|
|
962
|
+
// });
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
React__default["default"].useEffect(function () {
|
|
966
|
+
if (inView) {
|
|
967
|
+
fetchProductsQuery.fetchNextPage();
|
|
968
|
+
}
|
|
969
|
+
}, [inView]);
|
|
970
|
+
|
|
971
|
+
var _useState9 = React.useState({
|
|
972
|
+
productfetchingtype: 'Random',
|
|
973
|
+
collectionid: ''
|
|
974
|
+
}),
|
|
975
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
976
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
977
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
978
|
+
|
|
979
|
+
React.useEffect(function () {
|
|
980
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
981
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
982
|
+
var secpropobj = {};
|
|
983
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
984
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
985
|
+
});
|
|
986
|
+
setsectionproperties(_objectSpread$2({}, secpropobj));
|
|
987
|
+
|
|
988
|
+
if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
989
|
+
setfetchingtype('products');
|
|
990
|
+
setProductsFetchingTypeSectionObj({
|
|
991
|
+
productfetchingtype: 'Random',
|
|
992
|
+
collectionid: props.collectionidprops
|
|
993
|
+
});
|
|
994
|
+
} else {
|
|
995
|
+
setfetchingtype(sectionitem.fetchingtype);
|
|
996
|
+
setProductsFetchingTypeSectionObj({
|
|
997
|
+
productfetchingtype: sectionitem.productsfetchingtype,
|
|
998
|
+
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
}, [StatePagePropertiesContext]);
|
|
1004
|
+
React.useEffect(function () {
|
|
1005
|
+
SearchHeaderMutationContext.reset();
|
|
1006
|
+
var delayDebounceFn = setTimeout(function () {
|
|
1007
|
+
if (searchinput.length != 0) {
|
|
1008
|
+
SearchHeaderMutationContext.mutate({
|
|
1009
|
+
SearchHeaderValue: searchinput
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
}, 1000);
|
|
1013
|
+
return function () {
|
|
1014
|
+
return clearTimeout(delayDebounceFn);
|
|
1015
|
+
};
|
|
1016
|
+
}, [searchinput]);
|
|
1017
|
+
React.useEffect(function () {
|
|
1018
|
+
if (sectionproperties.length != 0) {
|
|
1019
|
+
if (cardsarray.length == 0) {
|
|
1020
|
+
if (fetchingtype == 'collections') {
|
|
1021
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
1022
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
1023
|
+
}
|
|
1024
|
+
} else if (fetchingtype == 'products') {
|
|
1025
|
+
if (fetchProductsQuery.isSuccess) {
|
|
1026
|
+
var allpagesarr = [];
|
|
1027
|
+
fetchProductsQuery.data.pages.forEach(function (page) {
|
|
1028
|
+
page.data.products.forEach(function (productobj) {
|
|
1029
|
+
allpagesarr.push(productobj);
|
|
1030
|
+
});
|
|
1031
|
+
});
|
|
1032
|
+
cardobjassigner(allpagesarr);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}, [sectionproperties]);
|
|
1038
|
+
React.useEffect(function () {
|
|
1039
|
+
if (fetchingtype.length != 0) {
|
|
1040
|
+
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
1041
|
+
|
|
1042
|
+
if (fetchingtype == 'collections') {
|
|
1043
|
+
// tempFetchQueriesEngineContext.collections = true;
|
|
1044
|
+
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
1045
|
+
setParentCollectionsForCollectionQueryArr('all');
|
|
1046
|
+
} else {
|
|
1047
|
+
setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
if (fetchingtype == 'products') {
|
|
1052
|
+
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
1053
|
+
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
1054
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
1055
|
+
setProductFilterObjContext(_objectSpread$2({}, tempfetchproductsfilerobjcontext));
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
setFetchQueriesEngineContext(_objectSpread$2({}, tempFetchQueriesEngineContext));
|
|
1059
|
+
}
|
|
1060
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
1061
|
+
React.useEffect(function () {
|
|
1062
|
+
if (fetchingtype == 'products') {
|
|
1063
|
+
if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
1064
|
+
var allpagesarr = [];
|
|
1065
|
+
fetchProductsQuery.data.pages.forEach(function (page) {
|
|
1066
|
+
page.data.products.forEach(function (productobj) {
|
|
1067
|
+
allpagesarr.push(productobj);
|
|
1068
|
+
});
|
|
1069
|
+
});
|
|
1070
|
+
cardobjassigner(allpagesarr);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}, [fetchProductsQuery.isSuccess, fetchProductsQuery.dataUpdatedAt, fetchProductsQuery.data, fetchcustomercartQueryContext.dataUpdatedAt]);
|
|
1074
|
+
React.useEffect(function () {
|
|
1075
|
+
if (fetchingtype == 'collections') {
|
|
1076
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
1077
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}, [fetchcollectionsQueryContext.isSuccess]);
|
|
1081
|
+
React.useEffect(function () {
|
|
1082
|
+
favassigner();
|
|
1083
|
+
}, [favoriteprojectscountContext]);
|
|
1084
|
+
|
|
1085
|
+
var favassigner = function favassigner() {
|
|
1086
|
+
if (fetchingtype == 'products') {
|
|
1087
|
+
if (cardsarray.length != 0) {
|
|
1088
|
+
if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
|
|
1089
|
+
var tempcardsarray = _toConsumableArray__default["default"](cardsarray);
|
|
1090
|
+
|
|
1091
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
1092
|
+
arrayItem.IsFavExists = false;
|
|
1093
|
+
});
|
|
1094
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
1095
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
1096
|
+
if (arrayItem.productid == favitem) {
|
|
1097
|
+
arrayItem.IsFavExists = true;
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
});
|
|
1101
|
+
setcardsarray(_toConsumableArray__default["default"](tempcardsarray));
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
var cardobjassigner = function cardobjassigner(fetchedarray) {
|
|
1108
|
+
var temparray = [];
|
|
1109
|
+
fetchedarray.forEach(function (arrayItem, arrayindex) {
|
|
1110
|
+
var cardobj = {
|
|
1111
|
+
name: '',
|
|
1112
|
+
image: ''
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
if (fetchingtype == 'products') {
|
|
1116
|
+
var itemquantity = 0;
|
|
1117
|
+
|
|
1118
|
+
if (langdetect == 'en') {
|
|
1119
|
+
cardobj.name = arrayItem.productinfo.name_en;
|
|
1120
|
+
} else {
|
|
1121
|
+
cardobj.name = arrayItem.productinfo.name_ar;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (langdetect == 'en') {
|
|
1125
|
+
cardobj.description = arrayItem.productinfo.description_en;
|
|
1126
|
+
} else {
|
|
1127
|
+
cardobj.description = arrayItem.productinfo.description_ar;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
if (arrayItem.productinfo.hasvariants == 0) {
|
|
1131
|
+
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
1132
|
+
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
1133
|
+
itemquantity = cartitem.quantity;
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
1139
|
+
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
1140
|
+
cardobj.productid = arrayItem.productinfo.productid;
|
|
1141
|
+
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
1142
|
+
cardobj.description_en = arrayItem.productinfo.description_en;
|
|
1143
|
+
cardobj.description_ar = arrayItem.productinfo.description_ar;
|
|
1144
|
+
cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
1145
|
+
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
1146
|
+
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
1147
|
+
cardobj.quantity = itemquantity;
|
|
1148
|
+
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
1149
|
+
|
|
1150
|
+
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
1151
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
1152
|
+
if (arrayItem.productinfo.productid == favitem) {
|
|
1153
|
+
cardobj.IsFavExists = true;
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
} else if (fetchingtype == 'collections') {
|
|
1158
|
+
cardobj.collectionid = arrayItem.collectionid;
|
|
1159
|
+
|
|
1160
|
+
if (langdetect == 'en') {
|
|
1161
|
+
cardobj.name = arrayItem.title_en;
|
|
1162
|
+
cardobj.description = arrayItem.description_en;
|
|
1163
|
+
} else if (langdetect == 'ar') {
|
|
1164
|
+
cardobj.name = arrayItem.title_ar;
|
|
1165
|
+
cardobj.description = arrayItem.description_ar;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
cardobj.image = arrayItem.collectionlogo;
|
|
1169
|
+
} else ;
|
|
1170
|
+
|
|
1171
|
+
temparray.push(cardobj);
|
|
1172
|
+
});
|
|
1173
|
+
setcardsarray([].concat(temparray));
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
var section_cssstyles = {
|
|
1177
|
+
sectiontitlespan: glamor.css({
|
|
1178
|
+
':after': {
|
|
1179
|
+
height: '5px',
|
|
1180
|
+
width: sectionproperties.sectitle_lineafterwidth + '%',
|
|
1181
|
+
backgroundColor: sectionproperties.linebgcolor
|
|
1182
|
+
}
|
|
1183
|
+
}),
|
|
1184
|
+
line_left: glamor.css({
|
|
1185
|
+
height: '1px',
|
|
1186
|
+
position: 'relative',
|
|
1187
|
+
flex: '1 1 auto',
|
|
1188
|
+
minWidth: '10%',
|
|
1189
|
+
background: sectionproperties.linebgcolor
|
|
1190
|
+
}),
|
|
1191
|
+
line_right: glamor.css({
|
|
1192
|
+
height: '1px',
|
|
1193
|
+
position: 'relative',
|
|
1194
|
+
flex: '1 1 auto',
|
|
1195
|
+
minWidth: '10%',
|
|
1196
|
+
background: sectionproperties.linebgcolor
|
|
1197
|
+
}),
|
|
1198
|
+
cards_sections: glamor.css({
|
|
1199
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
1200
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
1201
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
1202
|
+
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
1203
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
1204
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
1205
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
1206
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
1207
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
1208
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
1209
|
+
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
1210
|
+
borderColor: sectionproperties.sectioncardbordercolor,
|
|
1211
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid'
|
|
1212
|
+
}),
|
|
1213
|
+
filterbtn: glamor.css({
|
|
1214
|
+
width: sectionproperties.filterbtn_Width + 'px',
|
|
1215
|
+
height: sectionproperties.filterbtn_Height + 'px',
|
|
1216
|
+
background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
|
|
1217
|
+
borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
|
|
1218
|
+
borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
|
|
1219
|
+
borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
|
|
1220
|
+
borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
|
|
1221
|
+
color: sectionproperties.filterbtn_Textcolor,
|
|
1222
|
+
boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
|
|
1223
|
+
marginTop: sectionproperties.filterbtn_marginTop + 'px',
|
|
1224
|
+
marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
|
|
1225
|
+
marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
|
|
1226
|
+
marginRight: sectionproperties.filterbtn_marginRight + 'px',
|
|
1227
|
+
transition: '.3s',
|
|
1228
|
+
':hover': {
|
|
1229
|
+
background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
|
|
1230
|
+
color: sectionproperties.filterbtn_Textcoloronhover
|
|
1231
|
+
}
|
|
1232
|
+
}),
|
|
1233
|
+
viewmorebtn: glamor.css({
|
|
1234
|
+
width: sectionproperties.viewmorebtn_Width + 'px',
|
|
1235
|
+
height: sectionproperties.viewmorebtn_Height + 'px',
|
|
1236
|
+
background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
|
|
1237
|
+
borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
|
|
1238
|
+
color: sectionproperties.viewmorebtn_Textcolor,
|
|
1239
|
+
fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
|
|
1240
|
+
fontWeight: sectionproperties.viewmorebtn_fontWeight,
|
|
1241
|
+
textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
|
|
1242
|
+
transition: '.3s',
|
|
1243
|
+
':hover': {
|
|
1244
|
+
background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
|
|
1245
|
+
color: sectionproperties.viewmorebtn_Textcoloronhover
|
|
1246
|
+
}
|
|
1247
|
+
}),
|
|
1248
|
+
loadbtn: glamor.css({
|
|
1249
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
1250
|
+
color: sectionproperties.generaltext_fontColor,
|
|
1251
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
1252
|
+
textDecoration: 'underline',
|
|
1253
|
+
transition: '.3s',
|
|
1254
|
+
':hover': {
|
|
1255
|
+
color: sectionproperties.text_secondarycolor
|
|
1256
|
+
}
|
|
1257
|
+
})
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
var cardsrender = function cardsrender() {
|
|
1261
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1262
|
+
style: {
|
|
1263
|
+
background: sectionproperties.backgroundColor
|
|
1264
|
+
},
|
|
1265
|
+
className: sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical' ? 'col-lg-9 p-sm-0' : 'row m-0 w-100'
|
|
1266
|
+
}, !fetchProductsQuery.isFetching && cardsarray.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1267
|
+
className: "row m-0 w-100 d-flex align-items-center",
|
|
1268
|
+
style: {
|
|
1269
|
+
height: '50vh'
|
|
1270
|
+
}
|
|
1271
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1272
|
+
className: "col-lg-12 text-light d-flex align-items-center justify-content-center flex-column"
|
|
1273
|
+
}, /*#__PURE__*/React__default["default"].createElement(md.MdOutlineLayersClear, {
|
|
1274
|
+
style: {
|
|
1275
|
+
fontSize: sectionproperties.noprod_iconfontSize + 'px',
|
|
1276
|
+
color: sectionproperties.noprod_iconcolor
|
|
1277
|
+
}
|
|
1278
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1279
|
+
style: {
|
|
1280
|
+
fontSize: sectionproperties.noprod_fontSize + 'px',
|
|
1281
|
+
fontWeight: sectionproperties.noprod_fontWeight,
|
|
1282
|
+
textTransform: sectionproperties.noprod_textTransform,
|
|
1283
|
+
color: sectionproperties.noprod_color
|
|
1284
|
+
}
|
|
1285
|
+
}, langdetect == 'en' ? 'No Products Found' : 'لا توجد منتجات'))), cardsarray.length != 0 && sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1286
|
+
className: "row m-0 w-100 d-flex align-items-center p-sm-0"
|
|
1287
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1288
|
+
className: "row ml-0 mr-0 w-100 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2",
|
|
1289
|
+
style: {
|
|
1290
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
1291
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
1292
|
+
paddingLeft: sectionproperties.sectionTitleMarginLeft + 'px',
|
|
1293
|
+
paddingRight: sectionproperties.sectionTitleMarginRight + 'px'
|
|
1294
|
+
}
|
|
1295
|
+
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1296
|
+
className: sectionproperties.viewmorebtnshow == 'Show' ? sectionproperties.sectiontitleposition == 'Centered' ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 ' : ' col-lg-7 col-md-7 col-sm-7 d-flex align-items-center p-0 ' : sectionproperties.showFilter == 'show' ? ' col-lg-12 col-md-7 col-sm-7 d-flex align-items-center p-0 ' : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
|
|
1297
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1298
|
+
// mb-auto
|
|
1299
|
+
className: "".concat(generalstyles.sectiontitlecont) + ' col-lg-12 p-0 d-flex align-items-center ',
|
|
1300
|
+
style: {
|
|
1301
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start'
|
|
1302
|
+
}
|
|
1303
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1304
|
+
className: "d-flex align-items-center flex-row",
|
|
1305
|
+
style: {
|
|
1306
|
+
position: 'relative',
|
|
1307
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
1308
|
+
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : ''
|
|
1309
|
+
}
|
|
1310
|
+
}, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1311
|
+
className: section_cssstyles.line_left
|
|
1312
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1313
|
+
className: sectionproperties.sectiontitlefontfamily == 'Pacifico' ? "".concat(section_cssstyles.sectiontitlespan) + ' PacificoFont mb-auto mb-0 pb-0 font-sm-18 font-md-20 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Playfair' ? "".concat(section_cssstyles.sectiontitlespan) + ' PlayfairFont mb-auto mb-0 pb-0 font-sm-18 font-md-20 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Great Vibes' ? "".concat(section_cssstyles.sectiontitlespan) + ' GreatvibesFont mb-auto mb-0 pb-0 font-sm-18 font-md-20 wordbreak d-flex align-items-center justify-content-start ' : "".concat(section_cssstyles.sectiontitlespan) + ' mb-auto mb-0 pb-0 font-sm-18 font-md-20 wordbreak d-flex align-items-center justify-content-start ',
|
|
1314
|
+
style: {
|
|
1315
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
1316
|
+
color: sectionproperties.sectionTitleColor,
|
|
1317
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
1318
|
+
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
1319
|
+
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
1320
|
+
textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
1321
|
+
}
|
|
1322
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1323
|
+
className: section_cssstyles.line_right
|
|
1324
|
+
})))), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1325
|
+
className: ' col-lg-12 d-flex align-items-center ',
|
|
1326
|
+
style: {
|
|
1327
|
+
justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
|
|
1328
|
+
marginBottom: sectionproperties.descriptionMarginBottom + 'px',
|
|
1329
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
|
|
1330
|
+
paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px'
|
|
1331
|
+
}
|
|
1332
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1333
|
+
className: "m-0 p-0 wordbreak ",
|
|
1334
|
+
style: {
|
|
1335
|
+
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
1336
|
+
color: sectionproperties.prodCatColor,
|
|
1337
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
1338
|
+
textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
1339
|
+
}
|
|
1340
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1341
|
+
className: sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0' : 'col-lg-5 col-md-5 col-sm-5 d-flex align-item-center justify-content-end justify-content-sm-center p-0',
|
|
1342
|
+
style: {
|
|
1343
|
+
marginTop: sectionproperties.sectiontitleposition == 'Centered' ? '10px' : 0
|
|
1344
|
+
}
|
|
1345
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1346
|
+
className: sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center ' : ' row m-0 w-100 d-flex align-item-center justify-content-end '
|
|
1347
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1348
|
+
className: sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ',
|
|
1349
|
+
onClick: function onClick() {
|
|
1350
|
+
if (fetchingtype == 'products') {
|
|
1351
|
+
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
1352
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, ProductsFetchingTypeSectionObj.collectionid);
|
|
1353
|
+
} else {
|
|
1354
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
1355
|
+
}
|
|
1356
|
+
} else {
|
|
1357
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1361
|
+
className: sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
|
|
1362
|
+
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1363
|
+
className: sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
|
|
1364
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1365
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
1366
|
+
}, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(bs.BsFillArrowRightCircleFill, null) : /*#__PURE__*/React__default["default"].createElement(bs.BsFillArrowLeftCircleFill, null)))), sectionproperties.showFilter == 'show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1367
|
+
className: sectionproperties.searchbar_show == 'Show' ? ' col-lg-3 col-md-3 pl-0 pr-0 d-none d-md-flex justify-content-end ml-1 ' : ' col-lg-12 col-sm-12 pl-0 pr-0 d-none d-md-flex justify-content-end ml-1 ',
|
|
1368
|
+
onClick: function onClick() {
|
|
1369
|
+
var element = document.getElementById('filterslider');
|
|
1370
|
+
element.classList.add(filterstyles.filterslider_container_opened);
|
|
1371
|
+
}
|
|
1372
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1373
|
+
className: "".concat(section_cssstyles.filterbtn) + ' btn-circle-resp '
|
|
1374
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1375
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
1376
|
+
}, /*#__PURE__*/React__default["default"].createElement(fi.FiFilter, null)))))), sectionproperties.showseparator == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1377
|
+
className: "col-lg-12 p-0"
|
|
1378
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
1379
|
+
className: "mt-3 mb-2",
|
|
1380
|
+
style: {
|
|
1381
|
+
borderColor: sectionproperties.upperseparatorbgcolor
|
|
1382
|
+
}
|
|
1383
|
+
}))), StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map(function (item, index) {
|
|
1384
|
+
if (item.tabexsectioninfo != null) {
|
|
1385
|
+
if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
|
|
1386
|
+
var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
|
|
1387
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1388
|
+
className: sectionproperties.paddingLeft != 0 && sectionproperties.paddingRight != 0 ? section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 ' : sectionproperties.paddingRight != 0 ? section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 pr-md-2 ' : sectionproperties.paddingLeft != 0 ? section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 pl-md-2 ' : section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 '
|
|
1389
|
+
}, sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1390
|
+
className: langdetect == 'en' ? 'col-lg-12 p-0 pl-sm-2' : 'col-lg-12 p-0 pr-sm-2'
|
|
1391
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
|
|
1392
|
+
transitionBehavior: 'auto',
|
|
1393
|
+
wrapperClassName: '',
|
|
1394
|
+
itemClassName: item.tabexsectioninfo.sectioncompname == 'Productcard6' ? 'scrollmenuclassnameitemProductcard6' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? 'scrollmenuclassnameitemProductcard_with_circularhover' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? 'scrollmenuclassnameitemProductcard_with_circularbg' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation' ? 'scrollmenuclassnameitemProductcard_with_slideanimation' : item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext' ? 'scrollmenuclassnameitemCategorycard_withtext' : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons' ? 'scrollmenuclassnameitemProductcard_animatedbuttons' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants' ? 'scrollmenuclassnameitemProductcard_with_variants' : item.tabexsectioninfo.sectioncompname == 'Productcarddefault' ? 'scrollmenuclassnameitemProductcarddefault' : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard' ? 'scrollmenuclassnameitemSimpleproductcard' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg' ? 'scrollmenuclassnameitemCategorycard_with_trianglebg' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover' ? 'scrollmenuclassnameitemProductcard_with_textonhover' : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled' ? 'scrollmenuclassnameitemCategorycard_slidebgscaled' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? 'scrollmenuclassnameitemProductccard_with_imageontopleft' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover' ? 'scrollmenuclassnameitemProductcard_with_zoominonhover' : item.tabexsectioninfo.sectioncompname == 'Horizontalcard' ? 'scrollmenuclassnameitemProductcard_Horizontalcard' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? 'scrollmenuclassnameitemCategorycard_fullimage' : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard' ? 'scrollmenuclassnameitemClassiccategorycard' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? 'scrollmenuclassnameitemModernProductCard' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow' : item.tabexsectioninfo.sectioncompname == 'Productcard7' ? 'scrollmenuclassnameitemProductcard7' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? 'scrollmenuclassnameitemMenuCard' : 'scrollmenuclassnameitem',
|
|
1395
|
+
scrollContainerClassName: 'scrollmenuclasssubscrollbar'
|
|
1396
|
+
}, cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
1397
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1398
|
+
className: ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100' // style={{
|
|
1399
|
+
// minWidth:
|
|
1400
|
+
// item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons' ||
|
|
1401
|
+
// item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
|
|
1402
|
+
// ? sectionproperties.width + 'px'
|
|
1403
|
+
// : '',
|
|
1404
|
+
// maxWidth:
|
|
1405
|
+
// item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons' ||
|
|
1406
|
+
// item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
|
|
1407
|
+
// ? sectionproperties.width + 'px'
|
|
1408
|
+
// : '',
|
|
1409
|
+
// }}
|
|
1410
|
+
|
|
1411
|
+
}, /*#__PURE__*/React__default["default"].createElement(Sectioncomp, _extends__default["default"]({
|
|
1412
|
+
sectiontypeprops: 'horizontal',
|
|
1413
|
+
fetchingtypeprops: fetchingtype,
|
|
1414
|
+
cardinfoindexprops: cardinfoindex,
|
|
1415
|
+
cardinfoitemprops: cardinfoitem,
|
|
1416
|
+
sectionindexprops: index,
|
|
1417
|
+
sectionidprops: item.sectionid
|
|
1418
|
+
}, props)));
|
|
1419
|
+
}), fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1420
|
+
className: section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center ',
|
|
1421
|
+
ref: ref,
|
|
1422
|
+
onClick: function onClick() {
|
|
1423
|
+
return fetchProductsQuery.fetchNextPage();
|
|
1424
|
+
},
|
|
1425
|
+
disabled: !fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage
|
|
1426
|
+
}, /*#__PURE__*/React__default["default"].createElement(CircularProgress, {
|
|
1427
|
+
color: "#000",
|
|
1428
|
+
width: "20px",
|
|
1429
|
+
height: "20px",
|
|
1430
|
+
duration: "1s"
|
|
1431
|
+
})))), sectionproperties.view_as_slider_vertical != 'Slider (Horizontal)' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1432
|
+
className: "row m-0 w-100 "
|
|
1433
|
+
}, cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
1434
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1435
|
+
className: sectionproperties.numberOfColsvertical == '1' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '2' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft ' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0' : sectionproperties.numberOfColsvertical == '3' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '4' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '12' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : '' : sectionproperties.numberOfColsvertical == '6' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : ''
|
|
1436
|
+
}, /*#__PURE__*/React__default["default"].createElement(Sectioncomp, _extends__default["default"]({
|
|
1437
|
+
sectiontypeprops: 'horizontal',
|
|
1438
|
+
fetchingtypeprops: fetchingtype,
|
|
1439
|
+
cardinfoindexprops: cardinfoindex,
|
|
1440
|
+
cardinfoitemprops: cardinfoitem,
|
|
1441
|
+
sectionindexprops: index,
|
|
1442
|
+
sectionidprops: item.sectionid
|
|
1443
|
+
}, props)));
|
|
1444
|
+
}), fetchingtype == 'products' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1445
|
+
className: "w-100 col-lg-12 allcentered"
|
|
1446
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1447
|
+
className: section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center ' // ref={ref}
|
|
1448
|
+
,
|
|
1449
|
+
onClick: function onClick() {
|
|
1450
|
+
return fetchProductsQuery.fetchNextPage();
|
|
1451
|
+
},
|
|
1452
|
+
disabled: !fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage
|
|
1453
|
+
}, fetchProductsQuery.isFetchingNextPage ? /*#__PURE__*/React__default["default"].createElement(CircularProgress, {
|
|
1454
|
+
color: "#000",
|
|
1455
|
+
width: "20px",
|
|
1456
|
+
height: "20px",
|
|
1457
|
+
duration: "1s"
|
|
1458
|
+
}) : fetchProductsQuery.hasNextPage ? 'Load more' : /*#__PURE__*/React__default["default"].createElement(CircularProgress, {
|
|
1459
|
+
color: "#000",
|
|
1460
|
+
width: "20px",
|
|
1461
|
+
height: "20px",
|
|
1462
|
+
duration: "1s"
|
|
1463
|
+
})))));
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
})));
|
|
1467
|
+
};
|
|
1468
|
+
|
|
1469
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1470
|
+
className: sectionproperties.card_marginLeft != 0 && sectionproperties.card_marginRight != 0 ? // mb-md-4
|
|
1471
|
+
' row m-0 d-flex w-100 justify-content-center align-items-center pl-md-2 pr-md-2 ' : sectionproperties.card_marginRight != 0 ? ' row m-0 d-flex w-100 justify-content-center align-items-center pr-md-2 ' : sectionproperties.card_marginLeft != 0 ? ' row m-0 d-flex w-100 justify-content-center align-items-center pl-md-2 ' : ' row m-0 d-flex w-100 justify-content-center align-items-center ',
|
|
1472
|
+
style: {
|
|
1473
|
+
zIndex: 2,
|
|
1474
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
1475
|
+
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
1476
|
+
}
|
|
1477
|
+
}, sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1478
|
+
className: ' row ml-0 mr-0 d-flex align-items-center justify-content-center w-md-100 h-md-100 w-100 '
|
|
1479
|
+
}, sectionproperties.showFilter == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1480
|
+
className: sectionproperties.filterdirection == 'Horizontal' ? ' col-lg-12 ' : 'col-lg-3'
|
|
1481
|
+
}, /*#__PURE__*/React__default["default"].createElement(Filter, {
|
|
1482
|
+
sectionpropertiesprops: sectionproperties
|
|
1483
|
+
})), fetchingtype == 'custom' && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, cardsrender()), fetchingtype != 'custom' && cardsrender()));
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
var cardsstyles = {"productcard":"Productccard_with_zoominonhover-module_productcard__8ASdR","card_thumbnail":"Productccard_with_zoominonhover-module_card_thumbnail__xCWyB","wishlistbtn":"Productccard_with_zoominonhover-module_wishlistbtn__-9K6V","card_inner":"Productccard_with_zoominonhover-module_card_inner__-pVNl","product_details":"Productccard_with_zoominonhover-module_product_details__3SLId","card_informationcontainer":"Productccard_with_zoominonhover-module_card_informationcontainer__suyHK","price":"Productccard_with_zoominonhover-module_price__12djA"};
|
|
1487
|
+
|
|
1488
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1489
|
+
|
|
1490
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1491
|
+
|
|
1492
|
+
var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(props) {
|
|
1493
|
+
var _css;
|
|
1494
|
+
|
|
1495
|
+
// const { lang, langdetect } = useContext(LanguageContext);
|
|
1496
|
+
// const { fetch_inst_tabex_websitetemplatesQueryContext, sectionindexcontext, pageindexcontext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
1497
|
+
// const { addtofavoritescontext, setShowProductInfoModalContext, ProductIdProdutInfoModalContext, setProductIdProdutInfoModalContext, AddtoCartContext, AddtoCartMutationContext } =
|
|
1498
|
+
// useContext(FetchingContext);
|
|
1499
|
+
var _useState = React.useState(''),
|
|
1500
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
1501
|
+
sectionproperties = _useState2[0],
|
|
1502
|
+
setsectionproperties = _useState2[1];
|
|
1503
|
+
|
|
1504
|
+
var _useState3 = React.useState(props.cardinfoitemprops),
|
|
1505
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
1506
|
+
item = _useState4[0],
|
|
1507
|
+
setitem = _useState4[1];
|
|
1508
|
+
|
|
1509
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
1510
|
+
var lang = props.actions.lang;
|
|
1511
|
+
var langdetect = props.actions.langdetect;
|
|
1512
|
+
var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
|
|
1513
|
+
var addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
1514
|
+
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
1515
|
+
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
1516
|
+
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
1517
|
+
var NotificationManager = NotificationManager;
|
|
1518
|
+
React.useEffect(function () {
|
|
1519
|
+
if (props.srcfrom == 'addsectionform') {
|
|
1520
|
+
var secpropobj = {};
|
|
1521
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
1522
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
1523
|
+
});
|
|
1524
|
+
setsectionproperties(_objectSpread$1({}, secpropobj));
|
|
1525
|
+
} else {
|
|
1526
|
+
var secpropobj = {};
|
|
1527
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
1528
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
1529
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
1530
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
setsectionproperties(_objectSpread$1({}, secpropobj));
|
|
1535
|
+
}
|
|
1536
|
+
}, [StatePagePropertiesContext]);
|
|
1537
|
+
React.useEffect(function () {
|
|
1538
|
+
if (props.cardinfoitemprops != undefined) {
|
|
1539
|
+
setitem(props.cardinfoitemprops);
|
|
1540
|
+
}
|
|
1541
|
+
}, [props.cardinfoitemprops]);
|
|
1542
|
+
|
|
1543
|
+
var updatequantity = function updatequantity(type) {
|
|
1544
|
+
var tempitem = _objectSpread$1({}, item);
|
|
1545
|
+
|
|
1546
|
+
tempitem.quantity = parseInt(tempitem.quantity);
|
|
1547
|
+
|
|
1548
|
+
if (type == 'add') {
|
|
1549
|
+
tempitem.quantity = tempitem.quantity + 1;
|
|
1550
|
+
} else if (type == 'remove') {
|
|
1551
|
+
tempitem.quantity = tempitem.quantity - 1;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
if (tempitem.quantity <= 0) {
|
|
1555
|
+
tempitem.quantity = 0;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
setitem(_objectSpread$1({}, tempitem));
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1561
|
+
var addtocartfunc = function addtocartfunc() {
|
|
1562
|
+
var addtocardpayloadobj = {
|
|
1563
|
+
functype: 'add',
|
|
1564
|
+
productid: item.productid,
|
|
1565
|
+
variantid: '',
|
|
1566
|
+
quantity: item.quantity
|
|
1567
|
+
};
|
|
1568
|
+
var runfunc = false;
|
|
1569
|
+
|
|
1570
|
+
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
1571
|
+
if (item.hasvariants == 1) {
|
|
1572
|
+
if (addtocardpayloadobj.variantid.length != 0) {
|
|
1573
|
+
runfunc = true;
|
|
1574
|
+
} else {
|
|
1575
|
+
NotificationManager.warning('', 'Please Choose Product Options');
|
|
1576
|
+
}
|
|
1577
|
+
} else {
|
|
1578
|
+
runfunc = true;
|
|
1579
|
+
}
|
|
1580
|
+
} else {
|
|
1581
|
+
NotificationManager.warning('', 'Please Choose Quantity');
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
if (runfunc == true) {
|
|
1585
|
+
AddtoCartContext(addtocardpayloadobj);
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
|
|
1589
|
+
var cardsstyles2 = {
|
|
1590
|
+
productcard: glamor.css({
|
|
1591
|
+
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
1592
|
+
opacity: sectionproperties.cardbg_opacity,
|
|
1593
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
1594
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
1595
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
1596
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
1597
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
1598
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
1599
|
+
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
1600
|
+
paddingRight: sectionproperties.paddingRight + 'px',
|
|
1601
|
+
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
1602
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
1603
|
+
transition: '.3s',
|
|
1604
|
+
':hover': {
|
|
1605
|
+
zIndex: 1000
|
|
1606
|
+
}
|
|
1607
|
+
}),
|
|
1608
|
+
productNameStyles: glamor.css({
|
|
1609
|
+
color: sectionproperties.prodNameColor,
|
|
1610
|
+
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
1611
|
+
textTransform: sectionproperties.prodNameTextTranform,
|
|
1612
|
+
fontWeight: sectionproperties.prodNameFontWeight,
|
|
1613
|
+
transition: '.3s',
|
|
1614
|
+
cursor: 'pointer',
|
|
1615
|
+
':hover': {
|
|
1616
|
+
color: sectionproperties.prodNameColorOnHover
|
|
1617
|
+
}
|
|
1618
|
+
}),
|
|
1619
|
+
productDescStyles: glamor.css({
|
|
1620
|
+
color: sectionproperties.prodCatColor,
|
|
1621
|
+
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
1622
|
+
textTransform: sectionproperties.prodCatTextTranform,
|
|
1623
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
1624
|
+
transition: '.3s'
|
|
1625
|
+
}),
|
|
1626
|
+
productPricestyles: glamor.css({
|
|
1627
|
+
color: sectionproperties.prodPriceColor,
|
|
1628
|
+
fontSize: sectionproperties.prodpriceFontSize + 'px',
|
|
1629
|
+
fontWeight: sectionproperties.prodPriceFontWeight
|
|
1630
|
+
}),
|
|
1631
|
+
productSalePricestyles: glamor.css({
|
|
1632
|
+
color: sectionproperties.prodsalePriceColor,
|
|
1633
|
+
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
1634
|
+
fontWeight: sectionproperties.prodsalePriceFontWeight
|
|
1635
|
+
}),
|
|
1636
|
+
producttotalstyles: glamor.css({
|
|
1637
|
+
color: sectionproperties.total_color,
|
|
1638
|
+
fontSize: sectionproperties.total_fontsize + 'px',
|
|
1639
|
+
fontWeight: 500
|
|
1640
|
+
}),
|
|
1641
|
+
wishlist_btn: glamor.css({
|
|
1642
|
+
width: sectionproperties.favBtnWidth + 'px',
|
|
1643
|
+
height: sectionproperties.favBtnHeight + 'px',
|
|
1644
|
+
background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
|
|
1645
|
+
borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
|
|
1646
|
+
color: sectionproperties.favBtniconcolor,
|
|
1647
|
+
fontSize: sectionproperties.favBtnTextfontsize + 'px',
|
|
1648
|
+
textTransform: sectionproperties.favBtnTexttransform,
|
|
1649
|
+
fontWeight: sectionproperties.favBtnTextfontweight,
|
|
1650
|
+
transition: '.3s',
|
|
1651
|
+
border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
|
|
1652
|
+
':hover': {
|
|
1653
|
+
background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
|
|
1654
|
+
color: sectionproperties.favBtnTextcoloronhover
|
|
1655
|
+
}
|
|
1656
|
+
}),
|
|
1657
|
+
cart_btn: glamor.css({
|
|
1658
|
+
width: sectionproperties.cartBtnWidth + 'px',
|
|
1659
|
+
height: sectionproperties.cartBtnHeight + 'px',
|
|
1660
|
+
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
1661
|
+
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
1662
|
+
color: sectionproperties.cartBtnTextcolor,
|
|
1663
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
1664
|
+
// fontSize: sectionproperties.cartBtn_iconFontSize + 'px',
|
|
1665
|
+
textTransform: sectionproperties.cartBtnTexttransform,
|
|
1666
|
+
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
1667
|
+
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
1668
|
+
transition: '.3s',
|
|
1669
|
+
':hover': {
|
|
1670
|
+
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
1671
|
+
color: sectionproperties.cartBtnTextcoloronhover
|
|
1672
|
+
}
|
|
1673
|
+
}),
|
|
1674
|
+
img_container: glamor.css({
|
|
1675
|
+
position: 'relative',
|
|
1676
|
+
height: sectionproperties.prodimage_height + 'px',
|
|
1677
|
+
border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
|
|
1678
|
+
borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
|
|
1679
|
+
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
1680
|
+
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
1681
|
+
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
1682
|
+
background: sectionproperties.prodimage_bgcolor
|
|
1683
|
+
}),
|
|
1684
|
+
quantitybtn: glamor.css((_css = {
|
|
1685
|
+
flex: 1,
|
|
1686
|
+
border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor,
|
|
1687
|
+
height: sectionproperties.quantitybtn_height + 'px'
|
|
1688
|
+
}, _defineProperty__default["default"](_css, "height", '40px'), _defineProperty__default["default"](_css, "display", 'flex'), _defineProperty__default["default"](_css, "flexDirection", 'row'), _defineProperty__default["default"](_css, "overflow", 'hidden'), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.quantitybtn_borderradius + 'px'), _defineProperty__default["default"](_css, "background", sectionproperties.quantitybtn_bgcolor), _defineProperty__default["default"](_css, "alignItems", 'center'), _defineProperty__default["default"](_css, "justifyContent", 'center'), _defineProperty__default["default"](_css, "margin", 0), _defineProperty__default["default"](_css, "position", 'relative'), _defineProperty__default["default"](_css, "fontWeight", sectionproperties.quantitybtn_textfontweight), _defineProperty__default["default"](_css, "color", sectionproperties.quantitybtn_textcolor), _defineProperty__default["default"](_css, "fontSize", sectionproperties.quantitybtn_textfontsize + 'px'), _css)),
|
|
1689
|
+
quantitybtn_text: glamor.css({
|
|
1690
|
+
margin: 'auto'
|
|
1691
|
+
}),
|
|
1692
|
+
add_quantitybtn_icon_container: glamor.css({
|
|
1693
|
+
position: 'relative',
|
|
1694
|
+
width: sectionproperties.add_quantitybtn_width + 'px',
|
|
1695
|
+
height: sectionproperties.add_quantitybtn_height + 'px',
|
|
1696
|
+
background: sectionproperties.add_quantitybtn_bgcolor,
|
|
1697
|
+
display: 'flex',
|
|
1698
|
+
alignItems: 'center',
|
|
1699
|
+
justifyContent: 'center',
|
|
1700
|
+
borderRadius: sectionproperties.add_quantitybtn_borderradius + 'px',
|
|
1701
|
+
fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
|
|
1702
|
+
color: sectionproperties.add_quantitybtn_textcolor,
|
|
1703
|
+
transition: '.3s',
|
|
1704
|
+
':hover': {
|
|
1705
|
+
color: sectionproperties.add_quantitybtn_textcoloronhover,
|
|
1706
|
+
background: sectionproperties.add_quantitybtn_bgcoloronhover
|
|
1707
|
+
}
|
|
1708
|
+
}),
|
|
1709
|
+
minus_quantitybtn_icon_container: glamor.css({
|
|
1710
|
+
position: 'relative',
|
|
1711
|
+
width: sectionproperties.remove_quantitybtn_width + 'px',
|
|
1712
|
+
height: sectionproperties.remove_quantitybtn_height + 'px',
|
|
1713
|
+
background: sectionproperties.remove_quantitybtn_bgcolor,
|
|
1714
|
+
display: 'flex',
|
|
1715
|
+
alignItems: 'center',
|
|
1716
|
+
justifyContent: 'center',
|
|
1717
|
+
borderRadius: sectionproperties.remove_quantitybtn_borderradius + 'px',
|
|
1718
|
+
fontSize: sectionproperties.remove_quantitybtn_textfontsize + '25px',
|
|
1719
|
+
color: sectionproperties.remove_quantitybtn_textcolor,
|
|
1720
|
+
transition: '.3s',
|
|
1721
|
+
':hover': {
|
|
1722
|
+
color: sectionproperties.remove_quantitybtn_textcoloronhover,
|
|
1723
|
+
background: sectionproperties.remove_quantitybtn_bgcoloronhover
|
|
1724
|
+
}
|
|
1725
|
+
})
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
var addtocartbuttonrender = function addtocartbuttonrender() {
|
|
1729
|
+
if (AddtoCartMutationContext.isLoading) {
|
|
1730
|
+
var _AddtoCartMutationCon;
|
|
1731
|
+
|
|
1732
|
+
if ((AddtoCartMutationContext === null || AddtoCartMutationContext === void 0 ? void 0 : (_AddtoCartMutationCon = AddtoCartMutationContext.variables) === null || _AddtoCartMutationCon === void 0 ? void 0 : _AddtoCartMutationCon.productid) == item.productid) {
|
|
1733
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1734
|
+
className: ' d-flex align-items-center justify-content-center '
|
|
1735
|
+
}, /*#__PURE__*/React__default["default"].createElement(CircularProgress, {
|
|
1736
|
+
color: "white",
|
|
1737
|
+
width: "20px",
|
|
1738
|
+
height: "20px",
|
|
1739
|
+
duration: "1s"
|
|
1740
|
+
}));
|
|
1741
|
+
} else {
|
|
1742
|
+
return lang.addtocart;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
if (!AddtoCartMutationContext.isLoading) {
|
|
1747
|
+
return lang.addtocart;
|
|
1748
|
+
}
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1752
|
+
className: "row ml-0 mr-0 w-100 mb-sm-5",
|
|
1753
|
+
style: {
|
|
1754
|
+
paddingLeft: sectionproperties.card_marginLeft + 'px',
|
|
1755
|
+
paddingRight: sectionproperties.card_marginRight + 'px',
|
|
1756
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
1757
|
+
minHeight: '370px'
|
|
1758
|
+
}
|
|
1759
|
+
}, sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1760
|
+
className: "".concat(cardsstyles.productcard, " ").concat(cardsstyles2.productcard) + ' w-100 '
|
|
1761
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1762
|
+
className: "".concat(cardsstyles.card_inner)
|
|
1763
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1764
|
+
className: "".concat(cardsstyles.card_thumbnail)
|
|
1765
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1766
|
+
className: "".concat(cardsstyles.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 ',
|
|
1767
|
+
onClick: function onClick() {
|
|
1768
|
+
setShowProductInfoModalContext(true);
|
|
1769
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
1770
|
+
},
|
|
1771
|
+
style: {
|
|
1772
|
+
cursor: 'pointer',
|
|
1773
|
+
overflow: 'hidden'
|
|
1774
|
+
}
|
|
1775
|
+
}, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
|
|
1776
|
+
urlEndpoint: IKurlEndpoint,
|
|
1777
|
+
publicKey: IKpublicKey,
|
|
1778
|
+
path: '/tr:w-300,h-300/' + item.image,
|
|
1779
|
+
style: {
|
|
1780
|
+
width: '100%',
|
|
1781
|
+
objectFit: 'contain',
|
|
1782
|
+
position: 'relative',
|
|
1783
|
+
borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
|
|
1784
|
+
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
1785
|
+
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
1786
|
+
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
1787
|
+
marginBottom: 'auto'
|
|
1788
|
+
},
|
|
1789
|
+
loading: "lazy"
|
|
1790
|
+
})), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1791
|
+
className: "".concat(cardsstyles.wishlistbtn),
|
|
1792
|
+
onClick: function onClick() {
|
|
1793
|
+
addtofavoritescontext(item.productid);
|
|
1794
|
+
}
|
|
1795
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1796
|
+
className: " ".concat(cardsstyles2.wishlist_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center ',
|
|
1797
|
+
style: {
|
|
1798
|
+
position: 'absolute',
|
|
1799
|
+
top: 10,
|
|
1800
|
+
right: 10,
|
|
1801
|
+
background: item.IsFavExists == true ? sectionproperties.activebgcolor : ''
|
|
1802
|
+
}
|
|
1803
|
+
}, item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1804
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
1805
|
+
}, /*#__PURE__*/React__default["default"].createElement(ai.AiFillStar, {
|
|
1806
|
+
size: sectionproperties.favBtnIconfontsize,
|
|
1807
|
+
style: {
|
|
1808
|
+
color: sectionproperties.activefaviconcolor
|
|
1809
|
+
}
|
|
1810
|
+
})), !item.IsFavExists && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1811
|
+
className: "h-100 d-flex align-items-center justify-content-center"
|
|
1812
|
+
}, /*#__PURE__*/React__default["default"].createElement(ai.AiFillStar, {
|
|
1813
|
+
size: sectionproperties.favBtnIconfontsize
|
|
1814
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1815
|
+
className: "".concat(cardsstyles.product_details) + ' mb-2 '
|
|
1816
|
+
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1817
|
+
className: "col-lg-12",
|
|
1818
|
+
style: {
|
|
1819
|
+
minHeight: '5vh'
|
|
1820
|
+
}
|
|
1821
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1822
|
+
className: "".concat(cardsstyles2.productNameStyles) + ' m-0 p-0 wordbreak wordbreak2 ',
|
|
1823
|
+
style: {
|
|
1824
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1825
|
+
}
|
|
1826
|
+
}, item.name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1827
|
+
className: "col-lg-12 d-flex align-items-center"
|
|
1828
|
+
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1829
|
+
className: "".concat(cardsstyles2.productPricestyles) + ' m-0 p-0 wordbreak ',
|
|
1830
|
+
style: {
|
|
1831
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1832
|
+
}
|
|
1833
|
+
}, langdetect == 'en' ? 'EGP' : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1834
|
+
className: "".concat(cardsstyles2.productSalePricestyles) + ' linethrough mt-auto mb-0 p-0 wordbreak mr-1 ml-1 ',
|
|
1835
|
+
style: {
|
|
1836
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1837
|
+
}
|
|
1838
|
+
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1839
|
+
className: "".concat(cardsstyles.card_informationcontainer)
|
|
1840
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1841
|
+
className: "row m-0 w-100 d-flex align-items-center"
|
|
1842
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1843
|
+
className: "".concat(cardsstyles2.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center '
|
|
1844
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1845
|
+
className: "".concat(cardsstyles2.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
1846
|
+
style: {
|
|
1847
|
+
transform: ' rotate(-180deg)'
|
|
1848
|
+
},
|
|
1849
|
+
onClick: function onClick() {
|
|
1850
|
+
if (item.hasvariants == 0) {
|
|
1851
|
+
updatequantity('remove');
|
|
1852
|
+
} else {
|
|
1853
|
+
setShowProductInfoModalContext(true);
|
|
1854
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1858
|
+
className: "fa fa-chevron-up font-12"
|
|
1859
|
+
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1860
|
+
className: "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
1861
|
+
onClick: function onClick() {
|
|
1862
|
+
updatequantity('add');
|
|
1863
|
+
}
|
|
1864
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1865
|
+
className: "fa fa-chevron-up font-12"
|
|
1866
|
+
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1867
|
+
className: "".concat(cardsstyles2.quantitybtn_text) + ' d-flex align-items-center justify-content-center '
|
|
1868
|
+
}, item.quantity), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1869
|
+
className: "".concat(cardsstyles2.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
1870
|
+
style: {
|
|
1871
|
+
transform: ' rotate(-180deg)'
|
|
1872
|
+
},
|
|
1873
|
+
onClick: function onClick() {
|
|
1874
|
+
updatequantity('remove');
|
|
1875
|
+
}
|
|
1876
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1877
|
+
className: "fa fa-chevron-up font-12"
|
|
1878
|
+
})), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1879
|
+
className: "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
1880
|
+
onClick: function onClick() {
|
|
1881
|
+
if (item.hasvariants == 0) {
|
|
1882
|
+
updatequantity('add');
|
|
1883
|
+
} else {
|
|
1884
|
+
setShowProductInfoModalContext(true);
|
|
1885
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1889
|
+
className: "fa fa-chevron-up font-12"
|
|
1890
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1891
|
+
className: "d-flex justify-content-start pl-2 pr-2",
|
|
1892
|
+
style: {
|
|
1893
|
+
flex: 1
|
|
1894
|
+
}
|
|
1895
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1896
|
+
className: "".concat(cardsstyles2.producttotalstyles) + ' mb-0 ',
|
|
1897
|
+
style: {
|
|
1898
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1899
|
+
}
|
|
1900
|
+
}, lang.total, ": ", /*#__PURE__*/React__default["default"].createElement("br", null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1901
|
+
style: {
|
|
1902
|
+
color: sectionproperties.total_secondaryColor,
|
|
1903
|
+
fontWeight: sectionproperties.total_fontweight,
|
|
1904
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1905
|
+
}
|
|
1906
|
+
}, langdetect == 'en' ? 'EGP' : '', " ", item.hassale == 1 ? item.quantity * item.defaultsaleprice : item.quantity * item.defaultprice, ' ', langdetect == 'en' ? '' : 'ج.م')))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1907
|
+
className: "col-lg-12 d-flex align-items-center justify-content-center p-0 mb-2 mt-2"
|
|
1908
|
+
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1909
|
+
className: "".concat(cardsstyles2.cart_btn) + ' font-md-13 m-0 p-0 d-flex align-items-center justify-content-center cursor-pointer ',
|
|
1910
|
+
onClick: function onClick() {
|
|
1911
|
+
if (item.hasvariants == 0) {
|
|
1912
|
+
addtocartfunc();
|
|
1913
|
+
} else {
|
|
1914
|
+
setShowProductInfoModalContext(true);
|
|
1915
|
+
setProductIdProdutInfoModalContext(item.productid);
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
disabled: AddtoCartMutationContext.isLoading
|
|
1919
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1920
|
+
className: langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|
|
1921
|
+
}, /*#__PURE__*/React__default["default"].createElement(fi.FiShoppingCart, {
|
|
1922
|
+
size: sectionproperties.cartBtn_iconFontSize
|
|
1923
|
+
})), addtocartbuttonrender()))))));
|
|
1924
|
+
};
|
|
1925
|
+
|
|
1926
|
+
var cardstyles = {"categoryCard":"categorycard3-module_categoryCard__3mSQo"};
|
|
1927
|
+
|
|
1928
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1929
|
+
|
|
1930
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1931
|
+
|
|
1932
|
+
var Categorycard_with_twolinestransition = function Categorycard_with_twolinestransition(props) {
|
|
1933
|
+
var _css;
|
|
1934
|
+
|
|
1935
|
+
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
1936
|
+
// const { fetch_inst_tabex_websitetemplatesQueryContext, sectionindexcontext, pageindexcontext, StatePagePropertiesContext } = React.useContext(WebsiteDesignWorkPlaceContext);
|
|
1937
|
+
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
1938
|
+
var _useState = React.useState(''),
|
|
1939
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
1940
|
+
sectionproperties = _useState2[0],
|
|
1941
|
+
setsectionproperties = _useState2[1];
|
|
1942
|
+
|
|
1943
|
+
var _useState3 = React.useState(props.cardinfoitemprops),
|
|
1944
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
1945
|
+
item = _useState4[0];
|
|
1946
|
+
_useState4[1];
|
|
1947
|
+
|
|
1948
|
+
var _useState5 = React.useState(props.cardinfoindexprops),
|
|
1949
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
1950
|
+
_useState6[0];
|
|
1951
|
+
_useState6[1];
|
|
1952
|
+
|
|
1953
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
1954
|
+
props.actions.lang;
|
|
1955
|
+
var langdetect = props.actions.langdetect;
|
|
1956
|
+
React.useEffect(function () {
|
|
1957
|
+
if (props.srcfrom == 'addsectionform') {
|
|
1958
|
+
var secpropobj = {};
|
|
1959
|
+
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
1960
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
1961
|
+
});
|
|
1962
|
+
setsectionproperties(_objectSpread({}, secpropobj));
|
|
1963
|
+
} else {
|
|
1964
|
+
var secpropobj = {};
|
|
1965
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
1966
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
1967
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
1968
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
setsectionproperties(_objectSpread({}, secpropobj));
|
|
1973
|
+
}
|
|
1974
|
+
}, [StatePagePropertiesContext]);
|
|
1975
|
+
|
|
1976
|
+
var plainString = function plainString(html) {
|
|
1977
|
+
var divContainer = document.createElement('div');
|
|
1978
|
+
divContainer.innerHTML = html;
|
|
1979
|
+
return divContainer.textContent || divContainer.innerText || '';
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
var categorycard_cssstyles = {
|
|
1983
|
+
categoryCard: glamor.css((_css = {
|
|
1984
|
+
background: sectionproperties.backgroundColortransparent == 'Transparent' ? sectionproperties.backgroundColor : '',
|
|
1985
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
1986
|
+
height: sectionproperties.height + 'px',
|
|
1987
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
1988
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
1989
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
1990
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px'
|
|
1991
|
+
}, _defineProperty__default["default"](_css, "border", sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor), _defineProperty__default["default"](_css, "marginTop", sectionproperties.marginTop + 'px'), _defineProperty__default["default"](_css, "marginBottom", sectionproperties.marginBottom + 'px'), _defineProperty__default["default"](_css, "paddingLeft", sectionproperties.paddingLeft + 'px'), _defineProperty__default["default"](_css, "paddingRight", sectionproperties.paddingRight + 'px'), _defineProperty__default["default"](_css, "paddingTop", sectionproperties.paddingTop + 'px'), _defineProperty__default["default"](_css, "paddingBottom", sectionproperties.paddingBottom + 'px'), _defineProperty__default["default"](_css, "transition", '0.3s'), _defineProperty__default["default"](_css, "cursor", 'pointer'), _defineProperty__default["default"](_css, ':after', {
|
|
1992
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
1993
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
1994
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
1995
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
1996
|
+
content: 's',
|
|
1997
|
+
fontSize: 0,
|
|
1998
|
+
position: 'absolute',
|
|
1999
|
+
top: 0,
|
|
2000
|
+
bottom: 0,
|
|
2001
|
+
left: 0,
|
|
2002
|
+
width: '100%',
|
|
2003
|
+
height: '100%',
|
|
2004
|
+
zIndex: 1,
|
|
2005
|
+
transition: ' 0.3s',
|
|
2006
|
+
background: sectionproperties.transitionbg_color,
|
|
2007
|
+
opacity: sectionproperties.cardtransition_opacity
|
|
2008
|
+
}), _defineProperty__default["default"](_css, ':hover:after', {
|
|
2009
|
+
opacity: sectionproperties.cardtransitionbgopacityonhover
|
|
2010
|
+
}), _css)),
|
|
2011
|
+
caption: glamor.css({
|
|
2012
|
+
zIndex: 2,
|
|
2013
|
+
':before': {
|
|
2014
|
+
borderTop: sectionproperties.bordertransitionbg_colorwidth + 'px solid ' + sectionproperties.bordertransitionbg_color,
|
|
2015
|
+
borderBottom: sectionproperties.bordertransitionbg_colorwidth + 'px solid ' + sectionproperties.bordertransitionbg_color,
|
|
2016
|
+
opacity: sectionproperties.bordertransitionopacityonhover
|
|
2017
|
+
}
|
|
2018
|
+
}),
|
|
2019
|
+
categorycardtext: glamor.css({
|
|
2020
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
2021
|
+
color: sectionproperties.generaltext_fontColor,
|
|
2022
|
+
textTransform: sectionproperties.generaltext_textTransform,
|
|
2023
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
2024
|
+
opacity: 1,
|
|
2025
|
+
transitionDelay: '0.3s'
|
|
2026
|
+
}),
|
|
2027
|
+
categorydescription: glamor.css({
|
|
2028
|
+
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
2029
|
+
color: sectionproperties.prodCatColor,
|
|
2030
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
2031
|
+
opacity: 1,
|
|
2032
|
+
transitionDelay: '0.3s'
|
|
2033
|
+
}),
|
|
2034
|
+
cardbtn: glamor.css({
|
|
2035
|
+
transition: '0.3s',
|
|
2036
|
+
color: sectionproperties.generalbtn_textColor,
|
|
2037
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
2038
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
2039
|
+
width: sectionproperties.generalbtn_width + 'px',
|
|
2040
|
+
background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
|
|
2041
|
+
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
2042
|
+
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
2043
|
+
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
2044
|
+
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
2045
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
2046
|
+
zIndex: 100,
|
|
2047
|
+
':hover': {
|
|
2048
|
+
background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
|
|
2049
|
+
color: sectionproperties.generalbtn_textColoronhover
|
|
2050
|
+
}
|
|
2051
|
+
})
|
|
2052
|
+
};
|
|
2053
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2054
|
+
className: "row m-0 w-100",
|
|
2055
|
+
style: {
|
|
2056
|
+
paddingLeft: sectionproperties.card_marginLeft + 'px',
|
|
2057
|
+
paddingRight: sectionproperties.card_marginRight + 'px'
|
|
2058
|
+
}
|
|
2059
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2060
|
+
className: "".concat(categorycard_cssstyles.categoryCard, " ").concat(cardstyles.categoryCard) + ' col-lg-12 ',
|
|
2061
|
+
onClick: function onClick() {
|
|
2062
|
+
if (props.fetchingtypeprops == 'collections') {
|
|
2063
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
}, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
|
|
2067
|
+
urlEndpoint: IKurlEndpoint,
|
|
2068
|
+
publicKey: IKpublicKey,
|
|
2069
|
+
path: item.image,
|
|
2070
|
+
loading: "lazy",
|
|
2071
|
+
style: {
|
|
2072
|
+
height: '100%',
|
|
2073
|
+
width: '100%',
|
|
2074
|
+
objectFit: 'cover'
|
|
2075
|
+
}
|
|
2076
|
+
}), /*#__PURE__*/React__default["default"].createElement("figcaption", {
|
|
2077
|
+
className: "".concat(categorycard_cssstyles.caption) + ' row w-100 m-0 d-flex align-items-center justify-content-center ',
|
|
2078
|
+
style: {
|
|
2079
|
+
position: 'absolute',
|
|
2080
|
+
top: 0,
|
|
2081
|
+
left: 0
|
|
2082
|
+
}
|
|
2083
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2084
|
+
clas: "col-lg-12 m-0 d-flex align-items-center justify-content-start w-100 h-100 ",
|
|
2085
|
+
style: {
|
|
2086
|
+
width: '100%',
|
|
2087
|
+
height: '100%'
|
|
2088
|
+
}
|
|
2089
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2090
|
+
className: "row m-0 w-100 h-100",
|
|
2091
|
+
style: {
|
|
2092
|
+
position: 'relative',
|
|
2093
|
+
height: '100%'
|
|
2094
|
+
}
|
|
2095
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2096
|
+
className: "col-lg-12 d-flex justify-content-center align-items-center flex-column"
|
|
2097
|
+
}, sectionproperties.general_showtext == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2098
|
+
className: "".concat(categorycard_cssstyles.categorycardtext) + ' m-0 p-0 text-center '
|
|
2099
|
+
}, item.name), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2100
|
+
className: "".concat(categorycard_cssstyles.categorydescription) + ' PacificoFont m-0 p-0 text-center '
|
|
2101
|
+
}, plainString(item.description)), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2102
|
+
className: "".concat(categorycard_cssstyles.cardbtn, " "),
|
|
2103
|
+
onClick: function onClick() {
|
|
2104
|
+
if (props.fetchingtypeprops == 'collections') {
|
|
2105
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
}, langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar)))))));
|
|
2109
|
+
};
|
|
2110
|
+
|
|
843
2111
|
var returnLibrary = function returnLibrary() {
|
|
844
2112
|
return {
|
|
845
2113
|
AwesomeButton: AwesomeButton,
|
|
846
|
-
Header8: Header8
|
|
847
|
-
|
|
2114
|
+
Header8: Header8,
|
|
2115
|
+
CardsSection: CardsSection,
|
|
2116
|
+
Categorycard_with_twolinestransition: Categorycard_with_twolinestransition,
|
|
2117
|
+
Productcard_with_zoominonhover: Productcard_with_zoominonhover
|
|
848
2118
|
};
|
|
849
2119
|
};
|
|
850
2120
|
|