tabexseriescomponents 0.0.408 → 0.0.410
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 +318 -66
- package/dist/index.esm.js +318 -66
- package/dist/index.umd.js +318 -66
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15220,6 +15220,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
15220
15220
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
15221
15221
|
perpageItems = _useState14[0],
|
|
15222
15222
|
setperpageItems = _useState14[1];
|
|
15223
|
+
var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
15223
15224
|
React.useEffect(function () {
|
|
15224
15225
|
var productfilerobjtemp = ProductFilterObjContext;
|
|
15225
15226
|
if (props.filterparamsprops != undefined) {
|
|
@@ -15515,6 +15516,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
15515
15516
|
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
15516
15517
|
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
15517
15518
|
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
15519
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
15518
15520
|
if (langdetect == 'en') {
|
|
15519
15521
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
15520
15522
|
} else {
|
|
@@ -16077,7 +16079,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
16077
16079
|
sectionindexprops: index,
|
|
16078
16080
|
sectionidprops: item.sectionid,
|
|
16079
16081
|
actions: actions,
|
|
16080
|
-
fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
|
|
16082
|
+
fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
|
|
16083
|
+
AddtoCartMutationContext: AddtoCartMutationContext
|
|
16081
16084
|
}));
|
|
16082
16085
|
} else if (sectionproperties.overallnumberofcards != 0) {
|
|
16083
16086
|
if (cardinfoindex < sectionproperties.overallnumberofcards) {
|
|
@@ -16091,7 +16094,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
16091
16094
|
sectionindexprops: index,
|
|
16092
16095
|
sectionidprops: item.sectionid,
|
|
16093
16096
|
actions: actions,
|
|
16094
|
-
fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
|
|
16097
|
+
fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
|
|
16098
|
+
AddtoCartMutationContext: AddtoCartMutationContext
|
|
16095
16099
|
}));
|
|
16096
16100
|
}
|
|
16097
16101
|
}
|
|
@@ -16279,7 +16283,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
16279
16283
|
sectionidprops: item.sectionid,
|
|
16280
16284
|
actions: actions,
|
|
16281
16285
|
fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
|
|
16282
|
-
numberOfColsvertical: sectionproperties.numberOfColsvertical
|
|
16286
|
+
numberOfColsvertical: sectionproperties.numberOfColsvertical,
|
|
16287
|
+
AddtoCartMutationContext: AddtoCartMutationContext
|
|
16283
16288
|
}));
|
|
16284
16289
|
} else if (sectionproperties.overallnumberofcards != 0) {
|
|
16285
16290
|
if (cardinfoindex < sectionproperties.overallnumberofcards) {
|
|
@@ -16295,7 +16300,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
16295
16300
|
sectionidprops: item.sectionid,
|
|
16296
16301
|
actions: actions,
|
|
16297
16302
|
fontFamilyprops: sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : '',
|
|
16298
|
-
numberOfColsvertical: sectionproperties.numberOfColsvertical
|
|
16303
|
+
numberOfColsvertical: sectionproperties.numberOfColsvertical,
|
|
16304
|
+
AddtoCartMutationContext: AddtoCartMutationContext
|
|
16299
16305
|
}));
|
|
16300
16306
|
}
|
|
16301
16307
|
}
|
|
@@ -28828,9 +28834,9 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
28828
28834
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28829
28835
|
"class": "col-lg-12 p-0"
|
|
28830
28836
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28831
|
-
"class": "".concat(headerstyles$8.header_innercontainer, " ").concat(header_cssstyles.header_innercontainer) + ' row m-0 w-100 d-flex d-md-none align-items-center '
|
|
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 px-1025-1 '
|
|
28832
28838
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28833
|
-
"class": "col-lg-
|
|
28839
|
+
"class": "col-lg-2 p-0 d-flex align-items-center"
|
|
28834
28840
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28835
28841
|
"class": "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
|
|
28836
28842
|
style: {
|
|
@@ -28848,7 +28854,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
28848
28854
|
maxHeight: '100%'
|
|
28849
28855
|
}
|
|
28850
28856
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28851
|
-
"class":
|
|
28857
|
+
"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'
|
|
28852
28858
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28853
28859
|
"class": "scrollhorizontal w-100 align-items-center justify-content-center",
|
|
28854
28860
|
style: {
|
|
@@ -28880,12 +28886,12 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
28880
28886
|
actions: actions,
|
|
28881
28887
|
subheaderpropertiesprops: {
|
|
28882
28888
|
subheaderpositionprops: 'in nav',
|
|
28883
|
-
paddingLeftprops: '
|
|
28884
|
-
paddingRightprops: '
|
|
28889
|
+
paddingLeftprops: '15px',
|
|
28890
|
+
paddingRightprops: '15px',
|
|
28885
28891
|
subheadercontentpositionprops: 'center'
|
|
28886
28892
|
}
|
|
28887
28893
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28888
|
-
"class":
|
|
28894
|
+
"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'
|
|
28889
28895
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], {
|
|
28890
28896
|
style: {
|
|
28891
28897
|
marginRight: langdetect == 'en' ? '30px' : 0,
|
|
@@ -29018,7 +29024,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29018
29024
|
}
|
|
29019
29025
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29020
29026
|
"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 '
|
|
29021
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29027
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, " ", favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29022
29028
|
"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 ',
|
|
29023
29029
|
onClick: function onClick() {
|
|
29024
29030
|
setsidecartnavshowcontext(true);
|
|
@@ -29058,7 +29064,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29058
29064
|
top: sectionproperties.cartbadgetop + 'px',
|
|
29059
29065
|
right: sectionproperties.cartbadgeright + 'px'
|
|
29060
29066
|
}
|
|
29061
|
-
}, (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", {
|
|
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))), sectionproperties.icontextfontsize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29062
29068
|
"class": langdetect == 'en' ? 'informationdropdown informationdropdown_en' : 'informationdropdown informationdropdown_ar'
|
|
29063
29069
|
}, /*#__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", {
|
|
29064
29070
|
"class": header_cssstyles.infoiconcontainer + ' allcentered '
|
|
@@ -29119,15 +29125,13 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29119
29125
|
size: sectionproperties.youtubebtniconfontsize
|
|
29120
29126
|
})))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29121
29127
|
"class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
|
|
29122
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
29123
|
-
style: {
|
|
29124
|
-
marginLeft: langdetect == 'en' ? '25px' : 0,
|
|
29125
|
-
marginRight: langdetect == 'ar' ? '25px' : 0
|
|
29126
|
-
}
|
|
29127
|
-
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
29128
|
+
}, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
29128
29129
|
"class": ' d-flex align-items-center justify-content-center '
|
|
29129
29130
|
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29130
|
-
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered '
|
|
29131
|
+
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered ',
|
|
29132
|
+
onClick: function onClick() {
|
|
29133
|
+
setlang('en');
|
|
29134
|
+
}
|
|
29131
29135
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29132
29136
|
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
29133
29137
|
style: {
|
|
@@ -29144,7 +29148,10 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29144
29148
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29145
29149
|
"class": "m-0 p-0"
|
|
29146
29150
|
}, "\u0639")), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29147
|
-
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered '
|
|
29151
|
+
"class": "".concat(header_cssstyles.language_container) + ' row m-0 allcentered ',
|
|
29152
|
+
onClick: function onClick() {
|
|
29153
|
+
setlang('ar');
|
|
29154
|
+
}
|
|
29148
29155
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29149
29156
|
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
29150
29157
|
style: {
|
|
@@ -29160,39 +29167,7 @@ var HeaderRestaurant = function HeaderRestaurant(props) {
|
|
|
29160
29167
|
"class": "ml-2 mr-2"
|
|
29161
29168
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29162
29169
|
"class": "m-0 p-0"
|
|
29163
|
-
}, "En")))), /*#__PURE__*/React__default["default"].createElement(
|
|
29164
|
-
onClick: function onClick() {
|
|
29165
|
-
setlang('ar');
|
|
29166
|
-
}
|
|
29167
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29168
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
29169
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29170
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
29171
|
-
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29172
|
-
src: 'https://tabex-co.com/storage/StaticImages/egyptflag.png',
|
|
29173
|
-
style: {
|
|
29174
|
-
maxWidth: '2.5vh',
|
|
29175
|
-
maxHeight: '2.5vh'
|
|
29176
|
-
}
|
|
29177
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
29178
|
-
"class": "ml-2 mr-2"
|
|
29179
|
-
}, lang.arabic)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
29180
|
-
onClick: function onClick() {
|
|
29181
|
-
setlang('en');
|
|
29182
|
-
}
|
|
29183
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29184
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
29185
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29186
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
29187
|
-
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
29188
|
-
src: 'https://tabex-co.com/storage/StaticImages/usflag.png',
|
|
29189
|
-
style: {
|
|
29190
|
-
maxWidth: '2.5vh',
|
|
29191
|
-
maxHeight: '2.5vh'
|
|
29192
|
-
}
|
|
29193
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
29194
|
-
"class": "ml-2 mr-2"
|
|
29195
|
-
}, lang.english)))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29170
|
+
}, "En"))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29196
29171
|
"class": "col-lg-12 p-0"
|
|
29197
29172
|
}, sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
|
|
29198
29173
|
sectionpropertiesprops: sectionproperties,
|
|
@@ -43816,7 +43791,7 @@ var Newsletterfooter = function Newsletterfooter(props) {
|
|
|
43816
43791
|
onClick: function onClick() {
|
|
43817
43792
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
43818
43793
|
}
|
|
43819
|
-
}, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.
|
|
43794
|
+
}, langdetect == 'en' ? sectionproperties.wishlisttitle_en : sectionproperties.wishlisttitle_ar)), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43820
43795
|
"class": "col-lg-12 col-md-12 col-sm-12 p-0 d-flex mb-1"
|
|
43821
43796
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
43822
43797
|
"class": "".concat(footerStyles.subPages) + ' wordbreak m-0 p-0 ',
|
|
@@ -52646,8 +52621,9 @@ var TextSectionConnectToWA = function TextSectionConnectToWA(props) {
|
|
|
52646
52621
|
|
|
52647
52622
|
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; }
|
|
52648
52623
|
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; }
|
|
52624
|
+
// 49
|
|
52649
52625
|
var DynamicForm = function DynamicForm(props) {
|
|
52650
|
-
var _css, _dynamicform$fields;
|
|
52626
|
+
var _css, _dynamicform$fields, _dynamicform$fields2, _dynamicform$fields3, _dynamicform$fields4, _dynamicform$fields5;
|
|
52651
52627
|
props.actions.lang;
|
|
52652
52628
|
var langdetect = props.actions.langdetect;
|
|
52653
52629
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -52675,6 +52651,30 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52675
52651
|
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
52676
52652
|
confirmationtext = _useState10[0],
|
|
52677
52653
|
setconfirmationtext = _useState10[1];
|
|
52654
|
+
var _useState11 = React.useState(25),
|
|
52655
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
52656
|
+
percentage = _useState12[0],
|
|
52657
|
+
setpercentage = _useState12[1];
|
|
52658
|
+
var _useState13 = React.useState(''),
|
|
52659
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2);
|
|
52660
|
+
_useState14[0];
|
|
52661
|
+
var setnumberoffields = _useState14[1];
|
|
52662
|
+
var _useState15 = React.useState(0),
|
|
52663
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2);
|
|
52664
|
+
_useState16[0];
|
|
52665
|
+
var setnumberofslides = _useState16[1];
|
|
52666
|
+
var _useState17 = React.useState(0),
|
|
52667
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2);
|
|
52668
|
+
_useState18[0];
|
|
52669
|
+
_useState18[1];
|
|
52670
|
+
var _useState19 = React.useState(0),
|
|
52671
|
+
_useState20 = _slicedToArray__default["default"](_useState19, 2),
|
|
52672
|
+
currentindex = _useState20[0],
|
|
52673
|
+
setcurrentindex = _useState20[1];
|
|
52674
|
+
var _useState21 = React.useState(0),
|
|
52675
|
+
_useState22 = _slicedToArray__default["default"](_useState21, 2);
|
|
52676
|
+
_useState22[0];
|
|
52677
|
+
var setnumberoffiledinslide = _useState22[1];
|
|
52678
52678
|
React.useEffect(function () {
|
|
52679
52679
|
var secpropobj = {};
|
|
52680
52680
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -52691,7 +52691,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52691
52691
|
var _fetchdynamicformfeil;
|
|
52692
52692
|
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) {
|
|
52693
52693
|
if (item.id == dynamicformid) {
|
|
52694
|
-
var _tempitem$fields;
|
|
52694
|
+
var _tempitem$fields, _tempitem$fields2;
|
|
52695
52695
|
var tempitem = item;
|
|
52696
52696
|
tempitem === null || tempitem === void 0 || (_tempitem$fields = tempitem.fields) === null || _tempitem$fields === void 0 || _tempitem$fields.forEach(function (fielditem) {
|
|
52697
52697
|
fielditem.value = '';
|
|
@@ -52699,8 +52699,15 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52699
52699
|
setdynamicform(tempitem);
|
|
52700
52700
|
var temptitleen = tempitem.title_en;
|
|
52701
52701
|
var temptitlear = tempitem.title_ar;
|
|
52702
|
+
var tempnumberoffields = tempitem === null || tempitem === void 0 || (_tempitem$fields2 = tempitem.fields) === null || _tempitem$fields2 === void 0 ? void 0 : _tempitem$fields2.length; //12
|
|
52703
|
+
var tempnumberoffiledinslide = sectionproperties.numberofslides; //4
|
|
52704
|
+
var tempnumberofslides = Math.ceil(tempnumberoffields / tempnumberoffiledinslide); //3
|
|
52705
|
+
|
|
52702
52706
|
setformtitleen(temptitleen);
|
|
52703
52707
|
setformtitlear(temptitlear);
|
|
52708
|
+
setnumberoffields(tempnumberoffields);
|
|
52709
|
+
setnumberoffiledinslide(tempnumberoffiledinslide);
|
|
52710
|
+
setnumberofslides(tempnumberofslides);
|
|
52704
52711
|
}
|
|
52705
52712
|
});
|
|
52706
52713
|
}
|
|
@@ -52741,9 +52748,9 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52741
52748
|
}
|
|
52742
52749
|
};
|
|
52743
52750
|
var clearform = function clearform() {
|
|
52744
|
-
var _tempitem$
|
|
52751
|
+
var _tempitem$fields3;
|
|
52745
52752
|
var tempitem = _objectSpread$_({}, dynamicform);
|
|
52746
|
-
tempitem === null || tempitem === void 0 || (_tempitem$
|
|
52753
|
+
tempitem === null || tempitem === void 0 || (_tempitem$fields3 = tempitem.fields) === null || _tempitem$fields3 === void 0 || _tempitem$fields3.forEach(function (fielditem) {
|
|
52747
52754
|
fielditem.value = '';
|
|
52748
52755
|
});
|
|
52749
52756
|
setdynamicform(tempitem);
|
|
@@ -52833,7 +52840,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52833
52840
|
position: 'relative',
|
|
52834
52841
|
display: 'flex',
|
|
52835
52842
|
alignItems: 'center'
|
|
52836
|
-
}, _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', {
|
|
52843
|
+
}, _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', {
|
|
52837
52844
|
borderColor: sectionproperties.inputfeildbordercoloronfocus,
|
|
52838
52845
|
boxShadow: 'none',
|
|
52839
52846
|
transition: '.3s'
|
|
@@ -52851,10 +52858,41 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52851
52858
|
color: sectionproperties.generalbtn_textColoronhover,
|
|
52852
52859
|
backgroundColor: sectionproperties.generalbtn_bgColoronhover
|
|
52853
52860
|
}
|
|
52861
|
+
}),
|
|
52862
|
+
btnLeft: glamor.css({
|
|
52863
|
+
width: 40,
|
|
52864
|
+
height: 40,
|
|
52865
|
+
// borderRadius: 20,
|
|
52866
|
+
borderRight: langdetect == 'en' ? '1px solid #ccc' : 0,
|
|
52867
|
+
backgroundColor: '#000',
|
|
52868
|
+
cursor: 'pointer',
|
|
52869
|
+
borderTopLeftRadius: langdetect == 'en' ? 5 : 0,
|
|
52870
|
+
borderBottomLeftRadius: langdetect == 'en' ? 5 : 0,
|
|
52871
|
+
borderTopRightRadius: langdetect == 'ar' ? 5 : 0,
|
|
52872
|
+
borderBottomRightRadius: langdetect == 'ar' ? 5 : 0,
|
|
52873
|
+
':hover': {
|
|
52874
|
+
transition: '.3s',
|
|
52875
|
+
backgroundColor: '#044da6'
|
|
52876
|
+
}
|
|
52877
|
+
}),
|
|
52878
|
+
btnRight: glamor.css({
|
|
52879
|
+
width: 40,
|
|
52880
|
+
height: 40,
|
|
52881
|
+
borderLeft: langdetect == 'en' ? '1px solid #ccc' : 0,
|
|
52882
|
+
backgroundColor: '#000',
|
|
52883
|
+
cursor: 'pointer',
|
|
52884
|
+
borderTopRightRadius: langdetect == 'en' ? 5 : 0,
|
|
52885
|
+
borderBottomRightRadius: langdetect == 'en' ? 5 : 0,
|
|
52886
|
+
borderTopLeftRadius: langdetect == 'ar' ? 5 : 0,
|
|
52887
|
+
borderBottomLeftRadius: langdetect == 'ar' ? 5 : 0,
|
|
52888
|
+
':hover': {
|
|
52889
|
+
transition: '.3s',
|
|
52890
|
+
backgroundColor: '#044da6'
|
|
52891
|
+
}
|
|
52854
52892
|
})
|
|
52855
52893
|
};
|
|
52856
52894
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52857
|
-
"class": 'row m-0 w-100 h-100 px-md-2',
|
|
52895
|
+
"class": 'row m-0 w-100 h-100 px-md-2 allcentered',
|
|
52858
52896
|
style: {
|
|
52859
52897
|
background: sectionproperties.backgroundColor,
|
|
52860
52898
|
paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
|
|
@@ -52862,6 +52900,165 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52862
52900
|
paddingTop: sectionproperties.cardpaddingvertical + 'px',
|
|
52863
52901
|
paddingBottom: sectionproperties.cardpaddingvertical + 'px'
|
|
52864
52902
|
}
|
|
52903
|
+
}, dynamicformid == '49' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52904
|
+
"class": "col-lg-10 m-0 w-100 allcentered"
|
|
52905
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52906
|
+
"class": "row m-0 w-100",
|
|
52907
|
+
style: {
|
|
52908
|
+
border: '1px solid #ccc',
|
|
52909
|
+
borderRadius: 20,
|
|
52910
|
+
overflow: 'hidden'
|
|
52911
|
+
}
|
|
52912
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52913
|
+
style: {
|
|
52914
|
+
width: '100%',
|
|
52915
|
+
height: '5.5px'
|
|
52916
|
+
}
|
|
52917
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52918
|
+
"class": 'ratingbar',
|
|
52919
|
+
style: {
|
|
52920
|
+
backgroundColor: 'rgb(226, 226, 226)'
|
|
52921
|
+
}
|
|
52922
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52923
|
+
"class": 'ratingbar',
|
|
52924
|
+
style: {
|
|
52925
|
+
backgroundColor: '#044da6',
|
|
52926
|
+
width: percentage + '%'
|
|
52927
|
+
}
|
|
52928
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52929
|
+
"class": "col-lg-12 text-start mt-5 px-4",
|
|
52930
|
+
style: {
|
|
52931
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
52932
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px'
|
|
52933
|
+
}
|
|
52934
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
52935
|
+
"class": "m-0 p-0",
|
|
52936
|
+
style: {
|
|
52937
|
+
color: sectionproperties.sectionTitleColor,
|
|
52938
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
52939
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
52940
|
+
}
|
|
52941
|
+
}, langdetect == 'en' ? formtitleen : formtitlear)), (dynamicform === null || dynamicform === void 0 ? void 0 : dynamicform.id) != undefined && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52942
|
+
"class": 'row m-0 w-100 p-3 mt-3'
|
|
52943
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52944
|
+
"class": "col-lg-12 text-start"
|
|
52945
|
+
}, currentindex == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52946
|
+
"class": 'row m-0 w-100 '
|
|
52947
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields = dynamicform.fields) === null || _dynamicform$fields === void 0 ? void 0 : _dynamicform$fields.map(function (item, index) {
|
|
52948
|
+
if (index <= 2) {
|
|
52949
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
52950
|
+
return inputitem(item, index);
|
|
52951
|
+
} else if (item.type == 'textarea') {
|
|
52952
|
+
return textareaitem(item, index);
|
|
52953
|
+
} else if (item.type == 'selectbox') {
|
|
52954
|
+
return selectboxitem(item, index);
|
|
52955
|
+
}
|
|
52956
|
+
}
|
|
52957
|
+
})), currentindex == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52958
|
+
"class": 'row m-0 w-100 '
|
|
52959
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields2 = dynamicform.fields) === null || _dynamicform$fields2 === void 0 ? void 0 : _dynamicform$fields2.map(function (item, index) {
|
|
52960
|
+
if (index > 2 && index <= 5) {
|
|
52961
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
52962
|
+
return inputitem(item, index);
|
|
52963
|
+
} else if (item.type == 'textarea') {
|
|
52964
|
+
return textareaitem(item, index);
|
|
52965
|
+
} else if (item.type == 'selectbox') {
|
|
52966
|
+
return selectboxitem(item, index);
|
|
52967
|
+
}
|
|
52968
|
+
}
|
|
52969
|
+
})), currentindex == 2 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52970
|
+
"class": 'row m-0 w-100 '
|
|
52971
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields3 = dynamicform.fields) === null || _dynamicform$fields3 === void 0 ? void 0 : _dynamicform$fields3.map(function (item, index) {
|
|
52972
|
+
if (index > 5 && index <= 8) {
|
|
52973
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
52974
|
+
return inputitem(item, index);
|
|
52975
|
+
} else if (item.type == 'textarea') {
|
|
52976
|
+
return textareaitem(item, index);
|
|
52977
|
+
} else if (item.type == 'selectbox') {
|
|
52978
|
+
return selectboxitem(item, index);
|
|
52979
|
+
}
|
|
52980
|
+
}
|
|
52981
|
+
})), currentindex == 3 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52982
|
+
"class": 'row m-0 w-100 '
|
|
52983
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields4 = dynamicform.fields) === null || _dynamicform$fields4 === void 0 ? void 0 : _dynamicform$fields4.map(function (item, index) {
|
|
52984
|
+
if (index > 8 && index <= 11) {
|
|
52985
|
+
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
52986
|
+
return inputitem(item, index);
|
|
52987
|
+
} else if (item.type == 'textarea') {
|
|
52988
|
+
return textareaitem(item, index);
|
|
52989
|
+
} else if (item.type == 'selectbox') {
|
|
52990
|
+
return selectboxitem(item, index);
|
|
52991
|
+
}
|
|
52992
|
+
}
|
|
52993
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52994
|
+
"class": "col-lg-12 text-end flex-row px-4 mt-4"
|
|
52995
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52996
|
+
"class": form_cssstyles.btnLeft + ' allcentered ',
|
|
52997
|
+
style: {},
|
|
52998
|
+
onClick: function onClick() {
|
|
52999
|
+
if (currentindex == 1) {
|
|
53000
|
+
setcurrentindex(0);
|
|
53001
|
+
setpercentage(25);
|
|
53002
|
+
} else if (currentindex == 2) {
|
|
53003
|
+
setcurrentindex(1);
|
|
53004
|
+
setpercentage(50);
|
|
53005
|
+
} else if (currentindex == 3) {
|
|
53006
|
+
setcurrentindex(2);
|
|
53007
|
+
setpercentage(75);
|
|
53008
|
+
} else ;
|
|
53009
|
+
}
|
|
53010
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
|
|
53011
|
+
color: '#fff',
|
|
53012
|
+
size: 18
|
|
53013
|
+
}), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
|
|
53014
|
+
color: '#fff',
|
|
53015
|
+
size: 18
|
|
53016
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53017
|
+
"class": form_cssstyles.btnRight + ' allcentered ',
|
|
53018
|
+
onClick: function onClick() {
|
|
53019
|
+
if (currentindex == 0) {
|
|
53020
|
+
setcurrentindex(1);
|
|
53021
|
+
setpercentage(50);
|
|
53022
|
+
} else if (currentindex == 1) {
|
|
53023
|
+
setcurrentindex(2);
|
|
53024
|
+
setpercentage(75);
|
|
53025
|
+
} else if (currentindex == 2) {
|
|
53026
|
+
setcurrentindex(3);
|
|
53027
|
+
setpercentage(100);
|
|
53028
|
+
} else ;
|
|
53029
|
+
}
|
|
53030
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement(BsChevronRight.BsChevronRight, {
|
|
53031
|
+
color: '#fff',
|
|
53032
|
+
size: 18
|
|
53033
|
+
}), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement(BsChevronLeft.BsChevronLeft, {
|
|
53034
|
+
color: '#fff',
|
|
53035
|
+
size: 18
|
|
53036
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53037
|
+
"class": "col-lg-12 allcentered my-4",
|
|
53038
|
+
style: {
|
|
53039
|
+
visibility: currentindex == 3 ? 'visible' : 'hidden'
|
|
53040
|
+
}
|
|
53041
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
53042
|
+
onClick: function onClick() {
|
|
53043
|
+
submitform();
|
|
53044
|
+
},
|
|
53045
|
+
disabled: GeneralAPIMutationContext.isLoading,
|
|
53046
|
+
"class": form_cssstyles.generalbtn + ' allcentered '
|
|
53047
|
+
}, GeneralAPIMutationContext.isLoading ? /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
53048
|
+
color: sectionproperties.generalbtn_textColor,
|
|
53049
|
+
width: "20px",
|
|
53050
|
+
height: "20px",
|
|
53051
|
+
duration: "1s"
|
|
53052
|
+
}) : langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53053
|
+
"class": "col-lg-12 allcentered my-4"
|
|
53054
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
53055
|
+
"class": "m-0 p-0",
|
|
53056
|
+
style: {
|
|
53057
|
+
fontSize: 20,
|
|
53058
|
+
color: '#000'
|
|
53059
|
+
}
|
|
53060
|
+
}, confirmationtext))))), dynamicformid != '49' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
53061
|
+
"class": "row m-0 w-100"
|
|
52865
53062
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52866
53063
|
"class": "col-lg-12 text-start",
|
|
52867
53064
|
style: {
|
|
@@ -52881,7 +53078,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52881
53078
|
"class": "col-lg-12 text-start"
|
|
52882
53079
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
52883
53080
|
"class": 'row m-0 w-100 '
|
|
52884
|
-
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$
|
|
53081
|
+
}, dynamicform === null || dynamicform === void 0 || (_dynamicform$fields5 = dynamicform.fields) === null || _dynamicform$fields5 === void 0 ? void 0 : _dynamicform$fields5.map(function (item, index) {
|
|
52885
53082
|
if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
|
|
52886
53083
|
return inputitem(item, index);
|
|
52887
53084
|
} else if (item.type == 'textarea') {
|
|
@@ -52910,7 +53107,7 @@ var DynamicForm = function DynamicForm(props) {
|
|
|
52910
53107
|
fontSize: 20,
|
|
52911
53108
|
color: '#000'
|
|
52912
53109
|
}
|
|
52913
|
-
}, confirmationtext))));
|
|
53110
|
+
}, confirmationtext)))));
|
|
52914
53111
|
};
|
|
52915
53112
|
|
|
52916
53113
|
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; }
|
|
@@ -61112,6 +61309,7 @@ var Card23 = function Card23(props) {
|
|
|
61112
61309
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
61113
61310
|
item = _useState4[0],
|
|
61114
61311
|
setitem = _useState4[1];
|
|
61312
|
+
var AddtoCartMutationContext = props.AddtoCartMutationContext;
|
|
61115
61313
|
var _useState5 = React.useState(''),
|
|
61116
61314
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
61117
61315
|
secondimage = _useState6[0],
|
|
@@ -61233,7 +61431,7 @@ var Card23 = function Card23(props) {
|
|
|
61233
61431
|
}
|
|
61234
61432
|
}),
|
|
61235
61433
|
cart_btn: glamor.css({
|
|
61236
|
-
width: sectionproperties.cartBtnWidth + '
|
|
61434
|
+
width: sectionproperties.cartBtnWidth + '%',
|
|
61237
61435
|
height: sectionproperties.cartBtnHeight + 'px',
|
|
61238
61436
|
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
61239
61437
|
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
@@ -61248,6 +61446,23 @@ var Card23 = function Card23(props) {
|
|
|
61248
61446
|
borderColor: sectionproperties.cartBtnTextcoloronhover
|
|
61249
61447
|
}
|
|
61250
61448
|
}),
|
|
61449
|
+
buynow: glamor.css({
|
|
61450
|
+
width: sectionproperties.cartBtnWidth + '%',
|
|
61451
|
+
height: sectionproperties.cartBtnHeight + 'px',
|
|
61452
|
+
background: sectionproperties.cartBtnTextcolor,
|
|
61453
|
+
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
61454
|
+
color: 'white',
|
|
61455
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
61456
|
+
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
61457
|
+
// border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
61458
|
+
transition: '.3s',
|
|
61459
|
+
':hover': {
|
|
61460
|
+
background: sectionproperties.cartBtnTextcoloronhover,
|
|
61461
|
+
color: 'white'
|
|
61462
|
+
// borderColor: sectionproperties.cartBtnTextcoloronhover,
|
|
61463
|
+
}
|
|
61464
|
+
}),
|
|
61465
|
+
|
|
61251
61466
|
iconsContainer: glamor.css({
|
|
61252
61467
|
display: 'flex',
|
|
61253
61468
|
flexDirection: 'column',
|
|
@@ -61418,6 +61633,33 @@ var Card23 = function Card23(props) {
|
|
|
61418
61633
|
"class": "m-0 p-0"
|
|
61419
61634
|
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
|
|
61420
61635
|
};
|
|
61636
|
+
var _useState9 = React.useState(''),
|
|
61637
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
61638
|
+
addtocardpayloadobj = _useState10[0];
|
|
61639
|
+
_useState10[1];
|
|
61640
|
+
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
61641
|
+
var addtocartfunc = function addtocartfunc(forcetocheckout) {
|
|
61642
|
+
var forcetocheckoutvalue = forcetocheckout;
|
|
61643
|
+
var tempaddtocardpayloadobj = _objectSpread$x({}, addtocardpayloadobj);
|
|
61644
|
+
tempaddtocardpayloadobj.productid = item.productid;
|
|
61645
|
+
tempaddtocardpayloadobj.functype = 'add';
|
|
61646
|
+
tempaddtocardpayloadobj.item_type = 'product';
|
|
61647
|
+
tempaddtocardpayloadobj.quantity = 1;
|
|
61648
|
+
if (forcetocheckoutvalue != undefined) {
|
|
61649
|
+
tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
|
|
61650
|
+
}
|
|
61651
|
+
|
|
61652
|
+
// Pixel_EventsContext('AddToCart', {
|
|
61653
|
+
// content_ids: [item.productid],
|
|
61654
|
+
// content_name: item.name_en + ' - ' + item.name_ar,
|
|
61655
|
+
// content_sku: item.sku,
|
|
61656
|
+
// content_type: 'product',
|
|
61657
|
+
// currency: item.currencyname_en,
|
|
61658
|
+
// value: item.defaultprice,
|
|
61659
|
+
// quantity: 1,
|
|
61660
|
+
// });
|
|
61661
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
61662
|
+
};
|
|
61421
61663
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61422
61664
|
"class": langdetect == 'en' ? sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : 'row m-0 w-100' : langdetect == 'en' ? sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : 'row m-0 w-100' : 'row m-0 w-100',
|
|
61423
61665
|
style: {
|
|
@@ -61595,9 +61837,9 @@ var Card23 = function Card23(props) {
|
|
|
61595
61837
|
}, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
61596
61838
|
"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 '
|
|
61597
61839
|
}, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61598
|
-
"class": "d-flex align-items-center m-0"
|
|
61840
|
+
"class": "d-flex align-items-center m-0 flex-column w-100"
|
|
61599
61841
|
}, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
61600
|
-
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered ',
|
|
61842
|
+
"class": "".concat(cardsstyles2.cart_btn) + ' allcentered mt-3 ',
|
|
61601
61843
|
onClick: function onClick() {
|
|
61602
61844
|
setShowProductInfoModalContext(true);
|
|
61603
61845
|
setProductIdProdutInfoModalContext(item.productid);
|
|
@@ -61628,7 +61870,17 @@ var Card23 = function Card23(props) {
|
|
|
61628
61870
|
size: sectionproperties.cartBtn_iconFontSize
|
|
61629
61871
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
61630
61872
|
"class": "m-0 p-0"
|
|
61631
|
-
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)))
|
|
61873
|
+
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic))), sectionproperties.showbuynowbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
61874
|
+
"class": "".concat(cardsstyles2.buynow) + ' allcentered mt-3 ',
|
|
61875
|
+
onClick: function onClick() {
|
|
61876
|
+
addtocartfunc('forcetocheckout');
|
|
61877
|
+
},
|
|
61878
|
+
disabled: AddtoCartMutationContext.isLoading == true ? true : false
|
|
61879
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
61880
|
+
"class": "d-flex align-items-center justify-content-center"
|
|
61881
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
61882
|
+
"class": "m-0 p-0"
|
|
61883
|
+
}, langdetect == 'en' ? 'Buy Now' : 'اشترى الان'))))))));
|
|
61632
61884
|
};
|
|
61633
61885
|
|
|
61634
61886
|
function ownKeys$w(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; }
|