tabexseriescomponents 0.50.228 → 0.50.231
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 +114 -22
- package/dist/index.esm.js +114 -22
- package/dist/index.umd.js +115 -23
- package/package.json +1 -1
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 = require('axios');
|
|
66
|
+
var axios$1 = 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);
|
|
225
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$1);
|
|
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);
|
|
@@ -71060,32 +71060,110 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
71060
71060
|
tempynamicform.fields[index].value = value;
|
|
71061
71061
|
setdynamicform(_objectSpread$17({}, dynamicform));
|
|
71062
71062
|
};
|
|
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
|
+
|
|
71063
71095
|
var submitform = function submitform() {
|
|
71096
|
+
var _fetchdynamicformfeil2;
|
|
71064
71097
|
var tempynamicform = _objectSpread$17({}, dynamicform);
|
|
71065
71098
|
var fields = tempynamicform.fields;
|
|
71066
71099
|
var validationpassed = true;
|
|
71067
71100
|
var reason = '';
|
|
71068
|
-
|
|
71101
|
+
var fullUrl = fetchdynamicformfeildsQueryContext === null || fetchdynamicformfeildsQueryContext === void 0 || (_fetchdynamicformfeil2 = fetchdynamicformfeildsQueryContext.data) === null || _fetchdynamicformfeil2 === void 0 || (_fetchdynamicformfeil2 = _fetchdynamicformfeil2.config) === null || _fetchdynamicformfeil2 === void 0 ? void 0 : _fetchdynamicformfeil2.url;
|
|
71102
|
+
var baseUrl = fullUrl ? new URL(fullUrl).origin : null;
|
|
71103
|
+
fields === null || fields === void 0 || fields.forEach(function (item) {
|
|
71069
71104
|
if (item.isrequired == 1) {
|
|
71105
|
+
if (authdetailsContext.instinfo.instid == '68527dfef348b') {
|
|
71106
|
+
if (item.title_en == 'Email') {
|
|
71107
|
+
var _item$value;
|
|
71108
|
+
var email = ((_item$value = item.value) === null || _item$value === void 0 ? void 0 : _item$value.trim()) || '';
|
|
71109
|
+
var isValidEmail = email.includes('@') && email.endsWith('.com');
|
|
71110
|
+
if (!isValidEmail) {
|
|
71111
|
+
validationpassed = false;
|
|
71112
|
+
reason = 'Please enter a valid email.';
|
|
71113
|
+
}
|
|
71114
|
+
// validationpassed = false;
|
|
71115
|
+
} else if (item.title_en == 'Mobile Number') {
|
|
71116
|
+
if (item.value.length < 11) {
|
|
71117
|
+
validationpassed = false;
|
|
71118
|
+
reason = 'Please enter a valid mobile number';
|
|
71119
|
+
}
|
|
71120
|
+
}
|
|
71121
|
+
}
|
|
71070
71122
|
if (item.value != undefined && item.value != null) {
|
|
71071
71123
|
if (item.value.length == 0) {
|
|
71072
71124
|
validationpassed = false;
|
|
71073
|
-
reason = item.title_en + '
|
|
71125
|
+
reason = item.title_en + ' is missing';
|
|
71074
71126
|
}
|
|
71127
|
+
} else {
|
|
71128
|
+
validationpassed = false;
|
|
71129
|
+
reason = item.title_en + ' is missing';
|
|
71075
71130
|
}
|
|
71076
71131
|
}
|
|
71077
71132
|
});
|
|
71078
71133
|
if (validationpassed) {
|
|
71079
|
-
|
|
71080
|
-
|
|
71081
|
-
|
|
71082
|
-
|
|
71083
|
-
|
|
71084
|
-
|
|
71134
|
+
var _fetchAuthorizationQu;
|
|
71135
|
+
var axiosheaders = {
|
|
71136
|
+
'Content-Type': 'multipart/form-data'
|
|
71137
|
+
};
|
|
71138
|
+
axios({
|
|
71139
|
+
method: 'post',
|
|
71140
|
+
url: baseUrl + '/customerapi/customer/webapp/submitdynamicforms_f',
|
|
71141
|
+
data: {
|
|
71142
|
+
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,
|
|
71144
|
+
endpointurl: '/submitdynamicforms_f',
|
|
71145
|
+
lang: langdetect,
|
|
71146
|
+
cdata: localStorage.getItem('cdata'),
|
|
71147
|
+
currencyid: null
|
|
71148
|
+
},
|
|
71149
|
+
headers: axiosheaders
|
|
71150
|
+
}).then(function (response) {
|
|
71151
|
+
var data = response.data;
|
|
71152
|
+
// if you want to handle status checks
|
|
71153
|
+
if (data.status) {
|
|
71085
71154
|
clearform();
|
|
71086
|
-
|
|
71087
|
-
|
|
71155
|
+
if (authdetailsContext.instinfo.instid == '68527dfef348b') {
|
|
71156
|
+
routingcountext('submission-form', false, '');
|
|
71157
|
+
} else {
|
|
71158
|
+
setshowpopup(true);
|
|
71159
|
+
}
|
|
71160
|
+
setconfirmationtext(langdetect == 'en' ? 'We have received your message' : 'تم استقبال رسالتك');
|
|
71161
|
+
} else {
|
|
71162
|
+
NotificationManager.warning('', data.reason || 'Something went wrong');
|
|
71088
71163
|
}
|
|
71164
|
+
})["catch"](function (error) {
|
|
71165
|
+
console.error(error);
|
|
71166
|
+
NotificationManager.error('', 'Server error occurred');
|
|
71089
71167
|
});
|
|
71090
71168
|
} else {
|
|
71091
71169
|
NotificationManager.warning('', reason);
|
|
@@ -71168,7 +71246,12 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
71168
71246
|
type: type,
|
|
71169
71247
|
value: item.value,
|
|
71170
71248
|
onChange: function onChange(event) {
|
|
71171
|
-
updateformfield(event.target.value, index);
|
|
71249
|
+
// updateformfield(event.target.value, index);
|
|
71250
|
+
if (type == 'file') {
|
|
71251
|
+
updateformfield(event.target.files[0], index);
|
|
71252
|
+
} else {
|
|
71253
|
+
updateformfield(event.target.value, index);
|
|
71254
|
+
}
|
|
71172
71255
|
},
|
|
71173
71256
|
placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
|
|
71174
71257
|
className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
|
|
@@ -72105,7 +72188,7 @@ var TableSection = function TableSection(props) {
|
|
|
72105
72188
|
}
|
|
72106
72189
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72107
72190
|
"class": section_styles.sectiontitle + ' m-0 p-0 '
|
|
72108
|
-
}, sectionproperties.sectionTitleContent)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72191
|
+
}, " ", sectionproperties["sectionTitleContent_".concat(langdetect)] || sectionproperties.sectionTitleContent)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72109
72192
|
"class": "col-12 p-0 d-flex ",
|
|
72110
72193
|
style: {
|
|
72111
72194
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px',
|
|
@@ -72113,8 +72196,8 @@ var TableSection = function TableSection(props) {
|
|
|
72113
72196
|
}
|
|
72114
72197
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72115
72198
|
"class": section_styles.description + ' m-0 p-0 '
|
|
72116
|
-
}, sectionproperties.descriptionContentEn)), cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
72117
|
-
var _plancontentarray$car;
|
|
72199
|
+
}, sectionproperties["descriptionContent".concat(langdetect)] || sectionproperties.descriptionContentEn)), cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
72200
|
+
var _plancontentarray$car, _plancontentarray$car2;
|
|
72118
72201
|
var contentKey = langdetect === 'en' ? 'content_en' : langdetect === 'ar' ? 'content_ar' : 'content_chin';
|
|
72119
72202
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72120
72203
|
className: ' col-lg-4 col-md-12 mb-3 ',
|
|
@@ -72142,17 +72225,26 @@ var TableSection = function TableSection(props) {
|
|
|
72142
72225
|
color: cardinfoitem.plancolor
|
|
72143
72226
|
}
|
|
72144
72227
|
}, cardinfoitem.planname_en), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72145
|
-
className: "pricing-content allcentered"
|
|
72146
|
-
},
|
|
72147
|
-
|
|
72228
|
+
className: "pricing-content allcentered row m-0 w-100"
|
|
72229
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72230
|
+
"class": "col-12 p-0 allcentered mb-3"
|
|
72231
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72232
|
+
className: "m-0 p-0 w-100 allcentered",
|
|
72233
|
+
style: {
|
|
72234
|
+
fontSize: 22,
|
|
72235
|
+
fontWeight: 600,
|
|
72236
|
+
color: cardinfoitem.planbgcolor
|
|
72237
|
+
}
|
|
72238
|
+
}, (_plancontentarray$car = plancontentarray[cardinfoindex]) === null || _plancontentarray$car === void 0 || (_plancontentarray$car = _plancontentarray$car[contentKey]) === null || _plancontentarray$car === void 0 ? void 0 : _plancontentarray$car[0])), (_plancontentarray$car2 = plancontentarray[cardinfoindex]) === null || _plancontentarray$car2 === void 0 || (_plancontentarray$car2 = _plancontentarray$car2[contentKey]) === null || _plancontentarray$car2 === void 0 ? void 0 : _plancontentarray$car2.slice(1).map(function (contentitem, contentindex) {
|
|
72239
|
+
var _plancontentarray$car3;
|
|
72148
72240
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72149
72241
|
key: contentindex,
|
|
72150
|
-
"class": "m-0 p-0 mb-2 d-flex align-items-center justify-content-start",
|
|
72242
|
+
"class": " col-12 m-0 p-0 mb-2 d-flex align-items-center justify-content-start",
|
|
72151
72243
|
style: {
|
|
72152
72244
|
fontSize: 16,
|
|
72153
72245
|
color: '#000'
|
|
72154
72246
|
}
|
|
72155
|
-
}, (_plancontentarray$
|
|
72247
|
+
}, (_plancontentarray$car3 = plancontentarray[cardinfoindex]) === null || _plancontentarray$car3 === void 0 || (_plancontentarray$car3 = _plancontentarray$car3.icons) === null || _plancontentarray$car3 === void 0 ? void 0 : _plancontentarray$car3[contentindex], /*#__PURE__*/React__default["default"].createElement("span", {
|
|
72156
72248
|
className: "mx-2"
|
|
72157
72249
|
}, contentitem));
|
|
72158
72250
|
}), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -72170,7 +72262,7 @@ var TableSection = function TableSection(props) {
|
|
|
72170
72262
|
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
72171
72263
|
borderRadius: sectionproperties.generalbtnborderradius + 'px'
|
|
72172
72264
|
}
|
|
72173
|
-
}, sectionproperties.
|
|
72265
|
+
}, sectionproperties["slideshow_btn_text_".concat(langdetect)] || sectionproperties.generalbtn_content)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72174
72266
|
"class": 'beforewrapper',
|
|
72175
72267
|
style: {
|
|
72176
72268
|
background: cardinfoitem.planbgcolor
|
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 from 'axios';
|
|
64
|
+
import axios$1 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.get(url).then(function (response) {
|
|
11279
|
+
return axios$1.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) {
|
|
@@ -71008,32 +71008,110 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
71008
71008
|
tempynamicform.fields[index].value = value;
|
|
71009
71009
|
setdynamicform(_objectSpread$17({}, dynamicform));
|
|
71010
71010
|
};
|
|
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
|
+
|
|
71011
71043
|
var submitform = function submitform() {
|
|
71044
|
+
var _fetchdynamicformfeil2;
|
|
71012
71045
|
var tempynamicform = _objectSpread$17({}, dynamicform);
|
|
71013
71046
|
var fields = tempynamicform.fields;
|
|
71014
71047
|
var validationpassed = true;
|
|
71015
71048
|
var reason = '';
|
|
71016
|
-
|
|
71049
|
+
var fullUrl = fetchdynamicformfeildsQueryContext === null || fetchdynamicformfeildsQueryContext === void 0 || (_fetchdynamicformfeil2 = fetchdynamicformfeildsQueryContext.data) === null || _fetchdynamicformfeil2 === void 0 || (_fetchdynamicformfeil2 = _fetchdynamicformfeil2.config) === null || _fetchdynamicformfeil2 === void 0 ? void 0 : _fetchdynamicformfeil2.url;
|
|
71050
|
+
var baseUrl = fullUrl ? new URL(fullUrl).origin : null;
|
|
71051
|
+
fields === null || fields === void 0 || fields.forEach(function (item) {
|
|
71017
71052
|
if (item.isrequired == 1) {
|
|
71053
|
+
if (authdetailsContext.instinfo.instid == '68527dfef348b') {
|
|
71054
|
+
if (item.title_en == 'Email') {
|
|
71055
|
+
var _item$value;
|
|
71056
|
+
var email = ((_item$value = item.value) === null || _item$value === void 0 ? void 0 : _item$value.trim()) || '';
|
|
71057
|
+
var isValidEmail = email.includes('@') && email.endsWith('.com');
|
|
71058
|
+
if (!isValidEmail) {
|
|
71059
|
+
validationpassed = false;
|
|
71060
|
+
reason = 'Please enter a valid email.';
|
|
71061
|
+
}
|
|
71062
|
+
// validationpassed = false;
|
|
71063
|
+
} else if (item.title_en == 'Mobile Number') {
|
|
71064
|
+
if (item.value.length < 11) {
|
|
71065
|
+
validationpassed = false;
|
|
71066
|
+
reason = 'Please enter a valid mobile number';
|
|
71067
|
+
}
|
|
71068
|
+
}
|
|
71069
|
+
}
|
|
71018
71070
|
if (item.value != undefined && item.value != null) {
|
|
71019
71071
|
if (item.value.length == 0) {
|
|
71020
71072
|
validationpassed = false;
|
|
71021
|
-
reason = item.title_en + '
|
|
71073
|
+
reason = item.title_en + ' is missing';
|
|
71022
71074
|
}
|
|
71075
|
+
} else {
|
|
71076
|
+
validationpassed = false;
|
|
71077
|
+
reason = item.title_en + ' is missing';
|
|
71023
71078
|
}
|
|
71024
71079
|
}
|
|
71025
71080
|
});
|
|
71026
71081
|
if (validationpassed) {
|
|
71027
|
-
|
|
71028
|
-
|
|
71029
|
-
|
|
71030
|
-
|
|
71031
|
-
|
|
71032
|
-
|
|
71082
|
+
var _fetchAuthorizationQu;
|
|
71083
|
+
var axiosheaders = {
|
|
71084
|
+
'Content-Type': 'multipart/form-data'
|
|
71085
|
+
};
|
|
71086
|
+
axios({
|
|
71087
|
+
method: 'post',
|
|
71088
|
+
url: baseUrl + '/customerapi/customer/webapp/submitdynamicforms_f',
|
|
71089
|
+
data: {
|
|
71090
|
+
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,
|
|
71092
|
+
endpointurl: '/submitdynamicforms_f',
|
|
71093
|
+
lang: langdetect,
|
|
71094
|
+
cdata: localStorage.getItem('cdata'),
|
|
71095
|
+
currencyid: null
|
|
71096
|
+
},
|
|
71097
|
+
headers: axiosheaders
|
|
71098
|
+
}).then(function (response) {
|
|
71099
|
+
var data = response.data;
|
|
71100
|
+
// if you want to handle status checks
|
|
71101
|
+
if (data.status) {
|
|
71033
71102
|
clearform();
|
|
71034
|
-
|
|
71035
|
-
|
|
71103
|
+
if (authdetailsContext.instinfo.instid == '68527dfef348b') {
|
|
71104
|
+
routingcountext('submission-form', false, '');
|
|
71105
|
+
} else {
|
|
71106
|
+
setshowpopup(true);
|
|
71107
|
+
}
|
|
71108
|
+
setconfirmationtext(langdetect == 'en' ? 'We have received your message' : 'تم استقبال رسالتك');
|
|
71109
|
+
} else {
|
|
71110
|
+
NotificationManager.warning('', data.reason || 'Something went wrong');
|
|
71036
71111
|
}
|
|
71112
|
+
})["catch"](function (error) {
|
|
71113
|
+
console.error(error);
|
|
71114
|
+
NotificationManager.error('', 'Server error occurred');
|
|
71037
71115
|
});
|
|
71038
71116
|
} else {
|
|
71039
71117
|
NotificationManager.warning('', reason);
|
|
@@ -71116,7 +71194,12 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
71116
71194
|
type: type,
|
|
71117
71195
|
value: item.value,
|
|
71118
71196
|
onChange: function onChange(event) {
|
|
71119
|
-
updateformfield(event.target.value, index);
|
|
71197
|
+
// updateformfield(event.target.value, index);
|
|
71198
|
+
if (type == 'file') {
|
|
71199
|
+
updateformfield(event.target.files[0], index);
|
|
71200
|
+
} else {
|
|
71201
|
+
updateformfield(event.target.value, index);
|
|
71202
|
+
}
|
|
71120
71203
|
},
|
|
71121
71204
|
placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
|
|
71122
71205
|
className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
|
|
@@ -72053,7 +72136,7 @@ var TableSection = function TableSection(props) {
|
|
|
72053
72136
|
}
|
|
72054
72137
|
}, /*#__PURE__*/React.createElement("p", {
|
|
72055
72138
|
"class": section_styles.sectiontitle + ' m-0 p-0 '
|
|
72056
|
-
}, sectionproperties.sectionTitleContent)), /*#__PURE__*/React.createElement("div", {
|
|
72139
|
+
}, " ", sectionproperties["sectionTitleContent_".concat(langdetect)] || sectionproperties.sectionTitleContent)), /*#__PURE__*/React.createElement("div", {
|
|
72057
72140
|
"class": "col-12 p-0 d-flex ",
|
|
72058
72141
|
style: {
|
|
72059
72142
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px',
|
|
@@ -72061,8 +72144,8 @@ var TableSection = function TableSection(props) {
|
|
|
72061
72144
|
}
|
|
72062
72145
|
}, /*#__PURE__*/React.createElement("p", {
|
|
72063
72146
|
"class": section_styles.description + ' m-0 p-0 '
|
|
72064
|
-
}, sectionproperties.descriptionContentEn)), cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
72065
|
-
var _plancontentarray$car;
|
|
72147
|
+
}, sectionproperties["descriptionContent".concat(langdetect)] || sectionproperties.descriptionContentEn)), cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
72148
|
+
var _plancontentarray$car, _plancontentarray$car2;
|
|
72066
72149
|
var contentKey = langdetect === 'en' ? 'content_en' : langdetect === 'ar' ? 'content_ar' : 'content_chin';
|
|
72067
72150
|
return /*#__PURE__*/React.createElement("div", {
|
|
72068
72151
|
className: ' col-lg-4 col-md-12 mb-3 ',
|
|
@@ -72090,17 +72173,26 @@ var TableSection = function TableSection(props) {
|
|
|
72090
72173
|
color: cardinfoitem.plancolor
|
|
72091
72174
|
}
|
|
72092
72175
|
}, cardinfoitem.planname_en), /*#__PURE__*/React.createElement("div", {
|
|
72093
|
-
className: "pricing-content allcentered"
|
|
72094
|
-
},
|
|
72095
|
-
|
|
72176
|
+
className: "pricing-content allcentered row m-0 w-100"
|
|
72177
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
72178
|
+
"class": "col-12 p-0 allcentered mb-3"
|
|
72179
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
72180
|
+
className: "m-0 p-0 w-100 allcentered",
|
|
72181
|
+
style: {
|
|
72182
|
+
fontSize: 22,
|
|
72183
|
+
fontWeight: 600,
|
|
72184
|
+
color: cardinfoitem.planbgcolor
|
|
72185
|
+
}
|
|
72186
|
+
}, (_plancontentarray$car = plancontentarray[cardinfoindex]) === null || _plancontentarray$car === void 0 || (_plancontentarray$car = _plancontentarray$car[contentKey]) === null || _plancontentarray$car === void 0 ? void 0 : _plancontentarray$car[0])), (_plancontentarray$car2 = plancontentarray[cardinfoindex]) === null || _plancontentarray$car2 === void 0 || (_plancontentarray$car2 = _plancontentarray$car2[contentKey]) === null || _plancontentarray$car2 === void 0 ? void 0 : _plancontentarray$car2.slice(1).map(function (contentitem, contentindex) {
|
|
72187
|
+
var _plancontentarray$car3;
|
|
72096
72188
|
return /*#__PURE__*/React.createElement("p", {
|
|
72097
72189
|
key: contentindex,
|
|
72098
|
-
"class": "m-0 p-0 mb-2 d-flex align-items-center justify-content-start",
|
|
72190
|
+
"class": " col-12 m-0 p-0 mb-2 d-flex align-items-center justify-content-start",
|
|
72099
72191
|
style: {
|
|
72100
72192
|
fontSize: 16,
|
|
72101
72193
|
color: '#000'
|
|
72102
72194
|
}
|
|
72103
|
-
}, (_plancontentarray$
|
|
72195
|
+
}, (_plancontentarray$car3 = plancontentarray[cardinfoindex]) === null || _plancontentarray$car3 === void 0 || (_plancontentarray$car3 = _plancontentarray$car3.icons) === null || _plancontentarray$car3 === void 0 ? void 0 : _plancontentarray$car3[contentindex], /*#__PURE__*/React.createElement("span", {
|
|
72104
72196
|
className: "mx-2"
|
|
72105
72197
|
}, contentitem));
|
|
72106
72198
|
}), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
@@ -72118,7 +72210,7 @@ var TableSection = function TableSection(props) {
|
|
|
72118
72210
|
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
72119
72211
|
borderRadius: sectionproperties.generalbtnborderradius + 'px'
|
|
72120
72212
|
}
|
|
72121
|
-
}, sectionproperties.
|
|
72213
|
+
}, sectionproperties["slideshow_btn_text_".concat(langdetect)] || sectionproperties.generalbtn_content)))), /*#__PURE__*/React.createElement("div", {
|
|
72122
72214
|
"class": 'beforewrapper',
|
|
72123
72215
|
style: {
|
|
72124
72216
|
background: cardinfoitem.planbgcolor
|
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, 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';
|
|
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';
|
|
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);
|
|
30
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$1);
|
|
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);
|
|
@@ -70865,32 +70865,110 @@
|
|
|
70865
70865
|
tempynamicform.fields[index].value = value;
|
|
70866
70866
|
setdynamicform(_objectSpread$17({}, dynamicform));
|
|
70867
70867
|
};
|
|
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
|
+
|
|
70868
70900
|
var submitform = function submitform() {
|
|
70901
|
+
var _fetchdynamicformfeil2;
|
|
70869
70902
|
var tempynamicform = _objectSpread$17({}, dynamicform);
|
|
70870
70903
|
var fields = tempynamicform.fields;
|
|
70871
70904
|
var validationpassed = true;
|
|
70872
70905
|
var reason = '';
|
|
70873
|
-
|
|
70906
|
+
var fullUrl = fetchdynamicformfeildsQueryContext === null || fetchdynamicformfeildsQueryContext === void 0 || (_fetchdynamicformfeil2 = fetchdynamicformfeildsQueryContext.data) === null || _fetchdynamicformfeil2 === void 0 || (_fetchdynamicformfeil2 = _fetchdynamicformfeil2.config) === null || _fetchdynamicformfeil2 === void 0 ? void 0 : _fetchdynamicformfeil2.url;
|
|
70907
|
+
var baseUrl = fullUrl ? new URL(fullUrl).origin : null;
|
|
70908
|
+
fields === null || fields === void 0 || fields.forEach(function (item) {
|
|
70874
70909
|
if (item.isrequired == 1) {
|
|
70910
|
+
if (authdetailsContext.instinfo.instid == '68527dfef348b') {
|
|
70911
|
+
if (item.title_en == 'Email') {
|
|
70912
|
+
var _item$value;
|
|
70913
|
+
var email = ((_item$value = item.value) === null || _item$value === void 0 ? void 0 : _item$value.trim()) || '';
|
|
70914
|
+
var isValidEmail = email.includes('@') && email.endsWith('.com');
|
|
70915
|
+
if (!isValidEmail) {
|
|
70916
|
+
validationpassed = false;
|
|
70917
|
+
reason = 'Please enter a valid email.';
|
|
70918
|
+
}
|
|
70919
|
+
// validationpassed = false;
|
|
70920
|
+
} else if (item.title_en == 'Mobile Number') {
|
|
70921
|
+
if (item.value.length < 11) {
|
|
70922
|
+
validationpassed = false;
|
|
70923
|
+
reason = 'Please enter a valid mobile number';
|
|
70924
|
+
}
|
|
70925
|
+
}
|
|
70926
|
+
}
|
|
70875
70927
|
if (item.value != undefined && item.value != null) {
|
|
70876
70928
|
if (item.value.length == 0) {
|
|
70877
70929
|
validationpassed = false;
|
|
70878
|
-
reason = item.title_en + '
|
|
70930
|
+
reason = item.title_en + ' is missing';
|
|
70879
70931
|
}
|
|
70932
|
+
} else {
|
|
70933
|
+
validationpassed = false;
|
|
70934
|
+
reason = item.title_en + ' is missing';
|
|
70880
70935
|
}
|
|
70881
70936
|
}
|
|
70882
70937
|
});
|
|
70883
70938
|
if (validationpassed) {
|
|
70884
|
-
|
|
70885
|
-
|
|
70886
|
-
|
|
70887
|
-
|
|
70888
|
-
|
|
70889
|
-
|
|
70939
|
+
var _fetchAuthorizationQu;
|
|
70940
|
+
var axiosheaders = {
|
|
70941
|
+
'Content-Type': 'multipart/form-data'
|
|
70942
|
+
};
|
|
70943
|
+
axios({
|
|
70944
|
+
method: 'post',
|
|
70945
|
+
url: baseUrl + '/customerapi/customer/webapp/submitdynamicforms_f',
|
|
70946
|
+
data: {
|
|
70947
|
+
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,
|
|
70949
|
+
endpointurl: '/submitdynamicforms_f',
|
|
70950
|
+
lang: langdetect,
|
|
70951
|
+
cdata: localStorage.getItem('cdata'),
|
|
70952
|
+
currencyid: null
|
|
70953
|
+
},
|
|
70954
|
+
headers: axiosheaders
|
|
70955
|
+
}).then(function (response) {
|
|
70956
|
+
var data = response.data;
|
|
70957
|
+
// if you want to handle status checks
|
|
70958
|
+
if (data.status) {
|
|
70890
70959
|
clearform();
|
|
70891
|
-
|
|
70892
|
-
|
|
70960
|
+
if (authdetailsContext.instinfo.instid == '68527dfef348b') {
|
|
70961
|
+
routingcountext('submission-form', false, '');
|
|
70962
|
+
} else {
|
|
70963
|
+
setshowpopup(true);
|
|
70964
|
+
}
|
|
70965
|
+
setconfirmationtext(langdetect == 'en' ? 'We have received your message' : 'تم استقبال رسالتك');
|
|
70966
|
+
} else {
|
|
70967
|
+
NotificationManager.warning('', data.reason || 'Something went wrong');
|
|
70893
70968
|
}
|
|
70969
|
+
})["catch"](function (error) {
|
|
70970
|
+
console.error(error);
|
|
70971
|
+
NotificationManager.error('', 'Server error occurred');
|
|
70894
70972
|
});
|
|
70895
70973
|
} else {
|
|
70896
70974
|
NotificationManager.warning('', reason);
|
|
@@ -70973,7 +71051,12 @@
|
|
|
70973
71051
|
type: type,
|
|
70974
71052
|
value: item.value,
|
|
70975
71053
|
onChange: function onChange(event) {
|
|
70976
|
-
updateformfield(event.target.value, index);
|
|
71054
|
+
// updateformfield(event.target.value, index);
|
|
71055
|
+
if (type == 'file') {
|
|
71056
|
+
updateformfield(event.target.files[0], index);
|
|
71057
|
+
} else {
|
|
71058
|
+
updateformfield(event.target.value, index);
|
|
71059
|
+
}
|
|
70977
71060
|
},
|
|
70978
71061
|
placeholder: sectionproperties.form_labelfontsize != 0 ? '' : langdetect != 'ar' ? item.title_en : item.title_ar,
|
|
70979
71062
|
className: "".concat(formstyles.form_control, " ").concat(form_cssstyles.form_control)
|
|
@@ -71910,7 +71993,7 @@
|
|
|
71910
71993
|
}
|
|
71911
71994
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
71912
71995
|
"class": section_styles.sectiontitle + ' m-0 p-0 '
|
|
71913
|
-
}, sectionproperties.sectionTitleContent)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71996
|
+
}, " ", sectionproperties["sectionTitleContent_".concat(langdetect)] || sectionproperties.sectionTitleContent)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71914
71997
|
"class": "col-12 p-0 d-flex ",
|
|
71915
71998
|
style: {
|
|
71916
71999
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px',
|
|
@@ -71918,8 +72001,8 @@
|
|
|
71918
72001
|
}
|
|
71919
72002
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
71920
72003
|
"class": section_styles.description + ' m-0 p-0 '
|
|
71921
|
-
}, sectionproperties.descriptionContentEn)), cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
71922
|
-
var _plancontentarray$car;
|
|
72004
|
+
}, sectionproperties["descriptionContent".concat(langdetect)] || sectionproperties.descriptionContentEn)), cardsarray.map(function (cardinfoitem, cardinfoindex) {
|
|
72005
|
+
var _plancontentarray$car, _plancontentarray$car2;
|
|
71923
72006
|
var contentKey = langdetect === 'en' ? 'content_en' : langdetect === 'ar' ? 'content_ar' : 'content_chin';
|
|
71924
72007
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71925
72008
|
className: ' col-lg-4 col-md-12 mb-3 ',
|
|
@@ -71947,17 +72030,26 @@
|
|
|
71947
72030
|
color: cardinfoitem.plancolor
|
|
71948
72031
|
}
|
|
71949
72032
|
}, cardinfoitem.planname_en), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71950
|
-
className: "pricing-content allcentered"
|
|
71951
|
-
},
|
|
71952
|
-
|
|
72033
|
+
className: "pricing-content allcentered row m-0 w-100"
|
|
72034
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72035
|
+
"class": "col-12 p-0 allcentered mb-3"
|
|
72036
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72037
|
+
className: "m-0 p-0 w-100 allcentered",
|
|
72038
|
+
style: {
|
|
72039
|
+
fontSize: 22,
|
|
72040
|
+
fontWeight: 600,
|
|
72041
|
+
color: cardinfoitem.planbgcolor
|
|
72042
|
+
}
|
|
72043
|
+
}, (_plancontentarray$car = plancontentarray[cardinfoindex]) === null || _plancontentarray$car === void 0 || (_plancontentarray$car = _plancontentarray$car[contentKey]) === null || _plancontentarray$car === void 0 ? void 0 : _plancontentarray$car[0])), (_plancontentarray$car2 = plancontentarray[cardinfoindex]) === null || _plancontentarray$car2 === void 0 || (_plancontentarray$car2 = _plancontentarray$car2[contentKey]) === null || _plancontentarray$car2 === void 0 ? void 0 : _plancontentarray$car2.slice(1).map(function (contentitem, contentindex) {
|
|
72044
|
+
var _plancontentarray$car3;
|
|
71953
72045
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
71954
72046
|
key: contentindex,
|
|
71955
|
-
"class": "m-0 p-0 mb-2 d-flex align-items-center justify-content-start",
|
|
72047
|
+
"class": " col-12 m-0 p-0 mb-2 d-flex align-items-center justify-content-start",
|
|
71956
72048
|
style: {
|
|
71957
72049
|
fontSize: 16,
|
|
71958
72050
|
color: '#000'
|
|
71959
72051
|
}
|
|
71960
|
-
}, (_plancontentarray$
|
|
72052
|
+
}, (_plancontentarray$car3 = plancontentarray[cardinfoindex]) === null || _plancontentarray$car3 === void 0 || (_plancontentarray$car3 = _plancontentarray$car3.icons) === null || _plancontentarray$car3 === void 0 ? void 0 : _plancontentarray$car3[contentindex], /*#__PURE__*/React__default["default"].createElement("span", {
|
|
71961
72053
|
className: "mx-2"
|
|
71962
72054
|
}, contentitem));
|
|
71963
72055
|
}), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -71975,7 +72067,7 @@
|
|
|
71975
72067
|
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
71976
72068
|
borderRadius: sectionproperties.generalbtnborderradius + 'px'
|
|
71977
72069
|
}
|
|
71978
|
-
}, sectionproperties.
|
|
72070
|
+
}, sectionproperties["slideshow_btn_text_".concat(langdetect)] || sectionproperties.generalbtn_content)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
71979
72071
|
"class": 'beforewrapper',
|
|
71980
72072
|
style: {
|
|
71981
72073
|
background: cardinfoitem.planbgcolor
|