tabexseriescomponents 0.50.231 → 0.50.232

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
@@ -63,7 +63,7 @@ var HiOutlinePhone = require('@react-icons/all-files/hi/HiOutlinePhone');
63
63
  var AiOutlineMail = require('@react-icons/all-files/ai/AiOutlineMail');
64
64
  var FaShippingFast = require('@react-icons/all-files/fa/FaShippingFast');
65
65
  var RiSecurePaymentLine = require('@react-icons/all-files/ri/RiSecurePaymentLine');
66
- var axios$1 = require('axios');
66
+ var axios = require('axios');
67
67
  var AiOutlineSecurityScan = require('@react-icons/all-files/ai/AiOutlineSecurityScan');
68
68
  var FaStar = require('@react-icons/all-files/fa/FaStar');
69
69
  var IoLocationSharp = require('@react-icons/all-files/io5/IoLocationSharp');
@@ -222,7 +222,7 @@ var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutos
222
222
  var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
223
223
  var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
224
224
  var DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(DatePicker);
225
- var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$1);
225
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
226
226
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
227
227
  var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$4);
228
228
  var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
@@ -70975,6 +70975,7 @@ var DynamicForm = function DynamicForm(props) {
70975
70975
  var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
70976
70976
  var fetchdynamicformfeildsQueryContext = props.actions.fetchdynamicformfeildsQueryContext;
70977
70977
  var ikimagecredcontext = props.actions.ikimagecredcontext;
70978
+ var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
70978
70979
  var _useState = React.useState(''),
70979
70980
  _useState2 = _slicedToArray__default["default"](_useState, 2),
70980
70981
  sectionproperties = _useState2[0],
@@ -71004,6 +71005,7 @@ var DynamicForm = function DynamicForm(props) {
71004
71005
  _useState12[0];
71005
71006
  _useState12[1];
71006
71007
  var authdetailsContext = props.actions.authdetailsContext;
71008
+ var routingcountext = props.actions.routingcountext;
71007
71009
 
71008
71010
  // const [numberoffields, setnumberoffields] = useState('');
71009
71011
  // const [numberofslides, setnumberofslides] = useState(0);
@@ -71054,44 +71056,13 @@ var DynamicForm = function DynamicForm(props) {
71054
71056
  }
71055
71057
  });
71056
71058
  }
71057
- }, [fetchdynamicformfeildsQueryContext.isSuccess]);
71059
+ }, [fetchdynamicformfeildsQueryContext.isSuccess, dynamicformid]);
71060
+ // }, [fetchdynamicformfeildsQueryContext.isSuccess]);
71058
71061
  var updateformfield = function updateformfield(value, index) {
71059
71062
  var tempynamicform = _objectSpread$17({}, dynamicform);
71060
71063
  tempynamicform.fields[index].value = value;
71061
71064
  setdynamicform(_objectSpread$17({}, dynamicform));
71062
71065
  };
71063
- // const submitform = () => {
71064
- // var tempynamicform = { ...dynamicform };
71065
- // var fields = tempynamicform.fields;
71066
- // var validationpassed = true;
71067
- // var reason = '';
71068
- // fields?.forEach(function (item, index) {
71069
- // if (item.isrequired == 1) {
71070
- // if (item.value != undefined && item.value != null) {
71071
- // if (item.value.length == 0) {
71072
- // validationpassed = false;
71073
- // reason = item.title_en + ' ' + 'Is Missing';
71074
- // }
71075
- // }
71076
- // }
71077
- // });
71078
- // if (validationpassed) {
71079
- // GeneralAPIMutationContext.mutate({
71080
- // endpointurl: '/submitdynamicforms',
71081
- // data: tempynamicform,
71082
- // mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
71083
- // // setslots(data.data.slots);
71084
- // // alert('done');
71085
- // clearform();
71086
- // setshowpopup(true);
71087
- // setconfirmationtext(langdetect != 'ar' ? 'We have recieved your message' : 'تم استقبال رسالتك');
71088
- // },
71089
- // });
71090
- // } else {
71091
- // NotificationManager.warning('', reason);
71092
- // }
71093
- // };
71094
-
71095
71066
  var submitform = function submitform() {
71096
71067
  var _fetchdynamicformfeil2;
71097
71068
  var tempynamicform = _objectSpread$17({}, dynamicform);
@@ -71135,12 +71106,12 @@ var DynamicForm = function DynamicForm(props) {
71135
71106
  var axiosheaders = {
71136
71107
  'Content-Type': 'multipart/form-data'
71137
71108
  };
71138
- axios({
71109
+ axios__default["default"]({
71139
71110
  method: 'post',
71140
71111
  url: baseUrl + '/customerapi/customer/webapp/submitdynamicforms_f',
71141
71112
  data: {
71142
71113
  data_1: tempynamicform,
71143
- instapikey: (_fetchAuthorizationQu = fetchAuthorizationQueryContext) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instinfo) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instcred) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.webapp_apikey,
71114
+ instapikey: fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instinfo) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instcred) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.webapp_apikey,
71144
71115
  endpointurl: '/submitdynamicforms_f',
71145
71116
  lang: langdetect,
71146
71117
  cdata: localStorage.getItem('cdata'),
@@ -71244,16 +71215,15 @@ var DynamicForm = function DynamicForm(props) {
71244
71215
  "class": "col-lg-12 text-start p-0"
71245
71216
  }, /*#__PURE__*/React__default["default"].createElement("input", {
71246
71217
  type: type,
71247
- value: item.value,
71218
+ value: type == 'file' ? null : item.value,
71248
71219
  onChange: function onChange(event) {
71249
- // updateformfield(event.target.value, index);
71250
71220
  if (type == 'file') {
71251
71221
  updateformfield(event.target.files[0], index);
71252
71222
  } else {
71253
71223
  updateformfield(event.target.value, index);
71254
71224
  }
71255
71225
  },
71256
- placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
71226
+ placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect == 'en' ? item.title_en : item.title_ar,
71257
71227
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
71258
71228
  }))));
71259
71229
  }
@@ -71272,7 +71242,7 @@ var DynamicForm = function DynamicForm(props) {
71272
71242
  "class": "text-danger"
71273
71243
  }, item.isrequired == 1 ? '*' : ''))), /*#__PURE__*/React__default["default"].createElement(PhoneInput__default["default"], {
71274
71244
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control),
71275
- country: 'eg',
71245
+ country: sectionproperties.countrycode == 'CA' ? 'ca' : sectionproperties.countrycode == 'AE' ? 'ae' : sectionproperties.countrycode == 'SA' ? 'sa' : sectionproperties.countrycode == 'QA' ? 'qa' : sectionproperties.countrycode == 'SD' ? 'sd' : 'eg',
71276
71246
  enableSearch: true,
71277
71247
  autoFormat: true,
71278
71248
  value: item.value,
@@ -71311,7 +71281,7 @@ var DynamicForm = function DynamicForm(props) {
71311
71281
  onChange: function onChange(event) {
71312
71282
  updateformfield(event.target.value, index);
71313
71283
  },
71314
- placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
71284
+ placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect == 'en' ? item.title_en : item.title_ar,
71315
71285
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
71316
71286
  }))));
71317
71287
  };
@@ -71344,10 +71314,10 @@ var DynamicForm = function DynamicForm(props) {
71344
71314
  }
71345
71315
  }, /*#__PURE__*/React__default["default"].createElement("option", {
71346
71316
  value: ""
71347
- }, langdetect === 'ar' ? 'إختر' : langdetect === 'chin' ? '选择' : langdetect === 'es' ? 'Elegir' : langdetect === 'fr' ? 'Choisir' : langdetect === 'rus' ? 'Выбрать' : 'Choose'), decoditems === null || decoditems === void 0 ? void 0 : decoditems.map(function (sitem) {
71317
+ }, langdetect == 'en' ? 'Choose' : 'إختر'), decoditems === null || decoditems === void 0 ? void 0 : decoditems.map(function (sitem) {
71348
71318
  return /*#__PURE__*/React__default["default"].createElement("option", {
71349
71319
  value: sitem.optionname_en
71350
- }, langdetect != 'ar' ? sitem.optionname_en : sitem.optionname_ar);
71320
+ }, langdetect == 'en' ? sitem.optionname_en : sitem.optionname_ar);
71351
71321
  })))));
71352
71322
  }
71353
71323
  }
@@ -71394,11 +71364,11 @@ var DynamicForm = function DynamicForm(props) {
71394
71364
  width: 40,
71395
71365
  height: 40,
71396
71366
  // borderRadius: 20,
71397
- borderRight: langdetect != 'ar' ? '1px solid #ccc' : 0,
71367
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : 0,
71398
71368
  backgroundColor: '#000',
71399
71369
  cursor: 'pointer',
71400
- borderTopLeftRadius: langdetect != 'ar' ? 5 : 0,
71401
- borderBottomLeftRadius: langdetect != 'ar' ? 5 : 0,
71370
+ borderTopLeftRadius: langdetect == 'en' ? 5 : 0,
71371
+ borderBottomLeftRadius: langdetect == 'en' ? 5 : 0,
71402
71372
  borderTopRightRadius: langdetect == 'ar' ? 5 : 0,
71403
71373
  borderBottomRightRadius: langdetect == 'ar' ? 5 : 0,
71404
71374
  ':hover': {
@@ -71409,11 +71379,11 @@ var DynamicForm = function DynamicForm(props) {
71409
71379
  btnRight: glamor.css({
71410
71380
  width: 40,
71411
71381
  height: 40,
71412
- borderLeft: langdetect != 'ar' ? '1px solid #ccc' : 0,
71382
+ borderLeft: langdetect == 'en' ? '1px solid #ccc' : 0,
71413
71383
  backgroundColor: '#000',
71414
71384
  cursor: 'pointer',
71415
- borderTopRightRadius: langdetect != 'ar' ? 5 : 0,
71416
- borderBottomRightRadius: langdetect != 'ar' ? 5 : 0,
71385
+ borderTopRightRadius: langdetect == 'en' ? 5 : 0,
71386
+ borderBottomRightRadius: langdetect == 'en' ? 5 : 0,
71417
71387
  borderTopLeftRadius: langdetect == 'ar' ? 5 : 0,
71418
71388
  borderBottomLeftRadius: langdetect == 'ar' ? 5 : 0,
71419
71389
  ':hover': {
@@ -71431,8 +71401,8 @@ var DynamicForm = function DynamicForm(props) {
71431
71401
  }),
71432
71402
  formcontainer: glamor.css({
71433
71403
  background: sectionproperties.backgroundColor,
71434
- paddingLeft: langdetect != 'ar' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
71435
- paddingRight: langdetect != 'ar' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
71404
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
71405
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
71436
71406
  paddingTop: sectionproperties.cardpaddingvertical != 0 ? sectionproperties.cardpaddingvertical : sectionproperties.paddingTop + 'px',
71437
71407
  paddingBottom: sectionproperties.cardpaddingvertical != 0 ? sectionproperties.cardpaddingvertical : sectionproperties.paddingBottom + 'px',
71438
71408
  '@media (max-width: 800px)': {
@@ -71451,8 +71421,8 @@ var DynamicForm = function DynamicForm(props) {
71451
71421
  }, /*#__PURE__*/React__default["default"].createElement("div", {
71452
71422
  "class": "row m-0 w-100 d-flex align-items-center",
71453
71423
  style: {
71454
- paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
71455
- paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px'
71424
+ paddingLeft: langdetect == 'en' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
71425
+ paddingRight: langdetect == 'en' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px'
71456
71426
  }
71457
71427
  }, /*#__PURE__*/React__default["default"].createElement("div", {
71458
71428
  "class": "col-lg-12 text-start",
@@ -71467,7 +71437,7 @@ var DynamicForm = function DynamicForm(props) {
71467
71437
  fontSize: sectionproperties.sectionTitleFontSize + 'px',
71468
71438
  fontWeight: sectionproperties.sectionTitleFontWeight
71469
71439
  }
71470
- }, langdetect != 'ar' ? formtitleen : formtitlear)), sectionproperties.prodCatFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
71440
+ }, langdetect == 'en' ? formtitleen : formtitlear)), sectionproperties.prodCatFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
71471
71441
  "class": "col-lg-12 text-start",
71472
71442
  style: {
71473
71443
  marginBottom: sectionproperties.descriptionMarginBottom + 'px'
@@ -71475,7 +71445,7 @@ var DynamicForm = function DynamicForm(props) {
71475
71445
  }, /*#__PURE__*/React__default["default"].createElement("p", {
71476
71446
  "class": form_cssstyles.descriptioncontent + ' m-0 p-0 ',
71477
71447
  style: {
71478
- textAlign: langdetect != 'ar' ? 'left' : 'right'
71448
+ textAlign: langdetect == 'en' ? 'left' : 'right'
71479
71449
  }
71480
71450
  }, sectionproperties["descriptionContent".concat(langdetect)] || sectionproperties.descriptionContentEn)), (dynamicform === null || dynamicform === void 0 ? void 0 : dynamicform.id) != undefined && /*#__PURE__*/React__default["default"].createElement("div", {
71481
71451
  "class": 'row m-0 w-100 '
@@ -71534,7 +71504,7 @@ var DynamicForm = function DynamicForm(props) {
71534
71504
  , {
71535
71505
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
71536
71506
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
71537
- path: langdetect != 'ar' ? '/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),
71507
+ path: 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),
71538
71508
  style: {
71539
71509
  width: '100%',
71540
71510
  height: '100%'
package/dist/index.esm.js CHANGED
@@ -61,7 +61,7 @@ import { HiOutlinePhone } from '@react-icons/all-files/hi/HiOutlinePhone';
61
61
  import { AiOutlineMail } from '@react-icons/all-files/ai/AiOutlineMail';
62
62
  import { FaShippingFast } from '@react-icons/all-files/fa/FaShippingFast';
63
63
  import { RiSecurePaymentLine } from '@react-icons/all-files/ri/RiSecurePaymentLine';
64
- import axios$1 from 'axios';
64
+ import axios from 'axios';
65
65
  import { AiOutlineSecurityScan } from '@react-icons/all-files/ai/AiOutlineSecurityScan';
66
66
  import { FaStar } from '@react-icons/all-files/fa/FaStar';
67
67
  import { IoLocationSharp } from '@react-icons/all-files/io5/IoLocationSharp';
@@ -11276,7 +11276,7 @@ var Compare = function Compare(props) {
11276
11276
  productIds = JSON.parse(localStorage.getItem(key)) || [];
11277
11277
  requests = productIds.map(function (productId) {
11278
11278
  var url = "".concat(baseUrl, "?productid=").concat(productId, "&instapikey=").concat(instapikey, "&cdata=%7B%7D&lang=en");
11279
- return axios$1.get(url).then(function (response) {
11279
+ return axios.get(url).then(function (response) {
11280
11280
  var _response$data;
11281
11281
  return ((_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.productinfo) || null;
11282
11282
  })["catch"](function (error) {
@@ -70923,6 +70923,7 @@ var DynamicForm = function DynamicForm(props) {
70923
70923
  var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
70924
70924
  var fetchdynamicformfeildsQueryContext = props.actions.fetchdynamicformfeildsQueryContext;
70925
70925
  var ikimagecredcontext = props.actions.ikimagecredcontext;
70926
+ var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
70926
70927
  var _useState = useState(''),
70927
70928
  _useState2 = _slicedToArray(_useState, 2),
70928
70929
  sectionproperties = _useState2[0],
@@ -70952,6 +70953,7 @@ var DynamicForm = function DynamicForm(props) {
70952
70953
  _useState12[0];
70953
70954
  _useState12[1];
70954
70955
  var authdetailsContext = props.actions.authdetailsContext;
70956
+ var routingcountext = props.actions.routingcountext;
70955
70957
 
70956
70958
  // const [numberoffields, setnumberoffields] = useState('');
70957
70959
  // const [numberofslides, setnumberofslides] = useState(0);
@@ -71002,44 +71004,13 @@ var DynamicForm = function DynamicForm(props) {
71002
71004
  }
71003
71005
  });
71004
71006
  }
71005
- }, [fetchdynamicformfeildsQueryContext.isSuccess]);
71007
+ }, [fetchdynamicformfeildsQueryContext.isSuccess, dynamicformid]);
71008
+ // }, [fetchdynamicformfeildsQueryContext.isSuccess]);
71006
71009
  var updateformfield = function updateformfield(value, index) {
71007
71010
  var tempynamicform = _objectSpread$17({}, dynamicform);
71008
71011
  tempynamicform.fields[index].value = value;
71009
71012
  setdynamicform(_objectSpread$17({}, dynamicform));
71010
71013
  };
71011
- // const submitform = () => {
71012
- // var tempynamicform = { ...dynamicform };
71013
- // var fields = tempynamicform.fields;
71014
- // var validationpassed = true;
71015
- // var reason = '';
71016
- // fields?.forEach(function (item, index) {
71017
- // if (item.isrequired == 1) {
71018
- // if (item.value != undefined && item.value != null) {
71019
- // if (item.value.length == 0) {
71020
- // validationpassed = false;
71021
- // reason = item.title_en + ' ' + 'Is Missing';
71022
- // }
71023
- // }
71024
- // }
71025
- // });
71026
- // if (validationpassed) {
71027
- // GeneralAPIMutationContext.mutate({
71028
- // endpointurl: '/submitdynamicforms',
71029
- // data: tempynamicform,
71030
- // mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
71031
- // // setslots(data.data.slots);
71032
- // // alert('done');
71033
- // clearform();
71034
- // setshowpopup(true);
71035
- // setconfirmationtext(langdetect != 'ar' ? 'We have recieved your message' : 'تم استقبال رسالتك');
71036
- // },
71037
- // });
71038
- // } else {
71039
- // NotificationManager.warning('', reason);
71040
- // }
71041
- // };
71042
-
71043
71014
  var submitform = function submitform() {
71044
71015
  var _fetchdynamicformfeil2;
71045
71016
  var tempynamicform = _objectSpread$17({}, dynamicform);
@@ -71088,7 +71059,7 @@ var DynamicForm = function DynamicForm(props) {
71088
71059
  url: baseUrl + '/customerapi/customer/webapp/submitdynamicforms_f',
71089
71060
  data: {
71090
71061
  data_1: tempynamicform,
71091
- instapikey: (_fetchAuthorizationQu = fetchAuthorizationQueryContext) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instinfo) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instcred) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.webapp_apikey,
71062
+ instapikey: fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instinfo) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instcred) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.webapp_apikey,
71092
71063
  endpointurl: '/submitdynamicforms_f',
71093
71064
  lang: langdetect,
71094
71065
  cdata: localStorage.getItem('cdata'),
@@ -71192,16 +71163,15 @@ var DynamicForm = function DynamicForm(props) {
71192
71163
  "class": "col-lg-12 text-start p-0"
71193
71164
  }, /*#__PURE__*/React.createElement("input", {
71194
71165
  type: type,
71195
- value: item.value,
71166
+ value: type == 'file' ? null : item.value,
71196
71167
  onChange: function onChange(event) {
71197
- // updateformfield(event.target.value, index);
71198
71168
  if (type == 'file') {
71199
71169
  updateformfield(event.target.files[0], index);
71200
71170
  } else {
71201
71171
  updateformfield(event.target.value, index);
71202
71172
  }
71203
71173
  },
71204
- placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
71174
+ placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect == 'en' ? item.title_en : item.title_ar,
71205
71175
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
71206
71176
  }))));
71207
71177
  }
@@ -71220,7 +71190,7 @@ var DynamicForm = function DynamicForm(props) {
71220
71190
  "class": "text-danger"
71221
71191
  }, item.isrequired == 1 ? '*' : ''))), /*#__PURE__*/React.createElement(PhoneInput, {
71222
71192
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control),
71223
- country: 'eg',
71193
+ country: sectionproperties.countrycode == 'CA' ? 'ca' : sectionproperties.countrycode == 'AE' ? 'ae' : sectionproperties.countrycode == 'SA' ? 'sa' : sectionproperties.countrycode == 'QA' ? 'qa' : sectionproperties.countrycode == 'SD' ? 'sd' : 'eg',
71224
71194
  enableSearch: true,
71225
71195
  autoFormat: true,
71226
71196
  value: item.value,
@@ -71259,7 +71229,7 @@ var DynamicForm = function DynamicForm(props) {
71259
71229
  onChange: function onChange(event) {
71260
71230
  updateformfield(event.target.value, index);
71261
71231
  },
71262
- placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
71232
+ placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect == 'en' ? item.title_en : item.title_ar,
71263
71233
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
71264
71234
  }))));
71265
71235
  };
@@ -71292,10 +71262,10 @@ var DynamicForm = function DynamicForm(props) {
71292
71262
  }
71293
71263
  }, /*#__PURE__*/React.createElement("option", {
71294
71264
  value: ""
71295
- }, langdetect === 'ar' ? 'إختر' : langdetect === 'chin' ? '选择' : langdetect === 'es' ? 'Elegir' : langdetect === 'fr' ? 'Choisir' : langdetect === 'rus' ? 'Выбрать' : 'Choose'), decoditems === null || decoditems === void 0 ? void 0 : decoditems.map(function (sitem) {
71265
+ }, langdetect == 'en' ? 'Choose' : 'إختر'), decoditems === null || decoditems === void 0 ? void 0 : decoditems.map(function (sitem) {
71296
71266
  return /*#__PURE__*/React.createElement("option", {
71297
71267
  value: sitem.optionname_en
71298
- }, langdetect != 'ar' ? sitem.optionname_en : sitem.optionname_ar);
71268
+ }, langdetect == 'en' ? sitem.optionname_en : sitem.optionname_ar);
71299
71269
  })))));
71300
71270
  }
71301
71271
  }
@@ -71342,11 +71312,11 @@ var DynamicForm = function DynamicForm(props) {
71342
71312
  width: 40,
71343
71313
  height: 40,
71344
71314
  // borderRadius: 20,
71345
- borderRight: langdetect != 'ar' ? '1px solid #ccc' : 0,
71315
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : 0,
71346
71316
  backgroundColor: '#000',
71347
71317
  cursor: 'pointer',
71348
- borderTopLeftRadius: langdetect != 'ar' ? 5 : 0,
71349
- borderBottomLeftRadius: langdetect != 'ar' ? 5 : 0,
71318
+ borderTopLeftRadius: langdetect == 'en' ? 5 : 0,
71319
+ borderBottomLeftRadius: langdetect == 'en' ? 5 : 0,
71350
71320
  borderTopRightRadius: langdetect == 'ar' ? 5 : 0,
71351
71321
  borderBottomRightRadius: langdetect == 'ar' ? 5 : 0,
71352
71322
  ':hover': {
@@ -71357,11 +71327,11 @@ var DynamicForm = function DynamicForm(props) {
71357
71327
  btnRight: css({
71358
71328
  width: 40,
71359
71329
  height: 40,
71360
- borderLeft: langdetect != 'ar' ? '1px solid #ccc' : 0,
71330
+ borderLeft: langdetect == 'en' ? '1px solid #ccc' : 0,
71361
71331
  backgroundColor: '#000',
71362
71332
  cursor: 'pointer',
71363
- borderTopRightRadius: langdetect != 'ar' ? 5 : 0,
71364
- borderBottomRightRadius: langdetect != 'ar' ? 5 : 0,
71333
+ borderTopRightRadius: langdetect == 'en' ? 5 : 0,
71334
+ borderBottomRightRadius: langdetect == 'en' ? 5 : 0,
71365
71335
  borderTopLeftRadius: langdetect == 'ar' ? 5 : 0,
71366
71336
  borderBottomLeftRadius: langdetect == 'ar' ? 5 : 0,
71367
71337
  ':hover': {
@@ -71379,8 +71349,8 @@ var DynamicForm = function DynamicForm(props) {
71379
71349
  }),
71380
71350
  formcontainer: css({
71381
71351
  background: sectionproperties.backgroundColor,
71382
- paddingLeft: langdetect != 'ar' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
71383
- paddingRight: langdetect != 'ar' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
71352
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
71353
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
71384
71354
  paddingTop: sectionproperties.cardpaddingvertical != 0 ? sectionproperties.cardpaddingvertical : sectionproperties.paddingTop + 'px',
71385
71355
  paddingBottom: sectionproperties.cardpaddingvertical != 0 ? sectionproperties.cardpaddingvertical : sectionproperties.paddingBottom + 'px',
71386
71356
  '@media (max-width: 800px)': {
@@ -71399,8 +71369,8 @@ var DynamicForm = function DynamicForm(props) {
71399
71369
  }, /*#__PURE__*/React.createElement("div", {
71400
71370
  "class": "row m-0 w-100 d-flex align-items-center",
71401
71371
  style: {
71402
- paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
71403
- paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px'
71372
+ paddingLeft: langdetect == 'en' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
71373
+ paddingRight: langdetect == 'en' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px'
71404
71374
  }
71405
71375
  }, /*#__PURE__*/React.createElement("div", {
71406
71376
  "class": "col-lg-12 text-start",
@@ -71415,7 +71385,7 @@ var DynamicForm = function DynamicForm(props) {
71415
71385
  fontSize: sectionproperties.sectionTitleFontSize + 'px',
71416
71386
  fontWeight: sectionproperties.sectionTitleFontWeight
71417
71387
  }
71418
- }, langdetect != 'ar' ? formtitleen : formtitlear)), sectionproperties.prodCatFontSize != 0 && /*#__PURE__*/React.createElement("div", {
71388
+ }, langdetect == 'en' ? formtitleen : formtitlear)), sectionproperties.prodCatFontSize != 0 && /*#__PURE__*/React.createElement("div", {
71419
71389
  "class": "col-lg-12 text-start",
71420
71390
  style: {
71421
71391
  marginBottom: sectionproperties.descriptionMarginBottom + 'px'
@@ -71423,7 +71393,7 @@ var DynamicForm = function DynamicForm(props) {
71423
71393
  }, /*#__PURE__*/React.createElement("p", {
71424
71394
  "class": form_cssstyles.descriptioncontent + ' m-0 p-0 ',
71425
71395
  style: {
71426
- textAlign: langdetect != 'ar' ? 'left' : 'right'
71396
+ textAlign: langdetect == 'en' ? 'left' : 'right'
71427
71397
  }
71428
71398
  }, sectionproperties["descriptionContent".concat(langdetect)] || sectionproperties.descriptionContentEn)), (dynamicform === null || dynamicform === void 0 ? void 0 : dynamicform.id) != undefined && /*#__PURE__*/React.createElement("div", {
71429
71399
  "class": 'row m-0 w-100 '
@@ -71482,7 +71452,7 @@ var DynamicForm = function DynamicForm(props) {
71482
71452
  , {
71483
71453
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
71484
71454
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
71485
- path: langdetect != 'ar' ? '/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),
71455
+ path: 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),
71486
71456
  style: {
71487
71457
  width: '100%',
71488
71458
  height: '100%'
package/dist/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('@react-icons/all-files/fa/FaFacebookF'), require('@react-icons/all-files/ai/AiOutlineUser'), require('@react-icons/all-files/io/IoMdClose'), require('react-bootstrap'), require('imagekitio-react'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/helpers/toConsumableArray'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/regenerator'), require('react-image-gallery'), require('@react-icons/all-files/md/MdAddShoppingCart'), require('@react-icons/all-files/io5/IoBagHandleOutline'), require('@react-icons/all-files/bs/BsBag'), require('@react-icons/all-files/cg/CgShoppingBag'), require('@react-icons/all-files/fa/FaRegHeart'), require('@react-icons/all-files/fa/FaHeart'), require('@react-icons/all-files/fi/FiShoppingBag'), require('@react-icons/all-files/fi/FiShoppingCart'), require('@react-icons/all-files/ai/AiFillStar'), require('@react-icons/all-files/ai/AiOutlineStar'), require('@react-icons/all-files/fa/FaWhatsapp'), require('@react-icons/all-files/io5/IoCall'), require('@react-icons/all-files/fa/FaPlus'), require('@react-icons/all-files/fa/FaMinus'), require('@react-icons/all-files/fi/FiBox'), require('react-slideshow-image'), require('@react-icons/all-files/ri/RiArrowGoBackLine'), require('react-accessible-accordion'), require('react-share'), require('@react-icons/all-files/fi/FiMinus'), require('@react-icons/all-files/fi/FiPlus'), require('react-rating-stars-component'), require('@react-icons/all-files/fi/FiLayers'), require('@react-icons/all-files/hi/HiOutlinePlusCircle'), require('@react-icons/all-files/hi/HiOutlineMinusCircle'), require('@babel/runtime/helpers/taggedTemplateLiteral'), require('react-textarea-autosize'), require('react-input-range'), require('react-player'), require('@react-icons/all-files/ai/AiOutlineClockCircle'), require('@react-icons/all-files/ai/AiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineCheck'), require('react-datepicker'), require('@react-icons/all-files/fi/FiCalendar'), require('react-horizontal-scrolling-menu'), require('@mui/material'), require('@react-icons/all-files/hi/HiOutlinePhone'), require('@react-icons/all-files/ai/AiOutlineMail'), require('@react-icons/all-files/fa/FaShippingFast'), require('@react-icons/all-files/ri/RiSecurePaymentLine'), require('axios'), require('@react-icons/all-files/ai/AiOutlineSecurityScan'), require('@react-icons/all-files/fa/FaStar'), require('@react-icons/all-files/io5/IoLocationSharp'), require('@react-icons/all-files/hi/HiOutlineChevronRight'), require('@react-icons/all-files/hi/HiOutlineChevronLeft'), require('@react-icons/all-files/go/GoGlobe'), require('@react-icons/all-files/vsc/VscGlobe'), require('react-bootstrap/Dropdown'), require('@react-icons/all-files/hi/HiUser'), require('@react-icons/all-files/gr/GrMail'), require('@react-icons/all-files/fi/FiCheckCircle'), require('@react-icons/all-files/bi/BiPhone'), require('react-select'), require('react-phone-input-2'), require('@mui/system'), require('@react-icons/all-files/bs/BsChevronLeft'), require('@react-icons/all-files/bs/BsChevronRight'), require('@react-icons/all-files/ri/RiArrowUpSLine'), require('@react-icons/all-files/ri/RiArrowDownSLine'), require('@react-icons/all-files/io/IoIosArrowRoundForward'), require('@react-icons/all-files/io/IoIosArrowRoundBack'), require('@react-icons/all-files/fi/FiChevronUp'), require('@react-icons/all-files/fi/FiChevronDown'), require('@react-icons/all-files/hi/HiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineMinus'), require('react-router-dom'), require('react-query'), require('@react-icons/all-files/io5/IoBagCheckOutline'), require('@react-icons/all-files/io5/IoBagRemoveOutline'), require('react-intersection-observer'), require('@react-icons/all-files/fi/FiFilter'), require('@react-icons/all-files/fi/FiSliders'), require('@react-icons/all-files/fi/FiChevronLeft'), require('@react-icons/all-files/fi/FiChevronRight'), require('@react-icons/all-files/hi/HiOutlineArrowRight'), require('@react-icons/all-files/hi/HiOutlineArrowLeft'), require('react-paginate'), require('@react-icons/all-files/fa/FaFacebook'), require('@react-icons/all-files/ai/AiFillInstagram'), require('@react-icons/all-files/bi/BiGlobe'), require('@react-icons/all-files/md/MdKeyboardArrowDown'), require('@react-icons/all-files/fa/FaMoneyBillWave'), require('@react-icons/all-files/bi/BiLogOutCircle'), require('@react-icons/all-files/bi/BiChevronDown'), require('@react-icons/all-files/bi/BiUser'), require('@react-icons/all-files/ai/AiOutlineLogin'), require('@react-icons/all-files/ai/AiOutlineUserAdd'), require('@react-icons/all-files/ri/RiSearchLine'), require('@react-icons/all-files/cg/CgMenuLeft'), require('@react-icons/all-files/cg/CgMenuRight'), require('@react-icons/all-files/hi/HiOutlineShoppingBag'), require('@react-icons/all-files/ri/RiHandbagLine'), require('@react-icons/all-files/ai/AiOutlineClose'), require('@react-icons/all-files/vsc/VscMenu'), require('@react-icons/all-files/vsc/VscHeart'), require('@react-icons/all-files/io5/IoSearchOutline'), require('@react-icons/all-files/ai/AiFillYoutube'), require('@react-icons/all-files/io5/IoLogoTiktok'), require('@react-icons/all-files/fa/FaLinkedinIn'), require('@react-icons/all-files/fa/FaMap'), require('@react-icons/all-files/fi/FiMenu'), require('@react-icons/all-files/bs/BsChevronDown'), require('@react-icons/all-files/io5/IoClose'), require('@react-icons/all-files/md/MdArrowBack'), require('@react-icons/all-files/bi/BiSearch'), require('@react-icons/all-files/fi/FiUser'), require('@react-icons/all-files/ai/AiOutlineHeart'), require('@react-icons/all-files/fi/FiPhone'), require('@react-icons/all-files/hi/HiMenuAlt4'), require('@react-icons/all-files/fi/FiSearch'), require('@react-icons/all-files/bs/BsSearch'), require('@react-icons/all-files/ai/AiOutlinePhone'), require('@react-icons/all-files/go/GoSearch'), require('@react-icons/all-files/ai/AiOutlineInstagram'), require('@react-icons/all-files/md/MdKeyboardArrowUp'), require('@react-icons/all-files/ri/RiUserSettingsLine'), require('@react-icons/all-files/hi/HiUserCircle'), require('@react-icons/all-files/md/MdCompareArrows'), require('@react-icons/all-files/bs/BsInfoCircle'), require('@react-icons/all-files/ai/AiFillPhone'), require('@react-icons/all-files/fa/FaTelegramPlane'), require('@react-icons/all-files/fa/FaPhoneAlt'), require('@react-icons/all-files/fa/FaPhone'), require('@react-icons/all-files/fi/FiGlobe'), require('@react-icons/all-files/fi/FiArrowUpRight'), require('@react-icons/all-files/bi/BiUserCircle'), require('@react-icons/all-files/fi/FiArrowUpLeft'), require('@react-icons/all-files/go/GoLocation'), require('@react-icons/all-files/fa/FaSnapchat'), require('@react-icons/all-files/fi/FiHome'), require('@react-icons/all-files/ri/RiRoadMapLine'), require('@react-icons/all-files/hi/HiOutlineClock'), require('@react-icons/all-files/fa/FaGoogle'), require('@react-icons/all-files/ai/AiOutlineLinkedin'), require('@react-icons/all-files/fa/FaPinterestP'), require('@react-icons/all-files/fa/FaTripadvisor'), require('@react-icons/all-files/fa/FaBehance'), require('@react-icons/all-files/fa/FaArrowAltCircleRight'), require('@react-icons/all-files/fa/FaArrowAltCircleLeft'), require('@react-icons/all-files/go/GoStar'), require('@react-icons/all-files/io/IoIosStar'), require('@react-icons/all-files/ai/AiOutlineCloseCircle'), require('react-animated-numbers'), require('@react-spring/web'), require('react-countdown-circle-timer'), require('react-type-animation'), require('@babel/runtime/helpers/extends'), require('react-background-slideshow'), require('@react-icons/all-files/hi/HiOutlineLocationMarker'), require('@react-icons/all-files/fi/FiPhoneCall'), require('@react-icons/all-files/fa/FaRegEye'), require('@react-icons/all-files/bs/BsArrowRight'), require('@react-icons/all-files/bs/BsArrowLeft'), require('@react-icons/all-files/bs/BsEye'), require('@react-icons/all-files/bi/BiTimeFive'), require('@react-icons/all-files/io/IoIosArrowUp')) :
3
3
  typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', '@react-icons/all-files/fa/FaFacebookF', '@react-icons/all-files/ai/AiOutlineUser', '@react-icons/all-files/io/IoMdClose', 'react-bootstrap', 'imagekitio-react', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/helpers/toConsumableArray', '@babel/runtime/helpers/typeof', '@babel/runtime/regenerator', 'react-image-gallery', '@react-icons/all-files/md/MdAddShoppingCart', '@react-icons/all-files/io5/IoBagHandleOutline', '@react-icons/all-files/bs/BsBag', '@react-icons/all-files/cg/CgShoppingBag', '@react-icons/all-files/fa/FaRegHeart', '@react-icons/all-files/fa/FaHeart', '@react-icons/all-files/fi/FiShoppingBag', '@react-icons/all-files/fi/FiShoppingCart', '@react-icons/all-files/ai/AiFillStar', '@react-icons/all-files/ai/AiOutlineStar', '@react-icons/all-files/fa/FaWhatsapp', '@react-icons/all-files/io5/IoCall', '@react-icons/all-files/fa/FaPlus', '@react-icons/all-files/fa/FaMinus', '@react-icons/all-files/fi/FiBox', 'react-slideshow-image', '@react-icons/all-files/ri/RiArrowGoBackLine', 'react-accessible-accordion', 'react-share', '@react-icons/all-files/fi/FiMinus', '@react-icons/all-files/fi/FiPlus', 'react-rating-stars-component', '@react-icons/all-files/fi/FiLayers', '@react-icons/all-files/hi/HiOutlinePlusCircle', '@react-icons/all-files/hi/HiOutlineMinusCircle', '@babel/runtime/helpers/taggedTemplateLiteral', 'react-textarea-autosize', 'react-input-range', 'react-player', '@react-icons/all-files/ai/AiOutlineClockCircle', '@react-icons/all-files/ai/AiOutlinePlus', '@react-icons/all-files/ai/AiOutlineCheck', 'react-datepicker', '@react-icons/all-files/fi/FiCalendar', 'react-horizontal-scrolling-menu', '@mui/material', '@react-icons/all-files/hi/HiOutlinePhone', '@react-icons/all-files/ai/AiOutlineMail', '@react-icons/all-files/fa/FaShippingFast', '@react-icons/all-files/ri/RiSecurePaymentLine', 'axios', '@react-icons/all-files/ai/AiOutlineSecurityScan', '@react-icons/all-files/fa/FaStar', '@react-icons/all-files/io5/IoLocationSharp', '@react-icons/all-files/hi/HiOutlineChevronRight', '@react-icons/all-files/hi/HiOutlineChevronLeft', '@react-icons/all-files/go/GoGlobe', '@react-icons/all-files/vsc/VscGlobe', 'react-bootstrap/Dropdown', '@react-icons/all-files/hi/HiUser', '@react-icons/all-files/gr/GrMail', '@react-icons/all-files/fi/FiCheckCircle', '@react-icons/all-files/bi/BiPhone', 'react-select', 'react-phone-input-2', '@mui/system', '@react-icons/all-files/bs/BsChevronLeft', '@react-icons/all-files/bs/BsChevronRight', '@react-icons/all-files/ri/RiArrowUpSLine', '@react-icons/all-files/ri/RiArrowDownSLine', '@react-icons/all-files/io/IoIosArrowRoundForward', '@react-icons/all-files/io/IoIosArrowRoundBack', '@react-icons/all-files/fi/FiChevronUp', '@react-icons/all-files/fi/FiChevronDown', '@react-icons/all-files/hi/HiOutlinePlus', '@react-icons/all-files/ai/AiOutlineMinus', 'react-router-dom', 'react-query', '@react-icons/all-files/io5/IoBagCheckOutline', '@react-icons/all-files/io5/IoBagRemoveOutline', 'react-intersection-observer', '@react-icons/all-files/fi/FiFilter', '@react-icons/all-files/fi/FiSliders', '@react-icons/all-files/fi/FiChevronLeft', '@react-icons/all-files/fi/FiChevronRight', '@react-icons/all-files/hi/HiOutlineArrowRight', '@react-icons/all-files/hi/HiOutlineArrowLeft', 'react-paginate', '@react-icons/all-files/fa/FaFacebook', '@react-icons/all-files/ai/AiFillInstagram', '@react-icons/all-files/bi/BiGlobe', '@react-icons/all-files/md/MdKeyboardArrowDown', '@react-icons/all-files/fa/FaMoneyBillWave', '@react-icons/all-files/bi/BiLogOutCircle', '@react-icons/all-files/bi/BiChevronDown', '@react-icons/all-files/bi/BiUser', '@react-icons/all-files/ai/AiOutlineLogin', '@react-icons/all-files/ai/AiOutlineUserAdd', '@react-icons/all-files/ri/RiSearchLine', '@react-icons/all-files/cg/CgMenuLeft', '@react-icons/all-files/cg/CgMenuRight', '@react-icons/all-files/hi/HiOutlineShoppingBag', '@react-icons/all-files/ri/RiHandbagLine', '@react-icons/all-files/ai/AiOutlineClose', '@react-icons/all-files/vsc/VscMenu', '@react-icons/all-files/vsc/VscHeart', '@react-icons/all-files/io5/IoSearchOutline', '@react-icons/all-files/ai/AiFillYoutube', '@react-icons/all-files/io5/IoLogoTiktok', '@react-icons/all-files/fa/FaLinkedinIn', '@react-icons/all-files/fa/FaMap', '@react-icons/all-files/fi/FiMenu', '@react-icons/all-files/bs/BsChevronDown', '@react-icons/all-files/io5/IoClose', '@react-icons/all-files/md/MdArrowBack', '@react-icons/all-files/bi/BiSearch', '@react-icons/all-files/fi/FiUser', '@react-icons/all-files/ai/AiOutlineHeart', '@react-icons/all-files/fi/FiPhone', '@react-icons/all-files/hi/HiMenuAlt4', '@react-icons/all-files/fi/FiSearch', '@react-icons/all-files/bs/BsSearch', '@react-icons/all-files/ai/AiOutlinePhone', '@react-icons/all-files/go/GoSearch', '@react-icons/all-files/ai/AiOutlineInstagram', '@react-icons/all-files/md/MdKeyboardArrowUp', '@react-icons/all-files/ri/RiUserSettingsLine', '@react-icons/all-files/hi/HiUserCircle', '@react-icons/all-files/md/MdCompareArrows', '@react-icons/all-files/bs/BsInfoCircle', '@react-icons/all-files/ai/AiFillPhone', '@react-icons/all-files/fa/FaTelegramPlane', '@react-icons/all-files/fa/FaPhoneAlt', '@react-icons/all-files/fa/FaPhone', '@react-icons/all-files/fi/FiGlobe', '@react-icons/all-files/fi/FiArrowUpRight', '@react-icons/all-files/bi/BiUserCircle', '@react-icons/all-files/fi/FiArrowUpLeft', '@react-icons/all-files/go/GoLocation', '@react-icons/all-files/fa/FaSnapchat', '@react-icons/all-files/fi/FiHome', '@react-icons/all-files/ri/RiRoadMapLine', '@react-icons/all-files/hi/HiOutlineClock', '@react-icons/all-files/fa/FaGoogle', '@react-icons/all-files/ai/AiOutlineLinkedin', '@react-icons/all-files/fa/FaPinterestP', '@react-icons/all-files/fa/FaTripadvisor', '@react-icons/all-files/fa/FaBehance', '@react-icons/all-files/fa/FaArrowAltCircleRight', '@react-icons/all-files/fa/FaArrowAltCircleLeft', '@react-icons/all-files/go/GoStar', '@react-icons/all-files/io/IoIosStar', '@react-icons/all-files/ai/AiOutlineCloseCircle', 'react-animated-numbers', '@react-spring/web', 'react-countdown-circle-timer', 'react-type-animation', '@babel/runtime/helpers/extends', 'react-background-slideshow', '@react-icons/all-files/hi/HiOutlineLocationMarker', '@react-icons/all-files/fi/FiPhoneCall', '@react-icons/all-files/fa/FaRegEye', '@react-icons/all-files/bs/BsArrowRight', '@react-icons/all-files/bs/BsArrowLeft', '@react-icons/all-files/bs/BsEye', '@react-icons/all-files/bi/BiTimeFive', '@react-icons/all-files/io/IoIosArrowUp'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._possibleConstructorReturn, global._getPrototypeOf, global._inherits, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, global.imagekitioReact, global._asyncToGenerator, global._toConsumableArray, global._typeof, global._regeneratorRuntime, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart$1, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar$1, global.AiOutlineStar, global.FaWhatsapp, null, global.FaPlus, global.FaMinus, global.FiBox$1, global.reactSlideshowImage, global.RiArrowGoBackLine, global.reactAccessibleAccordion, global.reactShare, global.FiMinus, global.FiPlus, global.ReactStars, global.FiLayers, null, null, global._taggedTemplateLiteral, global.TextareaAutosize, global.InputRange, global.ReactPlayer, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.DatePicker, global.FiCalendar, global.reactHorizontalScrollingMenu, global.material, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global.axios$1, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.Dropdown, global.HiUser, global.GrMail, global.FiCheckCircle, global.BiPhone, global.Select$4, global.PhoneInput, null, global.BsChevronLeft, global.BsChevronRight, null, null, null, null, global.FiChevronUp, global.FiChevronDown, global.HiOutlinePlus, global.AiOutlineMinus, null, null, global.IoBagCheckOutline, global.IoBagRemoveOutline, global.reactIntersectionObserver, global.FiFilter, global.FiSliders, global.FiChevronLeft, global.FiChevronRight, global.HiOutlineArrowRight, global.HiOutlineArrowLeft, global.ReactPaginate, global.FaFacebook, global.AiFillInstagram, global.BiGlobe, global.MdKeyboardArrowDown, global.FaMoneyBillWave, global.BiLogOutCircle, global.BiChevronDown, global.BiUser, global.AiOutlineLogin, global.AiOutlineUserAdd, global.RiSearchLine, global.CgMenuLeft, global.CgMenuRight, global.HiOutlineShoppingBag, global.RiHandbagLine, global.AiOutlineClose, global.VscMenu, global.VscHeart, global.IoSearchOutline, global.AiFillYoutube, global.IoLogoTiktok, global.FaLinkedinIn, global.FaMap, global.FiMenu, global.BsChevronDown, global.IoClose, global.MdArrowBack, global.BiSearch, global.FiUser, global.AiOutlineHeart, global.FiPhone, global.HiMenuAlt4, global.FiSearch, global.BsSearch, global.AiOutlinePhone, global.GoSearch, global.AiOutlineInstagram, global.MdKeyboardArrowUp, global.RiUserSettingsLine, global.HiUserCircle, global.MdCompareArrows, global.BsInfoCircle, global.AiFillPhone, global.FaTelegramPlane, global.FaPhoneAlt, global.FaPhone, global.FiGlobe, global.FiArrowUpRight, global.BiUserCircle, global.FiArrowUpLeft, global.GoLocation, global.FaSnapchat, global.FiHome, global.RiRoadMapLine, global.HiOutlineClock, global.FaGoogle, global.AiOutlineLinkedin, global.FaPinterestP, global.FaTripadvisor, global.FaBehance, global.FaArrowAltCircleRight, global.FaArrowAltCircleLeft, global.GoStar, global.IoIosStar, global.AiOutlineCloseCircle, global.AnimatedNumbers, global.web, global.reactCountdownCircleTimer, global.reactTypeAnimation, global._extends, global.BackgroundSlideshow, global.HiOutlineLocationMarker, global.FiPhoneCall, global.FaRegEye, global.BsArrowRight, global.BsArrowLeft, global.BsEye, global.BiTimeFive, global.IoIosArrowUp));
5
- })(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _possibleConstructorReturn, _getPrototypeOf, _inherits, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, imagekitioReact, _asyncToGenerator, _toConsumableArray, _typeof, _regeneratorRuntime, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart$1, FiShoppingBag, FiShoppingCart, AiFillStar$1, AiOutlineStar, FaWhatsapp, IoCall, FaPlus, FaMinus, FiBox$1, reactSlideshowImage, RiArrowGoBackLine, reactAccessibleAccordion, reactShare, FiMinus, FiPlus, ReactStars, FiLayers, HiOutlinePlusCircle, HiOutlineMinusCircle, _taggedTemplateLiteral, TextareaAutosize, InputRange, ReactPlayer, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, DatePicker, FiCalendar, reactHorizontalScrollingMenu, material, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, axios$1, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, Dropdown, HiUser, GrMail, FiCheckCircle, BiPhone, Select$4, PhoneInput, system, BsChevronLeft, BsChevronRight, RiArrowUpSLine, RiArrowDownSLine, IoIosArrowRoundForward, IoIosArrowRoundBack, FiChevronUp, FiChevronDown, HiOutlinePlus, AiOutlineMinus, reactRouterDom, reactQuery, IoBagCheckOutline, IoBagRemoveOutline, reactIntersectionObserver, FiFilter, FiSliders, FiChevronLeft, FiChevronRight, HiOutlineArrowRight, HiOutlineArrowLeft, ReactPaginate, FaFacebook, AiFillInstagram, BiGlobe, MdKeyboardArrowDown, FaMoneyBillWave, BiLogOutCircle, BiChevronDown, BiUser, AiOutlineLogin, AiOutlineUserAdd, RiSearchLine, CgMenuLeft, CgMenuRight, HiOutlineShoppingBag, RiHandbagLine, AiOutlineClose, VscMenu, VscHeart, IoSearchOutline, AiFillYoutube, IoLogoTiktok, FaLinkedinIn, FaMap, FiMenu, BsChevronDown, IoClose, MdArrowBack, BiSearch, FiUser, AiOutlineHeart, FiPhone, HiMenuAlt4, FiSearch, BsSearch, AiOutlinePhone, GoSearch, AiOutlineInstagram, MdKeyboardArrowUp, RiUserSettingsLine, HiUserCircle, MdCompareArrows, BsInfoCircle, AiFillPhone, FaTelegramPlane, FaPhoneAlt, FaPhone, FiGlobe, FiArrowUpRight, BiUserCircle, FiArrowUpLeft, GoLocation, FaSnapchat, FiHome, RiRoadMapLine, HiOutlineClock, FaGoogle, AiOutlineLinkedin, FaPinterestP, FaTripadvisor, FaBehance, FaArrowAltCircleRight, FaArrowAltCircleLeft, GoStar, IoIosStar, AiOutlineCloseCircle, AnimatedNumbers, web, reactCountdownCircleTimer, reactTypeAnimation, _extends, BackgroundSlideshow, HiOutlineLocationMarker, FiPhoneCall, FaRegEye, BsArrowRight, BsArrowLeft, BsEye, BiTimeFive, IoIosArrowUp) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._possibleConstructorReturn, global._getPrototypeOf, global._inherits, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, global.imagekitioReact, global._asyncToGenerator, global._toConsumableArray, global._typeof, global._regeneratorRuntime, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart$1, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar$1, global.AiOutlineStar, global.FaWhatsapp, null, global.FaPlus, global.FaMinus, global.FiBox$1, global.reactSlideshowImage, global.RiArrowGoBackLine, global.reactAccessibleAccordion, global.reactShare, global.FiMinus, global.FiPlus, global.ReactStars, global.FiLayers, null, null, global._taggedTemplateLiteral, global.TextareaAutosize, global.InputRange, global.ReactPlayer, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.DatePicker, global.FiCalendar, global.reactHorizontalScrollingMenu, global.material, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global.axios, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.Dropdown, global.HiUser, global.GrMail, global.FiCheckCircle, global.BiPhone, global.Select$4, global.PhoneInput, null, global.BsChevronLeft, global.BsChevronRight, null, null, null, null, global.FiChevronUp, global.FiChevronDown, global.HiOutlinePlus, global.AiOutlineMinus, null, null, global.IoBagCheckOutline, global.IoBagRemoveOutline, global.reactIntersectionObserver, global.FiFilter, global.FiSliders, global.FiChevronLeft, global.FiChevronRight, global.HiOutlineArrowRight, global.HiOutlineArrowLeft, global.ReactPaginate, global.FaFacebook, global.AiFillInstagram, global.BiGlobe, global.MdKeyboardArrowDown, global.FaMoneyBillWave, global.BiLogOutCircle, global.BiChevronDown, global.BiUser, global.AiOutlineLogin, global.AiOutlineUserAdd, global.RiSearchLine, global.CgMenuLeft, global.CgMenuRight, global.HiOutlineShoppingBag, global.RiHandbagLine, global.AiOutlineClose, global.VscMenu, global.VscHeart, global.IoSearchOutline, global.AiFillYoutube, global.IoLogoTiktok, global.FaLinkedinIn, global.FaMap, global.FiMenu, global.BsChevronDown, global.IoClose, global.MdArrowBack, global.BiSearch, global.FiUser, global.AiOutlineHeart, global.FiPhone, global.HiMenuAlt4, global.FiSearch, global.BsSearch, global.AiOutlinePhone, global.GoSearch, global.AiOutlineInstagram, global.MdKeyboardArrowUp, global.RiUserSettingsLine, global.HiUserCircle, global.MdCompareArrows, global.BsInfoCircle, global.AiFillPhone, global.FaTelegramPlane, global.FaPhoneAlt, global.FaPhone, global.FiGlobe, global.FiArrowUpRight, global.BiUserCircle, global.FiArrowUpLeft, global.GoLocation, global.FaSnapchat, global.FiHome, global.RiRoadMapLine, global.HiOutlineClock, global.FaGoogle, global.AiOutlineLinkedin, global.FaPinterestP, global.FaTripadvisor, global.FaBehance, global.FaArrowAltCircleRight, global.FaArrowAltCircleLeft, global.GoStar, global.IoIosStar, global.AiOutlineCloseCircle, global.AnimatedNumbers, global.web, global.reactCountdownCircleTimer, global.reactTypeAnimation, global._extends, global.BackgroundSlideshow, global.HiOutlineLocationMarker, global.FiPhoneCall, global.FaRegEye, global.BsArrowRight, global.BsArrowLeft, global.BsEye, global.BiTimeFive, global.IoIosArrowUp));
5
+ })(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _possibleConstructorReturn, _getPrototypeOf, _inherits, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, imagekitioReact, _asyncToGenerator, _toConsumableArray, _typeof, _regeneratorRuntime, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart$1, FiShoppingBag, FiShoppingCart, AiFillStar$1, AiOutlineStar, FaWhatsapp, IoCall, FaPlus, FaMinus, FiBox$1, reactSlideshowImage, RiArrowGoBackLine, reactAccessibleAccordion, reactShare, FiMinus, FiPlus, ReactStars, FiLayers, HiOutlinePlusCircle, HiOutlineMinusCircle, _taggedTemplateLiteral, TextareaAutosize, InputRange, ReactPlayer, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, DatePicker, FiCalendar, reactHorizontalScrollingMenu, material, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, axios, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, Dropdown, HiUser, GrMail, FiCheckCircle, BiPhone, Select$4, PhoneInput, system, BsChevronLeft, BsChevronRight, RiArrowUpSLine, RiArrowDownSLine, IoIosArrowRoundForward, IoIosArrowRoundBack, FiChevronUp, FiChevronDown, HiOutlinePlus, AiOutlineMinus, reactRouterDom, reactQuery, IoBagCheckOutline, IoBagRemoveOutline, reactIntersectionObserver, FiFilter, FiSliders, FiChevronLeft, FiChevronRight, HiOutlineArrowRight, HiOutlineArrowLeft, ReactPaginate, FaFacebook, AiFillInstagram, BiGlobe, MdKeyboardArrowDown, FaMoneyBillWave, BiLogOutCircle, BiChevronDown, BiUser, AiOutlineLogin, AiOutlineUserAdd, RiSearchLine, CgMenuLeft, CgMenuRight, HiOutlineShoppingBag, RiHandbagLine, AiOutlineClose, VscMenu, VscHeart, IoSearchOutline, AiFillYoutube, IoLogoTiktok, FaLinkedinIn, FaMap, FiMenu, BsChevronDown, IoClose, MdArrowBack, BiSearch, FiUser, AiOutlineHeart, FiPhone, HiMenuAlt4, FiSearch, BsSearch, AiOutlinePhone, GoSearch, AiOutlineInstagram, MdKeyboardArrowUp, RiUserSettingsLine, HiUserCircle, MdCompareArrows, BsInfoCircle, AiFillPhone, FaTelegramPlane, FaPhoneAlt, FaPhone, FiGlobe, FiArrowUpRight, BiUserCircle, FiArrowUpLeft, GoLocation, FaSnapchat, FiHome, RiRoadMapLine, HiOutlineClock, FaGoogle, AiOutlineLinkedin, FaPinterestP, FaTripadvisor, FaBehance, FaArrowAltCircleRight, FaArrowAltCircleLeft, GoStar, IoIosStar, AiOutlineCloseCircle, AnimatedNumbers, web, reactCountdownCircleTimer, reactTypeAnimation, _extends, BackgroundSlideshow, HiOutlineLocationMarker, FiPhoneCall, FaRegEye, BsArrowRight, BsArrowLeft, BsEye, BiTimeFive, IoIosArrowUp) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -27,7 +27,7 @@
27
27
  var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
28
28
  var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
29
29
  var DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(DatePicker);
30
- var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$1);
30
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
31
31
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
32
32
  var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$4);
33
33
  var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
@@ -70780,6 +70780,7 @@
70780
70780
  var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
70781
70781
  var fetchdynamicformfeildsQueryContext = props.actions.fetchdynamicformfeildsQueryContext;
70782
70782
  var ikimagecredcontext = props.actions.ikimagecredcontext;
70783
+ var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
70783
70784
  var _useState = React.useState(''),
70784
70785
  _useState2 = _slicedToArray__default["default"](_useState, 2),
70785
70786
  sectionproperties = _useState2[0],
@@ -70809,6 +70810,7 @@
70809
70810
  _useState12[0];
70810
70811
  _useState12[1];
70811
70812
  var authdetailsContext = props.actions.authdetailsContext;
70813
+ var routingcountext = props.actions.routingcountext;
70812
70814
 
70813
70815
  // const [numberoffields, setnumberoffields] = useState('');
70814
70816
  // const [numberofslides, setnumberofslides] = useState(0);
@@ -70859,44 +70861,13 @@
70859
70861
  }
70860
70862
  });
70861
70863
  }
70862
- }, [fetchdynamicformfeildsQueryContext.isSuccess]);
70864
+ }, [fetchdynamicformfeildsQueryContext.isSuccess, dynamicformid]);
70865
+ // }, [fetchdynamicformfeildsQueryContext.isSuccess]);
70863
70866
  var updateformfield = function updateformfield(value, index) {
70864
70867
  var tempynamicform = _objectSpread$17({}, dynamicform);
70865
70868
  tempynamicform.fields[index].value = value;
70866
70869
  setdynamicform(_objectSpread$17({}, dynamicform));
70867
70870
  };
70868
- // const submitform = () => {
70869
- // var tempynamicform = { ...dynamicform };
70870
- // var fields = tempynamicform.fields;
70871
- // var validationpassed = true;
70872
- // var reason = '';
70873
- // fields?.forEach(function (item, index) {
70874
- // if (item.isrequired == 1) {
70875
- // if (item.value != undefined && item.value != null) {
70876
- // if (item.value.length == 0) {
70877
- // validationpassed = false;
70878
- // reason = item.title_en + ' ' + 'Is Missing';
70879
- // }
70880
- // }
70881
- // }
70882
- // });
70883
- // if (validationpassed) {
70884
- // GeneralAPIMutationContext.mutate({
70885
- // endpointurl: '/submitdynamicforms',
70886
- // data: tempynamicform,
70887
- // mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
70888
- // // setslots(data.data.slots);
70889
- // // alert('done');
70890
- // clearform();
70891
- // setshowpopup(true);
70892
- // setconfirmationtext(langdetect != 'ar' ? 'We have recieved your message' : 'تم استقبال رسالتك');
70893
- // },
70894
- // });
70895
- // } else {
70896
- // NotificationManager.warning('', reason);
70897
- // }
70898
- // };
70899
-
70900
70871
  var submitform = function submitform() {
70901
70872
  var _fetchdynamicformfeil2;
70902
70873
  var tempynamicform = _objectSpread$17({}, dynamicform);
@@ -70940,12 +70911,12 @@
70940
70911
  var axiosheaders = {
70941
70912
  'Content-Type': 'multipart/form-data'
70942
70913
  };
70943
- axios({
70914
+ axios__default["default"]({
70944
70915
  method: 'post',
70945
70916
  url: baseUrl + '/customerapi/customer/webapp/submitdynamicforms_f',
70946
70917
  data: {
70947
70918
  data_1: tempynamicform,
70948
- instapikey: (_fetchAuthorizationQu = fetchAuthorizationQueryContext) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instinfo) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instcred) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.webapp_apikey,
70919
+ instapikey: fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instinfo) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.instcred) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.webapp_apikey,
70949
70920
  endpointurl: '/submitdynamicforms_f',
70950
70921
  lang: langdetect,
70951
70922
  cdata: localStorage.getItem('cdata'),
@@ -71049,16 +71020,15 @@
71049
71020
  "class": "col-lg-12 text-start p-0"
71050
71021
  }, /*#__PURE__*/React__default["default"].createElement("input", {
71051
71022
  type: type,
71052
- value: item.value,
71023
+ value: type == 'file' ? null : item.value,
71053
71024
  onChange: function onChange(event) {
71054
- // updateformfield(event.target.value, index);
71055
71025
  if (type == 'file') {
71056
71026
  updateformfield(event.target.files[0], index);
71057
71027
  } else {
71058
71028
  updateformfield(event.target.value, index);
71059
71029
  }
71060
71030
  },
71061
- placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
71031
+ placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect == 'en' ? item.title_en : item.title_ar,
71062
71032
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
71063
71033
  }))));
71064
71034
  }
@@ -71077,7 +71047,7 @@
71077
71047
  "class": "text-danger"
71078
71048
  }, item.isrequired == 1 ? '*' : ''))), /*#__PURE__*/React__default["default"].createElement(PhoneInput__default["default"], {
71079
71049
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control),
71080
- country: 'eg',
71050
+ country: sectionproperties.countrycode == 'CA' ? 'ca' : sectionproperties.countrycode == 'AE' ? 'ae' : sectionproperties.countrycode == 'SA' ? 'sa' : sectionproperties.countrycode == 'QA' ? 'qa' : sectionproperties.countrycode == 'SD' ? 'sd' : 'eg',
71081
71051
  enableSearch: true,
71082
71052
  autoFormat: true,
71083
71053
  value: item.value,
@@ -71116,7 +71086,7 @@
71116
71086
  onChange: function onChange(event) {
71117
71087
  updateformfield(event.target.value, index);
71118
71088
  },
71119
- placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
71089
+ placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect == 'en' ? item.title_en : item.title_ar,
71120
71090
  className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
71121
71091
  }))));
71122
71092
  };
@@ -71149,10 +71119,10 @@
71149
71119
  }
71150
71120
  }, /*#__PURE__*/React__default["default"].createElement("option", {
71151
71121
  value: ""
71152
- }, langdetect === 'ar' ? 'إختر' : langdetect === 'chin' ? '选择' : langdetect === 'es' ? 'Elegir' : langdetect === 'fr' ? 'Choisir' : langdetect === 'rus' ? 'Выбрать' : 'Choose'), decoditems === null || decoditems === void 0 ? void 0 : decoditems.map(function (sitem) {
71122
+ }, langdetect == 'en' ? 'Choose' : 'إختر'), decoditems === null || decoditems === void 0 ? void 0 : decoditems.map(function (sitem) {
71153
71123
  return /*#__PURE__*/React__default["default"].createElement("option", {
71154
71124
  value: sitem.optionname_en
71155
- }, langdetect != 'ar' ? sitem.optionname_en : sitem.optionname_ar);
71125
+ }, langdetect == 'en' ? sitem.optionname_en : sitem.optionname_ar);
71156
71126
  })))));
71157
71127
  }
71158
71128
  }
@@ -71199,11 +71169,11 @@
71199
71169
  width: 40,
71200
71170
  height: 40,
71201
71171
  // borderRadius: 20,
71202
- borderRight: langdetect != 'ar' ? '1px solid #ccc' : 0,
71172
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : 0,
71203
71173
  backgroundColor: '#000',
71204
71174
  cursor: 'pointer',
71205
- borderTopLeftRadius: langdetect != 'ar' ? 5 : 0,
71206
- borderBottomLeftRadius: langdetect != 'ar' ? 5 : 0,
71175
+ borderTopLeftRadius: langdetect == 'en' ? 5 : 0,
71176
+ borderBottomLeftRadius: langdetect == 'en' ? 5 : 0,
71207
71177
  borderTopRightRadius: langdetect == 'ar' ? 5 : 0,
71208
71178
  borderBottomRightRadius: langdetect == 'ar' ? 5 : 0,
71209
71179
  ':hover': {
@@ -71214,11 +71184,11 @@
71214
71184
  btnRight: glamor.css({
71215
71185
  width: 40,
71216
71186
  height: 40,
71217
- borderLeft: langdetect != 'ar' ? '1px solid #ccc' : 0,
71187
+ borderLeft: langdetect == 'en' ? '1px solid #ccc' : 0,
71218
71188
  backgroundColor: '#000',
71219
71189
  cursor: 'pointer',
71220
- borderTopRightRadius: langdetect != 'ar' ? 5 : 0,
71221
- borderBottomRightRadius: langdetect != 'ar' ? 5 : 0,
71190
+ borderTopRightRadius: langdetect == 'en' ? 5 : 0,
71191
+ borderBottomRightRadius: langdetect == 'en' ? 5 : 0,
71222
71192
  borderTopLeftRadius: langdetect == 'ar' ? 5 : 0,
71223
71193
  borderBottomLeftRadius: langdetect == 'ar' ? 5 : 0,
71224
71194
  ':hover': {
@@ -71236,8 +71206,8 @@
71236
71206
  }),
71237
71207
  formcontainer: glamor.css({
71238
71208
  background: sectionproperties.backgroundColor,
71239
- paddingLeft: langdetect != 'ar' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
71240
- paddingRight: langdetect != 'ar' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
71209
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
71210
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
71241
71211
  paddingTop: sectionproperties.cardpaddingvertical != 0 ? sectionproperties.cardpaddingvertical : sectionproperties.paddingTop + 'px',
71242
71212
  paddingBottom: sectionproperties.cardpaddingvertical != 0 ? sectionproperties.cardpaddingvertical : sectionproperties.paddingBottom + 'px',
71243
71213
  '@media (max-width: 800px)': {
@@ -71256,8 +71226,8 @@
71256
71226
  }, /*#__PURE__*/React__default["default"].createElement("div", {
71257
71227
  "class": "row m-0 w-100 d-flex align-items-center",
71258
71228
  style: {
71259
- paddingLeft: langdetect != 'ar' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
71260
- paddingRight: langdetect != 'ar' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px'
71229
+ paddingLeft: langdetect == 'en' ? sectionproperties.reservation_padding_left + 'px' : sectionproperties.reservation_padding_right + 'px',
71230
+ paddingRight: langdetect == 'en' ? sectionproperties.reservation_padding_right + 'px' : sectionproperties.reservation_padding_left + 'px'
71261
71231
  }
71262
71232
  }, /*#__PURE__*/React__default["default"].createElement("div", {
71263
71233
  "class": "col-lg-12 text-start",
@@ -71272,7 +71242,7 @@
71272
71242
  fontSize: sectionproperties.sectionTitleFontSize + 'px',
71273
71243
  fontWeight: sectionproperties.sectionTitleFontWeight
71274
71244
  }
71275
- }, langdetect != 'ar' ? formtitleen : formtitlear)), sectionproperties.prodCatFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
71245
+ }, langdetect == 'en' ? formtitleen : formtitlear)), sectionproperties.prodCatFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
71276
71246
  "class": "col-lg-12 text-start",
71277
71247
  style: {
71278
71248
  marginBottom: sectionproperties.descriptionMarginBottom + 'px'
@@ -71280,7 +71250,7 @@
71280
71250
  }, /*#__PURE__*/React__default["default"].createElement("p", {
71281
71251
  "class": form_cssstyles.descriptioncontent + ' m-0 p-0 ',
71282
71252
  style: {
71283
- textAlign: langdetect != 'ar' ? 'left' : 'right'
71253
+ textAlign: langdetect == 'en' ? 'left' : 'right'
71284
71254
  }
71285
71255
  }, sectionproperties["descriptionContent".concat(langdetect)] || sectionproperties.descriptionContentEn)), (dynamicform === null || dynamicform === void 0 ? void 0 : dynamicform.id) != undefined && /*#__PURE__*/React__default["default"].createElement("div", {
71286
71256
  "class": 'row m-0 w-100 '
@@ -71339,7 +71309,7 @@
71339
71309
  , {
71340
71310
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
71341
71311
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
71342
- path: langdetect != 'ar' ? '/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),
71312
+ path: 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),
71343
71313
  style: {
71344
71314
  width: '100%',
71345
71315
  height: '100%'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.50.231",
3
+ "version": "0.50.232",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",