tabexseriescomponents 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,5 +1,18 @@
1
1
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
- import React, { useState, useEffect } from 'react';
2
+ import React$1, { useState, useEffect } from 'react';
3
+ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
4
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
+ import { Link } from 'react-router-dom';
6
+ import { css as css$1 } from 'glamor';
7
+ import Dropdown from 'react-bootstrap/Dropdown';
8
+ import { AiOutlineLogin, AiOutlineUserAdd, AiOutlineHeart, AiFillStar } from 'react-icons/ai';
9
+ import { CgShoppingBag } from 'react-icons/cg';
10
+ import { BiUser, BiLogOutCircle } from 'react-icons/bi';
11
+ import { FiShoppingBag, FiShoppingCart } from 'react-icons/fi';
12
+ import { MdOutlineShoppingCart, MdOutlinePolicy } from 'react-icons/md';
13
+ import { IKImage, IKContext } from 'imagekitio-react';
14
+ import { BsTelephone, BsSearch, BsBag, BsHandbag } from 'react-icons/bs';
15
+ import { HiMenuAlt4 } from 'react-icons/hi';
3
16
 
4
17
  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}}
5
18
 
@@ -26,19 +39,812 @@ var AwesomeButton = function AwesomeButton(props) {
26
39
  }
27
40
  });
28
41
  var children = props.children;
29
- return /*#__PURE__*/React.createElement("button", {
42
+ return /*#__PURE__*/React$1.createElement("button", {
30
43
  className: "buttonComponent",
31
44
  style: {
32
45
  backgroundColor: color
33
46
  }
34
- }, children.toUpperCase());
47
+ }, "ssdadadad", children.toUpperCase());
35
48
  };
36
49
 
37
- var returnLibrary = function returnLibrary() {
38
- return {
39
- AwesomeButton: AwesomeButton // you can add here other components that you want to export
50
+ 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; }
51
+
52
+ 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(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; }
53
+ // import { Contexthandlerscontext } from '../../../../../../../Contexts/Contexthandlerscontext';
54
+
55
+ var Header8 = function Header8(props) {
56
+ var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
57
+
58
+ // const { lang, setlang, langdetect } = useContext(LanguageContext);
59
+ // const { templatepropcontext } = useContext(Contexthandlerscontext);
60
+ // const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
61
+ // const {
62
+ // setSearchHeaderInputContext,
63
+ // fetchcustomercartQueryContext,
64
+ // fetchAuthorizationQueryContext,
65
+ // setsidecartnavshowcontext,
66
+ // LogoutMutationContext,
67
+ // favoriteprojectscountContext,
68
+ // templateproperties_context,
69
+ // } = useContext(FetchingContext);
70
+ // const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
71
+ var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
72
+ var lang = props.actions.lang;
73
+ var langdetect = props.actions.langdetect;
74
+ var setlang = props.actions.setlang;
75
+ var templatepropcontext = props.actions.templatepropcontext;
76
+ var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
77
+ var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
78
+ var templateproperties_context = props.actions.templateproperties_context;
79
+ var StaticPagesLinksContext = props.actions.StaticPagesLinkxwsContext;
80
+ var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
81
+
82
+ var _useState = useState(''),
83
+ _useState2 = _slicedToArray(_useState, 2),
84
+ sectionproperties = _useState2[0],
85
+ setsectionproperties = _useState2[1];
86
+
87
+ var _useState3 = useState(false),
88
+ _useState4 = _slicedToArray(_useState3, 2),
89
+ dropdownselect = _useState4[0],
90
+ setdropdownselect = _useState4[1];
91
+
92
+ useEffect(function () {
93
+ var _StatePagePropertiesC, _StatePagePropertiesC2;
94
+
95
+ var secpropobj = {};
96
+ StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 ? void 0 : (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 ? void 0 : (_StatePagePropertiesC2 = _StatePagePropertiesC.sections) === null || _StatePagePropertiesC2 === void 0 ? void 0 : _StatePagePropertiesC2.forEach(function (sectionitem, sectionindex) {
97
+ if (sectionitem.sectionid == props.sectionidprops) {
98
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
99
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
100
+ });
101
+ }
102
+ });
103
+
104
+ if (Object.keys(secpropobj).length === 0) {
105
+ var _props$defaultpropert;
106
+
107
+ props === null || props === void 0 ? void 0 : (_props$defaultpropert = props.defaultproperties) === null || _props$defaultpropert === void 0 ? void 0 : _props$defaultpropert.forEach(function (defaultpropobj, defaultpropindex) {
108
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
109
+ });
110
+ }
111
+
112
+ setsectionproperties(_objectSpread({}, secpropobj));
113
+ }, [StatePagePropertiesContext]);
114
+ var header_cssstyles = {
115
+ headercontainer: css$1({
116
+ position: sectionproperties.headerstyles_position == 'absolute' ? 'absolute' : 'relative',
117
+ width: sectionproperties.header_width + 'vw',
118
+ background: sectionproperties.uppersection_bgcolor,
119
+ zIndex: 1000,
120
+ transition: 'all 0.2s'
121
+ }),
122
+ upperheadersection: css$1({
123
+ background: sectionproperties.uppersection_bgcolor,
124
+ paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
125
+ paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
126
+ paddingTop: sectionproperties.uppersection_paddingtop + 'px',
127
+ paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
128
+ borderTopLeftRadius: sectionproperties.uppersection_btlradius + 'px',
129
+ borderTopRightRadius: sectionproperties.uppersection_btrradius + 'px',
130
+ borderBottomLeftRadius: sectionproperties.uppersection_bblradius + 'px',
131
+ borderBottomRightRadius: sectionproperties.uppersection_bbrradius + 'px'
132
+ }),
133
+ lowerheadercontainer: css$1({
134
+ backgroundColor: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.lowersection_backgroundColor,
135
+ borderBottomLeftRadius: sectionproperties.lowersection_borderBottomLeftRadius + 'px',
136
+ borderBottomRightRadius: sectionproperties.lowersection_BorderBottomRightRadius + 'px',
137
+ borderTopLeftRadius: sectionproperties.lowersection_borderTopLeftRadius + 'px',
138
+ borderTopRightRadius: sectionproperties.lowersection_borderTopRightRadius + 'px',
139
+ paddingLeft: '30px',
140
+ paddingRight: '30px',
141
+ paddingTop: sectionproperties.lowersection_paddingtop + 'px',
142
+ paddingBottom: sectionproperties.lowersection_paddingbottom + 'px'
143
+ }),
144
+ header_logo: css$1({
145
+ width: templateproperties_context.logo_width + 'px',
146
+ height: templateproperties_context.logo_height + 'px'
147
+ }),
148
+ navbar_item_text: css$1({
149
+ color: sectionproperties.lowersection_fontColor,
150
+ fontSize: sectionproperties.lowersection_fontsize + 'px',
151
+ textTransform: sectionproperties.lowersection_textTransform,
152
+ fontWeight: sectionproperties.lowersection_textfontweight,
153
+ transition: '0.3s',
154
+ padding: 0,
155
+ ':hover': {
156
+ color: sectionproperties.lowersection_fontColoronhover
157
+ }
158
+ }),
159
+ navbar_item_active: css$1({
160
+ color: sectionproperties.lowersection_fontColoronhover
161
+ }),
162
+ dropdownitem: css$1({
163
+ padding: '0 0.1rem',
164
+ transition: '.3s',
165
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
166
+ color: sectionproperties.dropdown_color,
167
+ fontWeight: sectionproperties.dropdown_fontweight,
168
+ textTransform: sectionproperties.dropdown_texttransform
169
+ }),
170
+ dropdownicon: css$1({
171
+ color: sectionproperties.dropdowniconcolor
172
+ }),
173
+ dropdownitemcontainer: css$1({
174
+ ':hover .dropdownitem': {
175
+ color: sectionproperties.dropdown_hovercolor
176
+ }
177
+ }),
178
+ divider: css$1({
179
+ height: sectionproperties.vl_height + 'px',
180
+ width: sectionproperties.vl_width + '%',
181
+ backgroundColor: sectionproperties.vl_bg,
182
+ zIndex: 100
183
+ }),
184
+ searchbarcont: css$1({
185
+ position: 'relative',
186
+ transition: '.3s',
187
+ height: sectionproperties.searchbarcont_height + 'px',
188
+ background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
189
+ width: sectionproperties.searchbarcont_width + 'px',
190
+ borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
191
+ border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor
192
+ }),
193
+ searchbar_icon_cont: css$1({
194
+ width: sectionproperties.searchbaricon_width + 'px',
195
+ height: sectionproperties.searchbaricon_height + 'px',
196
+ borderRadius: sectionproperties.searchbaricon_borderRadius + 'px',
197
+ color: sectionproperties.searchbaricon_color,
198
+ backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
199
+ transition: '0.3s ease',
200
+ position: 'absolute',
201
+ right: langdetect == 'en' ? 0 : '',
202
+ left: langdetect == 'en' ? '' : 0,
203
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
204
+ bottom: 0,
205
+ top: 0,
206
+ margin: 'auto'
207
+ }),
208
+ searchbarcont_input: css$1({
209
+ height: '100%',
210
+ width: '100%',
211
+ outline: 'none',
212
+ background: 'transparent',
213
+ color: sectionproperties.searchbarcontinput_color,
214
+ fontWeight: sectionproperties.searchbarcont_inputfontweight,
215
+ fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
216
+ paddingLeft: langdetect == 'en' ? sectionproperties.searchbarcont_paddingLeft + 'px' : sectionproperties.searchbarcont_paddingRight + 'px',
217
+ paddingRight: langdetect == 'en' ? sectionproperties.searchbarcont_paddingRight + 'px' : sectionproperties.searchbarcont_paddingLeft,
218
+ transition: '0.3s',
219
+ ':focus': {
220
+ borderColor: sectionproperties.searchbarcontinput_bordercoloronfocus
221
+ }
222
+ }),
223
+ wishlist_btn: css$1({
224
+ width: sectionproperties.favBtnWidth + 'px',
225
+ height: sectionproperties.favBtnHeight + 'px',
226
+ background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
227
+ borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
228
+ color: sectionproperties.favBtniconcolor,
229
+ border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
230
+ transition: '.3s',
231
+ ':hover': {
232
+ background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
233
+ color: sectionproperties.favBtnTextcoloronhover
234
+ }
235
+ }),
236
+ wishlistbadge: css$1({
237
+ top: sectionproperties.wishlistbadgetop + 'px',
238
+ right: sectionproperties.wishlistbadgeright + 'px'
239
+ }),
240
+ user_btn: css$1({
241
+ background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
242
+ width: sectionproperties.userBtnWidth + 'px',
243
+ height: sectionproperties.userBtnHeight + 'px',
244
+ borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
245
+ color: sectionproperties.userBtniconcolor,
246
+ border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
247
+ transition: '.3s',
248
+ ':hover': {
249
+ color: sectionproperties.userBtnTextcoloronhover,
250
+ background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
251
+ borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover
252
+ }
253
+ }),
254
+ loggedinusername: css$1({
255
+ fontWeight: sectionproperties.userBtnTextfontweight,
256
+ textTransform: sectionproperties.userBtnTexttransform,
257
+ color: sectionproperties.userBtnTextcolor,
258
+ fontSize: sectionproperties.userBtntextfontsize + 'px',
259
+ lineHeight: sectionproperties.userBtntextfontsize + 'px',
260
+ transition: '.3s'
261
+ }),
262
+ user_btnContainer: css$1({
263
+ ':hover .user_btnbg': {
264
+ background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
265
+ color: sectionproperties.userBtnTextcoloronhover
266
+ },
267
+ ':hover .user_btn': {
268
+ color: sectionproperties.userBtnTextcoloronhover
269
+ }
270
+ }),
271
+ loggedinuserbtn: css$1({
272
+ width: sectionproperties.loggedinuserbtn_width + 'px',
273
+ height: sectionproperties.loggedinuserbtn_height + 'px',
274
+ border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
275
+ borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
276
+ background: sectionproperties.userBtnbgColor_loggedin,
277
+ color: sectionproperties.userBtniconcolor_loggedin,
278
+ transition: '.3s'
279
+ }),
280
+ loggedinuserbtnContainer: css$1({
281
+ ':hover .loggedinuserbtn': {
282
+ borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
283
+ color: sectionproperties.userBtnTextcoloronhover_loggedin
284
+ },
285
+ ':hover .loggedinuserbtnbg': {
286
+ backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
287
+ color: sectionproperties.userbtn_loggedin_iconcoloronhover
288
+ }
289
+ }),
290
+ cart_btn: css$1((_css = {
291
+ width: sectionproperties.cartBtnWidth + 'px',
292
+ height: sectionproperties.cartBtnHeight + 'px',
293
+ background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
294
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
295
+ color: sectionproperties.cartBtnTextcolor,
296
+ border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor
297
+ }, _defineProperty(_css, "color", sectionproperties.cart_iconcolor), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, ':hover', {
298
+ background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
299
+ color: sectionproperties.cartBtnTextcoloronhover
300
+ }), _css)),
301
+ cartbadge: css$1({
302
+ top: sectionproperties.cartbadgetop + 'px',
303
+ right: sectionproperties.cartbadgeright + 'px'
304
+ }),
305
+ badge_counter_header_notifications: css$1({
306
+ display: 'flex',
307
+ justifyContent: 'center',
308
+ alignItems: 'center',
309
+ position: 'absolute',
310
+ top: sectionproperties.badge_top + 'px',
311
+ right: sectionproperties.badge_right + 'px',
312
+ background: sectionproperties.badge_bgcolor,
313
+ width: sectionproperties.badge_width + 'px',
314
+ height: sectionproperties.badge_height + 'px',
315
+ color: sectionproperties.badge_color,
316
+ borderRadius: sectionproperties.badge_borderradius + 'px',
317
+ fontSize: sectionproperties.badge_fontsize + 'px'
318
+ }),
319
+ categorybtn: css$1({
320
+ background: sectionproperties.generalbtn_bgColor,
321
+ width: sectionproperties.generalbtn_width + 'px',
322
+ height: sectionproperties.generalbtn_height + 'px',
323
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
324
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
325
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
326
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
327
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
328
+ transition: '.3s',
329
+ ':hover': {
330
+ background: sectionproperties.generalbtn_bgColoronhover
331
+ }
332
+ }),
333
+ btntextcontainer: css$1({
334
+ color: sectionproperties.generalbtn_textColor,
335
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
336
+ textTransform: sectionproperties.generalbtn_texttransform,
337
+ transition: '.3s',
338
+ ':hover': {
339
+ color: sectionproperties.generalbtn_textColoronhover
340
+ }
341
+ }),
342
+ languagecontainer: css$1({
343
+ cursor: 'pointer',
344
+ transition: '.3s',
345
+ color: sectionproperties.language_container_color,
346
+ fontSize: sectionproperties.language_container_fontsize + 'px',
347
+ ':hover': {
348
+ color: sectionproperties.language_container_coloronhover
349
+ }
350
+ })
351
+ };
352
+
353
+ var subtotalcart = function subtotalcart() {
354
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
355
+
356
+ var totalprice = 0;
357
+ fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.forEach(function (cartitem, cartindex) {
358
+ var finalprice = 0;
359
+
360
+ if (cartitem.productinfo.hassale == 0) {
361
+ finalprice = cartitem.productinfo.defaultprice;
362
+ } else if (cartitem.productinfo.hassale == 1) {
363
+ finalprice = cartitem.productinfo.defaultsaleprice;
364
+ }
40
365
 
366
+ totalprice = finalprice * cartitem.quantity + totalprice;
367
+ });
368
+ return totalprice;
41
369
  };
370
+
371
+ var _useState5 = useState([]),
372
+ _useState6 = _slicedToArray(_useState5, 2),
373
+ logoarrayofobjects = _useState6[0],
374
+ setlogoarrayofobjects = _useState6[1];
375
+
376
+ useEffect(function () {
377
+ if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
378
+ var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
379
+
380
+ if (Array.isArray(logoarrayofobjectsparsed)) {
381
+ setlogoarrayofobjects(_toConsumableArray(logoarrayofobjectsparsed));
382
+ }
383
+ }
384
+ }, [templateproperties_context]);
385
+ return /*#__PURE__*/React$1.createElement("div", {
386
+ className: "row w-100 ml-0 mr-0 d-flex justify-content-center",
387
+ style: {
388
+ marginTop: sectionproperties.header_marginTop + 'px',
389
+ marginBottom: sectionproperties.header_marginBottom + 'px'
390
+ }
391
+ }, fetchAuthorizationQueryContext.isSuccess && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("a", {
392
+ href: 'tel:' + fetchAuthorizationQueryContext.data.data.instinfo.contactinfo.mobile,
393
+ target: '_self',
394
+ style: {
395
+ position: 'fixed',
396
+ bottom: 60,
397
+ right: 10,
398
+ zIndex: 999999,
399
+ transition: 'all 0.3s ease-out'
400
+ }
401
+ }, /*#__PURE__*/React$1.createElement("i", {
402
+ className: langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
403
+ }, /*#__PURE__*/React$1.createElement(BsTelephone, {
404
+ size: 30,
405
+ color: sectionproperties.uppersection_iconcolor,
406
+ style: {
407
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
408
+ }
409
+ }))), /*#__PURE__*/React$1.createElement("a", {
410
+ href: 'https://api.whatsapp.com/send?phone=' + fetchAuthorizationQueryContext.data.data.instinfo.contactinfo.mobile,
411
+ target: '_blank',
412
+ style: {
413
+ position: 'fixed',
414
+ bottom: 10,
415
+ right: 10,
416
+ zIndex: 999999,
417
+ transition: 'all 0.3s ease-out'
418
+ }
419
+ }, /*#__PURE__*/React$1.createElement("img", {
420
+ // src={whatsappicon}
421
+ style: {
422
+ width: '40px',
423
+ height: '40px',
424
+ cursor: 'pointer'
425
+ }
426
+ }))), /*#__PURE__*/React$1.createElement("div", {
427
+ className: "".concat(header_cssstyles.headercontainer) + ' row ml-0 mr-0 d-flex d-md-none align-items-center ',
428
+ style: {
429
+ position: sectionproperties.headerstyles_position == 'absolute' ? 'absolute' : 'relative'
430
+ }
431
+ }, /*#__PURE__*/React$1.createElement("div", {
432
+ className: header_cssstyles.upperheadersection + ' col-lg-12 '
433
+ }, /*#__PURE__*/React$1.createElement("div", {
434
+ className: "row w-100 m-0 align-items-center "
435
+ }, /*#__PURE__*/React$1.createElement("div", {
436
+ className: "col-lg-2 p-0"
437
+ }, /*#__PURE__*/React$1.createElement("div", {
438
+ className: "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
439
+ style: {
440
+ cursor: 'pointer'
441
+ },
442
+ onClick: function onClick() {
443
+ routingcountext('home');
444
+ }
445
+ }, /*#__PURE__*/React$1.createElement(IKImage, {
446
+ 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,
447
+ style: {
448
+ maxWidth: '100%',
449
+ maxHeight: '100%'
450
+ }
451
+ }))), /*#__PURE__*/React$1.createElement("div", {
452
+ className: "col-lg-4 p-0"
453
+ }, /*#__PURE__*/React$1.createElement("div", {
454
+ className: header_cssstyles.searchbarcont,
455
+ style: {
456
+ position: 'relative'
457
+ }
458
+ }, /*#__PURE__*/React$1.createElement("input", {
459
+ type: "text",
460
+ placeholder: lang.searchproducts,
461
+ className: "".concat(header_cssstyles.searchbarcont_input),
462
+ onChange: function onChange(event) {
463
+ setSearchHeaderInputContext(event.target.value);
464
+ }
465
+ }), /*#__PURE__*/React$1.createElement("button", {
466
+ className: " ".concat(header_cssstyles.searchbar_icon_cont) + ' d-flex align-items-center justify-content-center '
467
+ }, /*#__PURE__*/React$1.createElement(BsSearch, {
468
+ color: sectionproperties.searchbaricon_color,
469
+ size: sectionproperties.searchbaricon_fontsize
470
+ })))), fetchAuthorizationQueryContext.isSuccess && /*#__PURE__*/React$1.createElement("div", {
471
+ className: "col-lg-3 d-flex flex-column align-items-center justfiy-content-center"
472
+ }, sectionproperties.showcontactinfo == 'Show' && /*#__PURE__*/React$1.createElement("div", {
473
+ className: "row m-0 w-100 d-flex align-items-center justify-content-center"
474
+ }, /*#__PURE__*/React$1.createElement("i", {
475
+ className: langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
476
+ }, /*#__PURE__*/React$1.createElement(BsTelephone, {
477
+ size: 30,
478
+ color: sectionproperties.uppersection_iconcolor,
479
+ style: {
480
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
481
+ }
482
+ })), /*#__PURE__*/React$1.createElement("div", {
483
+ className: "d-flex align-items-center flex-column",
484
+ onClick: function onClick() {
485
+ window.open('https://api.whatsapp.com/send?phone=' + fetchAuthorizationQueryContext.data.data.instinfo.contactinfo.mobile, '_blank');
486
+ },
487
+ style: {
488
+ cursor: 'pointer'
489
+ }
490
+ }, /*#__PURE__*/React$1.createElement("p", {
491
+ className: "m-0",
492
+ style: {
493
+ color: sectionproperties.uppersection_infocolor,
494
+ fontSize: sectionproperties.uppersection_infofontsize + 'px',
495
+ fontWeight: sectionproperties.uppersection_infofontweight,
496
+ letterSpacing: '2px'
497
+ }
498
+ }, fetchAuthorizationQueryContext.data.data.instinfo.contactinfo.mobile), /*#__PURE__*/React$1.createElement("p", {
499
+ className: "mb-0 w-100",
500
+ style: {
501
+ textAlign: langdetect == 'en' ? 'right' : 'left',
502
+ // color: '#a3a3a3',
503
+ color: sectionproperties.uppersection_titlecolor,
504
+ fontSize: sectionproperties.uppersection_titlefontsize + 'px',
505
+ // fontSize: '12px',
506
+ fontWeight: sectionproperties.uppersection_titlefontweight,
507
+ textTransform: sectionproperties.uppersection_titletextransform
508
+ }
509
+ }, lang.support247)))), /*#__PURE__*/React$1.createElement("div", {
510
+ className: langdetect == 'en' ? 'col-lg-3 d-flex align-items-center p-0 pl-0' : 'col-lg-3 d-flex align-items-center p-0 pr-0'
511
+ }, /*#__PURE__*/React$1.createElement("div", {
512
+ className: 'row w-100 m-0 align-items-center justify-content-between ',
513
+ style: {
514
+ paddingLeft: langdetect == 'en' ? fetchAuthorizationQueryContext.data.data.loggedin == true ? '.3rem' : '3rem' : 0,
515
+ paddingRight: langdetect == 'en' ? 0 : fetchAuthorizationQueryContext.data.data.loggedin == true ? '1rem' : '3rem'
516
+ }
517
+ }, /*#__PURE__*/React$1.createElement(Dropdown, null, /*#__PURE__*/React$1.createElement(Dropdown.Toggle, null, !fetchAuthorizationQueryContext.data.data.loggedin && /*#__PURE__*/React$1.createElement("div", {
518
+ className: header_cssstyles.user_btnContainer + ' d-flex align-items-center justify-content-end p-0 cursor-pointer pt-1 '
519
+ }, /*#__PURE__*/React$1.createElement("div", {
520
+ className: header_cssstyles.user_btn + ' user_btnbg allcentered p-0 '
521
+ }, /*#__PURE__*/React$1.createElement(BiUser, {
522
+ size: sectionproperties.userBtniconfontsize
523
+ })), /*#__PURE__*/React$1.createElement("p", {
524
+ className: header_cssstyles.loggedinusername + ' user_btn mb-0 p-0 ',
525
+ style: {
526
+ marginLeft: langdetect == 'en' ? '3px' : 0,
527
+ marginRight: langdetect == 'en' ? 0 : '3px'
528
+ }
529
+ }, lang.login)), fetchAuthorizationQueryContext.data.data.loggedin && /*#__PURE__*/React$1.createElement("div", {
530
+ className: header_cssstyles.loggedinuserbtnContainer + ' allcentered ',
531
+ sytle: {
532
+ position: 'relative'
533
+ }
534
+ }, /*#__PURE__*/React$1.createElement("div", {
535
+ className: header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '
536
+ }, /*#__PURE__*/React$1.createElement("i", {
537
+ className: ' h-100 allcentered '
538
+ }, /*#__PURE__*/React$1.createElement(BiUser, {
539
+ size: sectionproperties.loggedinusericonfontsize
540
+ }))), /*#__PURE__*/React$1.createElement("div", {
541
+ className: "m-0 p-0",
542
+ style: {
543
+ textAlign: langdetect == 'en' ? 'left' : 'right'
544
+ }
545
+ }, /*#__PURE__*/React$1.createElement("p", {
546
+ className: "m-0 p-0",
547
+ style: {
548
+ color: sectionproperties.greetingtextcolor,
549
+ fontSize: sectionproperties.greetingtextfontsize + 'px',
550
+ lineHeight: sectionproperties.greetingtextfontsize + 'px',
551
+ fontWeight: 400
552
+ }
553
+ }, lang.hello, langdetect == 'en' ? ',' : '،'), /*#__PURE__*/React$1.createElement("p", {
554
+ className: header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 ',
555
+ style: {
556
+ maxWidth: '100px'
557
+ }
558
+ }, fetchAuthorizationQueryContext.data.data.customerinfo.name)))), !fetchAuthorizationQueryContext.data.data.loggedin && /*#__PURE__*/React$1.createElement(Dropdown.Menu, null, /*#__PURE__*/React$1.createElement(Dropdown.Item, {
559
+ onClick: function onClick() {
560
+ routingcountext(StaticPagesLinksContext.Login);
561
+ }
562
+ }, /*#__PURE__*/React$1.createElement("div", {
563
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
564
+ }, /*#__PURE__*/React$1.createElement("p", {
565
+ className: "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
566
+ }, /*#__PURE__*/React$1.createElement(AiOutlineLogin, null), /*#__PURE__*/React$1.createElement("span", {
567
+ className: "ml-2 mr-2"
568
+ }, lang.login)))), /*#__PURE__*/React$1.createElement(Dropdown.Divider, {
569
+ style: {
570
+ marginBottom: 0,
571
+ marginTop: 0
572
+ }
573
+ }), /*#__PURE__*/React$1.createElement(Dropdown.Item, {
574
+ onClick: function onClick() {
575
+ routingcountext(StaticPagesLinksContext.Signup);
576
+ }
577
+ }, /*#__PURE__*/React$1.createElement("div", {
578
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
579
+ }, /*#__PURE__*/React$1.createElement("p", {
580
+ className: "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
581
+ }, /*#__PURE__*/React$1.createElement(AiOutlineUserAdd, null), /*#__PURE__*/React$1.createElement("span", {
582
+ className: "ml-2 mr-2"
583
+ }, lang.signup))))), fetchAuthorizationQueryContext.data.data.loggedin && /*#__PURE__*/React$1.createElement(Dropdown.Menu, {
584
+ style: {
585
+ minWidth: '200px'
586
+ }
587
+ }, /*#__PURE__*/React$1.createElement(Dropdown.Item, null, /*#__PURE__*/React$1.createElement("div", {
588
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
589
+ }, /*#__PURE__*/React$1.createElement("span", {
590
+ style: {
591
+ color: sectionproperties.greetingtextcolor,
592
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
593
+ fontWeight: 400
594
+ }
595
+ }, lang.hello, ","), /*#__PURE__*/React$1.createElement("p", {
596
+ className: "".concat(header_cssstyles.dropdownitem) + ' font-weight-600 ml-1 mr-1 text-overflow text-capitalize dropdownitem m-0 p-0 ',
597
+ style: {
598
+ maxWidth: '120px'
599
+ },
600
+ onClick: function onClick() {
601
+ routingcountext(StaticPagesLinksContext.accountinfo);
602
+ }
603
+ }, fetchAuthorizationQueryContext.data.data.customerinfo.name))), /*#__PURE__*/React$1.createElement(Dropdown.Divider, {
604
+ style: {
605
+ marginBottom: 0,
606
+ marginTop: 0
607
+ }
608
+ }), /*#__PURE__*/React$1.createElement(Dropdown.Item, {
609
+ onClick: function onClick() {
610
+ routingcountext(StaticPagesLinksContext.Ordershistory);
611
+ }
612
+ }, /*#__PURE__*/React$1.createElement("div", {
613
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
614
+ }, /*#__PURE__*/React$1.createElement("p", {
615
+ className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
616
+ }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React$1.createElement(FiShoppingBag, null), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React$1.createElement(CgShoppingBag, null), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React$1.createElement(BsBag, null), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React$1.createElement(BsHandbag, null), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React$1.createElement(FiShoppingCart, null), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React$1.createElement(MdOutlineShoppingCart, null), /*#__PURE__*/React$1.createElement("span", {
617
+ className: "ml-2 mr-2"
618
+ }, lang.orderhistory)))), /*#__PURE__*/React$1.createElement(Dropdown.Divider, {
619
+ style: {
620
+ marginBottom: 0,
621
+ marginTop: 0
622
+ }
623
+ }), /*#__PURE__*/React$1.createElement(Dropdown.Item, {
624
+ onClick: function onClick() {
625
+ routingcountext(StaticPagesLinksContext.Wishlist);
626
+ }
627
+ }, /*#__PURE__*/React$1.createElement("div", {
628
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
629
+ }, /*#__PURE__*/React$1.createElement("p", {
630
+ className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
631
+ }, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React$1.createElement(AiOutlineHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React$1.createElement(AiFillStar, null), /*#__PURE__*/React$1.createElement("span", {
632
+ className: "ml-2 mr-2"
633
+ }, lang.wishlist)))), /*#__PURE__*/React$1.createElement(Dropdown.Divider, {
634
+ style: {
635
+ marginBottom: 0,
636
+ marginTop: 0
637
+ }
638
+ }), /*#__PURE__*/React$1.createElement(Dropdown.Item, {
639
+ onClick: function onClick() {
640
+ routingcountext(StaticPagesLinksContext.Policies);
641
+ }
642
+ }, /*#__PURE__*/React$1.createElement("div", {
643
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
644
+ }, /*#__PURE__*/React$1.createElement("p", {
645
+ className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
646
+ }, /*#__PURE__*/React$1.createElement(MdOutlinePolicy, null), /*#__PURE__*/React$1.createElement("span", {
647
+ className: "ml-2 mr-2"
648
+ }, lang.policies)))), /*#__PURE__*/React$1.createElement(Dropdown.Divider, {
649
+ style: {
650
+ marginBottom: 0,
651
+ marginTop: 0
652
+ }
653
+ }), /*#__PURE__*/React$1.createElement(Dropdown.Item, {
654
+ onClick: function onClick() {
655
+ LogoutMutationContext.mutate();
656
+ }
657
+ }, /*#__PURE__*/React$1.createElement("div", {
658
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
659
+ }, /*#__PURE__*/React$1.createElement("p", {
660
+ className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
661
+ }, /*#__PURE__*/React$1.createElement(BiLogOutCircle, null), /*#__PURE__*/React$1.createElement("span", {
662
+ className: "ml-2 mr-2"
663
+ }, lang.logout)))))), /*#__PURE__*/React$1.createElement("div", {
664
+ className: "d-flex flex-row p-0 align-items-center"
665
+ }, /*#__PURE__*/React$1.createElement("div", {
666
+ style: {
667
+ position: 'relative'
668
+ },
669
+ className: "cursor-pointer d-flex d-flex align-items-center",
670
+ onClick: function onClick() {
671
+ routingcountext(StaticPagesLinksContext.Wishlist);
672
+ }
673
+ }, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React$1.createElement(AiOutlineHeart, {
674
+ className: "".concat(header_cssstyles.wishlist_btn),
675
+ size: sectionproperties.favBtnIconfontsize,
676
+ style: {
677
+ position: 'relative'
678
+ }
679
+ }), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React$1.createElement(AiFillStar, {
680
+ className: "".concat(header_cssstyles.wishlist_btn),
681
+ size: sectionproperties.favBtnIconfontsize,
682
+ style: {
683
+ position: 'relative'
684
+ }
685
+ }), /*#__PURE__*/React$1.createElement("div", {
686
+ className: "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.wishlistbadge)
687
+ }, /*#__PURE__*/React$1.createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), /*#__PURE__*/React$1.createElement("div", {
688
+ className: " d-flex flex-row justify-content-end align-items-center"
689
+ }, /*#__PURE__*/React$1.createElement("div", {
690
+ className: "row w-100 m-0 align-items-center d-flex flex-row justify-content-end",
691
+ style: {
692
+ position: 'relative'
693
+ },
694
+ onClick: function onClick() {
695
+ setsidecartnavshowcontext(true);
696
+ }
697
+ }, /*#__PURE__*/React$1.createElement("div", {
698
+ style: {
699
+ position: 'relative'
700
+ },
701
+ className: "".concat(header_cssstyles.cart_btn) + ' cursor-pointer d-flex align-items-center justify-content-center '
702
+ }, /*#__PURE__*/React$1.createElement("div", {
703
+ className: "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.cartbadge)
704
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0), sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React$1.createElement(FiShoppingBag, {
705
+ size: sectionproperties.cartBtn_iconFontSize
706
+ }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React$1.createElement(CgShoppingBag, {
707
+ size: sectionproperties.cartBtn_iconFontSize
708
+ }), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React$1.createElement(BsBag, {
709
+ size: sectionproperties.cartBtn_iconFontSize
710
+ }), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React$1.createElement(BsHandbag, {
711
+ size: sectionproperties.cartBtn_iconFontSize
712
+ }), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React$1.createElement(FiShoppingCart, {
713
+ size: sectionproperties.cartBtn_iconFontSize
714
+ }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React$1.createElement(MdOutlineShoppingCart, {
715
+ size: sectionproperties.cartBtn_iconFontSize
716
+ })), /*#__PURE__*/React$1.createElement("div", {
717
+ className: langdetect == 'en' ? 'ml-2' : 'mr-2'
718
+ }, /*#__PURE__*/React$1.createElement("div", {
719
+ className: "row m-0 w-100 d-flex align-items-center flex-column justify-content-start"
720
+ }, /*#__PURE__*/React$1.createElement("p", {
721
+ className: "m-0 p-0 w-100",
722
+ style: {
723
+ textAlign: langdetect == 'en' ? 'left' : 'right',
724
+ color: sectionproperties.cartBtnTextcolor,
725
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
726
+ lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
727
+ fontWeight: sectionproperties.cartBtnTextfontweight,
728
+ textTransform: sectionproperties.cartBtnTexttransform,
729
+ cursor: 'pointer'
730
+ }
731
+ }, lang.cart), /*#__PURE__*/React$1.createElement("p", {
732
+ className: "m-0 text-left",
733
+ style: {
734
+ color: sectionproperties.card_secondarycolor,
735
+ fontSize: sectionproperties.secondaryfontsize + 'px',
736
+ fontWeight: sectionproperties.secondaryfontweight,
737
+ cursor: 'pointer'
738
+ }
739
+ }, langdetect == 'en' ? 'EGP' : '', " ", subtotalcart(), " ", langdetect == 'en' ? '' : 'ج.م'))))), /*#__PURE__*/React$1.createElement("div", {
740
+ className: "d-flex flex-row justify-content-end align-items-center",
741
+ onClick: function onClick() {
742
+ if (langdetect == 'en') {
743
+ setlang('ar');
744
+ } else {
745
+ setlang('en');
746
+ }
747
+ }
748
+ }, langdetect == 'en' && /*#__PURE__*/React$1.createElement("div", {
749
+ className: "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
750
+ }), langdetect == 'ar' && /*#__PURE__*/React$1.createElement("div", {
751
+ className: "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
752
+ })))))), /*#__PURE__*/React$1.createElement("div", {
753
+ className: "col-lg-12 p-0 d-flex justify-content-center",
754
+ style: {
755
+ background: sectionproperties.vl_bg
756
+ }
757
+ }, /*#__PURE__*/React$1.createElement("div", {
758
+ className: "".concat(header_cssstyles.divider) + ' '
759
+ })), /*#__PURE__*/React$1.createElement("div", {
760
+ className: "".concat(header_cssstyles.lowerheadercontainer) + ' row w-100 m-0 align-items-center '
761
+ }, /*#__PURE__*/React$1.createElement("div", {
762
+ className: ' col-lg-2 d-flex align-items-center ',
763
+ style: {},
764
+ onClick: function onClick() {
765
+ setdropdownselect(!dropdownselect);
766
+ }
767
+ }, /*#__PURE__*/React$1.createElement("div", {
768
+ className: "".concat(header_cssstyles.categorybtn) + ' categoriesdropdown transformedDropdown d-flex align-items-center justify-content-center '
769
+ }, /*#__PURE__*/React$1.createElement(Dropdown, {
770
+ className: "d-flex align-items-center justify-content-center"
771
+ }, /*#__PURE__*/React$1.createElement(Dropdown.Toggle, {
772
+ className: "d-flex align-items-center justify-content-center"
773
+ }, /*#__PURE__*/React$1.createElement("div", {
774
+ className: "".concat(header_cssstyles.btntextcontainer) + ' row w-100 m-0 align-items-center ',
775
+ style: {
776
+ paddingTop: '7px'
777
+ }
778
+ }, /*#__PURE__*/React$1.createElement("i", {
779
+ className: "h-100 d-flex align-items-center justify-content-center"
780
+ }, /*#__PURE__*/React$1.createElement(HiMenuAlt4, {
781
+ size: 25,
782
+ color: "white"
783
+ })), /*#__PURE__*/React$1.createElement("p", {
784
+ className: langdetect == 'en' ? ' m-0 p-0 ml-2' : ' m-0 p-0 mr-2 '
785
+ }, lang.shopbycategory))), fetchAuthorizationQueryContext.isSuccess && /*#__PURE__*/React$1.createElement(Dropdown.Menu, {
786
+ style: {
787
+ minWidth: '250px',
788
+ marginLeft: '-20px'
789
+ }
790
+ }, fetchAuthorizationQueryContext.data.data.instinfo.instcollections.map(function (item, index) {
791
+ return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Dropdown.Item, {
792
+ onClick: function onClick() {
793
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
794
+ }
795
+ }, /*#__PURE__*/React$1.createElement("div", {
796
+ className: "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
797
+ }, /*#__PURE__*/React$1.createElement("div", {
798
+ className: ' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center '
799
+ }, /*#__PURE__*/React$1.createElement("p", {
800
+ className: "".concat(header_cssstyles.dropdownitem) + ' dropdownitem text-overflow m-0 p-0 '
801
+ }, langdetect == 'en' ? item.title_en : item.title_ar)))), index != fetchAuthorizationQueryContext.data.data.instinfo.instcollections.length - 1 && /*#__PURE__*/React$1.createElement(Dropdown.Divider, null));
802
+ }))))), /*#__PURE__*/React$1.createElement("div", {
803
+ className: "col-lg-10 d-flex flex-row align-items-center justify-content-start"
804
+ }, /*#__PURE__*/React$1.createElement("ul", {
805
+ className: ' mb-0 pb-0 mt-0 d-flex flex-row justify-content-start '
806
+ }, templatepropcontext.pagesnprop.map(function (item, index) {
807
+ var activeclass = '';
808
+
809
+ if (item.isselected) {
810
+ activeclass = header_cssstyles.navbar_item_active;
811
+ }
812
+
813
+ if (item.isnavigation == 1 && item.isactive == 1) {
814
+ return /*#__PURE__*/React$1.createElement(Link, {
815
+ to: item.navigationroute
816
+ }, /*#__PURE__*/React$1.createElement("li", {
817
+ className: "".concat(activeclass),
818
+ style: {
819
+ marginRight: langdetect == 'en' ? '25px' : 0,
820
+ marginLeft: langdetect == 'en' ? 0 : '25px'
821
+ }
822
+ }, /*#__PURE__*/React$1.createElement("div", {
823
+ className: "".concat(header_cssstyles.navbar_item_text)
824
+ }, " ", langdetect == 'en' ? item.pagename : item.pagename_ar)));
825
+ }
826
+ })))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React$1.createElement("div", {
827
+ className: "col-lg-12 p-0"
828
+ }))));
829
+ };
830
+
831
+ var App = function App() {
832
+ return {
833
+ AwesomeButton: AwesomeButton,
834
+ Header8: Header8
835
+ }; // </>
836
+ // you can add here other components that you want to export
837
+ };
838
+
839
+ var App$1 = App();
840
+
841
+ var returnLibrary = function returnLibrary() {
842
+ return /*#__PURE__*/React.createElement(IKContext, {
843
+ publicKey: "public_ro8Tmo5Nlgw12YIFkn9MNUQLvQE=",
844
+ urlEndpoint: "https://ik.imagekit.io/kcrbhhnh0",
845
+ transformationPosition: "path" // authenticationEndpoint="http://www.tab.com/auth"
846
+
847
+ }, /*#__PURE__*/React.createElement(App$1, null));
42
848
  };
43
849
 
44
850
  var index = returnLibrary();