tabexseriescomponents 0.0.261 → 0.0.263

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -198,6 +198,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
198
198
  _this.state = {
199
199
  lang: {
200
200
  en: (_en = {
201
+ sendcode: 'Send code',
202
+ verifycode: 'Verify Code',
203
+ writevalidemail: 'Please write a valid email',
201
204
  loginregister: 'Login/Register',
202
205
  pleaselogintocheckout: 'Please login in order to checkout',
203
206
  reservationtime: 'Time',
@@ -268,6 +271,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
268
271
  orsignupwith: 'Or Sign up with'
269
272
  }, _defineProperty(_en, "price", 'Price'), _defineProperty(_en, "relatedproducts", 'Related products'), _defineProperty(_en, "qty", 'QTY'), _defineProperty(_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty(_en, "shopnow", 'Shop now'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "otherinformation", 'Other information'), _defineProperty(_en, "productname", 'Product name'), _defineProperty(_en, "quantity", 'Quantity'), _defineProperty(_en, "orderid", 'Order ID'), _defineProperty(_en, "numberofproducts", 'Number of products'), _defineProperty(_en, "checkyourorder", 'Check your order'), _defineProperty(_en, "search", 'Search'), _defineProperty(_en, "searchproducts", 'Search for products...'), _defineProperty(_en, "choosecity", 'Choose city'), _defineProperty(_en, "choosestategov", 'Choose state/governorate'), _defineProperty(_en, "choosecountry", 'Choose country'), _defineProperty(_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty(_en, "nosearchresults", 'No search results'), _defineProperty(_en, "sale", 'Sale'), _defineProperty(_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty(_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty(_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty(_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty(_en, "promocoderemoved", 'Promo code is removed'), _defineProperty(_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty(_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty(_en, "addedtowishlist", 'Added to your favourites'), _defineProperty(_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty(_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty(_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty(_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty(_en, "subtotal", 'Sub total'), _defineProperty(_en, "discount", 'Discount'), _defineProperty(_en, "outofzone", 'Out of zone'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "cod", 'Cash on Delivery'), _defineProperty(_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty(_en, "onlinepayment", 'Online Payment'), _defineProperty(_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty(_en, "shippingfees", 'Shipping fees'), _defineProperty(_en, "shippingaddress", 'Shipping address'), _defineProperty(_en, "cardnumber", 'Card number'), _defineProperty(_en, "year", 'Year'), _defineProperty(_en, "month", 'Month'), _defineProperty(_en, "cvv", 'CVV'), _defineProperty(_en, "nameoncard", 'Name On Card'), _defineProperty(_en, "country", 'Country'), _defineProperty(_en, "addressdetails", 'ِAddress details'), _defineProperty(_en, "stategov", 'State/Governorate'), _defineProperty(_en, "city", 'City'), _defineProperty(_en, "paymentmethod", 'Payment method'), _defineProperty(_en, "productimage", 'Product image'), _defineProperty(_en, "orderdetails", 'Order details'), _defineProperty(_en, "orderinvoice", 'Order invoice'), _defineProperty(_en, "promocodediscount", 'Promo code discount'), _defineProperty(_en, "address", 'Address'), _defineProperty(_en, "update", 'Update'), _defineProperty(_en, "phonenumber", 'Mobile number'), _defineProperty(_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty(_en, "name", 'Name'), _defineProperty(_en, "email", 'Email'), _defineProperty(_en, "password", 'Password'), _defineProperty(_en, "confirmpassword", 'Confirm password'), _defineProperty(_en, "showmore", 'Show more'), _defineProperty(_en, "showless", 'Show less'), _defineProperty(_en, "contactdetails", 'Contact Information'), _defineProperty(_en, "asaguest", 'As a guest'), _defineProperty(_en, "choosecountryfirst", 'Please choose country first'), _defineProperty(_en, "security", 'Security'), _defineProperty(_en, "personalinformation", 'Personal Information'), _defineProperty(_en, "contactus", 'Contact us'), _defineProperty(_en, "slogan", 'Your website & mobile application in one place'), _defineProperty(_en, "recent", 'Recent'), _defineProperty(_en, "oldest", 'Oldest'), _defineProperty(_en, "pricehightolow", 'High to low'), _defineProperty(_en, "pricelowtohigh", 'Low to High'), _defineProperty(_en, "pleasecompleteaddressmissingfields", 'Please complete the missing address fields'), _en),
270
273
  ar: (_ar = {
274
+ sendcode: 'إرسل الرمز',
275
+ verifycode: 'التحقق من كود',
276
+ writevalidemail: 'الرجاء كتابة بريد إلكتروني صالح',
271
277
  pleasecompleteaddressmissingfields: 'من فضلك اكمل باقى بيانات العنوان',
272
278
  loginregister: 'تسجيل الدخول/إنشاء حساب جديد',
273
279
  pleaselogintocheckout: 'قم بتسجيل دخول لاستكمال طلبك',
@@ -680,7 +686,7 @@ var Login = function Login(props) {
680
686
  position: 'relative',
681
687
  display: 'flex',
682
688
  alignItems: 'center'
683
- }, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "height", '35px'), _defineProperty(_css, "padding", '0 30px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
689
+ }, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "height", '35px'), _defineProperty(_css, "padding", '0 10px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
684
690
  borderColor: sectionproperties.inputfeildbordercoloronfocus
685
691
  }), _defineProperty(_css, ':focus .login_input_icon', {
686
692
  color: sectionproperties.inputfeildbordercoloronfocus
@@ -1050,7 +1056,7 @@ var Variantoptions = function Variantoptions(props) {
1050
1056
  props.actions.ikimagecredcontext;
1051
1057
  var ProductInfoObj = props.actions.ProductInfoObj;
1052
1058
  return /*#__PURE__*/React.createElement(React.Fragment, null, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.hasvariants) == 1 && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React.createElement("div", {
1053
- className: "row m-0 w-100 d-flex align-items-start"
1059
+ className: "row m-0 w-100 d-flex align-items-start mt-3"
1054
1060
  }, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
1055
1061
  return /*#__PURE__*/React.createElement("div", {
1056
1062
  className: "col-lg-12 p-0 mb-3 d-flex justify-content-start"
@@ -7778,6 +7784,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7778
7784
  var authdetailsContext = props.actions.authdetailsContext;
7779
7785
  var instapikey = props.actions.instapikey;
7780
7786
  var templatepropcontext = props.actions.templatepropcontext;
7787
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
7781
7788
  props.actions.ikimagecredcontext;
7782
7789
  var NotificationManager = props.actions.NotificationManager;
7783
7790
  var actions = props.actions;
@@ -7786,9 +7793,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7786
7793
  customeraddressrequierd = _useState2[0],
7787
7794
  setcustomeraddressrequierd = _useState2[1];
7788
7795
  var _useState3 = useState(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu4 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu4 === void 0 ? void 0 : (_fetchAuthorizationQu5 = _fetchAuthorizationQu4.data) === null || _fetchAuthorizationQu5 === void 0 ? void 0 : (_fetchAuthorizationQu6 = _fetchAuthorizationQu5.instinfo) === null || _fetchAuthorizationQu6 === void 0 ? void 0 : _fetchAuthorizationQu6.customervalidateemail),
7789
- _useState4 = _slicedToArray(_useState3, 2);
7790
- _useState4[0];
7791
- var setcustomervalidateemail = _useState4[1];
7796
+ _useState4 = _slicedToArray(_useState3, 2),
7797
+ customervalidateemail = _useState4[0],
7798
+ setcustomervalidateemail = _useState4[1];
7792
7799
  var _useState5 = useState(false),
7793
7800
  _useState6 = _slicedToArray(_useState5, 2),
7794
7801
  validateemailmodal = _useState6[0],
@@ -7802,6 +7809,15 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7802
7809
  dataloaded = _useState10[0],
7803
7810
  setdataloaded = _useState10[1];
7804
7811
  var _useState11 = useState({
7812
+ email: '',
7813
+ code: '',
7814
+ step: 'sendcode',
7815
+ isvalidated: false
7816
+ }),
7817
+ _useState12 = _slicedToArray(_useState11, 2),
7818
+ validateemailpayload = _useState12[0],
7819
+ setvalidateemailpayload = _useState12[1];
7820
+ var _useState13 = useState({
7805
7821
  instapikey: instapikey,
7806
7822
  name: '',
7807
7823
  email: '',
@@ -7816,9 +7832,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7816
7832
  cityid: '',
7817
7833
  countrydialcode: ''
7818
7834
  }),
7819
- _useState12 = _slicedToArray(_useState11, 2),
7820
- payloadobj = _useState12[0],
7821
- setpayloadobj = _useState12[1];
7835
+ _useState14 = _slicedToArray(_useState13, 2),
7836
+ payloadobj = _useState14[0],
7837
+ setpayloadobj = _useState14[1];
7822
7838
  useEffect(function () {
7823
7839
  if (fetchAuthorizationQueryContext.isSuccess) {
7824
7840
  var _fetchAuthorizationQu7, _fetchAuthorizationQu8, _fetchAuthorizationQu9, _fetchAuthorizationQu10, _fetchAuthorizationQu11, _fetchAuthorizationQu12;
@@ -7868,6 +7884,82 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7868
7884
  temppayloadobj[key] = value;
7869
7885
  setpayloadobj(_objectSpread$1R({}, temppayloadobj));
7870
7886
  };
7887
+ var validateEmailstring = function validateEmailstring(email) {
7888
+ return String(email).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
7889
+ };
7890
+ var verifypayload = function verifypayload() {
7891
+ var iscompleted = false;
7892
+ var isshippingaddresscompleted = false;
7893
+ var passwordvalidation = false;
7894
+ if (authdetailsContext.loggedin == false) {
7895
+ if (payloadobj.password.length != 0) {
7896
+ if (payloadobj.password == payloadobj.password2) {
7897
+ passwordvalidation = true;
7898
+ }
7899
+ }
7900
+ } else if (authdetailsContext.loggedin == true) {
7901
+ if (payloadobj.password.length != 0) {
7902
+ if (payloadobj.password == payloadobj.password2) {
7903
+ passwordvalidation = true;
7904
+ }
7905
+ } else {
7906
+ passwordvalidation = true;
7907
+ }
7908
+ }
7909
+ if (passwordvalidation == false) {
7910
+ NotificationManager.warning('', lang.passwordsdontmatch);
7911
+ }
7912
+ if (customeraddressrequierd == 1) {
7913
+ if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
7914
+ isshippingaddresscompleted = true;
7915
+ }
7916
+ } else {
7917
+ isshippingaddresscompleted = true;
7918
+ }
7919
+ if (validateEmailstring(payloadobj.email)) {
7920
+ if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
7921
+ if (isshippingaddresscompleted) {
7922
+ var signupformismissing = true;
7923
+ payloadobj.instsignupformvalues.forEach(function (arrayItem) {
7924
+ if (arrayItem.optional == 1) {
7925
+ if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
7926
+ signupformismissing = false;
7927
+ }
7928
+ }
7929
+ });
7930
+ if (signupformismissing) {
7931
+ iscompleted = true;
7932
+ } else {
7933
+ iscompleted = false;
7934
+ NotificationManager.warning('', lang.completerequiredfields);
7935
+ }
7936
+ } else {
7937
+ iscompleted = false;
7938
+ NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
7939
+ }
7940
+ } else {
7941
+ iscompleted = false;
7942
+ NotificationManager.warning('', lang.fillthemissingfields);
7943
+ }
7944
+ } else {
7945
+ iscompleted = false;
7946
+ NotificationManager.warning('', lang.writevalidemail);
7947
+ }
7948
+ return iscompleted;
7949
+ };
7950
+ var signupbuttonfunc = function signupbuttonfunc() {
7951
+ if (verifypayload() == true) {
7952
+ var temppayloadobj = _objectSpread$1R({}, payloadobj);
7953
+ if (authdetailsContext.loggedin == true) {
7954
+ temppayloadobj.functype = 'edit';
7955
+ } else {
7956
+ temppayloadobj.functype = 'add';
7957
+ }
7958
+ temppayloadobj.addedsourcetype = 'Webapp';
7959
+ temppayloadobj.instapikey = instapikey;
7960
+ CustomerSignUpMutationContext.mutate(temppayloadobj);
7961
+ }
7962
+ };
7871
7963
  var formstyles = {
7872
7964
  loginbtn: css({
7873
7965
  background: templatepropcontext.primarycolor,
@@ -7931,7 +8023,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7931
8023
  position: 'relative',
7932
8024
  display: 'flex',
7933
8025
  alignItems: 'center'
7934
- }, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 30px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
8026
+ }, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 10px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
7935
8027
  borderColor: sectionproperties.inputfeildbordercoloronfocus
7936
8028
  }), _defineProperty(_css, ':focus .login_input_icon', {
7937
8029
  color: sectionproperties.inputfeildbordercoloronfocus
@@ -7984,6 +8076,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7984
8076
  type: "text",
7985
8077
  textplaceholder: "",
7986
8078
  value: payloadobj.email,
8079
+ disabled: validateemailpayload.isvalidated,
7987
8080
  onChange: function onChange(event) {
7988
8081
  payloadobjchange('email', event.target.value);
7989
8082
  }
@@ -8483,62 +8576,13 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
8483
8576
  className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
8484
8577
  disabled: CustomerSignUpMutationContext.isLoading ? true : false,
8485
8578
  onClick: function onClick() {
8486
- var isshippingaddresscompleted = false;
8487
- var passwordvalidation = false;
8488
- if (authdetailsContext.loggedin == false) {
8489
- if (payloadobj.password.length != 0) {
8490
- if (payloadobj.password == payloadobj.password2) {
8491
- passwordvalidation = true;
8492
- }
8493
- }
8494
- } else if (authdetailsContext.loggedin == true) {
8495
- if (payloadobj.password.length != 0) {
8496
- if (payloadobj.password == payloadobj.password2) {
8497
- passwordvalidation = true;
8498
- }
8579
+ if (verifypayload() == true) {
8580
+ if (customervalidateemail == 1) {
8581
+ setvalidateemailmodal(true);
8499
8582
  } else {
8500
- passwordvalidation = true;
8583
+ signupbuttonfunc();
8501
8584
  }
8502
8585
  }
8503
- if (passwordvalidation == false) {
8504
- NotificationManager.warning('', lang.passwordsdontmatch);
8505
- }
8506
- if (customeraddressrequierd == 1) {
8507
- if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
8508
- isshippingaddresscompleted = true;
8509
- }
8510
- } else {
8511
- isshippingaddresscompleted = true;
8512
- }
8513
- if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
8514
- if (isshippingaddresscompleted) {
8515
- var signupformismissing = true;
8516
- payloadobj.instsignupformvalues.forEach(function (arrayItem) {
8517
- if (arrayItem.optional == 1) {
8518
- if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
8519
- signupformismissing = false;
8520
- }
8521
- }
8522
- });
8523
- if (signupformismissing) {
8524
- var temppayloadobj = _objectSpread$1R({}, payloadobj);
8525
- if (authdetailsContext.loggedin == true) {
8526
- temppayloadobj.functype = 'edit';
8527
- } else {
8528
- temppayloadobj.functype = 'add';
8529
- }
8530
- temppayloadobj.addedsourcetype = 'Webapp';
8531
- temppayloadobj.instapikey = instapikey;
8532
- CustomerSignUpMutationContext.mutate(temppayloadobj);
8533
- } else {
8534
- NotificationManager.warning('', lang.completerequiredfields);
8535
- }
8536
- } else {
8537
- NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
8538
- }
8539
- } else {
8540
- NotificationManager.warning('', lang.fillthemissingfields);
8541
- }
8542
8586
  }
8543
8587
  }, CustomerSignUpMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, {
8544
8588
  color: "#fff",
@@ -8584,7 +8628,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
8584
8628
  },
8585
8629
  centered: true,
8586
8630
  size: 'md'
8587
- }, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
8631
+ }, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
8588
8632
  "class": "d-flex align-items-center justify-content-center bgdanger-hover",
8589
8633
  style: {
8590
8634
  position: 'absolute',
@@ -8601,7 +8645,96 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
8601
8645
  }, /*#__PURE__*/React.createElement(IoMdClose, {
8602
8646
  size: 15,
8603
8647
  color: "white"
8604
- }))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
8648
+ })), /*#__PURE__*/React.createElement("div", {
8649
+ "class": "row m-0 w-100 allcentered"
8650
+ }, /*#__PURE__*/React.createElement("div", {
8651
+ className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center mt-2 justify-content-center"
8652
+ }, /*#__PURE__*/React.createElement("p", {
8653
+ className: "text-md-center m-0 p-0 mb-2",
8654
+ style: {
8655
+ fontSize: '19px',
8656
+ color: sectionproperties.sectionTitleColor,
8657
+ fontWeight: 600
8658
+ }
8659
+ }, langdetect == 'en' ? 'Validate Email' : 'التحقق من صحة البريد الإلكتروني')), /*#__PURE__*/React.createElement("div", {
8660
+ "class": "col-lg-12 p-0"
8661
+ }, /*#__PURE__*/React.createElement("hr", {
8662
+ "class": 'm-0 p-0'
8663
+ }))), /*#__PURE__*/React.createElement("div", {
8664
+ "class": "row w-100 m-0 mb-3 pl-2 pr-2 pt-3 pb-3 pl-sm-3 pr-sm-3"
8665
+ }, /*#__PURE__*/React.createElement("div", {
8666
+ className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0"
8667
+ }, /*#__PURE__*/React.createElement("label", {
8668
+ className: "".concat(formstyles.logininputLabel) + ' text-transform-none d-flex justify-content-start '
8669
+ }, langdetect == 'en' ? 'E-mail' : 'البريد الإلكترونى'), /*#__PURE__*/React.createElement("input", {
8670
+ type: "text",
8671
+ className: "".concat(formstyles.form_control),
8672
+ value: payloadobj.email,
8673
+ disabled: true
8674
+ })), validateemailpayload.step == 'verifycode' && /*#__PURE__*/React.createElement("div", {
8675
+ className: "col-lg-12 col-md-12 col-sm-12 mb-3 mt-3 p-sm-0"
8676
+ }, /*#__PURE__*/React.createElement("label", {
8677
+ className: "".concat(formstyles.logininputLabel) + ' text-transform-none d-flex justify-content-start '
8678
+ }, langdetect == 'en' ? 'Code' : ' كود البريد الاكتروني'), /*#__PURE__*/React.createElement("input", {
8679
+ type: "text",
8680
+ className: "".concat(formstyles.form_control),
8681
+ value: validateemailpayload.code,
8682
+ onChange: function onChange(event) {
8683
+ setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
8684
+ code: event.target.value
8685
+ }));
8686
+ }
8687
+ })), /*#__PURE__*/React.createElement("div", {
8688
+ className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3"
8689
+ }, /*#__PURE__*/React.createElement("button", {
8690
+ className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
8691
+ disabled: GeneralAPIMutationContext.isLoading ? true : false,
8692
+ onClick: function onClick() {
8693
+ if (payloadobj.email.length != 0) {
8694
+ if (validateemailpayload.isvalidated == true) {
8695
+ setvalidateemailmodal(false);
8696
+ signupbuttonfunc();
8697
+ } else {
8698
+ GeneralAPIMutationContext.mutate({
8699
+ endpointurl: '/validateemail',
8700
+ functype: validateemailpayload.step,
8701
+ code: validateemailpayload.code,
8702
+ name: payloadobj.name,
8703
+ email: payloadobj.email,
8704
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
8705
+ if (data.data.status) {
8706
+ if (data.data.functype == 'sendcode') {
8707
+ setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
8708
+ step: 'verifycode'
8709
+ }));
8710
+ }
8711
+ if (data.data.functype == 'verifycode') {
8712
+ setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
8713
+ isvalidated: true
8714
+ }));
8715
+ setvalidateemailmodal(false);
8716
+ signupbuttonfunc();
8717
+ }
8718
+ } else {
8719
+ NotificationManager.warning('', data.data.reason);
8720
+ }
8721
+ }
8722
+ });
8723
+ }
8724
+ } else {
8725
+ NotificationManager.warning(lang.completerequiredfields);
8726
+ }
8727
+ }
8728
+ }, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, {
8729
+ color: "#fff",
8730
+ width: "20px",
8731
+ height: "20px",
8732
+ duration: "1s"
8733
+ }), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
8734
+ style: {
8735
+ letterSpacing: langdetect == 'en' ? '1px' : ''
8736
+ }
8737
+ }, validateemailpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
8605
8738
  };
8606
8739
 
8607
8740
  function ownKeys$1Q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -13201,7 +13334,7 @@ var Headerresponsive = function Headerresponsive(props) {
13201
13334
  function ownKeys$1G(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13202
13335
  function _objectSpread$1G(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1G(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1G(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13203
13336
  var Gotoheader = function Gotoheader(props) {
13204
- var _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
13337
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9;
13205
13338
  var _useState = useState(''),
13206
13339
  _useState2 = _slicedToArray(_useState, 2),
13207
13340
  sectionproperties = _useState2[0],
@@ -13222,7 +13355,7 @@ var Gotoheader = function Gotoheader(props) {
13222
13355
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
13223
13356
  var ikimagecredcontext = props.actions.ikimagecredcontext;
13224
13357
  var actions = props.actions;
13225
- var history = props.actions.history;
13358
+ props.actions.history;
13226
13359
  useEffect(function () {
13227
13360
  var secpropobj = {};
13228
13361
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -13254,17 +13387,17 @@ var Gotoheader = function Gotoheader(props) {
13254
13387
  }
13255
13388
  }, [templateproperties_context]);
13256
13389
  var subtotalcart = function subtotalcart() {
13257
- var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
13258
- var totalprice = 0;
13259
- fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.forEach(function (cartitem, cartindex) {
13260
- var finalprice = 0;
13261
- if (cartitem.productinfo.hassale == 0) {
13262
- finalprice = cartitem.productinfo.defaultprice;
13263
- } else if (cartitem.productinfo.hassale == 1) {
13264
- finalprice = cartitem.productinfo.defaultsaleprice;
13265
- }
13266
- totalprice = finalprice * cartitem.quantity + totalprice;
13267
- });
13390
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3;
13391
+ var totalprice = parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.totalprice).toFixed(2);
13392
+ // fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.forEach(function (cartitem, cartindex) {
13393
+ // var finalprice = 0;
13394
+ // if (cartitem.productinfo.hassale == 0) {
13395
+ // finalprice = cartitem.productinfo.defaultprice;
13396
+ // } else if (cartitem.productinfo.hassale == 1) {
13397
+ // finalprice = cartitem.productinfo.defaultsaleprice;
13398
+ // }
13399
+ // totalprice = finalprice * cartitem.quantity + totalprice;
13400
+ // });
13268
13401
  return totalprice;
13269
13402
  };
13270
13403
  var header_cssstyles = {
@@ -13709,7 +13842,7 @@ var Gotoheader = function Gotoheader(props) {
13709
13842
  size: sectionproperties.cartBtn_iconFontSize
13710
13843
  }), /*#__PURE__*/React.createElement("div", {
13711
13844
  "class": "".concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.cartbadge)
13712
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0)), /*#__PURE__*/React.createElement("p", {
13845
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : (_fetchcustomercartQue5 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : _fetchcustomercartQue5.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue6 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : (_fetchcustomercartQue7 = _fetchcustomercartQue6.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.customercart) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.cartitems) === null || _fetchcustomercartQue9 === void 0 ? void 0 : _fetchcustomercartQue9.length : 0)), /*#__PURE__*/React.createElement("p", {
13713
13846
  "class": "m-0 p-0 d-flex flex-column ",
13714
13847
  style: {
13715
13848
  color: sectionproperties.cartBtnTextcolor,
@@ -13811,7 +13944,8 @@ var Gotoheader = function Gotoheader(props) {
13811
13944
  marginLeft: langdetect == 'en' ? 0 : '45px'
13812
13945
  },
13813
13946
  onClick: function onClick() {
13814
- history.push(item.navigationroute);
13947
+ // history.push(item.navigationroute);
13948
+ routingcountext(item.navigationroute);
13815
13949
  }
13816
13950
  }, /*#__PURE__*/React.createElement("div", {
13817
13951
  "class": "".concat(headerstyles$g.topbar_item, " ").concat(header_cssstyles.topbar_item)
@@ -21090,7 +21224,10 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
21090
21224
  marginLeft: langdetect == 'ar' ? '2rem' : 0
21091
21225
  }
21092
21226
  }, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
21093
- "class": ' d-flex justify-content-center align-items-center '
21227
+ "class": ' d-flex justify-content-center align-items-center ',
21228
+ onClick: function onClick() {
21229
+ routingcountext(StaticPagesLinksContext.Login);
21230
+ }
21094
21231
  }, /*#__PURE__*/React.createElement("span", {
21095
21232
  "class": "".concat(headerstyles$8.navbar_item_text, " ").concat(header_cssstyles.navbar_item_text, " ").concat(header_cssstyles.user_btn) + ' d-flex justify-content-center align-items-center '
21096
21233
  }, /*#__PURE__*/React.createElement(FiUser, {
@@ -21124,27 +21261,7 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
21124
21261
  style: {
21125
21262
  maxWidth: '60px'
21126
21263
  }
21127
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))), !authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, null, /*#__PURE__*/React.createElement(Dropdown.Item, {
21128
- onClick: function onClick() {
21129
- routingcountext(StaticPagesLinksContext.Login);
21130
- }
21131
- }, /*#__PURE__*/React.createElement("div", {
21132
- "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
21133
- }, /*#__PURE__*/React.createElement("p", {
21134
- "class": "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
21135
- }, /*#__PURE__*/React.createElement(AiOutlineLogin, null), /*#__PURE__*/React.createElement("span", {
21136
- "class": "ml-2 mr-2"
21137
- }, lang.login)))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
21138
- onClick: function onClick() {
21139
- routingcountext(StaticPagesLinksContext.Signup);
21140
- }
21141
- }, /*#__PURE__*/React.createElement("div", {
21142
- "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
21143
- }, /*#__PURE__*/React.createElement("p", {
21144
- "class": "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
21145
- }, /*#__PURE__*/React.createElement(AiOutlineUserAdd, null), /*#__PURE__*/React.createElement("span", {
21146
- "class": "ml-2 mr-2 text-transform-none"
21147
- }, lang.signup))))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
21264
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
21148
21265
  style: {
21149
21266
  minWidth: '200px'
21150
21267
  }
@@ -21715,6 +21832,9 @@ var Modernheader = function Modernheader(props) {
21715
21832
  "class": " ".concat(header_cssstyles.user_btn) + ' d-flex align-items-center justify-content-center ',
21716
21833
  sytle: {
21717
21834
  position: 'relative'
21835
+ },
21836
+ onClick: function onClick() {
21837
+ routingcountext(StaticPagesLinksContext.Login);
21718
21838
  }
21719
21839
  }, /*#__PURE__*/React.createElement("i", {
21720
21840
  "class": ' h-100 d-flex align-items-center '
@@ -21749,29 +21869,7 @@ var Modernheader = function Modernheader(props) {
21749
21869
  style: {
21750
21870
  maxWidth: '120px'
21751
21871
  }
21752
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))), !authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, null, /*#__PURE__*/React.createElement(Dropdown.Item, {
21753
- onClick: function onClick() {
21754
- routingcountext(StaticPagesLinksContext.Login);
21755
- }
21756
- }, /*#__PURE__*/React.createElement("div", {
21757
- "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
21758
- }, /*#__PURE__*/React.createElement("p", {
21759
- "class": ' d-flex align-items-center m-0 p-0 '
21760
- }, /*#__PURE__*/React.createElement(AiOutlineLogin, {
21761
- "class": langdetect == 'en' ? 'mr-2' : 'ml-2'
21762
- }), /*#__PURE__*/React.createElement("span", null, lang.login)))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
21763
- onClick: function onClick() {
21764
- routingcountext(StaticPagesLinksContext.Signup);
21765
- }
21766
- }, /*#__PURE__*/React.createElement("div", {
21767
- "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
21768
- }, /*#__PURE__*/React.createElement("p", {
21769
- "class": ' d-flex align-items-center m-0 p-0 '
21770
- }, /*#__PURE__*/React.createElement(AiOutlineUserAdd, {
21771
- "class": langdetect == 'en' ? 'mr-2' : 'ml-2'
21772
- }), /*#__PURE__*/React.createElement("span", {
21773
- "class": "text-transform-none"
21774
- }, lang.signup))))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
21872
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
21775
21873
  style: {
21776
21874
  minWidth: '200px'
21777
21875
  }
@@ -36024,7 +36122,7 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
36024
36122
  }))))));
36025
36123
  };
36026
36124
  var BackgroundImagesContent = function BackgroundImagesContent() {
36027
- var _imagesarray$, _imagesarray$2, _imagesarray$3, _imagesarray$4, _imagesarray$5, _imagesarray$6;
36125
+ var _imagesarray$, _imagesarray$7, _imagesarray$8, _imagesarray$9, _imagesarray$15, _imagesarray$16, _imagesarray$17, _imagesarray$23, _imagesarray$24;
36028
36126
  return /*#__PURE__*/React.createElement("div", {
36029
36127
  "class": "row m-0 w-100 align-items-center justify-content-center"
36030
36128
  }, /*#__PURE__*/React.createElement("div", {
@@ -36033,12 +36131,26 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
36033
36131
  "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
36034
36132
  style: {
36035
36133
  height: sectionproperties.image_height + 'px',
36036
- position: 'relative'
36134
+ position: 'relative',
36135
+ cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickableimg) == 'Yes' ? 'pointer' : 'default'
36136
+ },
36137
+ onClick: function onClick() {
36138
+ var _imagesarray$2;
36139
+ if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickableimg) == 'Yes') {
36140
+ var _imagesarray$3, _imagesarray$4;
36141
+ if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.clickableimg_page_route && ((_imagesarray$4 = imagesarray[0]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.clickableimg_page_route.length) != 0) {
36142
+ var _imagesarray$5;
36143
+ routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickableimg_page_route, false, '');
36144
+ } else {
36145
+ var _imagesarray$6;
36146
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickableimg_getcoection));
36147
+ }
36148
+ }
36037
36149
  }
36038
36150
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
36039
36151
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
36040
36152
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
36041
- path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.bgsection_image_ar) : '',
36153
+ path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$7 = imagesarray[0]) === null || _imagesarray$7 === void 0 ? void 0 : _imagesarray$7.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_imagesarray$8 = imagesarray[0]) === null || _imagesarray$8 === void 0 ? void 0 : _imagesarray$8.bgsection_image_ar) : '',
36042
36154
  "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
36043
36155
  style: {
36044
36156
  height: '100%',
@@ -36059,12 +36171,26 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
36059
36171
  "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
36060
36172
  style: {
36061
36173
  height: parseInt(sectionproperties.image_height / 2 - 5) + 'px',
36062
- position: 'relative'
36174
+ position: 'relative',
36175
+ cursor: ((_imagesarray$9 = imagesarray[1]) === null || _imagesarray$9 === void 0 ? void 0 : _imagesarray$9.IsClickableimg) == 'Yes' ? 'pointer' : 'default'
36176
+ },
36177
+ onClick: function onClick() {
36178
+ var _imagesarray$10;
36179
+ if (((_imagesarray$10 = imagesarray[1]) === null || _imagesarray$10 === void 0 ? void 0 : _imagesarray$10.IsClickableimg) == 'Yes') {
36180
+ var _imagesarray$11, _imagesarray$12;
36181
+ if ((_imagesarray$11 = imagesarray[1]) !== null && _imagesarray$11 !== void 0 && _imagesarray$11.clickableimg_page_route && ((_imagesarray$12 = imagesarray[1]) === null || _imagesarray$12 === void 0 ? void 0 : _imagesarray$12.clickableimg_page_route.length) != 0) {
36182
+ var _imagesarray$13;
36183
+ routingcountext((_imagesarray$13 = imagesarray[1]) === null || _imagesarray$13 === void 0 ? void 0 : _imagesarray$13.clickableimg_page_route, false, '');
36184
+ } else {
36185
+ var _imagesarray$14;
36186
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$14 = imagesarray[1]) === null || _imagesarray$14 === void 0 ? void 0 : _imagesarray$14.Clickableimg_getcoection));
36187
+ }
36188
+ }
36063
36189
  }
36064
36190
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
36065
36191
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
36066
36192
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
36067
- path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$3 = imagesarray[1]) === null || _imagesarray$3 === void 0 ? void 0 : _imagesarray$3.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$4 = imagesarray[1]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.bgsection_image_ar) : '',
36193
+ path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$15 = imagesarray[1]) === null || _imagesarray$15 === void 0 ? void 0 : _imagesarray$15.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$16 = imagesarray[1]) === null || _imagesarray$16 === void 0 ? void 0 : _imagesarray$16.bgsection_image_ar) : '',
36068
36194
  "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
36069
36195
  style: {
36070
36196
  height: '100%',
@@ -36081,12 +36207,26 @@ var BacgroundThreeImageWithCategories = function BacgroundThreeImageWithCategori
36081
36207
  "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 h-md-auto ' : "".concat(sectionstyles.imageBackground) + ' row m-0 w-100 ',
36082
36208
  style: {
36083
36209
  height: parseInt(sectionproperties.image_height / 2 - 5) + 'px',
36084
- position: 'relative'
36210
+ position: 'relative',
36211
+ cursor: ((_imagesarray$17 = imagesarray[2]) === null || _imagesarray$17 === void 0 ? void 0 : _imagesarray$17.IsClickableimg) == 'Yes' ? 'pointer' : 'default'
36212
+ },
36213
+ onClick: function onClick() {
36214
+ var _imagesarray$18;
36215
+ if (((_imagesarray$18 = imagesarray[2]) === null || _imagesarray$18 === void 0 ? void 0 : _imagesarray$18.IsClickableimg) == 'Yes') {
36216
+ var _imagesarray$19, _imagesarray$20;
36217
+ if ((_imagesarray$19 = imagesarray[2]) !== null && _imagesarray$19 !== void 0 && _imagesarray$19.clickableimg_page_route && ((_imagesarray$20 = imagesarray[2]) === null || _imagesarray$20 === void 0 ? void 0 : _imagesarray$20.clickableimg_page_route.length) != 0) {
36218
+ var _imagesarray$21;
36219
+ routingcountext((_imagesarray$21 = imagesarray[2]) === null || _imagesarray$21 === void 0 ? void 0 : _imagesarray$21.clickableimg_page_route, false, '');
36220
+ } else {
36221
+ var _imagesarray$22;
36222
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$22 = imagesarray[2]) === null || _imagesarray$22 === void 0 ? void 0 : _imagesarray$22.Clickableimg_getcoection));
36223
+ }
36224
+ }
36085
36225
  }
36086
36226
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
36087
36227
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
36088
36228
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
36089
- path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$5 = imagesarray[2]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$6 = imagesarray[2]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.bgsection_image_ar) : '',
36229
+ path: imagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$23 = imagesarray[2]) === null || _imagesarray$23 === void 0 ? void 0 : _imagesarray$23.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w2 + ',h-' + sectionproperties.imagetr_h2 + '/' + ((_imagesarray$24 = imagesarray[2]) === null || _imagesarray$24 === void 0 ? void 0 : _imagesarray$24.bgsection_image_ar) : '',
36090
36230
  "class": sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
36091
36231
  style: {
36092
36232
  height: '100%',
@@ -41984,12 +42124,15 @@ var Slideshowslide = function Slideshowslide(props) {
41984
42124
  }, /*#__PURE__*/React.createElement("div", {
41985
42125
  "class": "row m-0 w-100"
41986
42126
  }, /*#__PURE__*/React.createElement("div", {
41987
- className: slideshow_styles.dropdowntitle + ' col-lg-12 p-0 ',
42127
+ className: slideshow_styles.dropdowntitle + ' col-lg-12 p-0 d-flex ',
41988
42128
  style: {
41989
42129
  justifyContent: sectionproperties.titlecentered == 'Centered' ? 'center' : 'start'
41990
42130
  }
41991
42131
  }, /*#__PURE__*/React.createElement("p", {
41992
- className: "m-0 p-3 w-100"
42132
+ className: "m-0 p-3 w-100 d-flex",
42133
+ style: {
42134
+ justifyContent: sectionproperties.titlecentered == 'Centered' ? 'center' : 'start'
42135
+ }
41993
42136
  }, langdetect == 'en' ? sectionproperties.collectionssectiontitleen : sectionproperties.collectionssectiontitlear)), /*#__PURE__*/React.createElement("div", {
41994
42137
  "class": "col-lg-12 flex-column cat_dropdown_hover scrollvertical pt-3 px-2",
41995
42138
  style: {
@@ -47590,7 +47733,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47590
47733
  }, /*#__PURE__*/React.createElement("div", {
47591
47734
  "class": "".concat(cardsstyles$4.card_thumbnail)
47592
47735
  }, /*#__PURE__*/React.createElement("div", {
47593
- "class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 ',
47736
+ "class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 allcentered ',
47594
47737
  onClick: function onClick() {
47595
47738
  setShowProductInfoModalContext(true);
47596
47739
  setProductIdProdutInfoModalContext(item.productid);
@@ -47599,19 +47742,19 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47599
47742
  cursor: 'pointer',
47600
47743
  overflow: 'hidden'
47601
47744
  }
47602
- }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
47745
+ }, item.image != '' && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
47603
47746
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
47604
47747
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
47605
47748
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
47606
47749
  style: {
47607
- width: '100%',
47608
- objectFit: 'contain',
47750
+ width: sectionproperties.imageInnerWidth_Height + '%',
47751
+ height: sectionproperties.imageInnerWidth_Height + '%',
47752
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
47609
47753
  position: 'relative',
47610
47754
  borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
47611
47755
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
47612
47756
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
47613
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
47614
- marginBottom: 'auto'
47757
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
47615
47758
  },
47616
47759
  loading: "lazy"
47617
47760
  })), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("div", {
@@ -53565,6 +53708,7 @@ var Simplecategorycardwithtextbelow = function Simplecategorycardwithtextbelow(p
53565
53708
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
53566
53709
  height: sectionproperties.image_height + 'px',
53567
53710
  marginBottom: sectionproperties.image_mb + 'px',
53711
+ border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
53568
53712
  overflow: 'hidden',
53569
53713
  position: 'relative',
53570
53714
  ':before': {