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.esm.js CHANGED
@@ -14504,7 +14504,7 @@ var Filter$1 = function Filter(props) {
14504
14504
  setCollectionFilterFunc(item.collectionid);
14505
14505
  },
14506
14506
  style: {
14507
- color: item.isfilterselected == true ? 'red' : ''
14507
+ color: item.isfilterselected == true ? sectionproperties.activecat_color : ''
14508
14508
  }
14509
14509
  }, /*#__PURE__*/React.createElement("div", {
14510
14510
  "class": "col-lg-12 allcentered mb-2"
@@ -14516,7 +14516,7 @@ var Filter$1 = function Filter(props) {
14516
14516
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
14517
14517
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
14518
14518
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
14519
- path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.collectionlogo,
14519
+ path: '/tr:w-' + sectionproperties.filterimage_tr + ',h-' + sectionproperties.filterimage_h + '/' + item.collectionlogo,
14520
14520
  style: {
14521
14521
  width: '100%',
14522
14522
  height: '100%',
@@ -15439,6 +15439,11 @@ var CardsSection = function CardsSection(props) {
15439
15439
  } else {
15440
15440
  cardobj.description = arrayItem.productinfo.description_ar;
15441
15441
  }
15442
+ if (langdetect == 'en') {
15443
+ cardobj.shortdescription = arrayItem.short_description_en;
15444
+ } else {
15445
+ cardobj.shortdescription = arrayItem.short_description_ar;
15446
+ }
15442
15447
  if (arrayItem.productinfo.hasvariants == 0) {
15443
15448
  fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
15444
15449
  if (cartitem.productid == arrayItem.productinfo.productid) {
@@ -15934,7 +15939,7 @@ var CardsSection = function CardsSection(props) {
15934
15939
  size: sectionproperties.viewmoreiconfontsizeresp,
15935
15940
  color: sectionproperties.viewmorebtn_Textcolor
15936
15941
  })))), sectionproperties.showFilter == 'show' && sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal' && /*#__PURE__*/React.createElement("button", {
15937
- "class": ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end ',
15942
+ "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 ',
15938
15943
  onClick: function onClick() {
15939
15944
  setopenFilterSlider(true);
15940
15945
  // var element = document.getElementById('filterslider');
@@ -17977,7 +17982,7 @@ var Subheader = function Subheader(props) {
17977
17982
  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; }
17978
17983
  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(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; }
17979
17984
  var Headerresponsive = function Headerresponsive(props) {
17980
- var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _fetchCategoriesQuery, _authdetailsContext$i9;
17985
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _fetchCategoriesQuery2, _authdetailsContext$i9;
17981
17986
  var actions = props.actions;
17982
17987
  var LogoutMutationContext = props.actions.LogoutMutationContext;
17983
17988
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
@@ -18004,23 +18009,27 @@ var Headerresponsive = function Headerresponsive(props) {
18004
18009
  _useState4 = _slicedToArray(_useState3, 2),
18005
18010
  Choosenindex = _useState4[0],
18006
18011
  setChoosenindex = _useState4[1];
18012
+ var _useState5 = useState([]),
18013
+ _useState6 = _slicedToArray(_useState5, 2),
18014
+ pcollarray = _useState6[0],
18015
+ setpcollarray = _useState6[1];
18007
18016
  useEffect(function () {
18008
18017
  if (props.sectionpropertiesprops != undefined) {
18009
18018
  setsectionproperties(_objectSpread$1Y({}, props.sectionpropertiesprops));
18010
18019
  }
18011
18020
  }, [props.sectionpropertiesprops]);
18012
- var _useState5 = useState([]),
18013
- _useState6 = _slicedToArray(_useState5, 2),
18014
- logoarrayofobjects = _useState6[0],
18015
- setlogoarrayofobjects = _useState6[1];
18016
- var _useState7 = useState(false),
18021
+ var _useState7 = useState([]),
18017
18022
  _useState8 = _slicedToArray(_useState7, 2),
18018
- openCnvas = _useState8[0],
18019
- setopenCnvas = _useState8[1];
18020
- var _useState9 = useState(''),
18023
+ logoarrayofobjects = _useState8[0],
18024
+ setlogoarrayofobjects = _useState8[1];
18025
+ var _useState9 = useState(false),
18021
18026
  _useState10 = _slicedToArray(_useState9, 2),
18022
- activeTab = _useState10[0],
18023
- setactiveTab = _useState10[1];
18027
+ openCnvas = _useState10[0],
18028
+ setopenCnvas = _useState10[1];
18029
+ var _useState11 = useState(''),
18030
+ _useState12 = _slicedToArray(_useState11, 2),
18031
+ activeTab = _useState12[0],
18032
+ setactiveTab = _useState12[1];
18024
18033
  useEffect(function () {
18025
18034
  if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
18026
18035
  var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
@@ -18029,6 +18038,20 @@ var Headerresponsive = function Headerresponsive(props) {
18029
18038
  }
18030
18039
  }
18031
18040
  }, [templateproperties_context]);
18041
+ useEffect(function () {
18042
+ if (fetchCategoriesQueryContext.isSuccess == true && fetchCategoriesQueryContext.data.data.status == true) {
18043
+ var _fetchCategoriesQuery;
18044
+ var temppcollarray = _toConsumableArray(pcollarray);
18045
+ fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 || _fetchCategoriesQuery.categories.forEach(function (arrayItem) {
18046
+ arrayItem === null || arrayItem === void 0 || arrayItem.parentcolletions.forEach(function (item) {
18047
+ if (arrayItem.isshowntocustomers == 1 && arrayItem.isinftiler == 1) {
18048
+ temppcollarray.push(item);
18049
+ }
18050
+ });
18051
+ });
18052
+ setpcollarray(_toConsumableArray(temppcollarray));
18053
+ }
18054
+ }, [fetchCategoriesQueryContext.isSuccess]);
18032
18055
  var header_cssstyles = {
18033
18056
  header_logo: css({
18034
18057
  width: sectionproperties.logo_width + 'px',
@@ -19001,9 +19024,9 @@ var Headerresponsive = function Headerresponsive(props) {
19001
19024
  }, sectionproperties.subheaderParentType == 'Categories' && /*#__PURE__*/React.createElement(Accordion, {
19002
19025
  allowMultipleExpanded: true,
19003
19026
  allowZeroExpanded: true
19004
- }, fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories.map(function (item, index) {
19027
+ }, 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) {
19005
19028
  if (item.isshowntocustomers == 1) {
19006
- var _fetchCategoriesQuery2, _fetchCategoriesQuery3;
19029
+ var _fetchCategoriesQuery3, _fetchCategoriesQuery4;
19007
19030
  return /*#__PURE__*/React.createElement(AccordionItem, {
19008
19031
  uuid: index
19009
19032
  }, /*#__PURE__*/React.createElement(AccordionItemHeading, {
@@ -19057,7 +19080,7 @@ var Headerresponsive = function Headerresponsive(props) {
19057
19080
  }, /*#__PURE__*/React.createElement(Accordion, {
19058
19081
  allowMultipleExpanded: true,
19059
19082
  allowZeroExpanded: true
19060
- }, Choosenindex.length != 0 && (fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.categories[Choosenindex]) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.parentcolletions) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.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 ? void 0 : _fetchCategoriesQuery3.parentcolletions.map(function (pitem, pindex) {
19083
+ }, 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) {
19061
19084
  if (pitem.isshowntocustomers == 1) {
19062
19085
  return /*#__PURE__*/React.createElement(AccordionItem, {
19063
19086
  uuid: pindex
@@ -19151,6 +19174,81 @@ var Headerresponsive = function Headerresponsive(props) {
19151
19174
  }
19152
19175
  })));
19153
19176
  }
19177
+ })), sectionproperties.subheaderParentType == 'Parent Collections' && /*#__PURE__*/React.createElement(Accordion, {
19178
+ allowMultipleExpanded: true,
19179
+ allowZeroExpanded: true
19180
+ }, pcollarray.map(function (item, index) {
19181
+ if (item.isshowntocustomers == 1) {
19182
+ var _item$collections;
19183
+ return /*#__PURE__*/React.createElement(AccordionItem, {
19184
+ uuid: index
19185
+ }, /*#__PURE__*/React.createElement(AccordionItemHeading, {
19186
+ onClick: function onClick() {
19187
+ setChoosenindex(index);
19188
+ }
19189
+ }, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
19190
+ className: ' row m-0 p-0 mb-2 '
19191
+ }, /*#__PURE__*/React.createElement("div", {
19192
+ className: ' row m-0 w-100 px-3 '
19193
+ }, /*#__PURE__*/React.createElement("div", {
19194
+ className: "col-10 p-0 text-start"
19195
+ }, /*#__PURE__*/React.createElement("p", {
19196
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
19197
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
19198
+ className: "col-lg-2 col-md-2 col-sm-2 p-0 text-end"
19199
+ }, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
19200
+ if (state.expanded == true) {
19201
+ return /*#__PURE__*/React.createElement("i", {
19202
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
19203
+ }, /*#__PURE__*/React.createElement(FiChevronDown, {
19204
+ style: {
19205
+ color: '#000',
19206
+ fontSize: 15
19207
+ }
19208
+ }));
19209
+ } else {
19210
+ return /*#__PURE__*/React.createElement("i", {
19211
+ className: ' collapsetitle h-100 d-flex align-items-center justify-content-end '
19212
+ }, /*#__PURE__*/React.createElement(FiChevronUp, {
19213
+ style: {
19214
+ color: '#000',
19215
+ fontSize: 15
19216
+ }
19217
+ }));
19218
+ }
19219
+ }))), /*#__PURE__*/React.createElement("div", {
19220
+ className: "col-lg-12 p-0"
19221
+ }, /*#__PURE__*/React.createElement("hr", {
19222
+ className: "mt-4 mb-4",
19223
+ style: {
19224
+ borderColor: sectionproperties.resp_header_separatorbg
19225
+ }
19226
+ }))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
19227
+ className: "p-0"
19228
+ }, /*#__PURE__*/React.createElement("div", {
19229
+ className: "row mt-0 mb-2 ml-0 mr-0 d-lg-flex"
19230
+ }, (_item$collections = item.collections) === null || _item$collections === void 0 ? void 0 : _item$collections.map(function (collitem, collindex) {
19231
+ if (collitem.isshowntocustomers == 1) {
19232
+ return /*#__PURE__*/React.createElement("div", {
19233
+ className: ' row m-0 p-0 mb-2 w-100 '
19234
+ }, /*#__PURE__*/React.createElement("div", {
19235
+ className: "col-12 text-start px-4",
19236
+ onClick: function onClick() {
19237
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + collitem.collectionid);
19238
+ }
19239
+ }, /*#__PURE__*/React.createElement("p", {
19240
+ className: "".concat(header_cssstyles.navbar_item_text_responsive) + ' mb-0 p-0 '
19241
+ }, langdetect == 'en' ? collitem.title_en : collitem.title_ar)), /*#__PURE__*/React.createElement("div", {
19242
+ className: "col-lg-12 p-0"
19243
+ }, /*#__PURE__*/React.createElement("hr", {
19244
+ className: "mt-4 mb-4",
19245
+ style: {
19246
+ borderColor: sectionproperties.resp_header_separatorbg
19247
+ }
19248
+ })));
19249
+ }
19250
+ }))));
19251
+ }
19154
19252
  })))))));
19155
19253
  };
19156
19254
 
@@ -26280,7 +26378,13 @@ var Simpleheader = function Simpleheader(props) {
26280
26378
  marginTop: sectionproperties.header_marginTop + 'px',
26281
26379
  marginBottom: sectionproperties.header_marginBottom + 'px'
26282
26380
  }
26283
- }, /*#__PURE__*/React.createElement("div", {
26381
+ }, templateproperties_context.showtextslider == 'Show' && /*#__PURE__*/React.createElement("div", {
26382
+ "class": "col-lg-12 p-0"
26383
+ }, /*#__PURE__*/React.createElement(MarqueeHeader, {
26384
+ sectionpropertiesprops: sectionproperties,
26385
+ templateproperties_contextprops: templateproperties_context,
26386
+ actions: actions
26387
+ })), /*#__PURE__*/React.createElement("div", {
26284
26388
  "class": " ".concat(header_cssstyles.headercontainer) + ' d-flex d-md-none align-items-center m-0 '
26285
26389
  }, /*#__PURE__*/React.createElement("div", {
26286
26390
  "class": "row m-0 w-100 "
@@ -26354,8 +26458,8 @@ var Simpleheader = function Simpleheader(props) {
26354
26458
  actions: actions,
26355
26459
  subheaderpropertiesprops: {
26356
26460
  subheaderpositionprops: 'in nav',
26357
- paddingLeftprops: '25px',
26358
- paddingRightprops: '25px',
26461
+ paddingLeftprops: '10px',
26462
+ paddingRightprops: '10px',
26359
26463
  subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
26360
26464
  }
26361
26465
  })), /*#__PURE__*/React.createElement("div", {
@@ -26636,6 +26740,9 @@ var Simpleheader = function Simpleheader(props) {
26636
26740
  })))))), sectionproperties.responsiveheaderstyle == 'Style 1' && /*#__PURE__*/React.createElement(Headerresponsive, {
26637
26741
  sectionpropertiesprops: sectionproperties,
26638
26742
  actions: actions
26743
+ }), sectionproperties.responsiveheaderstyle == 'Style 1 With Canvas' && /*#__PURE__*/React.createElement(Headerresponsive, {
26744
+ sectionpropertiesprops: sectionproperties,
26745
+ actions: actions
26639
26746
  }), sectionproperties.responsiveheaderstyle == 'Style 2' && /*#__PURE__*/React.createElement(HeaderresponsiveStyle2, {
26640
26747
  sectionpropertiesprops: sectionproperties,
26641
26748
  actions: actions
@@ -28785,9 +28892,9 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
28785
28892
  }, /*#__PURE__*/React.createElement("div", {
28786
28893
  "class": "col-lg-12 p-0"
28787
28894
  }, /*#__PURE__*/React.createElement("div", {
28788
- "class": "".concat(headerstyles$8.header_innercontainer, " ").concat(header_cssstyles.header_innercontainer) + ' row m-0 w-100 d-flex d-md-none align-items-center '
28895
+ "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 '
28789
28896
  }, /*#__PURE__*/React.createElement("div", {
28790
- "class": "col-lg-3 p-0 d-flex align-items-center"
28897
+ "class": "col-lg-2 p-0 d-flex align-items-center"
28791
28898
  }, /*#__PURE__*/React.createElement("div", {
28792
28899
  "class": "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
28793
28900
  style: {
@@ -28805,7 +28912,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
28805
28912
  maxHeight: '100%'
28806
28913
  }
28807
28914
  }))), /*#__PURE__*/React.createElement("div", {
28808
- "class": "col-lg-6 p-0 d-flex align-items-center justify-content-center"
28915
+ "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'
28809
28916
  }, /*#__PURE__*/React.createElement("div", {
28810
28917
  "class": "scrollhorizontal w-100 align-items-center justify-content-center",
28811
28918
  style: {
@@ -28837,12 +28944,12 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
28837
28944
  actions: actions,
28838
28945
  subheaderpropertiesprops: {
28839
28946
  subheaderpositionprops: 'in nav',
28840
- paddingLeftprops: '35px',
28841
- paddingRightprops: '35px',
28947
+ paddingLeftprops: '15px',
28948
+ paddingRightprops: '15px',
28842
28949
  subheadercontentpositionprops: 'center'
28843
28950
  }
28844
28951
  })), /*#__PURE__*/React.createElement("div", {
28845
- "class": "col-lg-3 p-0 d-flex align-items-center justify-content-end"
28952
+ "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'
28846
28953
  }, /*#__PURE__*/React.createElement(Dropdown, {
28847
28954
  style: {
28848
28955
  marginRight: langdetect == 'en' ? '30px' : 0,
@@ -28975,7 +29082,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
28975
29082
  }
28976
29083
  })), /*#__PURE__*/React.createElement("div", {
28977
29084
  "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 '
28978
- }, /*#__PURE__*/React.createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), /*#__PURE__*/React.createElement("div", {
29085
+ }, /*#__PURE__*/React.createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("div", {
28979
29086
  "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 ',
28980
29087
  onClick: function onClick() {
28981
29088
  setsidecartnavshowcontext(true);
@@ -29015,7 +29122,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
29015
29122
  top: sectionproperties.cartbadgetop + 'px',
29016
29123
  right: sectionproperties.cartbadgeright + 'px'
29017
29124
  }
29018
- }, (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.createElement("div", {
29125
+ }, (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.createElement("div", {
29019
29126
  "class": langdetect == 'en' ? 'informationdropdown informationdropdown_en' : 'informationdropdown informationdropdown_ar'
29020
29127
  }, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("i", {
29021
29128
  "class": header_cssstyles.infoiconcontainer + ' allcentered '
@@ -29076,15 +29183,13 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
29076
29183
  size: sectionproperties.youtubebtniconfontsize
29077
29184
  })))))))), /*#__PURE__*/React.createElement("div", {
29078
29185
  "class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
29079
- }, /*#__PURE__*/React.createElement(Dropdown, {
29080
- style: {
29081
- marginLeft: langdetect == 'en' ? '25px' : 0,
29082
- marginRight: langdetect == 'ar' ? '25px' : 0
29083
- }
29084
- }, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
29186
+ }, /*#__PURE__*/React.createElement("li", {
29085
29187
  "class": ' d-flex align-items-center justify-content-center '
29086
29188
  }, langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
29087
- "class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered '
29189
+ "class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered ',
29190
+ onClick: function onClick() {
29191
+ setlang('en');
29192
+ }
29088
29193
  }, /*#__PURE__*/React.createElement("img", {
29089
29194
  src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
29090
29195
  style: {
@@ -29101,7 +29206,10 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
29101
29206
  }), /*#__PURE__*/React.createElement("p", {
29102
29207
  "class": "m-0 p-0"
29103
29208
  }, "\u0639")), langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
29104
- "class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered '
29209
+ "class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered ',
29210
+ onClick: function onClick() {
29211
+ setlang('ar');
29212
+ }
29105
29213
  }, /*#__PURE__*/React.createElement("img", {
29106
29214
  src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
29107
29215
  style: {
@@ -29117,39 +29225,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
29117
29225
  "class": "ml-2 mr-2"
29118
29226
  }), /*#__PURE__*/React.createElement("p", {
29119
29227
  "class": "m-0 p-0"
29120
- }, "En")))), /*#__PURE__*/React.createElement(Dropdown.Menu, null, /*#__PURE__*/React.createElement(Dropdown.Item, {
29121
- onClick: function onClick() {
29122
- setlang('ar');
29123
- }
29124
- }, /*#__PURE__*/React.createElement("div", {
29125
- "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
29126
- }, /*#__PURE__*/React.createElement("p", {
29127
- "class": ' d-flex align-items-center m-0 p-0 '
29128
- }, /*#__PURE__*/React.createElement("img", {
29129
- src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
29130
- style: {
29131
- maxWidth: '2.5vh',
29132
- maxHeight: '2.5vh'
29133
- }
29134
- }), /*#__PURE__*/React.createElement("span", {
29135
- "class": "ml-2 mr-2"
29136
- }, lang.arabic)))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
29137
- onClick: function onClick() {
29138
- setlang('en');
29139
- }
29140
- }, /*#__PURE__*/React.createElement("div", {
29141
- "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
29142
- }, /*#__PURE__*/React.createElement("p", {
29143
- "class": ' d-flex align-items-center m-0 p-0 '
29144
- }, /*#__PURE__*/React.createElement("img", {
29145
- src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
29146
- style: {
29147
- maxWidth: '2.5vh',
29148
- maxHeight: '2.5vh'
29149
- }
29150
- }), /*#__PURE__*/React.createElement("span", {
29151
- "class": "ml-2 mr-2"
29152
- }, lang.english)))))))), /*#__PURE__*/React.createElement("div", {
29228
+ }, "En"))))), /*#__PURE__*/React.createElement("div", {
29153
29229
  "class": "col-lg-12 p-0"
29154
29230
  }, sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React.createElement(Subheader, {
29155
29231
  sectionpropertiesprops: sectionproperties,
@@ -52603,8 +52679,9 @@ var TextSectionConnectToWA = function TextSectionConnectToWA(props) {
52603
52679
 
52604
52680
  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; }
52605
52681
  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(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; }
52682
+ // 49
52606
52683
  var DynamicForm = function DynamicForm(props) {
52607
- var _css, _dynamicform$fields;
52684
+ var _css, _dynamicform$fields, _dynamicform$fields2, _dynamicform$fields3, _dynamicform$fields4, _dynamicform$fields5;
52608
52685
  props.actions.lang;
52609
52686
  var langdetect = props.actions.langdetect;
52610
52687
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -52632,6 +52709,30 @@ var DynamicForm = function DynamicForm(props) {
52632
52709
  _useState10 = _slicedToArray(_useState9, 2),
52633
52710
  confirmationtext = _useState10[0],
52634
52711
  setconfirmationtext = _useState10[1];
52712
+ var _useState11 = useState(25),
52713
+ _useState12 = _slicedToArray(_useState11, 2),
52714
+ percentage = _useState12[0],
52715
+ setpercentage = _useState12[1];
52716
+ var _useState13 = useState(''),
52717
+ _useState14 = _slicedToArray(_useState13, 2);
52718
+ _useState14[0];
52719
+ var setnumberoffields = _useState14[1];
52720
+ var _useState15 = useState(0),
52721
+ _useState16 = _slicedToArray(_useState15, 2);
52722
+ _useState16[0];
52723
+ var setnumberofslides = _useState16[1];
52724
+ var _useState17 = useState(0),
52725
+ _useState18 = _slicedToArray(_useState17, 2);
52726
+ _useState18[0];
52727
+ _useState18[1];
52728
+ var _useState19 = useState(0),
52729
+ _useState20 = _slicedToArray(_useState19, 2),
52730
+ currentindex = _useState20[0],
52731
+ setcurrentindex = _useState20[1];
52732
+ var _useState21 = useState(0),
52733
+ _useState22 = _slicedToArray(_useState21, 2);
52734
+ _useState22[0];
52735
+ var setnumberoffiledinslide = _useState22[1];
52635
52736
  useEffect(function () {
52636
52737
  var secpropobj = {};
52637
52738
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -52648,7 +52749,7 @@ var DynamicForm = function DynamicForm(props) {
52648
52749
  var _fetchdynamicformfeil;
52649
52750
  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) {
52650
52751
  if (item.id == dynamicformid) {
52651
- var _tempitem$fields;
52752
+ var _tempitem$fields, _tempitem$fields2;
52652
52753
  var tempitem = item;
52653
52754
  tempitem === null || tempitem === void 0 || (_tempitem$fields = tempitem.fields) === null || _tempitem$fields === void 0 || _tempitem$fields.forEach(function (fielditem) {
52654
52755
  fielditem.value = '';
@@ -52656,8 +52757,15 @@ var DynamicForm = function DynamicForm(props) {
52656
52757
  setdynamicform(tempitem);
52657
52758
  var temptitleen = tempitem.title_en;
52658
52759
  var temptitlear = tempitem.title_ar;
52760
+ var tempnumberoffields = tempitem === null || tempitem === void 0 || (_tempitem$fields2 = tempitem.fields) === null || _tempitem$fields2 === void 0 ? void 0 : _tempitem$fields2.length; //12
52761
+ var tempnumberoffiledinslide = sectionproperties.numberofslides; //4
52762
+ var tempnumberofslides = Math.ceil(tempnumberoffields / tempnumberoffiledinslide); //3
52763
+
52659
52764
  setformtitleen(temptitleen);
52660
52765
  setformtitlear(temptitlear);
52766
+ setnumberoffields(tempnumberoffields);
52767
+ setnumberoffiledinslide(tempnumberoffiledinslide);
52768
+ setnumberofslides(tempnumberofslides);
52661
52769
  }
52662
52770
  });
52663
52771
  }
@@ -52698,9 +52806,9 @@ var DynamicForm = function DynamicForm(props) {
52698
52806
  }
52699
52807
  };
52700
52808
  var clearform = function clearform() {
52701
- var _tempitem$fields2;
52809
+ var _tempitem$fields3;
52702
52810
  var tempitem = _objectSpread$_({}, dynamicform);
52703
- tempitem === null || tempitem === void 0 || (_tempitem$fields2 = tempitem.fields) === null || _tempitem$fields2 === void 0 || _tempitem$fields2.forEach(function (fielditem) {
52811
+ tempitem === null || tempitem === void 0 || (_tempitem$fields3 = tempitem.fields) === null || _tempitem$fields3 === void 0 || _tempitem$fields3.forEach(function (fielditem) {
52704
52812
  fielditem.value = '';
52705
52813
  });
52706
52814
  setdynamicform(tempitem);
@@ -52790,7 +52898,7 @@ var DynamicForm = function DynamicForm(props) {
52790
52898
  position: 'relative',
52791
52899
  display: 'flex',
52792
52900
  alignItems: 'center'
52793
- }, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 30px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", 'transparent'), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, "fontSize", sectionproperties.inputfieldfontsize + 'px'), _defineProperty(_css, ':focus', {
52901
+ }, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 30px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", 'transparent'), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, "fontSize", sectionproperties.inputfieldfontsize + 'px'), _defineProperty(_css, "marginBottom", sectionproperties.inputfieldbordertype == 'All' ? 20 : 0), _defineProperty(_css, ':focus', {
52794
52902
  borderColor: sectionproperties.inputfeildbordercoloronfocus,
52795
52903
  boxShadow: 'none',
52796
52904
  transition: '.3s'
@@ -52808,10 +52916,41 @@ var DynamicForm = function DynamicForm(props) {
52808
52916
  color: sectionproperties.generalbtn_textColoronhover,
52809
52917
  backgroundColor: sectionproperties.generalbtn_bgColoronhover
52810
52918
  }
52919
+ }),
52920
+ btnLeft: css({
52921
+ width: 40,
52922
+ height: 40,
52923
+ // borderRadius: 20,
52924
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : 0,
52925
+ backgroundColor: '#000',
52926
+ cursor: 'pointer',
52927
+ borderTopLeftRadius: langdetect == 'en' ? 5 : 0,
52928
+ borderBottomLeftRadius: langdetect == 'en' ? 5 : 0,
52929
+ borderTopRightRadius: langdetect == 'ar' ? 5 : 0,
52930
+ borderBottomRightRadius: langdetect == 'ar' ? 5 : 0,
52931
+ ':hover': {
52932
+ transition: '.3s',
52933
+ backgroundColor: '#044da6'
52934
+ }
52935
+ }),
52936
+ btnRight: css({
52937
+ width: 40,
52938
+ height: 40,
52939
+ borderLeft: langdetect == 'en' ? '1px solid #ccc' : 0,
52940
+ backgroundColor: '#000',
52941
+ cursor: 'pointer',
52942
+ borderTopRightRadius: langdetect == 'en' ? 5 : 0,
52943
+ borderBottomRightRadius: langdetect == 'en' ? 5 : 0,
52944
+ borderTopLeftRadius: langdetect == 'ar' ? 5 : 0,
52945
+ borderBottomLeftRadius: langdetect == 'ar' ? 5 : 0,
52946
+ ':hover': {
52947
+ transition: '.3s',
52948
+ backgroundColor: '#044da6'
52949
+ }
52811
52950
  })
52812
52951
  };
52813
52952
  return /*#__PURE__*/React.createElement("div", {
52814
- "class": 'row m-0 w-100 h-100 px-md-2',
52953
+ "class": 'row m-0 w-100 h-100 px-md-2 allcentered',
52815
52954
  style: {
52816
52955
  background: sectionproperties.backgroundColor,
52817
52956
  paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
@@ -52819,6 +52958,165 @@ var DynamicForm = function DynamicForm(props) {
52819
52958
  paddingTop: sectionproperties.cardpaddingvertical + 'px',
52820
52959
  paddingBottom: sectionproperties.cardpaddingvertical + 'px'
52821
52960
  }
52961
+ }, dynamicformid == '49' && /*#__PURE__*/React.createElement("div", {
52962
+ "class": "col-lg-10 m-0 w-100 allcentered"
52963
+ }, /*#__PURE__*/React.createElement("div", {
52964
+ "class": "row m-0 w-100",
52965
+ style: {
52966
+ border: '1px solid #ccc',
52967
+ borderRadius: 20,
52968
+ overflow: 'hidden'
52969
+ }
52970
+ }, /*#__PURE__*/React.createElement("div", {
52971
+ style: {
52972
+ width: '100%',
52973
+ height: '5.5px'
52974
+ }
52975
+ }, /*#__PURE__*/React.createElement("div", {
52976
+ "class": 'ratingbar',
52977
+ style: {
52978
+ backgroundColor: 'rgb(226, 226, 226)'
52979
+ }
52980
+ }, /*#__PURE__*/React.createElement("div", {
52981
+ "class": 'ratingbar',
52982
+ style: {
52983
+ backgroundColor: '#044da6',
52984
+ width: percentage + '%'
52985
+ }
52986
+ }))), /*#__PURE__*/React.createElement("div", {
52987
+ "class": "col-lg-12 text-start mt-5 px-4",
52988
+ style: {
52989
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
52990
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
52991
+ }
52992
+ }, /*#__PURE__*/React.createElement("p", {
52993
+ "class": "m-0 p-0",
52994
+ style: {
52995
+ color: sectionproperties.sectionTitleColor,
52996
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
52997
+ fontWeight: sectionproperties.sectionTitleFontWeight
52998
+ }
52999
+ }, langdetect == 'en' ? formtitleen : formtitlear)), (dynamicform === null || dynamicform === void 0 ? void 0 : dynamicform.id) != undefined && /*#__PURE__*/React.createElement("div", {
53000
+ "class": 'row m-0 w-100 p-3 mt-3'
53001
+ }, /*#__PURE__*/React.createElement("div", {
53002
+ "class": "col-lg-12 text-start"
53003
+ }, currentindex == 0 && /*#__PURE__*/React.createElement("div", {
53004
+ "class": 'row m-0 w-100 '
53005
+ }, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields = dynamicform.fields) === null || _dynamicform$fields === void 0 ? void 0 : _dynamicform$fields.map(function (item, index) {
53006
+ if (index <= 2) {
53007
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
53008
+ return inputitem(item, index);
53009
+ } else if (item.type == 'textarea') {
53010
+ return textareaitem(item, index);
53011
+ } else if (item.type == 'selectbox') {
53012
+ return selectboxitem(item, index);
53013
+ }
53014
+ }
53015
+ })), currentindex == 1 && /*#__PURE__*/React.createElement("div", {
53016
+ "class": 'row m-0 w-100 '
53017
+ }, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields2 = dynamicform.fields) === null || _dynamicform$fields2 === void 0 ? void 0 : _dynamicform$fields2.map(function (item, index) {
53018
+ if (index > 2 && index <= 5) {
53019
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
53020
+ return inputitem(item, index);
53021
+ } else if (item.type == 'textarea') {
53022
+ return textareaitem(item, index);
53023
+ } else if (item.type == 'selectbox') {
53024
+ return selectboxitem(item, index);
53025
+ }
53026
+ }
53027
+ })), currentindex == 2 && /*#__PURE__*/React.createElement("div", {
53028
+ "class": 'row m-0 w-100 '
53029
+ }, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields3 = dynamicform.fields) === null || _dynamicform$fields3 === void 0 ? void 0 : _dynamicform$fields3.map(function (item, index) {
53030
+ if (index > 5 && index <= 8) {
53031
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
53032
+ return inputitem(item, index);
53033
+ } else if (item.type == 'textarea') {
53034
+ return textareaitem(item, index);
53035
+ } else if (item.type == 'selectbox') {
53036
+ return selectboxitem(item, index);
53037
+ }
53038
+ }
53039
+ })), currentindex == 3 && /*#__PURE__*/React.createElement("div", {
53040
+ "class": 'row m-0 w-100 '
53041
+ }, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields4 = dynamicform.fields) === null || _dynamicform$fields4 === void 0 ? void 0 : _dynamicform$fields4.map(function (item, index) {
53042
+ if (index > 8 && index <= 11) {
53043
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
53044
+ return inputitem(item, index);
53045
+ } else if (item.type == 'textarea') {
53046
+ return textareaitem(item, index);
53047
+ } else if (item.type == 'selectbox') {
53048
+ return selectboxitem(item, index);
53049
+ }
53050
+ }
53051
+ }))), /*#__PURE__*/React.createElement("div", {
53052
+ "class": "col-lg-12 text-end flex-row px-4 mt-4"
53053
+ }, /*#__PURE__*/React.createElement("div", {
53054
+ "class": form_cssstyles.btnLeft + ' allcentered ',
53055
+ style: {},
53056
+ onClick: function onClick() {
53057
+ if (currentindex == 1) {
53058
+ setcurrentindex(0);
53059
+ setpercentage(25);
53060
+ } else if (currentindex == 2) {
53061
+ setcurrentindex(1);
53062
+ setpercentage(50);
53063
+ } else if (currentindex == 3) {
53064
+ setcurrentindex(2);
53065
+ setpercentage(75);
53066
+ } else ;
53067
+ }
53068
+ }, langdetect == 'en' && /*#__PURE__*/React.createElement(BsChevronLeft, {
53069
+ color: '#fff',
53070
+ size: 18
53071
+ }), langdetect == 'ar' && /*#__PURE__*/React.createElement(BsChevronRight, {
53072
+ color: '#fff',
53073
+ size: 18
53074
+ })), /*#__PURE__*/React.createElement("div", {
53075
+ "class": form_cssstyles.btnRight + ' allcentered ',
53076
+ onClick: function onClick() {
53077
+ if (currentindex == 0) {
53078
+ setcurrentindex(1);
53079
+ setpercentage(50);
53080
+ } else if (currentindex == 1) {
53081
+ setcurrentindex(2);
53082
+ setpercentage(75);
53083
+ } else if (currentindex == 2) {
53084
+ setcurrentindex(3);
53085
+ setpercentage(100);
53086
+ } else ;
53087
+ }
53088
+ }, langdetect == 'en' && /*#__PURE__*/React.createElement(BsChevronRight, {
53089
+ color: '#fff',
53090
+ size: 18
53091
+ }), langdetect == 'ar' && /*#__PURE__*/React.createElement(BsChevronLeft, {
53092
+ color: '#fff',
53093
+ size: 18
53094
+ }))), /*#__PURE__*/React.createElement("div", {
53095
+ "class": "col-lg-12 allcentered my-4",
53096
+ style: {
53097
+ visibility: currentindex == 3 ? 'visible' : 'hidden'
53098
+ }
53099
+ }, /*#__PURE__*/React.createElement("button", {
53100
+ onClick: function onClick() {
53101
+ submitform();
53102
+ },
53103
+ disabled: GeneralAPIMutationContext.isLoading,
53104
+ "class": form_cssstyles.generalbtn + ' allcentered '
53105
+ }, GeneralAPIMutationContext.isLoading ? /*#__PURE__*/React.createElement(CircularProgress, {
53106
+ color: sectionproperties.generalbtn_textColor,
53107
+ width: "20px",
53108
+ height: "20px",
53109
+ duration: "1s"
53110
+ }) : langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React.createElement("div", {
53111
+ "class": "col-lg-12 allcentered my-4"
53112
+ }, /*#__PURE__*/React.createElement("p", {
53113
+ "class": "m-0 p-0",
53114
+ style: {
53115
+ fontSize: 20,
53116
+ color: '#000'
53117
+ }
53118
+ }, confirmationtext))))), dynamicformid != '49' && /*#__PURE__*/React.createElement("div", {
53119
+ "class": "row m-0 w-100"
52822
53120
  }, /*#__PURE__*/React.createElement("div", {
52823
53121
  "class": "col-lg-12 text-start",
52824
53122
  style: {
@@ -52838,7 +53136,7 @@ var DynamicForm = function DynamicForm(props) {
52838
53136
  "class": "col-lg-12 text-start"
52839
53137
  }, /*#__PURE__*/React.createElement("div", {
52840
53138
  "class": 'row m-0 w-100 '
52841
- }, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields = dynamicform.fields) === null || _dynamicform$fields === void 0 ? void 0 : _dynamicform$fields.map(function (item, index) {
53139
+ }, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields5 = dynamicform.fields) === null || _dynamicform$fields5 === void 0 ? void 0 : _dynamicform$fields5.map(function (item, index) {
52842
53140
  if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
52843
53141
  return inputitem(item, index);
52844
53142
  } else if (item.type == 'textarea') {
@@ -52867,7 +53165,7 @@ var DynamicForm = function DynamicForm(props) {
52867
53165
  fontSize: 20,
52868
53166
  color: '#000'
52869
53167
  }
52870
- }, confirmationtext))));
53168
+ }, confirmationtext)))));
52871
53169
  };
52872
53170
 
52873
53171
  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; }
@@ -61513,15 +61811,17 @@ var Card23 = function Card23(props) {
61513
61811
  }, /*#__PURE__*/React.createElement("div", {
61514
61812
  "class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(cardsstyles2.imageContainer, " ").concat(cardstyles$7.imagecontainer) + ' d-flex d-md-none ' : " ".concat(cardsstyles2.imageContainer, " ") + ' d-flex d-md-none ',
61515
61813
  style: {
61516
- height: sectionproperties.image_height + 'px'
61814
+ height: sectionproperties.image_height + 'px',
61815
+ marginBottom: sectionproperties.image_mb + 'px'
61517
61816
  }
61518
61817
  }, Image('normal')), /*#__PURE__*/React.createElement("div", {
61519
61818
  "class": cardsstyles2.imageContainer + ' d-none d-md-flex ',
61520
61819
  style: {
61521
- height: sectionproperties.height_responsive + 'px'
61820
+ height: sectionproperties.height_responsive + 'px',
61821
+ marginBottom: sectionproperties.image_mb + 'px'
61522
61822
  }
61523
61823
  }, Image('responsive')), /*#__PURE__*/React.createElement("div", {
61524
- "class": 'row m-0 w-100 pl-sm-2 pr-sm-2',
61824
+ "class": sectionproperties.innersectionpaddinghorizontal == 0 ? 'row m-0 w-100' : 'row m-0 w-100 pl-sm-2 pr-sm-2',
61525
61825
  style: {
61526
61826
  paddingLeft: sectionproperties.innersectionpaddinghorizontal + 'px',
61527
61827
  paddingRight: sectionproperties.innersectionpaddinghorizontal + 'px',
@@ -61571,11 +61871,13 @@ var Card23 = function Card23(props) {
61571
61871
  })), /*#__PURE__*/React.createElement("div", {
61572
61872
  "class": "col-lg-12 p-0"
61573
61873
  }, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement("p", {
61574
- "class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 m-0 ',
61874
+ "class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 ',
61575
61875
  style: {
61576
- textAlign: langdetect == 'en' ? 'left' : 'right'
61876
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
61877
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
61878
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px'
61577
61879
  }
61578
- }, plainString(langdetect == 'en' ? item.description_en : item.description_ar)), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
61880
+ }, plainString(item.shortdescription)), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
61579
61881
  "class": "col-lg-12 p-0 ",
61580
61882
  style: {
61581
61883
  minHeight: '6vh'
@@ -61584,15 +61886,21 @@ var Card23 = function Card23(props) {
61584
61886
  onClick: function onClick() {
61585
61887
  cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
61586
61888
  },
61587
- "class": sectionproperties.wordbreak == '1' ? "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 m-0 ' : "".concat(cardsstyles2.productNameStyles) + ' wordbreak wordbreak2 m-0 ',
61889
+ "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 ',
61588
61890
  style: {
61589
- textAlign: langdetect == 'en' ? 'left' : 'right'
61891
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
61590
61892
  }
61591
61893
  }, item.name))), /*#__PURE__*/React.createElement("div", {
61592
- "class": "row m-0 w-100 align-items-center mt-1 mb-1"
61894
+ "class": "row m-0 w-100 align-items-center mt-1 mb-1",
61895
+ style: {
61896
+ flexDirection: sectionproperties.productnamecentered == 'Centered' ? 'column' : 'row'
61897
+ }
61593
61898
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
61594
- "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 '
61595
- }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("span", {
61899
+ "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 ',
61900
+ style: {
61901
+ textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : ''
61902
+ }
61903
+ }, 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.createElement("span", {
61596
61904
  "class": "".concat(cardsstyles2.productSalePricestyles)
61597
61905
  }, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("p", {
61598
61906
  "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 '