tabexseriescomponents 0.2.1310 → 0.2.1312

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; }
@@ -57501,7 +57363,7 @@ var Footer8 = function Footer8(props) {
57501
57363
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57502
57364
  "class": "row m-0 w-100"
57503
57365
  }, sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instid) != '69020f4494f66' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) != '6972421b79d52' && /*#__PURE__*/React__default["default"].createElement("div", {
57504
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57366
+ "class": "col-lg-12 p-md-0 d-flex justify-content-start align-items-center mb-auto"
57505
57367
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57506
57368
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57507
57369
  onClick: function onClick() {
@@ -57518,7 +57380,7 @@ var Footer8 = function Footer8(props) {
57518
57380
  },
57519
57381
  loading: "lazy"
57520
57382
  }))), sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) == '69020f4494f66' && /*#__PURE__*/React__default["default"].createElement("div", {
57521
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57383
+ "class": "col-lg-12 p-md-0 d-flex justify-content-start align-items-center mb-auto"
57522
57384
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57523
57385
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57524
57386
  onClick: function onClick() {
@@ -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 p-md-0 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() {
@@ -74994,7 +74856,6 @@ var Searchcomponent = function Searchcomponent(props) {
74994
74856
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74995
74857
  var actions = props.actions;
74996
74858
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
74997
- props.actions.SearchHeaderInputContext;
74998
74859
  React.useEffect(function () {
74999
74860
  var secpropobj = {};
75000
74861
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -75049,14 +74910,17 @@ var Searchcomponent = function Searchcomponent(props) {
75049
74910
  type: "text",
75050
74911
  placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
75051
74912
  onChange: function onChange(event) {
75052
- setSearchHeaderInputContext(event.target.value);
74913
+ var text = SearchHeaderInputContext;
74914
+ text = event.target.value;
74915
+ setSearchHeaderInputContext(_objectSpread$15({}, text));
75053
74916
  },
75054
74917
  style: {
75055
74918
  background: 'transparent',
75056
74919
  width: '100%',
75057
74920
  height: '100%',
75058
74921
  paddingLeft: '10px',
75059
- paddingRight: '10px'
74922
+ paddingRight: '10px',
74923
+ color: '#000'
75060
74924
  }
75061
74925
  }), /*#__PURE__*/React__default["default"].createElement(Searchlist$1, {
75062
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; }
@@ -57450,7 +57312,7 @@ var Footer8 = function Footer8(props) {
57450
57312
  }, /*#__PURE__*/React.createElement("div", {
57451
57313
  "class": "row m-0 w-100"
57452
57314
  }, sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instid) != '69020f4494f66' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) != '6972421b79d52' && /*#__PURE__*/React.createElement("div", {
57453
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57315
+ "class": "col-lg-12 p-md-0 d-flex justify-content-start align-items-center mb-auto"
57454
57316
  }, /*#__PURE__*/React.createElement("div", {
57455
57317
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57456
57318
  onClick: function onClick() {
@@ -57467,7 +57329,7 @@ var Footer8 = function Footer8(props) {
57467
57329
  },
57468
57330
  loading: "lazy"
57469
57331
  }))), sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) == '69020f4494f66' && /*#__PURE__*/React.createElement("div", {
57470
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57332
+ "class": "col-lg-12 p-md-0 d-flex justify-content-start align-items-center mb-auto"
57471
57333
  }, /*#__PURE__*/React.createElement("div", {
57472
57334
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57473
57335
  onClick: function onClick() {
@@ -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 p-md-0 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() {
@@ -74943,7 +74805,6 @@ var Searchcomponent = function Searchcomponent(props) {
74943
74805
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74944
74806
  var actions = props.actions;
74945
74807
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
74946
- props.actions.SearchHeaderInputContext;
74947
74808
  useEffect(function () {
74948
74809
  var secpropobj = {};
74949
74810
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -74998,14 +74859,17 @@ var Searchcomponent = function Searchcomponent(props) {
74998
74859
  type: "text",
74999
74860
  placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
75000
74861
  onChange: function onChange(event) {
75001
- setSearchHeaderInputContext(event.target.value);
74862
+ var text = SearchHeaderInputContext;
74863
+ text = event.target.value;
74864
+ setSearchHeaderInputContext(_objectSpread$15({}, text));
75002
74865
  },
75003
74866
  style: {
75004
74867
  background: 'transparent',
75005
74868
  width: '100%',
75006
74869
  height: '100%',
75007
74870
  paddingLeft: '10px',
75008
- paddingRight: '10px'
74871
+ paddingRight: '10px',
74872
+ color: '#000'
75009
74873
  }
75010
74874
  }), /*#__PURE__*/React.createElement(Searchlist$1, {
75011
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; }
@@ -57306,7 +57168,7 @@
57306
57168
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57307
57169
  "class": "row m-0 w-100"
57308
57170
  }, sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instid) != '69020f4494f66' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) != '6972421b79d52' && /*#__PURE__*/React__default["default"].createElement("div", {
57309
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57171
+ "class": "col-lg-12 p-md-0 d-flex justify-content-start align-items-center mb-auto"
57310
57172
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57311
57173
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57312
57174
  onClick: function onClick() {
@@ -57323,7 +57185,7 @@
57323
57185
  },
57324
57186
  loading: "lazy"
57325
57187
  }))), sectionproperties.showlogo == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) == '69020f4494f66' && /*#__PURE__*/React__default["default"].createElement("div", {
57326
- "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center mb-auto"
57188
+ "class": "col-lg-12 p-md-0 d-flex justify-content-start align-items-center mb-auto"
57327
57189
  }, /*#__PURE__*/React__default["default"].createElement("div", {
57328
57190
  "class": "".concat(footerStyles.logoStyles) + ' d-flex justify-content-start align-items-center cursor-pointer ',
57329
57191
  onClick: function onClick() {
@@ -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 p-md-0 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() {
@@ -74799,7 +74661,6 @@
74799
74661
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74800
74662
  var actions = props.actions;
74801
74663
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
74802
- props.actions.SearchHeaderInputContext;
74803
74664
  React.useEffect(function () {
74804
74665
  var secpropobj = {};
74805
74666
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -74854,14 +74715,17 @@
74854
74715
  type: "text",
74855
74716
  placeholder: langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar,
74856
74717
  onChange: function onChange(event) {
74857
- setSearchHeaderInputContext(event.target.value);
74718
+ var text = SearchHeaderInputContext;
74719
+ text = event.target.value;
74720
+ setSearchHeaderInputContext(_objectSpread$15({}, text));
74858
74721
  },
74859
74722
  style: {
74860
74723
  background: 'transparent',
74861
74724
  width: '100%',
74862
74725
  height: '100%',
74863
74726
  paddingLeft: '10px',
74864
- paddingRight: '10px'
74727
+ paddingRight: '10px',
74728
+ color: '#000'
74865
74729
  }
74866
74730
  }), /*#__PURE__*/React__default["default"].createElement(Searchlist$1, {
74867
74731
  sectionpropertiesprops: sectionproperties,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.2.1310",
3
+ "version": "0.2.1312",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",