tabexseriescomponents 0.2.1309 → 0.2.1311

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -28137,20 +28137,20 @@ var headerstyles$g = {"header_container":"modernheader-module_header_container__
28137
28137
  styleInject(css_248z$C);
28138
28138
 
28139
28139
  var Searchlist$1 = function Searchlist(props) {
28140
- var lang = props.actions.lang;
28140
+ props.actions.lang;
28141
28141
  var langdetect = props.actions.langdetect;
28142
- var routingcountext = props.actions.routingcountext;
28143
- var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
28142
+ props.actions.routingcountext;
28143
+ props.actions.StaticPagesLinksContext;
28144
28144
  var SearchHeaderInputContext = props.actions.SearchHeaderInputContext;
28145
- var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
28146
- var ikimagecredcontext = props.actions.ikimagecredcontext;
28147
- var authdetailsContext = props.actions.authdetailsContext;
28145
+ props.actions.SearchHeaderMutationContext;
28146
+ props.actions.ikimagecredcontext;
28147
+ props.actions.authdetailsContext;
28148
28148
  var _useState = React.useState(''),
28149
28149
  _useState2 = _slicedToArray__default["default"](_useState, 2),
28150
28150
  sectionproperties = _useState2[0],
28151
28151
  setsectionproperties = _useState2[1];
28152
- var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
28153
- var setsearchbarCanvasContext = props.actions.setsearchbarCanvasContext;
28152
+ props.actions.setSearchHeaderInputContext;
28153
+ props.actions.setsearchbarCanvasContext;
28154
28154
  var _useState3 = React.useState(props.srcfromprops == 'cardssection' ? props.searchinputprops : SearchHeaderInputContext),
28155
28155
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
28156
28156
  searchinput = _useState4[0],
@@ -28168,7 +28168,7 @@ var Searchlist$1 = function Searchlist(props) {
28168
28168
  setsearchinput(props.searchinputprops);
28169
28169
  }
28170
28170
  }, [props.searchinputprops]);
28171
- var searchlist_styles = {
28171
+ ({
28172
28172
  searchcont: glamor.css({
28173
28173
  color: sectionproperties.searchlist_prodNameColor,
28174
28174
  ':hover': {
@@ -28226,151 +28226,13 @@ var Searchlist$1 = function Searchlist(props) {
28226
28226
  // height: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100vh' : props.srcfromprops == 'cardssection' ? '25vh' : '30vh',
28227
28227
  // overflowY: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'scroll' : 'hidden',
28228
28228
  })
28229
- };
28229
+ });
28230
28230
  return /*#__PURE__*/React__default["default"].createElement("div", {
28231
28231
  className: "col-lg-12 p-0 m-0 w-100 allcentered",
28232
28232
  style: {
28233
28233
  zIndex: 1000
28234
28234
  }
28235
- }, sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
28236
- className: props.srcfromprops == 'header' ? "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex d-md-none justify-content-center p-1 ' : "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex justify-content-center p-1 ',
28237
- style: {
28238
- zIndex: 1000,
28239
- width: props.srcfromprops == 'header' ? '300px' : props.srcfromprops == 'headerfullwidth' ? '100%' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100%' : props.srcfromprops == 'headerfullwidth-200' ? '270px' : props.srcfromprops == 'respheader' ? '100%' : props.srcfromprops == 'header-400' ? '400px' : props.srcfromprops == 'header-250' ? '250px' : props.srcfromprops == 'header-300' ? '300px' : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? '90%' : props.srcfromprops == 'ElegantHeader' ? '90%' : '100%',
28240
- top: props.headernameprops == 'categoryfeaturingheader' || props.headernameprops == 'Header_threesectionslogocentered' ? 20 : props.srcfromprops == 'respheader' ? 10 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? 50 : props.srcfromprops == 'ElegantHeader' ? 50 : 10,
28241
- left: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? '' : 0 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? langdetect == 'en' ? '5%' : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'en' ? '5%' : '' : '',
28242
- right: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? 0 : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'ar' ? '5%' : '' : props.srcfromprops == 'Elegant' ? langdetect == 'ar' ? '5%' : '' : '',
28243
- margin: props.srcfromprops == 'respheader' ? 'auto' : ''
28244
- }
28245
- }, SearchHeaderMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
28246
- "class": "row m-0 w-100 d-flex align-items-center justify-content-center h-100 mt-auto mb-auto"
28247
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28248
- "class": "col-lg-12 d-flex align-items-center justify-content-center flex-column h-100"
28249
- }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
28250
- color: "#ccc",
28251
- width: "10px",
28252
- height: "10px",
28253
- duration: "1s"
28254
- }))), !SearchHeaderMutationContext.isLoading && SearchHeaderMutationContext.isSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
28255
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? ' row m-0 w-100 d-flex justify-content-center ' : "".concat(searchlist_styles.searchlist_innercontainer) + ' subscrollbar row m-0 w-100 d-flex justify-content-center ',
28256
- style: {
28257
- overflowX: 'hidden',
28258
- paddingBottom: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '50px' : '0.25rem'
28259
- }
28260
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28261
- "class": "col-lg-12 m-0 w-100 p-0"
28262
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28263
- "class": "row m-0 w-100"
28264
- }, SearchHeaderMutationContext.data.data.products.map(function (item, index) {
28265
- return /*#__PURE__*/React__default["default"].createElement("div", {
28266
- "class": sectionproperties.searchliststyle == 'Vertical' ? 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0' : 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0 d-none d-md-flex',
28267
- style: {
28268
- zIndex: 1000
28269
- },
28270
- onClick: function onClick() {
28271
- routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
28272
- setSearchHeaderInputContext('');
28273
- setsearchinput('');
28274
- setsearchbarCanvasContext(false);
28275
- }
28276
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28277
- "class": "".concat(searchlist_styles.searchcont) + ' col-lg-12 col-md-12 d-flex p-0 cursor-pointer '
28278
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28279
- "class": searchlist_styles.imagecont
28280
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
28281
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
28282
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
28283
- path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
28284
- loading: "lazy",
28285
- style: {
28286
- height: '100%',
28287
- width: '100%',
28288
- objectFit: 'contain',
28289
- borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
28290
- }
28291
- })), /*#__PURE__*/React__default["default"].createElement("div", {
28292
- "class": props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? searchlist_styles.productnamecont + ' col-lg-11 col-md-11 col-sm-9 d-flex ' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? searchlist_styles.productnamecont + ' col-lg-9 col-md-10 col-sm-9 d-flex ' : searchlist_styles.productnamecont + ' col-lg-10 col-md-11 col-sm-9 d-flex ',
28293
- style: {
28294
- alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
28295
- }
28296
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28297
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'row m-0 w-100 d-flex' : 'row m-0 w-100 d-flex',
28298
- style: {
28299
- alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
28300
- }
28301
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28302
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start"
28303
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28304
- "class": "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 '
28305
- }, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28306
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center",
28307
- style: {
28308
- marginTop: sectionproperties.pricingmargintop != undefined ? sectionproperties.pricingmargintop + 'px' : '-0.25rem',
28309
- display: 'row'
28310
- }
28311
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28312
- "class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
28313
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
28314
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? "".concat(searchlist_styles.productSalePricestyles) + ' linethrough mb-0 ml-2 mr-2' : "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
28315
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), index != SearchHeaderMutationContext.data.data.products.length - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
28316
- className: "col-lg-12 col-md-12 p-0"
28317
- }, /*#__PURE__*/React__default["default"].createElement("hr", {
28318
- className: "mt-2 mb-1"
28319
- })));
28320
- }), sectionproperties.searchliststyle == 'Cards' && SearchHeaderMutationContext.data.data.products.map(function (item, index) {
28321
- return /*#__PURE__*/React__default["default"].createElement("div", {
28322
- "class": (props === null || props === void 0 ? void 0 : props.numofcardsprops) != undefined ? ' m-0 w-100 mb-3 d-flex d-md-none col-lg-' + (props === null || props === void 0 ? void 0 : props.numofcardsprops) : 'col-lg-4 m-0 w-100 mb-3 d-flex d-md-none',
28323
- style: {
28324
- zIndex: 1000
28325
- },
28326
- onClick: function onClick() {
28327
- routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
28328
- setSearchHeaderInputContext('');
28329
- setsearchinput('');
28330
- setsearchbarCanvasContext(false);
28331
- }
28332
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28333
- "class": "".concat(searchlist_styles.searchcont) + ' row m-0 w-100 cursor-pointer '
28334
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28335
- "class": ' col-lg-12 col-md-12 d-flex p-0 '
28336
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28337
- "class": searchlist_styles.imagecont + ' w-100 ',
28338
- style: {
28339
- borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
28340
- }
28341
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
28342
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
28343
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
28344
- path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
28345
- loading: "lazy",
28346
- style: {
28347
- height: sectionproperties.searchlist_prodimage_width + '%',
28348
- width: sectionproperties.searchlist_prodimage_width + '%',
28349
- objectFit: 'contain'
28350
- }
28351
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
28352
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
28353
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28354
- "class": props.srcfromprops == 'ElegantHeader' ? "".concat(searchlist_styles.productNameStyles) + ' m-0 wordbreak wordbreak2 p-0 ' : "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 ',
28355
- style: {
28356
- textAlign: 'center'
28357
- }
28358
- }, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28359
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered mt-2"
28360
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28361
- "class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
28362
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
28363
- "class": "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
28364
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))));
28365
- })), SearchHeaderMutationContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
28366
- className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100"
28367
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28368
- className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100"
28369
- }, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
28370
- size: 25
28371
- }), /*#__PURE__*/React__default["default"].createElement("p", {
28372
- className: "font-13 font-weight-500"
28373
- }, lang.nosearchresults)))))));
28235
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, "sadasdasd"), sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React__default["default"].createElement("p", null, "sadasdasd121212"));
28374
28236
  };
28375
28237
 
28376
28238
  function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -57535,7 +57397,7 @@ var Footer8 = function Footer8(props) {
57535
57397
  },
57536
57398
  loading: "lazy"
57537
57399
  }))), sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) == '6972421b79d52' && /*#__PURE__*/React__default["default"].createElement("div", {
57538
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57400
+ "class": "col-lg-12 d-flex justify-content-start align-items-center mb-auto"
57539
57401
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57540
57402
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57541
57403
  onClick: function onClick() {
@@ -57570,7 +57432,23 @@ var Footer8 = function Footer8(props) {
57570
57432
  },
57571
57433
  "class": ""
57572
57434
  }, langdetect == 'en' ? 'Sign up to our newsletter to receive exclusive offers.' : 'اشترك في نشرتنا الإخبارية لتلقي عروض حصرية.')), /*#__PURE__*/React__default["default"].createElement("div", {
57573
- "class": "col-8 col-md-12 text-start"
57435
+ "class": "col-8 col-md-12 d-flex align-items-cnter justify-content-start d-md-none p-0"
57436
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
57437
+ type: "text",
57438
+ className: "".concat(footerStyles.form_control)
57439
+ // value={event.target.value}
57440
+ ,
57441
+ placeholder: "your email",
57442
+ onChange: function onChange(event) {
57443
+ var newslettertemp = _objectSpread$1D({}, newsletter);
57444
+ newslettertemp = event.target.value;
57445
+ setnewsletter(_objectSpread$1D({}, newslettertemp));
57446
+ },
57447
+ style: {
57448
+ background: sectionproperties.input_bgcolor
57449
+ }
57450
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
57451
+ "class": "col-8 col-md-12 d-none align-items-cnter justify-content-start d-md-flex"
57574
57452
  }, /*#__PURE__*/React__default["default"].createElement("input", {
57575
57453
  type: "text",
57576
57454
  className: "".concat(footerStyles.form_control)
@@ -74978,7 +74856,6 @@ var Searchcomponent = function Searchcomponent(props) {
74978
74856
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74979
74857
  var actions = props.actions;
74980
74858
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
74981
- props.actions.SearchHeaderInputContext;
74982
74859
  React.useEffect(function () {
74983
74860
  var secpropobj = {};
74984
74861
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -75033,14 +74910,17 @@ var Searchcomponent = function Searchcomponent(props) {
75033
74910
  type: "text",
75034
74911
  placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
75035
74912
  onChange: function onChange(event) {
75036
- setSearchHeaderInputContext(event.target.value);
74913
+ var text = SearchHeaderInputContext;
74914
+ text = event.target.value;
74915
+ setSearchHeaderInputContext(_objectSpread$15({}, text));
75037
74916
  },
75038
74917
  style: {
75039
74918
  background: 'transparent',
75040
74919
  width: '100%',
75041
74920
  height: '100%',
75042
74921
  paddingLeft: '10px',
75043
- paddingRight: '10px'
74922
+ paddingRight: '10px',
74923
+ color: '#000'
75044
74924
  }
75045
74925
  }), /*#__PURE__*/React__default["default"].createElement(Searchlist$1, {
75046
74926
  sectionpropertiesprops: sectionproperties,
package/dist/index.esm.js CHANGED
@@ -28086,20 +28086,20 @@ var headerstyles$g = {"header_container":"modernheader-module_header_container__
28086
28086
  styleInject(css_248z$C);
28087
28087
 
28088
28088
  var Searchlist$1 = function Searchlist(props) {
28089
- var lang = props.actions.lang;
28089
+ props.actions.lang;
28090
28090
  var langdetect = props.actions.langdetect;
28091
- var routingcountext = props.actions.routingcountext;
28092
- var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
28091
+ props.actions.routingcountext;
28092
+ props.actions.StaticPagesLinksContext;
28093
28093
  var SearchHeaderInputContext = props.actions.SearchHeaderInputContext;
28094
- var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
28095
- var ikimagecredcontext = props.actions.ikimagecredcontext;
28096
- var authdetailsContext = props.actions.authdetailsContext;
28094
+ props.actions.SearchHeaderMutationContext;
28095
+ props.actions.ikimagecredcontext;
28096
+ props.actions.authdetailsContext;
28097
28097
  var _useState = useState(''),
28098
28098
  _useState2 = _slicedToArray(_useState, 2),
28099
28099
  sectionproperties = _useState2[0],
28100
28100
  setsectionproperties = _useState2[1];
28101
- var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
28102
- var setsearchbarCanvasContext = props.actions.setsearchbarCanvasContext;
28101
+ props.actions.setSearchHeaderInputContext;
28102
+ props.actions.setsearchbarCanvasContext;
28103
28103
  var _useState3 = useState(props.srcfromprops == 'cardssection' ? props.searchinputprops : SearchHeaderInputContext),
28104
28104
  _useState4 = _slicedToArray(_useState3, 2),
28105
28105
  searchinput = _useState4[0],
@@ -28117,7 +28117,7 @@ var Searchlist$1 = function Searchlist(props) {
28117
28117
  setsearchinput(props.searchinputprops);
28118
28118
  }
28119
28119
  }, [props.searchinputprops]);
28120
- var searchlist_styles = {
28120
+ ({
28121
28121
  searchcont: css({
28122
28122
  color: sectionproperties.searchlist_prodNameColor,
28123
28123
  ':hover': {
@@ -28175,151 +28175,13 @@ var Searchlist$1 = function Searchlist(props) {
28175
28175
  // height: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100vh' : props.srcfromprops == 'cardssection' ? '25vh' : '30vh',
28176
28176
  // overflowY: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'scroll' : 'hidden',
28177
28177
  })
28178
- };
28178
+ });
28179
28179
  return /*#__PURE__*/React.createElement("div", {
28180
28180
  className: "col-lg-12 p-0 m-0 w-100 allcentered",
28181
28181
  style: {
28182
28182
  zIndex: 1000
28183
28183
  }
28184
- }, sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React.createElement("div", {
28185
- className: props.srcfromprops == 'header' ? "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex d-md-none justify-content-center p-1 ' : "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex justify-content-center p-1 ',
28186
- style: {
28187
- zIndex: 1000,
28188
- width: props.srcfromprops == 'header' ? '300px' : props.srcfromprops == 'headerfullwidth' ? '100%' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100%' : props.srcfromprops == 'headerfullwidth-200' ? '270px' : props.srcfromprops == 'respheader' ? '100%' : props.srcfromprops == 'header-400' ? '400px' : props.srcfromprops == 'header-250' ? '250px' : props.srcfromprops == 'header-300' ? '300px' : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? '90%' : props.srcfromprops == 'ElegantHeader' ? '90%' : '100%',
28189
- top: props.headernameprops == 'categoryfeaturingheader' || props.headernameprops == 'Header_threesectionslogocentered' ? 20 : props.srcfromprops == 'respheader' ? 10 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? 50 : props.srcfromprops == 'ElegantHeader' ? 50 : 10,
28190
- left: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? '' : 0 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? langdetect == 'en' ? '5%' : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'en' ? '5%' : '' : '',
28191
- right: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? 0 : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'ar' ? '5%' : '' : props.srcfromprops == 'Elegant' ? langdetect == 'ar' ? '5%' : '' : '',
28192
- margin: props.srcfromprops == 'respheader' ? 'auto' : ''
28193
- }
28194
- }, SearchHeaderMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
28195
- "class": "row m-0 w-100 d-flex align-items-center justify-content-center h-100 mt-auto mb-auto"
28196
- }, /*#__PURE__*/React.createElement("div", {
28197
- "class": "col-lg-12 d-flex align-items-center justify-content-center flex-column h-100"
28198
- }, /*#__PURE__*/React.createElement(Messaging, {
28199
- color: "#ccc",
28200
- width: "10px",
28201
- height: "10px",
28202
- duration: "1s"
28203
- }))), !SearchHeaderMutationContext.isLoading && SearchHeaderMutationContext.isSuccess && /*#__PURE__*/React.createElement("div", {
28204
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? ' row m-0 w-100 d-flex justify-content-center ' : "".concat(searchlist_styles.searchlist_innercontainer) + ' subscrollbar row m-0 w-100 d-flex justify-content-center ',
28205
- style: {
28206
- overflowX: 'hidden',
28207
- paddingBottom: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '50px' : '0.25rem'
28208
- }
28209
- }, /*#__PURE__*/React.createElement("div", {
28210
- "class": "col-lg-12 m-0 w-100 p-0"
28211
- }, /*#__PURE__*/React.createElement("div", {
28212
- "class": "row m-0 w-100"
28213
- }, SearchHeaderMutationContext.data.data.products.map(function (item, index) {
28214
- return /*#__PURE__*/React.createElement("div", {
28215
- "class": sectionproperties.searchliststyle == 'Vertical' ? 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0' : 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0 d-none d-md-flex',
28216
- style: {
28217
- zIndex: 1000
28218
- },
28219
- onClick: function onClick() {
28220
- routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
28221
- setSearchHeaderInputContext('');
28222
- setsearchinput('');
28223
- setsearchbarCanvasContext(false);
28224
- }
28225
- }, /*#__PURE__*/React.createElement("div", {
28226
- "class": "".concat(searchlist_styles.searchcont) + ' col-lg-12 col-md-12 d-flex p-0 cursor-pointer '
28227
- }, /*#__PURE__*/React.createElement("div", {
28228
- "class": searchlist_styles.imagecont
28229
- }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
28230
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
28231
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
28232
- path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
28233
- loading: "lazy",
28234
- style: {
28235
- height: '100%',
28236
- width: '100%',
28237
- objectFit: 'contain',
28238
- borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
28239
- }
28240
- })), /*#__PURE__*/React.createElement("div", {
28241
- "class": props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? searchlist_styles.productnamecont + ' col-lg-11 col-md-11 col-sm-9 d-flex ' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? searchlist_styles.productnamecont + ' col-lg-9 col-md-10 col-sm-9 d-flex ' : searchlist_styles.productnamecont + ' col-lg-10 col-md-11 col-sm-9 d-flex ',
28242
- style: {
28243
- alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
28244
- }
28245
- }, /*#__PURE__*/React.createElement("div", {
28246
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'row m-0 w-100 d-flex' : 'row m-0 w-100 d-flex',
28247
- style: {
28248
- alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
28249
- }
28250
- }, /*#__PURE__*/React.createElement("div", {
28251
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start"
28252
- }, /*#__PURE__*/React.createElement("p", {
28253
- "class": "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 '
28254
- }, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React.createElement("div", {
28255
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center",
28256
- style: {
28257
- marginTop: sectionproperties.pricingmargintop != undefined ? sectionproperties.pricingmargintop + 'px' : '-0.25rem',
28258
- display: 'row'
28259
- }
28260
- }, /*#__PURE__*/React.createElement("p", {
28261
- "class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
28262
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React.createElement("p", {
28263
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? "".concat(searchlist_styles.productSalePricestyles) + ' linethrough mb-0 ml-2 mr-2' : "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
28264
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), index != SearchHeaderMutationContext.data.data.products.length - 1 && /*#__PURE__*/React.createElement("div", {
28265
- className: "col-lg-12 col-md-12 p-0"
28266
- }, /*#__PURE__*/React.createElement("hr", {
28267
- className: "mt-2 mb-1"
28268
- })));
28269
- }), sectionproperties.searchliststyle == 'Cards' && SearchHeaderMutationContext.data.data.products.map(function (item, index) {
28270
- return /*#__PURE__*/React.createElement("div", {
28271
- "class": (props === null || props === void 0 ? void 0 : props.numofcardsprops) != undefined ? ' m-0 w-100 mb-3 d-flex d-md-none col-lg-' + (props === null || props === void 0 ? void 0 : props.numofcardsprops) : 'col-lg-4 m-0 w-100 mb-3 d-flex d-md-none',
28272
- style: {
28273
- zIndex: 1000
28274
- },
28275
- onClick: function onClick() {
28276
- routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
28277
- setSearchHeaderInputContext('');
28278
- setsearchinput('');
28279
- setsearchbarCanvasContext(false);
28280
- }
28281
- }, /*#__PURE__*/React.createElement("div", {
28282
- "class": "".concat(searchlist_styles.searchcont) + ' row m-0 w-100 cursor-pointer '
28283
- }, /*#__PURE__*/React.createElement("div", {
28284
- "class": ' col-lg-12 col-md-12 d-flex p-0 '
28285
- }, /*#__PURE__*/React.createElement("div", {
28286
- "class": searchlist_styles.imagecont + ' w-100 ',
28287
- style: {
28288
- borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
28289
- }
28290
- }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
28291
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
28292
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
28293
- path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
28294
- loading: "lazy",
28295
- style: {
28296
- height: sectionproperties.searchlist_prodimage_width + '%',
28297
- width: sectionproperties.searchlist_prodimage_width + '%',
28298
- objectFit: 'contain'
28299
- }
28300
- }))), /*#__PURE__*/React.createElement("div", {
28301
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
28302
- }, /*#__PURE__*/React.createElement("p", {
28303
- "class": props.srcfromprops == 'ElegantHeader' ? "".concat(searchlist_styles.productNameStyles) + ' m-0 wordbreak wordbreak2 p-0 ' : "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 ',
28304
- style: {
28305
- textAlign: 'center'
28306
- }
28307
- }, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React.createElement("div", {
28308
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered mt-2"
28309
- }, /*#__PURE__*/React.createElement("p", {
28310
- "class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
28311
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React.createElement("p", {
28312
- "class": "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
28313
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))));
28314
- })), SearchHeaderMutationContext.data.data.products.length == 0 && /*#__PURE__*/React.createElement("div", {
28315
- className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100"
28316
- }, /*#__PURE__*/React.createElement("div", {
28317
- className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100"
28318
- }, /*#__PURE__*/React.createElement(FiLayers, {
28319
- size: 25
28320
- }), /*#__PURE__*/React.createElement("p", {
28321
- className: "font-13 font-weight-500"
28322
- }, lang.nosearchresults)))))));
28184
+ }, /*#__PURE__*/React.createElement("p", null, "sadasdasd"), sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React.createElement("p", null, "sadasdasd121212"));
28323
28185
  };
28324
28186
 
28325
28187
  function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -57484,7 +57346,7 @@ var Footer8 = function Footer8(props) {
57484
57346
  },
57485
57347
  loading: "lazy"
57486
57348
  }))), sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) == '6972421b79d52' && /*#__PURE__*/React.createElement("div", {
57487
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57349
+ "class": "col-lg-12 d-flex justify-content-start align-items-center mb-auto"
57488
57350
  }, /*#__PURE__*/React.createElement("div", {
57489
57351
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57490
57352
  onClick: function onClick() {
@@ -57519,7 +57381,23 @@ var Footer8 = function Footer8(props) {
57519
57381
  },
57520
57382
  "class": ""
57521
57383
  }, langdetect == 'en' ? 'Sign up to our newsletter to receive exclusive offers.' : 'اشترك في نشرتنا الإخبارية لتلقي عروض حصرية.')), /*#__PURE__*/React.createElement("div", {
57522
- "class": "col-8 col-md-12 text-start"
57384
+ "class": "col-8 col-md-12 d-flex align-items-cnter justify-content-start d-md-none p-0"
57385
+ }, /*#__PURE__*/React.createElement("input", {
57386
+ type: "text",
57387
+ className: "".concat(footerStyles.form_control)
57388
+ // value={event.target.value}
57389
+ ,
57390
+ placeholder: "your email",
57391
+ onChange: function onChange(event) {
57392
+ var newslettertemp = _objectSpread$1D({}, newsletter);
57393
+ newslettertemp = event.target.value;
57394
+ setnewsletter(_objectSpread$1D({}, newslettertemp));
57395
+ },
57396
+ style: {
57397
+ background: sectionproperties.input_bgcolor
57398
+ }
57399
+ })), /*#__PURE__*/React.createElement("div", {
57400
+ "class": "col-8 col-md-12 d-none align-items-cnter justify-content-start d-md-flex"
57523
57401
  }, /*#__PURE__*/React.createElement("input", {
57524
57402
  type: "text",
57525
57403
  className: "".concat(footerStyles.form_control)
@@ -74927,7 +74805,6 @@ var Searchcomponent = function Searchcomponent(props) {
74927
74805
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74928
74806
  var actions = props.actions;
74929
74807
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
74930
- props.actions.SearchHeaderInputContext;
74931
74808
  useEffect(function () {
74932
74809
  var secpropobj = {};
74933
74810
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -74982,14 +74859,17 @@ var Searchcomponent = function Searchcomponent(props) {
74982
74859
  type: "text",
74983
74860
  placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
74984
74861
  onChange: function onChange(event) {
74985
- setSearchHeaderInputContext(event.target.value);
74862
+ var text = SearchHeaderInputContext;
74863
+ text = event.target.value;
74864
+ setSearchHeaderInputContext(_objectSpread$15({}, text));
74986
74865
  },
74987
74866
  style: {
74988
74867
  background: 'transparent',
74989
74868
  width: '100%',
74990
74869
  height: '100%',
74991
74870
  paddingLeft: '10px',
74992
- paddingRight: '10px'
74871
+ paddingRight: '10px',
74872
+ color: '#000'
74993
74873
  }
74994
74874
  }), /*#__PURE__*/React.createElement(Searchlist$1, {
74995
74875
  sectionpropertiesprops: sectionproperties,
package/dist/index.umd.js CHANGED
@@ -27942,20 +27942,20 @@
27942
27942
  styleInject(css_248z$C);
27943
27943
 
27944
27944
  var Searchlist$1 = function Searchlist(props) {
27945
- var lang = props.actions.lang;
27945
+ props.actions.lang;
27946
27946
  var langdetect = props.actions.langdetect;
27947
- var routingcountext = props.actions.routingcountext;
27948
- var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27947
+ props.actions.routingcountext;
27948
+ props.actions.StaticPagesLinksContext;
27949
27949
  var SearchHeaderInputContext = props.actions.SearchHeaderInputContext;
27950
- var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
27951
- var ikimagecredcontext = props.actions.ikimagecredcontext;
27952
- var authdetailsContext = props.actions.authdetailsContext;
27950
+ props.actions.SearchHeaderMutationContext;
27951
+ props.actions.ikimagecredcontext;
27952
+ props.actions.authdetailsContext;
27953
27953
  var _useState = React.useState(''),
27954
27954
  _useState2 = _slicedToArray__default["default"](_useState, 2),
27955
27955
  sectionproperties = _useState2[0],
27956
27956
  setsectionproperties = _useState2[1];
27957
- var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
27958
- var setsearchbarCanvasContext = props.actions.setsearchbarCanvasContext;
27957
+ props.actions.setSearchHeaderInputContext;
27958
+ props.actions.setsearchbarCanvasContext;
27959
27959
  var _useState3 = React.useState(props.srcfromprops == 'cardssection' ? props.searchinputprops : SearchHeaderInputContext),
27960
27960
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
27961
27961
  searchinput = _useState4[0],
@@ -27973,7 +27973,7 @@
27973
27973
  setsearchinput(props.searchinputprops);
27974
27974
  }
27975
27975
  }, [props.searchinputprops]);
27976
- var searchlist_styles = {
27976
+ ({
27977
27977
  searchcont: glamor.css({
27978
27978
  color: sectionproperties.searchlist_prodNameColor,
27979
27979
  ':hover': {
@@ -28031,151 +28031,13 @@
28031
28031
  // height: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100vh' : props.srcfromprops == 'cardssection' ? '25vh' : '30vh',
28032
28032
  // overflowY: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'scroll' : 'hidden',
28033
28033
  })
28034
- };
28034
+ });
28035
28035
  return /*#__PURE__*/React__default["default"].createElement("div", {
28036
28036
  className: "col-lg-12 p-0 m-0 w-100 allcentered",
28037
28037
  style: {
28038
28038
  zIndex: 1000
28039
28039
  }
28040
- }, sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
28041
- className: props.srcfromprops == 'header' ? "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex d-md-none justify-content-center p-1 ' : "".concat(searchlist_styles.searchlist_outercontainer) + ' m-0 row d-flex justify-content-center p-1 ',
28042
- style: {
28043
- zIndex: 1000,
28044
- width: props.srcfromprops == 'header' ? '300px' : props.srcfromprops == 'headerfullwidth' ? '100%' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '100%' : props.srcfromprops == 'headerfullwidth-200' ? '270px' : props.srcfromprops == 'respheader' ? '100%' : props.srcfromprops == 'header-400' ? '400px' : props.srcfromprops == 'header-250' ? '250px' : props.srcfromprops == 'header-300' ? '300px' : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? '90%' : props.srcfromprops == 'ElegantHeader' ? '90%' : '100%',
28045
- top: props.headernameprops == 'categoryfeaturingheader' || props.headernameprops == 'Header_threesectionslogocentered' ? 20 : props.srcfromprops == 'respheader' ? 10 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? 50 : props.srcfromprops == 'ElegantHeader' ? 50 : 10,
28046
- left: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? '' : 0 : props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? langdetect == 'en' ? '5%' : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'en' ? '5%' : '' : '',
28047
- right: props.srcfromprops == 'respheader' ? 0 : props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250' ? langdetect == 'en' ? 0 : '' : props.srcfromprops == 'ElegantHeader' ? langdetect == 'ar' ? '5%' : '' : props.srcfromprops == 'Elegant' ? langdetect == 'ar' ? '5%' : '' : '',
28048
- margin: props.srcfromprops == 'respheader' ? 'auto' : ''
28049
- }
28050
- }, SearchHeaderMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
28051
- "class": "row m-0 w-100 d-flex align-items-center justify-content-center h-100 mt-auto mb-auto"
28052
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28053
- "class": "col-lg-12 d-flex align-items-center justify-content-center flex-column h-100"
28054
- }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
28055
- color: "#ccc",
28056
- width: "10px",
28057
- height: "10px",
28058
- duration: "1s"
28059
- }))), !SearchHeaderMutationContext.isLoading && SearchHeaderMutationContext.isSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
28060
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? ' row m-0 w-100 d-flex justify-content-center ' : "".concat(searchlist_styles.searchlist_innercontainer) + ' subscrollbar row m-0 w-100 d-flex justify-content-center ',
28061
- style: {
28062
- overflowX: 'hidden',
28063
- paddingBottom: props.srcfromprops == 'searchlistsliderheaderfullwidth' ? '50px' : '0.25rem'
28064
- }
28065
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28066
- "class": "col-lg-12 m-0 w-100 p-0"
28067
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28068
- "class": "row m-0 w-100"
28069
- }, SearchHeaderMutationContext.data.data.products.map(function (item, index) {
28070
- return /*#__PURE__*/React__default["default"].createElement("div", {
28071
- "class": sectionproperties.searchliststyle == 'Vertical' ? 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0' : 'col-lg-12 m-0 w-100 p-1 pt-0 pb-0 d-none d-md-flex',
28072
- style: {
28073
- zIndex: 1000
28074
- },
28075
- onClick: function onClick() {
28076
- routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
28077
- setSearchHeaderInputContext('');
28078
- setsearchinput('');
28079
- setsearchbarCanvasContext(false);
28080
- }
28081
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28082
- "class": "".concat(searchlist_styles.searchcont) + ' col-lg-12 col-md-12 d-flex p-0 cursor-pointer '
28083
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28084
- "class": searchlist_styles.imagecont
28085
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
28086
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
28087
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
28088
- path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
28089
- loading: "lazy",
28090
- style: {
28091
- height: '100%',
28092
- width: '100%',
28093
- objectFit: 'contain',
28094
- borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
28095
- }
28096
- })), /*#__PURE__*/React__default["default"].createElement("div", {
28097
- "class": props.srcfromprops == 'StylishHeader' || props.srcfromprops == 'modernheader' ? searchlist_styles.productnamecont + ' col-lg-11 col-md-11 col-sm-9 d-flex ' : props.srcfromprops == 'searchlistsliderheaderfullwidth' ? searchlist_styles.productnamecont + ' col-lg-9 col-md-10 col-sm-9 d-flex ' : searchlist_styles.productnamecont + ' col-lg-10 col-md-11 col-sm-9 d-flex ',
28098
- style: {
28099
- alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
28100
- }
28101
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28102
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? 'row m-0 w-100 d-flex' : 'row m-0 w-100 d-flex',
28103
- style: {
28104
- alignItems: sectionproperties.searchlistshowprice == 'Show' ? 'start' : 'center'
28105
- }
28106
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28107
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start"
28108
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28109
- "class": "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 '
28110
- }, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28111
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center",
28112
- style: {
28113
- marginTop: sectionproperties.pricingmargintop != undefined ? sectionproperties.pricingmargintop + 'px' : '-0.25rem',
28114
- display: 'row'
28115
- }
28116
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28117
- "class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
28118
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
28119
- "class": props.srcfromprops == 'searchlistsliderheaderfullwidth' ? "".concat(searchlist_styles.productSalePricestyles) + ' linethrough mb-0 ml-2 mr-2' : "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
28120
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), index != SearchHeaderMutationContext.data.data.products.length - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
28121
- className: "col-lg-12 col-md-12 p-0"
28122
- }, /*#__PURE__*/React__default["default"].createElement("hr", {
28123
- className: "mt-2 mb-1"
28124
- })));
28125
- }), sectionproperties.searchliststyle == 'Cards' && SearchHeaderMutationContext.data.data.products.map(function (item, index) {
28126
- return /*#__PURE__*/React__default["default"].createElement("div", {
28127
- "class": (props === null || props === void 0 ? void 0 : props.numofcardsprops) != undefined ? ' m-0 w-100 mb-3 d-flex d-md-none col-lg-' + (props === null || props === void 0 ? void 0 : props.numofcardsprops) : 'col-lg-4 m-0 w-100 mb-3 d-flex d-md-none',
28128
- style: {
28129
- zIndex: 1000
28130
- },
28131
- onClick: function onClick() {
28132
- routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
28133
- setSearchHeaderInputContext('');
28134
- setsearchinput('');
28135
- setsearchbarCanvasContext(false);
28136
- }
28137
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28138
- "class": "".concat(searchlist_styles.searchcont) + ' row m-0 w-100 cursor-pointer '
28139
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28140
- "class": ' col-lg-12 col-md-12 d-flex p-0 '
28141
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28142
- "class": searchlist_styles.imagecont + ' w-100 ',
28143
- style: {
28144
- borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px'
28145
- }
28146
- }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
28147
- urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
28148
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
28149
- path: '/tr:w-' + sectionproperties.searchlistimagetr_w + ',h-' + sectionproperties.searchlistimagetr_h + '/' + item.defaultimagepath,
28150
- loading: "lazy",
28151
- style: {
28152
- height: sectionproperties.searchlist_prodimage_width + '%',
28153
- width: sectionproperties.searchlist_prodimage_width + '%',
28154
- objectFit: 'contain'
28155
- }
28156
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
28157
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
28158
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28159
- "class": props.srcfromprops == 'ElegantHeader' ? "".concat(searchlist_styles.productNameStyles) + ' m-0 wordbreak wordbreak2 p-0 ' : "".concat(searchlist_styles.productNameStyles) + ' m-0 text-overflow p-0 ',
28160
- style: {
28161
- textAlign: 'center'
28162
- }
28163
- }, langdetect == 'en' ? item.name_en : item.name_ar)), sectionproperties.searchlistshowprice == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
28164
- "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered mt-2"
28165
- }, /*#__PURE__*/React__default["default"].createElement("p", {
28166
- "class": "".concat(searchlist_styles.productPricestyles) + ' m-0 '
28167
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
28168
- "class": "".concat(searchlist_styles.productSalePricestyles) + ' linethrough ml-2 mr-2 mb-0'
28169
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.defaultprice, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))));
28170
- })), SearchHeaderMutationContext.data.data.products.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
28171
- className: "row m-0 w-100 d-flex align-items-center justify-content-center h-100"
28172
- }, /*#__PURE__*/React__default["default"].createElement("div", {
28173
- className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100"
28174
- }, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
28175
- size: 25
28176
- }), /*#__PURE__*/React__default["default"].createElement("p", {
28177
- className: "font-13 font-weight-500"
28178
- }, lang.nosearchresults)))))));
28040
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, "sadasdasd"), sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && /*#__PURE__*/React__default["default"].createElement("p", null, "sadasdasd121212"));
28179
28041
  };
28180
28042
 
28181
28043
  function ownKeys$2d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -57340,7 +57202,7 @@
57340
57202
  },
57341
57203
  loading: "lazy"
57342
57204
  }))), sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) == '6972421b79d52' && /*#__PURE__*/React__default["default"].createElement("div", {
57343
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57205
+ "class": "col-lg-12 d-flex justify-content-start align-items-center mb-auto"
57344
57206
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57345
57207
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57346
57208
  onClick: function onClick() {
@@ -57375,7 +57237,23 @@
57375
57237
  },
57376
57238
  "class": ""
57377
57239
  }, langdetect == 'en' ? 'Sign up to our newsletter to receive exclusive offers.' : 'اشترك في نشرتنا الإخبارية لتلقي عروض حصرية.')), /*#__PURE__*/React__default["default"].createElement("div", {
57378
- "class": "col-8 col-md-12 text-start"
57240
+ "class": "col-8 col-md-12 d-flex align-items-cnter justify-content-start d-md-none p-0"
57241
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
57242
+ type: "text",
57243
+ className: "".concat(footerStyles.form_control)
57244
+ // value={event.target.value}
57245
+ ,
57246
+ placeholder: "your email",
57247
+ onChange: function onChange(event) {
57248
+ var newslettertemp = _objectSpread$1D({}, newsletter);
57249
+ newslettertemp = event.target.value;
57250
+ setnewsletter(_objectSpread$1D({}, newslettertemp));
57251
+ },
57252
+ style: {
57253
+ background: sectionproperties.input_bgcolor
57254
+ }
57255
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
57256
+ "class": "col-8 col-md-12 d-none align-items-cnter justify-content-start d-md-flex"
57379
57257
  }, /*#__PURE__*/React__default["default"].createElement("input", {
57380
57258
  type: "text",
57381
57259
  className: "".concat(footerStyles.form_control)
@@ -74783,7 +74661,6 @@
74783
74661
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74784
74662
  var actions = props.actions;
74785
74663
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
74786
- props.actions.SearchHeaderInputContext;
74787
74664
  React.useEffect(function () {
74788
74665
  var secpropobj = {};
74789
74666
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -74838,14 +74715,17 @@
74838
74715
  type: "text",
74839
74716
  placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
74840
74717
  onChange: function onChange(event) {
74841
- setSearchHeaderInputContext(event.target.value);
74718
+ var text = SearchHeaderInputContext;
74719
+ text = event.target.value;
74720
+ setSearchHeaderInputContext(_objectSpread$15({}, text));
74842
74721
  },
74843
74722
  style: {
74844
74723
  background: 'transparent',
74845
74724
  width: '100%',
74846
74725
  height: '100%',
74847
74726
  paddingLeft: '10px',
74848
- paddingRight: '10px'
74727
+ paddingRight: '10px',
74728
+ color: '#000'
74849
74729
  }
74850
74730
  }), /*#__PURE__*/React__default["default"].createElement(Searchlist$1, {
74851
74731
  sectionpropertiesprops: sectionproperties,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.2.1309",
3
+ "version": "0.2.1311",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",