tabexseriescomponents 0.0.409 → 0.0.411
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 +396 -88
- package/dist/index.esm.js +396 -88
- package/dist/index.umd.js +396 -88
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14553,7 +14553,7 @@ var Filter$1 = function Filter(props) {
|
|
|
14553
14553
|
setCollectionFilterFunc(item.collectionid);
|
|
14554
14554
|
},
|
|
14555
14555
|
style: {
|
|
14556
|
-
color: item.isfilterselected == true ?
|
|
14556
|
+
color: item.isfilterselected == true ? sectionproperties.activecat_color : ''
|
|
14557
14557
|
}
|
|
14558
14558
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14559
14559
|
"class": "col-lg-12 allcentered mb-2"
|
|
@@ -14565,7 +14565,7 @@ var Filter$1 = function Filter(props) {
|
|
|
14565
14565
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
14566
14566
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
14567
14567
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
14568
|
-
path: '/tr:w-' + sectionproperties.
|
|
14568
|
+
path: '/tr:w-' + sectionproperties.filterimage_tr + ',h-' + sectionproperties.filterimage_h + '/' + item.collectionlogo,
|
|
14569
14569
|
style: {
|
|
14570
14570
|
width: '100%',
|
|
14571
14571
|
height: '100%',
|
|
@@ -15488,6 +15488,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
15488
15488
|
} else {
|
|
15489
15489
|
cardobj.description = arrayItem.productinfo.description_ar;
|
|
15490
15490
|
}
|
|
15491
|
+
if (langdetect == 'en') {
|
|
15492
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
15493
|
+
} else {
|
|
15494
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
15495
|
+
}
|
|
15491
15496
|
if (arrayItem.productinfo.hasvariants == 0) {
|
|
15492
15497
|
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
15493
15498
|
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
@@ -15983,7 +15988,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
15983
15988
|
size: sectionproperties.viewmoreiconfontsizeresp,
|
|
15984
15989
|
color: sectionproperties.viewmorebtn_Textcolor
|
|
15985
15990
|
})))), sectionproperties.showFilter == 'show' && sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
15986
|
-
"class": ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end ',
|
|
15991
|
+
"class": sectionproperties.filterdirection == 'Horizontal' ? ' col-lg-12 col-md-12 pl-0 pr-0 d-none justify-content-end ' : ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end ',
|
|
15987
15992
|
onClick: function onClick() {
|
|
15988
15993
|
setopenFilterSlider(true);
|
|
15989
15994
|
// var element = document.getElementById('filterslider');
|
|
@@ -18026,7 +18031,7 @@ var Subheader = function Subheader(props) {
|
|
|
18026
18031
|
function ownKeys$1Y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18027
18032
|
function _objectSpread$1Y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1Y(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1Y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18028
18033
|
var Headerresponsive = function Headerresponsive(props) {
|
|
18029
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5,
|
|
18034
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _fetchCategoriesQuery2, _authdetailsContext$i9;
|
|
18030
18035
|
var actions = props.actions;
|
|
18031
18036
|
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
18032
18037
|
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -18053,23 +18058,27 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
18053
18058
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
18054
18059
|
Choosenindex = _useState4[0],
|
|
18055
18060
|
setChoosenindex = _useState4[1];
|
|
18061
|
+
var _useState5 = React.useState([]),
|
|
18062
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
18063
|
+
pcollarray = _useState6[0],
|
|
18064
|
+
setpcollarray = _useState6[1];
|
|
18056
18065
|
React.useEffect(function () {
|
|
18057
18066
|
if (props.sectionpropertiesprops != undefined) {
|
|
18058
18067
|
setsectionproperties(_objectSpread$1Y({}, props.sectionpropertiesprops));
|
|
18059
18068
|
}
|
|
18060
18069
|
}, [props.sectionpropertiesprops]);
|
|
18061
|
-
var
|
|
18062
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
18063
|
-
logoarrayofobjects = _useState6[0],
|
|
18064
|
-
setlogoarrayofobjects = _useState6[1];
|
|
18065
|
-
var _useState7 = React.useState(false),
|
|
18070
|
+
var _useState7 = React.useState([]),
|
|
18066
18071
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
18067
|
-
|
|
18068
|
-
|
|
18069
|
-
var _useState9 = React.useState(
|
|
18072
|
+
logoarrayofobjects = _useState8[0],
|
|
18073
|
+
setlogoarrayofobjects = _useState8[1];
|
|
18074
|
+
var _useState9 = React.useState(false),
|
|
18070
18075
|
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
18071
|
-
|
|
18072
|
-
|
|
18076
|
+
openCnvas = _useState10[0],
|
|
18077
|
+
setopenCnvas = _useState10[1];
|
|
18078
|
+
var _useState11 = React.useState(''),
|
|
18079
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
18080
|
+
activeTab = _useState12[0],
|
|
18081
|
+
setactiveTab = _useState12[1];
|
|
18073
18082
|
React.useEffect(function () {
|
|
18074
18083
|
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
18075
18084
|
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
@@ -18078,6 +18087,20 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
18078
18087
|
}
|
|
18079
18088
|
}
|
|
18080
18089
|
}, [templateproperties_context]);
|
|
18090
|
+
React.useEffect(function () {
|
|
18091
|
+
if (fetchCategoriesQueryContext.isSuccess == true && fetchCategoriesQueryContext.data.data.status == true) {
|
|
18092
|
+
var _fetchCategoriesQuery;
|
|
18093
|
+
var temppcollarray = _toConsumableArray__default["default"](pcollarray);
|
|
18094
|
+
fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 || _fetchCategoriesQuery.categories.forEach(function (arrayItem) {
|
|
18095
|
+
arrayItem === null || arrayItem === void 0 || arrayItem.parentcolletions.forEach(function (item) {
|
|
18096
|
+
if (arrayItem.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
|
|
18097
|
+
temppcollarray.push(item);
|
|
18098
|
+
}
|
|
18099
|
+
});
|
|
18100
|
+
});
|
|
18101
|
+
setpcollarray(_toConsumableArray__default["default"](temppcollarray));
|
|
18102
|
+
}
|
|
18103
|
+
}, [fetchCategoriesQueryContext.isSuccess]);
|
|
18081
18104
|
var header_cssstyles = {
|
|
18082
18105
|
header_logo: glamor.css({
|
|
18083
18106
|
width: sectionproperties.logo_width + 'px',
|
|
@@ -19050,9 +19073,9 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
19050
19073
|
}, sectionproperties.subheaderParentType == 'Categories' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
19051
19074
|
allowMultipleExpanded: true,
|
|
19052
19075
|
allowZeroExpanded: true
|
|
19053
|
-
}, fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (
|
|
19076
|
+
}, fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories.map(function (item, index) {
|
|
19054
19077
|
if (item.isshowntocustomers == 1) {
|
|
19055
|
-
var
|
|
19078
|
+
var _fetchCategoriesQuery3, _fetchCategoriesQuery4;
|
|
19056
19079
|
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
19057
19080
|
uuid: index
|
|
19058
19081
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, {
|
|
@@ -19106,7 +19129,7 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
19106
19129
|
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
19107
19130
|
allowMultipleExpanded: true,
|
|
19108
19131
|
allowZeroExpanded: true
|
|
19109
|
-
}, Choosenindex.length != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (
|
|
19132
|
+
}, Choosenindex.length != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.categories[Choosenindex]) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.parentcolletions) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.length) != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery4 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery4 === void 0 || (_fetchCategoriesQuery4 = _fetchCategoriesQuery4.data) === null || _fetchCategoriesQuery4 === void 0 || (_fetchCategoriesQuery4 = _fetchCategoriesQuery4.categories[Choosenindex]) === null || _fetchCategoriesQuery4 === void 0 ? void 0 : _fetchCategoriesQuery4.parentcolletions.map(function (pitem, pindex) {
|
|
19110
19133
|
if (pitem.isshowntocustomers == 1) {
|
|
19111
19134
|
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
19112
19135
|
uuid: pindex
|
|
@@ -19200,6 +19223,81 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
19200
19223
|
}
|
|
19201
19224
|
})));
|
|
19202
19225
|
}
|
|
19226
|
+
})), sectionproperties.subheaderParentType == 'Parent Collections' && /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
|
|
19227
|
+
allowMultipleExpanded: true,
|
|
19228
|
+
allowZeroExpanded: true
|
|
19229
|
+
}, pcollarray.map(function (item, index) {
|
|
19230
|
+
if (item.isshowntocustomers == 1) {
|
|
19231
|
+
var _item$collections;
|
|
19232
|
+
return /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
|
|
19233
|
+
uuid: index
|
|
19234
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, {
|
|
19235
|
+
onClick: function onClick() {
|
|
19236
|
+
setChoosenindex(index);
|
|
19237
|
+
}
|
|
19238
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19239
|
+
className: ' row m-0 p-0 mb-2 '
|
|
19240
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19241
|
+
className: ' row m-0 w-100 px-3 '
|
|
19242
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19243
|
+
className: "col-10 p-0 text-start"
|
|
19244
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19245
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
19246
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19247
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
|
|
19248
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemState, null, function (state) {
|
|
19249
|
+
if (state.expanded == true) {
|
|
19250
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19251
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
19252
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronDown.FiChevronDown, {
|
|
19253
|
+
style: {
|
|
19254
|
+
color: '#000',
|
|
19255
|
+
fontSize: 15
|
|
19256
|
+
}
|
|
19257
|
+
}));
|
|
19258
|
+
} else {
|
|
19259
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
19260
|
+
className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
|
|
19261
|
+
}, /*#__PURE__*/React__default["default"].createElement(FiChevronUp.FiChevronUp, {
|
|
19262
|
+
style: {
|
|
19263
|
+
color: '#000',
|
|
19264
|
+
fontSize: 15
|
|
19265
|
+
}
|
|
19266
|
+
}));
|
|
19267
|
+
}
|
|
19268
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19269
|
+
className: "col-lg-12 p-0"
|
|
19270
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
19271
|
+
className: "mt-4 mb-4",
|
|
19272
|
+
style: {
|
|
19273
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
19274
|
+
}
|
|
19275
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
|
|
19276
|
+
className: "p-0"
|
|
19277
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19278
|
+
className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
|
|
19279
|
+
}, (_item$collections = item.collections) === null || _item$collections === void 0 ? void 0 : _item$collections.map(function (collitem, collindex) {
|
|
19280
|
+
if (collitem.isshowntocustomers == 1) {
|
|
19281
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19282
|
+
className: ' row m-0 p-0 mb-2 w-100 '
|
|
19283
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19284
|
+
className: "col-12 text-start px-4",
|
|
19285
|
+
onClick: function onClick() {
|
|
19286
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
|
|
19287
|
+
}
|
|
19288
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
19289
|
+
className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
|
|
19290
|
+
}, langdetect == 'en' ? collitem.title_en : collitem.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19291
|
+
className: "col-lg-12 p-0"
|
|
19292
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
19293
|
+
className: "mt-4 mb-4",
|
|
19294
|
+
style: {
|
|
19295
|
+
borderColor: sectionproperties.resp_header_separatorbg
|
|
19296
|
+
}
|
|
19297
|
+
})));
|
|
19298
|
+
}
|
|
19299
|
+
}))));
|
|
19300
|
+
}
|
|
19203
19301
|
})))))));
|
|
19204
19302
|
};
|
|
19205
19303
|
|
|
@@ -26329,7 +26427,13 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
26329
26427
|
marginTop: sectionproperties.header_marginTop + 'px',
|
|
26330
26428
|
marginBottom: sectionproperties.header_marginBottom + 'px'
|
|
26331
26429
|
}
|
|
26332
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26430
|
+
}, templateproperties_context.showtextslider == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26431
|
+
"class": "col-lg-12 p-0"
|
|
26432
|
+
}, /*#__PURE__*/React__default["default"].createElement(MarqueeHeader, {
|
|
26433
|
+
sectionpropertiesprops: sectionproperties,
|
|
26434
|
+
templateproperties_contextprops: templateproperties_context,
|
|
26435
|
+
actions: actions
|
|
26436
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26333
26437
|
"class": " ".concat(header_cssstyles.headercontainer) + ' d-flex d-md-none align-items-center m-0 '
|
|
26334
26438
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26335
26439
|
"class": "row m-0 w-100 "
|
|
@@ -26403,8 +26507,8 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
26403
26507
|
actions: actions,
|
|
26404
26508
|
subheaderpropertiesprops: {
|
|
26405
26509
|
subheaderpositionprops: 'in nav',
|
|
26406
|
-
paddingLeftprops: '
|
|
26407
|
-
paddingRightprops: '
|
|
26510
|
+
paddingLeftprops: '10px',
|
|
26511
|
+
paddingRightprops: '10px',
|
|
26408
26512
|
subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
|
|
26409
26513
|
}
|
|
26410
26514
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -26685,6 +26789,9 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
26685
26789
|
})))))), sectionproperties.responsiveheaderstyle == 'Style 1' && /*#__PURE__*/React__default["default"].createElement(Headerresponsive, {
|
|
26686
26790
|
sectionpropertiesprops: sectionproperties,
|
|
26687
26791
|
actions: actions
|
|
26792
|
+
}), sectionproperties.responsiveheaderstyle == 'Style 1 With Canvas' && /*#__PURE__*/React__default["default"].createElement(Headerresponsive, {
|
|
26793
|
+
sectionpropertiesprops: sectionproperties,
|
|
26794
|
+
actions: actions
|
|
26688
26795
|
}), sectionproperties.responsiveheaderstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement(HeaderresponsiveStyle2, {
|
|
26689
26796
|
sectionpropertiesprops: sectionproperties,
|
|
26690
26797
|
actions: actions
|
|
@@ -28834,9 +28941,9 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
28834
28941
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28835
28942
|
"class": "col-lg-12 p-0"
|
|
28836
28943
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28837
|
-
"class": "".concat(headerstyles$8.header_innercontainer, " ").concat(header_cssstyles.header_innercontainer) + ' row m-0 w-100 d-flex d-md-none align-items-center '
|
|
28944
|
+
"class": "".concat(headerstyles$8.header_innercontainer, " ").concat(header_cssstyles.header_innercontainer) + ' row m-0 w-100 d-flex d-md-none align-items-center px-1025-1 '
|
|
28838
28945
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28839
|
-
"class": "col-lg-
|
|
28946
|
+
"class": "col-lg-2 p-0 d-flex align-items-center"
|
|
28840
28947
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28841
28948
|
"class": "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
|
|
28842
28949
|
style: {
|
|
@@ -28854,7 +28961,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
28854
28961
|
maxHeight: '100%'
|
|
28855
28962
|
}
|
|
28856
28963
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28857
|
-
"class":
|
|
28964
|
+
"class": sectionproperties.favBtnShow == 'Hide' && sectionproperties.cartBtnShow == 'Hide' && sectionproperties.icontextfontsize == 0 ? 'col-lg-9 p-0 d-flex align-items-center justify-content-center' : 'col-lg-7 p-0 d-flex align-items-center justify-content-center'
|
|
28858
28965
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28859
28966
|
"class": "scrollhorizontal w-100 align-items-center justify-content-center",
|
|
28860
28967
|
style: {
|
|
@@ -28886,12 +28993,12 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
28886
28993
|
actions: actions,
|
|
28887
28994
|
subheaderpropertiesprops: {
|
|
28888
28995
|
subheaderpositionprops: 'in nav',
|
|
28889
|
-
paddingLeftprops: '
|
|
28890
|
-
paddingRightprops: '
|
|
28996
|
+
paddingLeftprops: '15px',
|
|
28997
|
+
paddingRightprops: '15px',
|
|
28891
28998
|
subheadercontentpositionprops: 'center'
|
|
28892
28999
|
}
|
|
28893
29000
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28894
|
-
"class":
|
|
29001
|
+
"class": sectionproperties.favBtnShow == 'Hide' && sectionproperties.cartBtnShow == 'Hide' && sectionproperties.icontextfontsize == 0 ? 'col-lg-1 p-0 d-flex align-items-center justify-content-end' : 'col-lg-3 p-0 d-flex align-items-center justify-content-end'
|
|
28895
29002
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], {
|
|
28896
29003
|
style: {
|
|
28897
29004
|
marginRight: langdetect == 'en' ? '30px' : 0,
|
|
@@ -29024,7 +29131,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29024
29131
|
}
|
|
29025
29132
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29026
29133
|
"class": "".concat(headerstyles$8.badge_counter_header_notifications, " ").concat(header_cssstyles.badge_counter_header_notifications, " ").concat(header_cssstyles.wishlistbadge) + ' d-flex justify-content-center text-center '
|
|
29027
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29134
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29028
29135
|
"class": !authdetailsContext.loggedin ? langdetect == 'en' ? "".concat(header_cssstyles.cart_btn) + ' cursor-pointer allcentered ml-3 mr-4 ' : "".concat(header_cssstyles.cart_btn) + ' cursor-pointer allcentered ml-4 mr-3 ' : "".concat(header_cssstyles.cart_btn) + ' cursor-pointer allcentered ',
|
|
29029
29136
|
onClick: function onClick() {
|
|
29030
29137
|
setsidecartnavshowcontext(true);
|
|
@@ -29064,7 +29171,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29064
29171
|
top: sectionproperties.cartbadgetop + 'px',
|
|
29065
29172
|
right: sectionproperties.cartbadgeright + 'px'
|
|
29066
29173
|
}
|
|
29067
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != null ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) >= 10 ? '+9' : fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29174
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != null ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) >= 10 ? '+9' : fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.customercart) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.length : 0))), sectionproperties.icontextfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29068
29175
|
"class": langdetect == 'en' ? 'informationdropdown informationdropdown_en' : 'informationdropdown informationdropdown_ar'
|
|
29069
29176
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
29070
29177
|
"class": header_cssstyles.infoiconcontainer + ' allcentered '
|
|
@@ -29125,15 +29232,13 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29125
29232
|
size: sectionproperties.youtubebtniconfontsize
|
|
29126
29233
|
})))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29127
29234
|
"class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
|
|
29128
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
29129
|
-
style: {
|
|
29130
|
-
marginLeft: langdetect == 'en' ? '25px' : 0,
|
|
29131
|
-
marginRight: langdetect == 'ar' ? '25px' : 0
|
|
29132
|
-
}
|
|
29133
|
-
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
29235
|
+
}, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
29134
29236
|
"class": ' d-flex align-items-center justify-content-center '
|
|
29135
29237
|
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29136
|
-
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered '
|
|
29238
|
+
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered ',
|
|
29239
|
+
onClick: function onClick() {
|
|
29240
|
+
setlang('en');
|
|
29241
|
+
}
|
|
29137
29242
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29138
29243
|
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
29139
29244
|
style: {
|
|
@@ -29150,7 +29255,10 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29150
29255
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29151
29256
|
"class": "m-0 p-0"
|
|
29152
29257
|
}, "\u0639")), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29153
|
-
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered '
|
|
29258
|
+
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered ',
|
|
29259
|
+
onClick: function onClick() {
|
|
29260
|
+
setlang('ar');
|
|
29261
|
+
}
|
|
29154
29262
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29155
29263
|
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
29156
29264
|
style: {
|
|
@@ -29166,39 +29274,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29166
29274
|
"class": "ml-2 mr-2"
|
|
29167
29275
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29168
29276
|
"class": "m-0 p-0"
|
|
29169
|
-
}, "En")))), /*#__PURE__*/React__default["default"].createElement(
|
|
29170
|
-
onClick: function onClick() {
|
|
29171
|
-
setlang('ar');
|
|
29172
|
-
}
|
|
29173
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29174
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
29175
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29176
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
29177
|
-
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29178
|
-
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
29179
|
-
style: {
|
|
29180
|
-
maxWidth: '2.5vh',
|
|
29181
|
-
maxHeight: '2.5vh'
|
|
29182
|
-
}
|
|
29183
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
29184
|
-
"class": "ml-2 mr-2"
|
|
29185
|
-
}, lang.arabic)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
29186
|
-
onClick: function onClick() {
|
|
29187
|
-
setlang('en');
|
|
29188
|
-
}
|
|
29189
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29190
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
29191
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29192
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
29193
|
-
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29194
|
-
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
29195
|
-
style: {
|
|
29196
|
-
maxWidth: '2.5vh',
|
|
29197
|
-
maxHeight: '2.5vh'
|
|
29198
|
-
}
|
|
29199
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
29200
|
-
"class": "ml-2 mr-2"
|
|
29201
|
-
}, lang.english)))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29277
|
+
}, "En"))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29202
29278
|
"class": "col-lg-12 p-0"
|
|
29203
29279
|
}, sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
|
|
29204
29280
|
sectionpropertiesprops: sectionproperties,
|
|
@@ -52652,8 +52728,9 @@ var TextSectionConnectToWA = function TextSectionConnectToWA(props) {
|
|
|
52652
52728
|
|
|
52653
52729
|
function ownKeys$_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52654
52730
|
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$_(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52731
|
+
// 49
|
|
52655
52732
|
var DynamicForm = function DynamicForm(props) {
|
|
52656
|
-
var _css, _dynamicform$fields;
|
|
52733
|
+
var _css, _dynamicform$fields, _dynamicform$fields2, _dynamicform$fields3, _dynamicform$fields4, _dynamicform$fields5;
|
|
52657
52734
|
props.actions.lang;
|
|
52658
52735
|
var langdetect = props.actions.langdetect;
|
|
52659
52736
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -52681,6 +52758,30 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52681
52758
|
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
52682
52759
|
confirmationtext = _useState10[0],
|
|
52683
52760
|
setconfirmationtext = _useState10[1];
|
|
52761
|
+
var _useState11 = React.useState(25),
|
|
52762
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
52763
|
+
percentage = _useState12[0],
|
|
52764
|
+
setpercentage = _useState12[1];
|
|
52765
|
+
var _useState13 = React.useState(''),
|
|
52766
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2);
|
|
52767
|
+
_useState14[0];
|
|
52768
|
+
var setnumberoffields = _useState14[1];
|
|
52769
|
+
var _useState15 = React.useState(0),
|
|
52770
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2);
|
|
52771
|
+
_useState16[0];
|
|
52772
|
+
var setnumberofslides = _useState16[1];
|
|
52773
|
+
var _useState17 = React.useState(0),
|
|
52774
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2);
|
|
52775
|
+
_useState18[0];
|
|
52776
|
+
_useState18[1];
|
|
52777
|
+
var _useState19 = React.useState(0),
|
|
52778
|
+
_useState20 = _slicedToArray__default["default"](_useState19, 2),
|
|
52779
|
+
currentindex = _useState20[0],
|
|
52780
|
+
setcurrentindex = _useState20[1];
|
|
52781
|
+
var _useState21 = React.useState(0),
|
|
52782
|
+
_useState22 = _slicedToArray__default["default"](_useState21, 2);
|
|
52783
|
+
_useState22[0];
|
|
52784
|
+
var setnumberoffiledinslide = _useState22[1];
|
|
52684
52785
|
React.useEffect(function () {
|
|
52685
52786
|
var secpropobj = {};
|
|
52686
52787
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -52697,7 +52798,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52697
52798
|
var _fetchdynamicformfeil;
|
|
52698
52799
|
fetchdynamicformfeildsQueryContext === null || fetchdynamicformfeildsQueryContext === void 0 || (_fetchdynamicformfeil = fetchdynamicformfeildsQueryContext.data) === null || _fetchdynamicformfeil === void 0 || (_fetchdynamicformfeil = _fetchdynamicformfeil.data) === null || _fetchdynamicformfeil === void 0 || (_fetchdynamicformfeil = _fetchdynamicformfeil.dynamicforms) === null || _fetchdynamicformfeil === void 0 || _fetchdynamicformfeil.forEach(function (item, index) {
|
|
52699
52800
|
if (item.id == dynamicformid) {
|
|
52700
|
-
var _tempitem$fields;
|
|
52801
|
+
var _tempitem$fields, _tempitem$fields2;
|
|
52701
52802
|
var tempitem = item;
|
|
52702
52803
|
tempitem === null || tempitem === void 0 || (_tempitem$fields = tempitem.fields) === null || _tempitem$fields === void 0 || _tempitem$fields.forEach(function (fielditem) {
|
|
52703
52804
|
fielditem.value = '';
|
|
@@ -52705,8 +52806,15 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52705
52806
|
setdynamicform(tempitem);
|
|
52706
52807
|
var temptitleen = tempitem.title_en;
|
|
52707
52808
|
var temptitlear = tempitem.title_ar;
|
|
52809
|
+
var tempnumberoffields = tempitem === null || tempitem === void 0 || (_tempitem$fields2 = tempitem.fields) === null || _tempitem$fields2 === void 0 ? void 0 : _tempitem$fields2.length; //12
|
|
52810
|
+
var tempnumberoffiledinslide = sectionproperties.numberofslides; //4
|
|
52811
|
+
var tempnumberofslides = Math.ceil(tempnumberoffields / tempnumberoffiledinslide); //3
|
|
52812
|
+
|
|
52708
52813
|
setformtitleen(temptitleen);
|
|
52709
52814
|
setformtitlear(temptitlear);
|
|
52815
|
+
setnumberoffields(tempnumberoffields);
|
|
52816
|
+
setnumberoffiledinslide(tempnumberoffiledinslide);
|
|
52817
|
+
setnumberofslides(tempnumberofslides);
|
|
52710
52818
|
}
|
|
52711
52819
|
});
|
|
52712
52820
|
}
|
|
@@ -52747,9 +52855,9 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52747
52855
|
}
|
|
52748
52856
|
};
|
|
52749
52857
|
var clearform = function clearform() {
|
|
52750
|
-
var _tempitem$
|
|
52858
|
+
var _tempitem$fields3;
|
|
52751
52859
|
var tempitem = _objectSpread$_({}, dynamicform);
|
|
52752
|
-
tempitem === null || tempitem === void 0 || (_tempitem$
|
|
52860
|
+
tempitem === null || tempitem === void 0 || (_tempitem$fields3 = tempitem.fields) === null || _tempitem$fields3 === void 0 || _tempitem$fields3.forEach(function (fielditem) {
|
|
52753
52861
|
fielditem.value = '';
|
|
52754
52862
|
});
|
|
52755
52863
|
setdynamicform(tempitem);
|
|
@@ -52839,7 +52947,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52839
52947
|
position: 'relative',
|
|
52840
52948
|
display: 'flex',
|
|
52841
52949
|
alignItems: 'center'
|
|
52842
|
-
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 30px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", 'transparent'), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, "fontSize", sectionproperties.inputfieldfontsize + 'px'), _defineProperty__default["default"](_css, ':focus', {
|
|
52950
|
+
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 30px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", 'transparent'), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, "fontSize", sectionproperties.inputfieldfontsize + 'px'), _defineProperty__default["default"](_css, "marginBottom", sectionproperties.inputfieldbordertype == 'All' ? 20 : 0), _defineProperty__default["default"](_css, ':focus', {
|
|
52843
52951
|
borderColor: sectionproperties.inputfeildbordercoloronfocus,
|
|
52844
52952
|
boxShadow: 'none',
|
|
52845
52953
|
transition: '.3s'
|
|
@@ -52857,10 +52965,41 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52857
52965
|
color: sectionproperties.generalbtn_textColoronhover,
|
|
52858
52966
|
backgroundColor: sectionproperties.generalbtn_bgColoronhover
|
|
52859
52967
|
}
|
|
52968
|
+
}),
|
|
52969
|
+
btnLeft: glamor.css({
|
|
52970
|
+
width: 40,
|
|
52971
|
+
height: 40,
|
|
52972
|
+
// borderRadius: 20,
|
|
52973
|
+
borderRight: langdetect == 'en' ? '1px solid #ccc' : 0,
|
|
52974
|
+
backgroundColor: '#000',
|
|
52975
|
+
cursor: 'pointer',
|
|
52976
|
+
borderTopLeftRadius: langdetect == 'en' ? 5 : 0,
|
|
52977
|
+
borderBottomLeftRadius: langdetect == 'en' ? 5 : 0,
|
|
52978
|
+
borderTopRightRadius: langdetect == 'ar' ? 5 : 0,
|
|
52979
|
+
borderBottomRightRadius: langdetect == 'ar' ? 5 : 0,
|
|
52980
|
+
':hover': {
|
|
52981
|
+
transition: '.3s',
|
|
52982
|
+
backgroundColor: '#044da6'
|
|
52983
|
+
}
|
|
52984
|
+
}),
|
|
52985
|
+
btnRight: glamor.css({
|
|
52986
|
+
width: 40,
|
|
52987
|
+
height: 40,
|
|
52988
|
+
borderLeft: langdetect == 'en' ? '1px solid #ccc' : 0,
|
|
52989
|
+
backgroundColor: '#000',
|
|
52990
|
+
cursor: 'pointer',
|
|
52991
|
+
borderTopRightRadius: langdetect == 'en' ? 5 : 0,
|
|
52992
|
+
borderBottomRightRadius: langdetect == 'en' ? 5 : 0,
|
|
52993
|
+
borderTopLeftRadius: langdetect == 'ar' ? 5 : 0,
|
|
52994
|
+
borderBottomLeftRadius: langdetect == 'ar' ? 5 : 0,
|
|
52995
|
+
':hover': {
|
|
52996
|
+
transition: '.3s',
|
|
52997
|
+
backgroundColor: '#044da6'
|
|
52998
|
+
}
|
|
52860
52999
|
})
|
|
52861
53000
|
};
|
|
52862
53001
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52863
|
-
"class": 'row m-0 w-100 h-100 px-md-2',
|
|
53002
|
+
"class": 'row m-0 w-100 h-100 px-md-2 allcentered',
|
|
52864
53003
|
style: {
|
|
52865
53004
|
background: sectionproperties.backgroundColor,
|
|
52866
53005
|
paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
|
|
@@ -52868,6 +53007,165 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52868
53007
|
paddingTop: sectionproperties.cardpaddingvertical + 'px',
|
|
52869
53008
|
paddingBottom: sectionproperties.cardpaddingvertical + 'px'
|
|
52870
53009
|
}
|
|
53010
|
+
}, dynamicformid == '49' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53011
|
+
"class": "col-lg-10 m-0 w-100 allcentered"
|
|
53012
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53013
|
+
"class": "row m-0 w-100",
|
|
53014
|
+
style: {
|
|
53015
|
+
border: '1px solid #ccc',
|
|
53016
|
+
borderRadius: 20,
|
|
53017
|
+
overflow: 'hidden'
|
|
53018
|
+
}
|
|
53019
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53020
|
+
style: {
|
|
53021
|
+
width: '100%',
|
|
53022
|
+
height: '5.5px'
|
|
53023
|
+
}
|
|
53024
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53025
|
+
"class": 'ratingbar',
|
|
53026
|
+
style: {
|
|
53027
|
+
backgroundColor: 'rgb(226, 226, 226)'
|
|
53028
|
+
}
|
|
53029
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53030
|
+
"class": 'ratingbar',
|
|
53031
|
+
style: {
|
|
53032
|
+
backgroundColor: '#044da6',
|
|
53033
|
+
width: percentage + '%'
|
|
53034
|
+
}
|
|
53035
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53036
|
+
"class": "col-lg-12 text-start mt-5 px-4",
|
|
53037
|
+
style: {
|
|
53038
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
53039
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
53040
|
+
}
|
|
53041
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53042
|
+
"class": "m-0 p-0",
|
|
53043
|
+
style: {
|
|
53044
|
+
color: sectionproperties.sectionTitleColor,
|
|
53045
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
53046
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
53047
|
+
}
|
|
53048
|
+
}, langdetect == 'en' ? formtitleen : formtitlear)), (dynamicform === null || dynamicform === void 0 ? void 0 : dynamicform.id) != undefined && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53049
|
+
"class": 'row m-0 w-100 p-3 mt-3'
|
|
53050
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53051
|
+
"class": "col-lg-12 text-start"
|
|
53052
|
+
}, currentindex == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53053
|
+
"class": 'row m-0 w-100 '
|
|
53054
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields = dynamicform.fields) === null || _dynamicform$fields === void 0 ? void 0 : _dynamicform$fields.map(function (item, index) {
|
|
53055
|
+
if (index <= 2) {
|
|
53056
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
53057
|
+
return inputitem(item, index);
|
|
53058
|
+
} else if (item.type == 'textarea') {
|
|
53059
|
+
return textareaitem(item, index);
|
|
53060
|
+
} else if (item.type == 'selectbox') {
|
|
53061
|
+
return selectboxitem(item, index);
|
|
53062
|
+
}
|
|
53063
|
+
}
|
|
53064
|
+
})), currentindex == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53065
|
+
"class": 'row m-0 w-100 '
|
|
53066
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields2 = dynamicform.fields) === null || _dynamicform$fields2 === void 0 ? void 0 : _dynamicform$fields2.map(function (item, index) {
|
|
53067
|
+
if (index > 2 && index <= 5) {
|
|
53068
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
53069
|
+
return inputitem(item, index);
|
|
53070
|
+
} else if (item.type == 'textarea') {
|
|
53071
|
+
return textareaitem(item, index);
|
|
53072
|
+
} else if (item.type == 'selectbox') {
|
|
53073
|
+
return selectboxitem(item, index);
|
|
53074
|
+
}
|
|
53075
|
+
}
|
|
53076
|
+
})), currentindex == 2 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53077
|
+
"class": 'row m-0 w-100 '
|
|
53078
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields3 = dynamicform.fields) === null || _dynamicform$fields3 === void 0 ? void 0 : _dynamicform$fields3.map(function (item, index) {
|
|
53079
|
+
if (index > 5 && index <= 8) {
|
|
53080
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
53081
|
+
return inputitem(item, index);
|
|
53082
|
+
} else if (item.type == 'textarea') {
|
|
53083
|
+
return textareaitem(item, index);
|
|
53084
|
+
} else if (item.type == 'selectbox') {
|
|
53085
|
+
return selectboxitem(item, index);
|
|
53086
|
+
}
|
|
53087
|
+
}
|
|
53088
|
+
})), currentindex == 3 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53089
|
+
"class": 'row m-0 w-100 '
|
|
53090
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields4 = dynamicform.fields) === null || _dynamicform$fields4 === void 0 ? void 0 : _dynamicform$fields4.map(function (item, index) {
|
|
53091
|
+
if (index > 8 && index <= 11) {
|
|
53092
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
53093
|
+
return inputitem(item, index);
|
|
53094
|
+
} else if (item.type == 'textarea') {
|
|
53095
|
+
return textareaitem(item, index);
|
|
53096
|
+
} else if (item.type == 'selectbox') {
|
|
53097
|
+
return selectboxitem(item, index);
|
|
53098
|
+
}
|
|
53099
|
+
}
|
|
53100
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53101
|
+
"class": "col-lg-12 text-end flex-row px-4 mt-4"
|
|
53102
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53103
|
+
"class": form_cssstyles.btnLeft + ' allcentered ',
|
|
53104
|
+
style: {},
|
|
53105
|
+
onClick: function onClick() {
|
|
53106
|
+
if (currentindex == 1) {
|
|
53107
|
+
setcurrentindex(0);
|
|
53108
|
+
setpercentage(25);
|
|
53109
|
+
} else if (currentindex == 2) {
|
|
53110
|
+
setcurrentindex(1);
|
|
53111
|
+
setpercentage(50);
|
|
53112
|
+
} else if (currentindex == 3) {
|
|
53113
|
+
setcurrentindex(2);
|
|
53114
|
+
setpercentage(75);
|
|
53115
|
+
} else ;
|
|
53116
|
+
}
|
|
53117
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
|
|
53118
|
+
color: '#fff',
|
|
53119
|
+
size: 18
|
|
53120
|
+
}), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
|
|
53121
|
+
color: '#fff',
|
|
53122
|
+
size: 18
|
|
53123
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53124
|
+
"class": form_cssstyles.btnRight + ' allcentered ',
|
|
53125
|
+
onClick: function onClick() {
|
|
53126
|
+
if (currentindex == 0) {
|
|
53127
|
+
setcurrentindex(1);
|
|
53128
|
+
setpercentage(50);
|
|
53129
|
+
} else if (currentindex == 1) {
|
|
53130
|
+
setcurrentindex(2);
|
|
53131
|
+
setpercentage(75);
|
|
53132
|
+
} else if (currentindex == 2) {
|
|
53133
|
+
setcurrentindex(3);
|
|
53134
|
+
setpercentage(100);
|
|
53135
|
+
} else ;
|
|
53136
|
+
}
|
|
53137
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
|
|
53138
|
+
color: '#fff',
|
|
53139
|
+
size: 18
|
|
53140
|
+
}), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
|
|
53141
|
+
color: '#fff',
|
|
53142
|
+
size: 18
|
|
53143
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53144
|
+
"class": "col-lg-12 allcentered my-4",
|
|
53145
|
+
style: {
|
|
53146
|
+
visibility: currentindex == 3 ? 'visible' : 'hidden'
|
|
53147
|
+
}
|
|
53148
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
53149
|
+
onClick: function onClick() {
|
|
53150
|
+
submitform();
|
|
53151
|
+
},
|
|
53152
|
+
disabled: GeneralAPIMutationContext.isLoading,
|
|
53153
|
+
"class": form_cssstyles.generalbtn + ' allcentered '
|
|
53154
|
+
}, GeneralAPIMutationContext.isLoading ? /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
53155
|
+
color: sectionproperties.generalbtn_textColor,
|
|
53156
|
+
width: "20px",
|
|
53157
|
+
height: "20px",
|
|
53158
|
+
duration: "1s"
|
|
53159
|
+
}) : langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53160
|
+
"class": "col-lg-12 allcentered my-4"
|
|
53161
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53162
|
+
"class": "m-0 p-0",
|
|
53163
|
+
style: {
|
|
53164
|
+
fontSize: 20,
|
|
53165
|
+
color: '#000'
|
|
53166
|
+
}
|
|
53167
|
+
}, confirmationtext))))), dynamicformid != '49' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53168
|
+
"class": "row m-0 w-100"
|
|
52871
53169
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52872
53170
|
"class": "col-lg-12 text-start",
|
|
52873
53171
|
style: {
|
|
@@ -52887,7 +53185,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52887
53185
|
"class": "col-lg-12 text-start"
|
|
52888
53186
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52889
53187
|
"class": 'row m-0 w-100 '
|
|
52890
|
-
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$
|
|
53188
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields5 = dynamicform.fields) === null || _dynamicform$fields5 === void 0 ? void 0 : _dynamicform$fields5.map(function (item, index) {
|
|
52891
53189
|
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
52892
53190
|
return inputitem(item, index);
|
|
52893
53191
|
} else if (item.type == 'textarea') {
|
|
@@ -52916,7 +53214,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52916
53214
|
fontSize: 20,
|
|
52917
53215
|
color: '#000'
|
|
52918
53216
|
}
|
|
52919
|
-
}, confirmationtext))));
|
|
53217
|
+
}, confirmationtext)))));
|
|
52920
53218
|
};
|
|
52921
53219
|
|
|
52922
53220
|
function ownKeys$Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -61562,15 +61860,17 @@ var Card23 = function Card23(props) {
|
|
|
61562
61860
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61563
61861
|
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(cardsstyles2.imageContainer, " ").concat(cardstyles$7.imagecontainer) + ' d-flex d-md-none ' : " ".concat(cardsstyles2.imageContainer, " ") + ' d-flex d-md-none ',
|
|
61564
61862
|
style: {
|
|
61565
|
-
height: sectionproperties.image_height + 'px'
|
|
61863
|
+
height: sectionproperties.image_height + 'px',
|
|
61864
|
+
marginBottom: sectionproperties.image_mb + 'px'
|
|
61566
61865
|
}
|
|
61567
61866
|
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61568
61867
|
"class": cardsstyles2.imageContainer + ' d-none d-md-flex ',
|
|
61569
61868
|
style: {
|
|
61570
|
-
height: sectionproperties.height_responsive + 'px'
|
|
61869
|
+
height: sectionproperties.height_responsive + 'px',
|
|
61870
|
+
marginBottom: sectionproperties.image_mb + 'px'
|
|
61571
61871
|
}
|
|
61572
61872
|
}, Image('responsive')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61573
|
-
"class": 'row m-0 w-100 pl-sm-2 pr-sm-2',
|
|
61873
|
+
"class": sectionproperties.innersectionpaddinghorizontal == 0 ? 'row m-0 w-100' : 'row m-0 w-100 pl-sm-2 pr-sm-2',
|
|
61574
61874
|
style: {
|
|
61575
61875
|
paddingLeft: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
61576
61876
|
paddingRight: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
@@ -61620,11 +61920,13 @@ var Card23 = function Card23(props) {
|
|
|
61620
61920
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61621
61921
|
"class": "col-lg-12 p-0"
|
|
61622
61922
|
}, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
61623
|
-
"class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0
|
|
61923
|
+
"class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 ',
|
|
61624
61924
|
style: {
|
|
61625
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
61925
|
+
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
61926
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
61927
|
+
marginBottom: sectionproperties.descriptionMarginBottom + 'px'
|
|
61626
61928
|
}
|
|
61627
|
-
}, plainString(
|
|
61929
|
+
}, plainString(item.shortdescription)), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61628
61930
|
"class": "col-lg-12 p-0 ",
|
|
61629
61931
|
style: {
|
|
61630
61932
|
minHeight: '6vh'
|
|
@@ -61633,15 +61935,21 @@ var Card23 = function Card23(props) {
|
|
|
61633
61935
|
onClick: function onClick() {
|
|
61634
61936
|
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
61635
61937
|
},
|
|
61636
|
-
"class": sectionproperties.wordbreak == '1' ? "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 m-0 ' : "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 m-0 ',
|
|
61938
|
+
"class": sectionproperties.wordbreak == '1' ? "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ' : "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ',
|
|
61637
61939
|
style: {
|
|
61638
|
-
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
61940
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
61639
61941
|
}
|
|
61640
61942
|
}, item.name))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61641
|
-
"class": "row m-0 w-100 align-items-center mt-1 mb-1"
|
|
61943
|
+
"class": "row m-0 w-100 align-items-center mt-1 mb-1",
|
|
61944
|
+
style: {
|
|
61945
|
+
flexDirection: sectionproperties.productnamecentered == 'Centered' ? 'column' : 'row'
|
|
61946
|
+
}
|
|
61642
61947
|
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
61643
|
-
"class": langdetect == 'en' ? "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-right text-sm-left ' : "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
|
|
61644
|
-
|
|
61948
|
+
"class": langdetect == 'en' ? "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-right text-sm-left ' : "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right ',
|
|
61949
|
+
style: {
|
|
61950
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : ''
|
|
61951
|
+
}
|
|
61952
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.productnamecentered != 'Centered' && sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
61645
61953
|
"class": "".concat(cardsstyles2.productSalePricestyles)
|
|
61646
61954
|
}, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
61647
61955
|
"class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
|