tabexseriescomponents 0.2.849 → 0.2.851
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 +775 -595
- package/dist/index.esm.js +775 -595
- package/dist/index.umd.js +775 -595
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2374,9 +2374,533 @@ var DescriptionContent = function DescriptionContent(props) {
|
|
|
2374
2374
|
|
|
2375
2375
|
function ownKeys$2B(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; }
|
|
2376
2376
|
function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2377
|
+
var AddReview = function AddReview(props) {
|
|
2378
|
+
var _css;
|
|
2379
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
2380
|
+
props.actions;
|
|
2381
|
+
props.actions.lang;
|
|
2382
|
+
var langdetect = props.actions.langdetect;
|
|
2383
|
+
var productid = props.actions.productid;
|
|
2384
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2385
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
2386
|
+
var canuserreview = props.actions.canuserreview;
|
|
2387
|
+
var addreviewcallback = props.actions.addreviewcallback;
|
|
2388
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
2389
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
2390
|
+
var pageindexcontext = props.actions.pageindexcontext;
|
|
2391
|
+
props.actions.setpageindexcontext;
|
|
2392
|
+
props.actions.setCurrentPageIdContext;
|
|
2393
|
+
var templatepropcontext = props.actions.templatepropcontext;
|
|
2394
|
+
var _useState = useState(''),
|
|
2395
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2396
|
+
sectionproperties = _useState2[0],
|
|
2397
|
+
setsectionproperties = _useState2[1];
|
|
2398
|
+
var _useState3 = useState(''),
|
|
2399
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
2400
|
+
_useState4[0];
|
|
2401
|
+
_useState4[1];
|
|
2402
|
+
var _useState5 = useState({
|
|
2403
|
+
reviewtitle: '',
|
|
2404
|
+
reviewbody: '',
|
|
2405
|
+
reviewrate: 0,
|
|
2406
|
+
reviewname: '',
|
|
2407
|
+
hasreview: 0
|
|
2408
|
+
}),
|
|
2409
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
2410
|
+
reviewpayloadobj = _useState6[0],
|
|
2411
|
+
setreviewpayloadobj = _useState6[1];
|
|
2412
|
+
// useEffect(() => {
|
|
2413
|
+
// var cartindex = templatepropcontext.pagesnprop.findIndex((x) => x.staticpageid == '63fcbef36eebe');
|
|
2414
|
+
// if (cartindex >= 0) {
|
|
2415
|
+
// setpageindexcontext(cartindex);
|
|
2416
|
+
// setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2417
|
+
// if (props.srcfromprops != 'templatedraftrouter') {
|
|
2418
|
+
// setCurrentPageIdContext(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2419
|
+
// }
|
|
2420
|
+
// }
|
|
2421
|
+
// }, []);
|
|
2422
|
+
useEffect(function () {
|
|
2423
|
+
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
2424
|
+
var secpropobj = {};
|
|
2425
|
+
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
2426
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2427
|
+
});
|
|
2428
|
+
setsectionproperties(_objectSpread$2B({}, secpropobj));
|
|
2429
|
+
}
|
|
2430
|
+
}, [StatePagePropertiesContext]);
|
|
2431
|
+
useEffect(function () {
|
|
2432
|
+
var _templatepropcontext$;
|
|
2433
|
+
var secpropobj = {};
|
|
2434
|
+
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
2435
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2436
|
+
});
|
|
2437
|
+
setsectionproperties(_objectSpread$2B({}, secpropobj));
|
|
2438
|
+
}, [pageindexcontext]);
|
|
2439
|
+
var reviewstyles = {
|
|
2440
|
+
submitreviewbtn: css({
|
|
2441
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
2442
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
2443
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
2444
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
2445
|
+
color: sectionproperties.reviewbtn_color,
|
|
2446
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
2447
|
+
backgroundColor: sectionproperties.reviewbtn_bgcolor,
|
|
2448
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
2449
|
+
':hover': {
|
|
2450
|
+
transition: '.3s',
|
|
2451
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover,
|
|
2452
|
+
color: sectionproperties.reviewbtn_coloronhover
|
|
2453
|
+
}
|
|
2454
|
+
}),
|
|
2455
|
+
form_control: css((_css = {
|
|
2456
|
+
position: 'relative',
|
|
2457
|
+
display: 'flex',
|
|
2458
|
+
alignItems: 'center'
|
|
2459
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css, "display", 'block'), "width", '100%'), "padding", '0 10px'), "transition", '.3s'), "fontWeight", 500), "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), "borderRadius", sectionproperties.inputfieldborderradius + 'px'), "height", sectionproperties.inputfieldheight + 'px'), "background", sectionproperties.input_bgcolor), _defineProperty(_defineProperty(_defineProperty(_css, "color", sectionproperties.inputfieldcolor), ':focus', {
|
|
2460
|
+
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
2461
|
+
}), ':focus .login_input_icon', {
|
|
2462
|
+
color: sectionproperties.inputfeildbordercoloronfocus
|
|
2463
|
+
}))),
|
|
2464
|
+
inputfield_label: css({
|
|
2465
|
+
color: sectionproperties.form_labelcolor,
|
|
2466
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
2467
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
2468
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
2469
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
2470
|
+
}),
|
|
2471
|
+
reviewbutton: css({
|
|
2472
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
2473
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
2474
|
+
background: sectionproperties.reviewbtn_bgcolor,
|
|
2475
|
+
color: sectionproperties.reviewbtn_color,
|
|
2476
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
2477
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
2478
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
2479
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
2480
|
+
':hover': {
|
|
2481
|
+
transition: '.3s',
|
|
2482
|
+
color: sectionproperties.reviewbtn_coloronhover,
|
|
2483
|
+
borderColor: sectionproperties.reviewbtn_coloronhover,
|
|
2484
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
|
|
2485
|
+
}
|
|
2486
|
+
}),
|
|
2487
|
+
productname: css({
|
|
2488
|
+
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
2489
|
+
textTransform: sectionproperties.prodNameTextTranform,
|
|
2490
|
+
fontWeight: sectionproperties.prodNameFontWeight,
|
|
2491
|
+
color: sectionproperties.prodNameColor
|
|
2492
|
+
})
|
|
2493
|
+
};
|
|
2494
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2495
|
+
className: 'row w-100 ml-0 mr-0 pb-5 pt-3',
|
|
2496
|
+
style: {
|
|
2497
|
+
// marginTop: sectionproperties.marginTop + 'px',
|
|
2498
|
+
}
|
|
2499
|
+
}, sectionproperties.sectionTitleFontSize != 0 && /*#__PURE__*/React.createElement("div", {
|
|
2500
|
+
"class": "row m-0 w-100 mt-3"
|
|
2501
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2502
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2503
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2504
|
+
"class": "m-0 p-0",
|
|
2505
|
+
style: {
|
|
2506
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
2507
|
+
color: sectionproperties.sectionTitleColor,
|
|
2508
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
2509
|
+
}
|
|
2510
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React.createElement("div", {
|
|
2511
|
+
"class": "col-lg-12"
|
|
2512
|
+
}, /*#__PURE__*/React.createElement("hr", null))), /*#__PURE__*/React.createElement("div", {
|
|
2513
|
+
"class": "col-lg-12 mb-3"
|
|
2514
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2515
|
+
"class": "row m-0 w-100 d-flex justify-content-start align-items-center"
|
|
2516
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2517
|
+
"class": "d-flex justify-content-start align-items-center",
|
|
2518
|
+
style: {
|
|
2519
|
+
width: '9vh',
|
|
2520
|
+
height: '9vh'
|
|
2521
|
+
}
|
|
2522
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
2523
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
2524
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
2525
|
+
path: fetchProductInfoQueryContext.data.data.productinfo.productmainimage,
|
|
2526
|
+
style: {
|
|
2527
|
+
width: '100%',
|
|
2528
|
+
height: '100%',
|
|
2529
|
+
objectFit: 'contain'
|
|
2530
|
+
},
|
|
2531
|
+
loading: "lazy"
|
|
2532
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2533
|
+
"class": "col-lg-9 co-md-9 col-sm-9 d-flex justify-content-start align-items-center"
|
|
2534
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2535
|
+
"class": "row m-0 w-100"
|
|
2536
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2537
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
2538
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2539
|
+
"class": reviewstyles.productname + ' m-0 p-0 '
|
|
2540
|
+
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), /*#__PURE__*/React.createElement("div", {
|
|
2541
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
2542
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
2543
|
+
count: 5,
|
|
2544
|
+
value: reviewpayloadobj.reviewrate,
|
|
2545
|
+
size: 18,
|
|
2546
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
2547
|
+
className: "far fa-star",
|
|
2548
|
+
style: {
|
|
2549
|
+
color: '#bfbfbf'
|
|
2550
|
+
}
|
|
2551
|
+
}),
|
|
2552
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
2553
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2554
|
+
}),
|
|
2555
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
2556
|
+
className: "fa fa-star",
|
|
2557
|
+
style: {
|
|
2558
|
+
color: '#FAB400'
|
|
2559
|
+
}
|
|
2560
|
+
}),
|
|
2561
|
+
activeColor: "#ffd700",
|
|
2562
|
+
onChange: function onChange(event) {
|
|
2563
|
+
var tempreviewpayloadobj = _objectSpread$2B({}, reviewpayloadobj);
|
|
2564
|
+
tempreviewpayloadobj.reviewrate = event;
|
|
2565
|
+
setreviewpayloadobj(_objectSpread$2B({}, tempreviewpayloadobj));
|
|
2566
|
+
}
|
|
2567
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
2568
|
+
"class": "col-lg-12"
|
|
2569
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2570
|
+
"class": "row m-0 w-100"
|
|
2571
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2572
|
+
"class": "col-lg-12 mb-4"
|
|
2573
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
2574
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2575
|
+
}, langdetect == 'en' ? 'Your Name' : 'اسمك'), /*#__PURE__*/React.createElement("input", {
|
|
2576
|
+
"class": reviewstyles.form_control,
|
|
2577
|
+
value: reviewpayloadobj.reviewname,
|
|
2578
|
+
onChange: function onChange(event) {
|
|
2579
|
+
var tempreviewpayloadobj = _objectSpread$2B({}, reviewpayloadobj);
|
|
2580
|
+
tempreviewpayloadobj.reviewname = event.target.value;
|
|
2581
|
+
setreviewpayloadobj(_objectSpread$2B({}, tempreviewpayloadobj));
|
|
2582
|
+
}
|
|
2583
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2584
|
+
"class": "col-lg-12 mb-4"
|
|
2585
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
2586
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2587
|
+
}, langdetect == 'en' ? 'Review title' : 'عنوان التقييم'), /*#__PURE__*/React.createElement("input", {
|
|
2588
|
+
"class": reviewstyles.form_control,
|
|
2589
|
+
value: reviewpayloadobj.reviewtitle,
|
|
2590
|
+
onChange: function onChange(event) {
|
|
2591
|
+
var tempreviewpayloadobj = _objectSpread$2B({}, reviewpayloadobj);
|
|
2592
|
+
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
2593
|
+
setreviewpayloadobj(_objectSpread$2B({}, tempreviewpayloadobj));
|
|
2594
|
+
}
|
|
2595
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2596
|
+
"class": "col-lg-12 mb-4"
|
|
2597
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
2598
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2599
|
+
}, langdetect == 'en' ? 'Your Review' : 'تقييمك'), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
2600
|
+
type: 'text',
|
|
2601
|
+
"class": reviewstyles.form_control + ' form_control ',
|
|
2602
|
+
value: reviewpayloadobj.reviewbody,
|
|
2603
|
+
onChange: function onChange(event) {
|
|
2604
|
+
var tempreviewpayloadobj = _objectSpread$2B({}, reviewpayloadobj);
|
|
2605
|
+
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
2606
|
+
setreviewpayloadobj(_objectSpread$2B({}, tempreviewpayloadobj));
|
|
2607
|
+
},
|
|
2608
|
+
style: {
|
|
2609
|
+
resize: 'none',
|
|
2610
|
+
minRows: 5
|
|
2611
|
+
}
|
|
2612
|
+
})))), canuserreview && /*#__PURE__*/React.createElement("div", {
|
|
2613
|
+
"class": "col-lg-12 allcentered mt-3"
|
|
2614
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
2615
|
+
"class": "".concat(reviewstyles.submitreviewbtn),
|
|
2616
|
+
onClick: function onClick() {
|
|
2617
|
+
if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
|
|
2618
|
+
GeneralAPIMutationContext.mutate({
|
|
2619
|
+
endpointurl: '/addproductreview',
|
|
2620
|
+
productid: productid,
|
|
2621
|
+
reviewpayloadobj: reviewpayloadobj,
|
|
2622
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2623
|
+
if (data.data.status) {
|
|
2624
|
+
NotificationManager.success('', 'Success');
|
|
2625
|
+
addreviewcallback();
|
|
2626
|
+
window.location.reload();
|
|
2627
|
+
} else {
|
|
2628
|
+
NotificationManager.warning('', data.data.reason);
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
});
|
|
2632
|
+
} else {
|
|
2633
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please complete the missing fields' : 'من فضلك اكمل باقى البيانات');
|
|
2634
|
+
|
|
2635
|
+
// alert('Please fill the missing fields');
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
function ownKeys$2A(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; }
|
|
2642
|
+
function _objectSpread$2A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2643
|
+
var ProductReviews = function ProductReviews(props) {
|
|
2644
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
2645
|
+
props.actions.lang;
|
|
2646
|
+
var langdetect = props.actions.langdetect;
|
|
2647
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
2648
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2649
|
+
props.actions.NotificationManager;
|
|
2650
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
2651
|
+
var actions = props.actions;
|
|
2652
|
+
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
2653
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
2654
|
+
var _useState = useState(false),
|
|
2655
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2656
|
+
canuserreview = _useState2[0],
|
|
2657
|
+
setcanuserreview = _useState2[1];
|
|
2658
|
+
var _useState3 = useState(false),
|
|
2659
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
2660
|
+
openreviewmodal = _useState4[0],
|
|
2661
|
+
setopenreviewmodal = _useState4[1];
|
|
2662
|
+
var _useState5 = useState('all'),
|
|
2663
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
2664
|
+
filterproductreviews = _useState6[0],
|
|
2665
|
+
setfilterproductreviews = _useState6[1];
|
|
2666
|
+
var _useState7 = useState([]),
|
|
2667
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
2668
|
+
productreviews = _useState8[0],
|
|
2669
|
+
setproductreviews = _useState8[1];
|
|
2670
|
+
useEffect(function () {
|
|
2671
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
2672
|
+
getreviewsassignermutationfunc();
|
|
2673
|
+
}
|
|
2674
|
+
}, [filterproductreviews]);
|
|
2675
|
+
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
2676
|
+
var _fetchProductInfoQuer2;
|
|
2677
|
+
GeneralAPIMutationContext.mutate({
|
|
2678
|
+
endpointurl: '/fetchproductreviews',
|
|
2679
|
+
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.productid,
|
|
2680
|
+
filterproductreviews: filterproductreviews,
|
|
2681
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2682
|
+
if (data.data.status) {
|
|
2683
|
+
setproductreviews(data.data.productreviews);
|
|
2684
|
+
setcanuserreview(data.data.canuserAddReview);
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
});
|
|
2688
|
+
};
|
|
2689
|
+
var addreviewcallback = function addreviewcallback() {
|
|
2690
|
+
setopenreviewmodal(false);
|
|
2691
|
+
getreviewsassignermutationfunc();
|
|
2692
|
+
fetchProductInfoQueryContext.refetch();
|
|
2693
|
+
};
|
|
2694
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2695
|
+
className: 'row w-100 ml-0 mr-0',
|
|
2696
|
+
style: {
|
|
2697
|
+
marginTop: props.actions.srcfrom == 'collapsepinfo' ? 0 : sectionproperties.marginTop + 'px',
|
|
2698
|
+
maxHeight: props.actions.srcfrom == 'collapsepinfo' ? '30vh' : 'auto',
|
|
2699
|
+
overflowY: 'auto'
|
|
2700
|
+
}
|
|
2701
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2702
|
+
"class": props.actions.srcfrom == 'collapsepinfo' ? 'col-lg-12 p-0 w-100 p-0 p-md-0 plr-1025-0' : 'col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0'
|
|
2703
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
2704
|
+
"class": "col-lg-12 allcentered",
|
|
2705
|
+
style: {
|
|
2706
|
+
height: '20vh'
|
|
2707
|
+
}
|
|
2708
|
+
}, /*#__PURE__*/React.createElement(Messaging, {
|
|
2709
|
+
color: "#ccc",
|
|
2710
|
+
width: "10px",
|
|
2711
|
+
height: "10px",
|
|
2712
|
+
duration: "1s"
|
|
2713
|
+
})), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
2714
|
+
"class": "row m-0 w-100"
|
|
2715
|
+
}, props.actions.srcfrom != 'collapsepinfo' && /*#__PURE__*/React.createElement("div", {
|
|
2716
|
+
"class": props.actions.srcfrom != 'collapsepinfo' ? 'col-lg-3' : 'col-12'
|
|
2717
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2718
|
+
"class": "row m-0 w-100 allcentered"
|
|
2719
|
+
}, canuserreview && /*#__PURE__*/React.createElement("div", {
|
|
2720
|
+
"class": props.actions.srcfrom != 'collapsepinfo' ? 'col-lg-12 allcentered mb-3 p-0' : 'col-lg-12 text-end mb-3 p-0'
|
|
2721
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
2722
|
+
"class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
|
|
2723
|
+
onClick: function onClick() {
|
|
2724
|
+
setopenreviewmodal(true);
|
|
2725
|
+
}
|
|
2726
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), props.actions.srcfrom != 'collapsepinfo' && /*#__PURE__*/React.createElement("div", {
|
|
2727
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
2728
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2729
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
2730
|
+
style: {
|
|
2731
|
+
borderRadius: 10,
|
|
2732
|
+
background: '#eee'
|
|
2733
|
+
}
|
|
2734
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2735
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2736
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2737
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
2738
|
+
style: {
|
|
2739
|
+
fontSize: '17px'
|
|
2740
|
+
}
|
|
2741
|
+
}, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React.createElement("div", {
|
|
2742
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
2743
|
+
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
2744
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2745
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2746
|
+
"class": "m-0 p-0 font-weight-600",
|
|
2747
|
+
style: {
|
|
2748
|
+
fontSize: '20px'
|
|
2749
|
+
}
|
|
2750
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productoverallrate, "/5")), /*#__PURE__*/React.createElement("div", {
|
|
2751
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2752
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
2753
|
+
count: 5,
|
|
2754
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.productoverallrate,
|
|
2755
|
+
edit: false,
|
|
2756
|
+
size: 18,
|
|
2757
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
2758
|
+
className: "far fa-star",
|
|
2759
|
+
style: {
|
|
2760
|
+
color: '#bfbfbf'
|
|
2761
|
+
}
|
|
2762
|
+
}),
|
|
2763
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
2764
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2765
|
+
}),
|
|
2766
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
2767
|
+
className: "fa fa-star",
|
|
2768
|
+
style: {
|
|
2769
|
+
color: '#FAB400'
|
|
2770
|
+
}
|
|
2771
|
+
}),
|
|
2772
|
+
activeColor: "#ffd700"
|
|
2773
|
+
})))), props.actions.srcfrom != 'collapsepinfo' && /*#__PURE__*/React.createElement("div", {
|
|
2774
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
|
|
2775
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2776
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
2777
|
+
style: {
|
|
2778
|
+
borderRadius: 10,
|
|
2779
|
+
background: '#eee'
|
|
2780
|
+
}
|
|
2781
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2782
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2783
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2784
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
2785
|
+
style: {
|
|
2786
|
+
fontSize: '17px'
|
|
2787
|
+
}
|
|
2788
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
2789
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
2790
|
+
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
2791
|
+
"class": "col-lg-12 d-flex justify-content-center"
|
|
2792
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
2793
|
+
count: 5,
|
|
2794
|
+
value: filterproductreviews
|
|
2795
|
+
// edit={false}
|
|
2796
|
+
,
|
|
2797
|
+
size: 18,
|
|
2798
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
2799
|
+
className: "far fa-star",
|
|
2800
|
+
style: {
|
|
2801
|
+
color: '#bfbfbf'
|
|
2802
|
+
}
|
|
2803
|
+
}),
|
|
2804
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
2805
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2806
|
+
}),
|
|
2807
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
2808
|
+
className: "fa fa-star",
|
|
2809
|
+
style: {
|
|
2810
|
+
color: '#FAB400'
|
|
2811
|
+
}
|
|
2812
|
+
}),
|
|
2813
|
+
activeColor: "#ffd700",
|
|
2814
|
+
onChange: function onChange(event) {
|
|
2815
|
+
setfilterproductreviews(event);
|
|
2816
|
+
}
|
|
2817
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
2818
|
+
"class": props.actions.srcfrom != 'collapsepinfo' ? 'col-lg-9' : 'col-12 p-0'
|
|
2819
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2820
|
+
"class": "row m-0 w-100"
|
|
2821
|
+
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
2822
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2823
|
+
"class": "col-lg-12 flex-column",
|
|
2824
|
+
style: {
|
|
2825
|
+
color: '#000'
|
|
2826
|
+
}
|
|
2827
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2828
|
+
"class": "row m-0 w-100"
|
|
2829
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2830
|
+
"class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
|
|
2831
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
2832
|
+
count: 5,
|
|
2833
|
+
value: reviewitem.review_rating,
|
|
2834
|
+
edit: false,
|
|
2835
|
+
size: 13,
|
|
2836
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
2837
|
+
className: "far fa-star",
|
|
2838
|
+
style: {
|
|
2839
|
+
color: '#bfbfbf'
|
|
2840
|
+
}
|
|
2841
|
+
}),
|
|
2842
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
2843
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2844
|
+
}),
|
|
2845
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
2846
|
+
className: "fa fa-star",
|
|
2847
|
+
style: {
|
|
2848
|
+
color: '#FAB400'
|
|
2849
|
+
}
|
|
2850
|
+
}),
|
|
2851
|
+
activeColor: "#ffd700"
|
|
2852
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2853
|
+
"class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
|
|
2854
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2855
|
+
"class": "m-0 p-0 font-weight-600",
|
|
2856
|
+
style: {
|
|
2857
|
+
fontSize: '15px'
|
|
2858
|
+
}
|
|
2859
|
+
}, reviewitem.reviewtitle)), /*#__PURE__*/React.createElement("div", {
|
|
2860
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2",
|
|
2861
|
+
style: {
|
|
2862
|
+
fontSize: 14
|
|
2863
|
+
}
|
|
2864
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2865
|
+
"class": "m-0 p-0 font-weight-500"
|
|
2866
|
+
}, reviewitem.reviewbody)), /*#__PURE__*/React.createElement("div", {
|
|
2867
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
|
|
2868
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2869
|
+
"class": "m-0 p-0 font-weight-600",
|
|
2870
|
+
style: {
|
|
2871
|
+
fontSize: 14
|
|
2872
|
+
}
|
|
2873
|
+
}, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React.createElement("div", {
|
|
2874
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-400 text-light",
|
|
2875
|
+
style: {
|
|
2876
|
+
fontSize: 13
|
|
2877
|
+
}
|
|
2878
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
2879
|
+
"class": "fa fa-clock text-light ml-2 mr-2"
|
|
2880
|
+
}), " ", reviewitem.timestamp)), /*#__PURE__*/React.createElement("hr", null));
|
|
2881
|
+
}))))), /*#__PURE__*/React.createElement(Modal, {
|
|
2882
|
+
show: openreviewmodal,
|
|
2883
|
+
onHide: function onHide() {
|
|
2884
|
+
return setopenreviewmodal(false);
|
|
2885
|
+
},
|
|
2886
|
+
centered: true,
|
|
2887
|
+
size: "md",
|
|
2888
|
+
"class": "reviewmodal"
|
|
2889
|
+
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(AddReview, {
|
|
2890
|
+
actions: _objectSpread$2A(_objectSpread$2A({}, actions), {}, {
|
|
2891
|
+
productid: productid,
|
|
2892
|
+
canuserreview: canuserreview,
|
|
2893
|
+
addreviewcallback: addreviewcallback
|
|
2894
|
+
})
|
|
2895
|
+
}))));
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
function ownKeys$2z(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; }
|
|
2899
|
+
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2377
2900
|
var Product_itemtype = function Product_itemtype(props) {
|
|
2378
2901
|
var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer0, _fetchProductInfoQuer1, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _authdetailsContext$i5, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _authdetailsContext$i6, _authdetailsContext$i7, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _authdetailsContext$i8, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _authdetailsContext$i9, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _sizeguideimage$;
|
|
2379
2902
|
var lang = props.actions.lang;
|
|
2903
|
+
var actions = props.actions;
|
|
2380
2904
|
var langdetect = props.actions.langdetect;
|
|
2381
2905
|
var srcfromprops = props.actions.srcfromprops;
|
|
2382
2906
|
var returnpolicyobj = props.actions.returnpolicyobj;
|
|
@@ -3204,7 +3728,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3204
3728
|
onClick: function onClick() {
|
|
3205
3729
|
var _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34;
|
|
3206
3730
|
var quantitystepincrearse = 1;
|
|
3207
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
3731
|
+
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
3208
3732
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer31 === void 0 || (_fetchProductInfoQuer31 = _fetchProductInfoQuer31.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.quantitystepincrearse) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer32 === void 0 || (_fetchProductInfoQuer32 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : _fetchProductInfoQuer32.quantitystepincrearse) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer33 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.data) === null || _fetchProductInfoQuer33 === void 0 || (_fetchProductInfoQuer33 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.quantitystepincrearse) != 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer34 === void 0 || (_fetchProductInfoQuer34 = _fetchProductInfoQuer34.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.quantitystepincrearse) != '') {
|
|
3209
3733
|
var _fetchProductInfoQuer35;
|
|
3210
3734
|
quantitystepincrearse = parseFloat(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer35 === void 0 || (_fetchProductInfoQuer35 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.quantitystepincrearse);
|
|
@@ -3213,7 +3737,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3213
3737
|
if (finalquantity >= 0) {
|
|
3214
3738
|
tempaddtocardpayloadobj.quantity = finalquantity;
|
|
3215
3739
|
}
|
|
3216
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3740
|
+
setaddtocardpayloadobj(_objectSpread$2z({}, tempaddtocardpayloadobj));
|
|
3217
3741
|
}
|
|
3218
3742
|
}, /*#__PURE__*/React.createElement("i", {
|
|
3219
3743
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered',
|
|
@@ -3229,13 +3753,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3229
3753
|
onClick: function onClick() {
|
|
3230
3754
|
var _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39;
|
|
3231
3755
|
var quantitystepincrearse = 1;
|
|
3232
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
3756
|
+
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
3233
3757
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer36 === void 0 || (_fetchProductInfoQuer36 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.quantitystepincrearse) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer37 === void 0 || (_fetchProductInfoQuer37 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.quantitystepincrearse) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer38 === void 0 || (_fetchProductInfoQuer38 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.quantitystepincrearse) != 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer39 === void 0 || (_fetchProductInfoQuer39 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.quantitystepincrearse) != '') {
|
|
3234
3758
|
var _fetchProductInfoQuer40;
|
|
3235
3759
|
quantitystepincrearse = parseFloat(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer40 === void 0 || (_fetchProductInfoQuer40 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.quantitystepincrearse);
|
|
3236
3760
|
}
|
|
3237
3761
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + quantitystepincrearse;
|
|
3238
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3762
|
+
setaddtocardpayloadobj(_objectSpread$2z({}, tempaddtocardpayloadobj));
|
|
3239
3763
|
}
|
|
3240
3764
|
}, /*#__PURE__*/React.createElement("i", {
|
|
3241
3765
|
className: sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered',
|
|
@@ -3258,13 +3782,13 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3258
3782
|
value: addtocardpayloadobj.quantity,
|
|
3259
3783
|
onChange: function onChange(event) {
|
|
3260
3784
|
if (event.target.value == NaN || event.target.value == undefined || event.target.value == null || event.target.value == '') {
|
|
3261
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
3785
|
+
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
3262
3786
|
tempaddtocardpayloadobj.quantity = 1;
|
|
3263
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3787
|
+
setaddtocardpayloadobj(_objectSpread$2z({}, tempaddtocardpayloadobj));
|
|
3264
3788
|
} else {
|
|
3265
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
3789
|
+
var tempaddtocardpayloadobj = _objectSpread$2z({}, addtocardpayloadobj);
|
|
3266
3790
|
tempaddtocardpayloadobj.quantity = parseInt(event.target.value);
|
|
3267
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3791
|
+
setaddtocardpayloadobj(_objectSpread$2z({}, tempaddtocardpayloadobj));
|
|
3268
3792
|
}
|
|
3269
3793
|
}
|
|
3270
3794
|
})), sectionproperties.featuresposition != 'Under Name' && sectionproperties.featuresposition == 'Under Description' && sectionproperties.featurestyle != 'Table' && /*#__PURE__*/React.createElement("div", {
|
|
@@ -3640,7 +4164,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3640
4164
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
3641
4165
|
"class": "m-0"
|
|
3642
4166
|
})), sectionproperties.descriptionstyle == 'Style 2' && /*#__PURE__*/React.createElement("div", {
|
|
3643
|
-
"class":
|
|
4167
|
+
"class": sectionproperties.eviewssectionstyle == 'In Collapse' ? 'col-lg-12 col-md-12 p-md-0' : 'col-lg-12 col-md-12 p-md-0 mb-3'
|
|
3644
4168
|
}, /*#__PURE__*/React.createElement(Accordion, {
|
|
3645
4169
|
allowMultipleExpanded: true,
|
|
3646
4170
|
allowZeroExpanded: true
|
|
@@ -3758,7 +4282,56 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
3758
4282
|
onClick: function onClick() {
|
|
3759
4283
|
routingcountext(StaticPagesLinksContext.RefundPolicy);
|
|
3760
4284
|
}
|
|
3761
|
-
}, "SEE MORE")))))),
|
|
4285
|
+
}, "SEE MORE")))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.reviewssectionstyle == 'In Collapse' && /*#__PURE__*/React.createElement("div", {
|
|
4286
|
+
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
4287
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
4288
|
+
"class": "m-0"
|
|
4289
|
+
})), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.reviewssectionstyle == 'In Collapse' && /*#__PURE__*/React.createElement("div", {
|
|
4290
|
+
"class": "col-lg-12 col-md-12 p-md-0"
|
|
4291
|
+
}, /*#__PURE__*/React.createElement(Accordion, {
|
|
4292
|
+
allowMultipleExpanded: true,
|
|
4293
|
+
allowZeroExpanded: true
|
|
4294
|
+
}, /*#__PURE__*/React.createElement(AccordionItem, null, /*#__PURE__*/React.createElement(AccordionItemHeading, null, /*#__PURE__*/React.createElement(AccordionItemButton, null, /*#__PURE__*/React.createElement("div", {
|
|
4295
|
+
"class": "row m-0 w-100"
|
|
4296
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
4297
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center"
|
|
4298
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
4299
|
+
"class": "m-0",
|
|
4300
|
+
style: {
|
|
4301
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
4302
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
4303
|
+
color: sectionproperties.prodCatColor,
|
|
4304
|
+
fontSize: sectionproperties.prodCatFontSize + 'px'
|
|
4305
|
+
}
|
|
4306
|
+
}, langdetect == 'en' ? 'REVIEWS' : 'التقييمات')), /*#__PURE__*/React.createElement("div", {
|
|
4307
|
+
className: "col-lg-2 col-md-2 col-sm-2 p-0"
|
|
4308
|
+
}, /*#__PURE__*/React.createElement(AccordionItemState, null, function (state) {
|
|
4309
|
+
if (state.expanded == true) {
|
|
4310
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
4311
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
4312
|
+
}, /*#__PURE__*/React.createElement(FaMinus, {
|
|
4313
|
+
color: sectionproperties.prodCatColor
|
|
4314
|
+
}));
|
|
4315
|
+
} else {
|
|
4316
|
+
return /*#__PURE__*/React.createElement("i", {
|
|
4317
|
+
className: ' h-100 d-flex align-items-center justify-content-end '
|
|
4318
|
+
}, /*#__PURE__*/React.createElement(FaPlus, {
|
|
4319
|
+
color: sectionproperties.prodCatColor
|
|
4320
|
+
}));
|
|
4321
|
+
}
|
|
4322
|
+
}))))), /*#__PURE__*/React.createElement(AccordionItemPanel, {
|
|
4323
|
+
className: "p-0"
|
|
4324
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
4325
|
+
"class": "col-lg-12 pl-3 pr-3 mt-3"
|
|
4326
|
+
}, /*#__PURE__*/React.createElement(ProductReviews, {
|
|
4327
|
+
actions: _objectSpread$2z(_objectSpread$2z({}, actions), {}, {
|
|
4328
|
+
productinfo_cssstyles: productinfo_cssstyles,
|
|
4329
|
+
sectionproperties: sectionproperties,
|
|
4330
|
+
srcfrom: 'collapsepinfo'
|
|
4331
|
+
})
|
|
4332
|
+
// actions={props.actions}
|
|
4333
|
+
// srcfromprops={'collapsepinfo'}
|
|
4334
|
+
})))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer57 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.data) === null || _fetchProductInfoQuer57 === void 0 || (_fetchProductInfoQuer57 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
3762
4335
|
className: "col-lg-12 p-0 mb-3"
|
|
3763
4336
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3764
4337
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -4647,8 +5220,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
4647
5220
|
}))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
4648
5221
|
};
|
|
4649
5222
|
|
|
4650
|
-
function ownKeys$
|
|
4651
|
-
function _objectSpread$
|
|
5223
|
+
function ownKeys$2y(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; }
|
|
5224
|
+
function _objectSpread$2y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4652
5225
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
4653
5226
|
var _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
4654
5227
|
var langdetect = props.actions.langdetect;
|
|
@@ -4709,7 +5282,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
4709
5282
|
minutes_Active_days_array = _useState12[0],
|
|
4710
5283
|
setminutes_Active_days_array = _useState12[1];
|
|
4711
5284
|
useEffect(function () {
|
|
4712
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5285
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
4713
5286
|
item_type: 'service'
|
|
4714
5287
|
}));
|
|
4715
5288
|
}, [tabsarray]);
|
|
@@ -4725,16 +5298,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
4725
5298
|
if (diffDays.toString() != 'NaN') {
|
|
4726
5299
|
if (date2 <= date1) {
|
|
4727
5300
|
NotificationManager.warning('', 'Please choose another date.');
|
|
4728
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5301
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
4729
5302
|
quantity: 0
|
|
4730
5303
|
}));
|
|
4731
5304
|
} else {
|
|
4732
5305
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
4733
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5306
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
4734
5307
|
quantity: diffDays
|
|
4735
5308
|
}));
|
|
4736
5309
|
} else {
|
|
4737
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5310
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
4738
5311
|
quantity: 0
|
|
4739
5312
|
}));
|
|
4740
5313
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -4751,7 +5324,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
4751
5324
|
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.disabled_dates.length) != 0) {
|
|
4752
5325
|
var _fetchProductInfoQuer5;
|
|
4753
5326
|
//
|
|
4754
|
-
var tempdisableddates = _objectSpread$
|
|
5327
|
+
var tempdisableddates = _objectSpread$2y({}, disableddates);
|
|
4755
5328
|
tempdisableddates = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.disabled_dates.map(function (dateStr) {
|
|
4756
5329
|
return new Date(dateStr);
|
|
4757
5330
|
});
|
|
@@ -4866,6 +5439,9 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
4866
5439
|
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
4867
5440
|
}
|
|
4868
5441
|
}),
|
|
5442
|
+
selectedpicker: css({
|
|
5443
|
+
color: sectionproperties.inputfieldcolor
|
|
5444
|
+
}),
|
|
4869
5445
|
timeSlotContainer: css({
|
|
4870
5446
|
minWidth: '6vh',
|
|
4871
5447
|
height: '5vh',
|
|
@@ -5002,7 +5578,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5002
5578
|
}
|
|
5003
5579
|
if (reservedslotArrtobetaken.length != 0) {
|
|
5004
5580
|
reservedslottobetaken = reservedslotArrtobetaken[0].slot;
|
|
5005
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5581
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
5006
5582
|
time: reservedslottobetaken,
|
|
5007
5583
|
reserved_slots: reservedslotArrtobetaken,
|
|
5008
5584
|
quantity: parseInt(reservedslotArrtobetaken.length)
|
|
@@ -5061,7 +5637,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5061
5637
|
selected: selectedfromdate,
|
|
5062
5638
|
excludeDates: disableddates,
|
|
5063
5639
|
onChange: function onChange(date) {
|
|
5064
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5640
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
5065
5641
|
from: date
|
|
5066
5642
|
}));
|
|
5067
5643
|
setselectedfromdate(date);
|
|
@@ -5082,7 +5658,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5082
5658
|
selected: selectedtodate,
|
|
5083
5659
|
excludeDates: disableddates,
|
|
5084
5660
|
onChange: function onChange(date) {
|
|
5085
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5661
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
5086
5662
|
to: date
|
|
5087
5663
|
}));
|
|
5088
5664
|
setselectedtodate(date);
|
|
@@ -5107,8 +5683,12 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5107
5683
|
border: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor
|
|
5108
5684
|
}
|
|
5109
5685
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5110
|
-
"class": "w-100 px-2 h-100 allcentered"
|
|
5686
|
+
"class": "w-100 px-2 h-100 allcentered",
|
|
5687
|
+
style: {
|
|
5688
|
+
color: sectionproperties.inputfieldcolor
|
|
5689
|
+
}
|
|
5111
5690
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
5691
|
+
className: "".concat(TabsStyles.selectedpicker),
|
|
5112
5692
|
minDate: fetchProductInfoQueryContext !== null && fetchProductInfoQueryContext !== void 0 && (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) !== null && _fetchProductInfoQuer13 !== void 0 && (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) !== null && _fetchProductInfoQuer13 !== void 0 && (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) !== null && _fetchProductInfoQuer13 !== void 0 && (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.serviceinfo) !== null && _fetchProductInfoQuer13 !== void 0 && _fetchProductInfoQuer13.reservationstarts ? new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts) : null,
|
|
5113
5693
|
maxDate: fetchProductInfoQueryContext !== null && fetchProductInfoQueryContext !== void 0 && (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) !== null && _fetchProductInfoQuer14 !== void 0 && (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) !== null && _fetchProductInfoQuer14 !== void 0 && (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) !== null && _fetchProductInfoQuer14 !== void 0 && (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.serviceinfo) !== null && _fetchProductInfoQuer14 !== void 0 && _fetchProductInfoQuer14.reservationends ? new Date(fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends) : null,
|
|
5114
5694
|
filterDate: isAllowedDay,
|
|
@@ -5121,7 +5701,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5121
5701
|
var _month = String(date.getMonth() + 1).padStart(2, '0'); // Months are 0-based
|
|
5122
5702
|
var _day = String(date.getDate()).padStart(2, '0');
|
|
5123
5703
|
var formattedDate = "".concat(_year, "-").concat(_month, "-").concat(_day);
|
|
5124
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5704
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
5125
5705
|
date: formattedDate,
|
|
5126
5706
|
time: '',
|
|
5127
5707
|
reservedslotArrtobetaken: [],
|
|
@@ -5142,7 +5722,8 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5142
5722
|
});
|
|
5143
5723
|
setselectedfromdate(date);
|
|
5144
5724
|
}
|
|
5145
|
-
}
|
|
5725
|
+
},
|
|
5726
|
+
placeholderText: langdetect == 'en' ? 'Choose date' : 'اختر تاريخ'
|
|
5146
5727
|
}), /*#__PURE__*/React.createElement("div", {
|
|
5147
5728
|
"class": "h-100 allcentered",
|
|
5148
5729
|
style: {
|
|
@@ -5201,7 +5782,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
5201
5782
|
}, /*#__PURE__*/React.createElement("button", {
|
|
5202
5783
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
5203
5784
|
onClick: function onClick() {
|
|
5204
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
5785
|
+
setaddtocardpayloadobj(_objectSpread$2y(_objectSpread$2y({}, addtocardpayloadobj), {}, {
|
|
5205
5786
|
time: item.slot
|
|
5206
5787
|
}));
|
|
5207
5788
|
}
|
|
@@ -6639,515 +7220,6 @@ var Article_itemtype = function Article_itemtype(props) {
|
|
|
6639
7220
|
})))))));
|
|
6640
7221
|
};
|
|
6641
7222
|
|
|
6642
|
-
function ownKeys$2z(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; }
|
|
6643
|
-
function _objectSpread$2z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6644
|
-
var AddReview = function AddReview(props) {
|
|
6645
|
-
var _css;
|
|
6646
|
-
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
6647
|
-
props.actions;
|
|
6648
|
-
props.actions.lang;
|
|
6649
|
-
var langdetect = props.actions.langdetect;
|
|
6650
|
-
var productid = props.actions.productid;
|
|
6651
|
-
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
6652
|
-
var NotificationManager = props.actions.NotificationManager;
|
|
6653
|
-
var canuserreview = props.actions.canuserreview;
|
|
6654
|
-
var addreviewcallback = props.actions.addreviewcallback;
|
|
6655
|
-
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
6656
|
-
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
6657
|
-
var pageindexcontext = props.actions.pageindexcontext;
|
|
6658
|
-
props.actions.setpageindexcontext;
|
|
6659
|
-
props.actions.setCurrentPageIdContext;
|
|
6660
|
-
var templatepropcontext = props.actions.templatepropcontext;
|
|
6661
|
-
var _useState = useState(''),
|
|
6662
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
6663
|
-
sectionproperties = _useState2[0],
|
|
6664
|
-
setsectionproperties = _useState2[1];
|
|
6665
|
-
var _useState3 = useState(''),
|
|
6666
|
-
_useState4 = _slicedToArray(_useState3, 2);
|
|
6667
|
-
_useState4[0];
|
|
6668
|
-
_useState4[1];
|
|
6669
|
-
var _useState5 = useState({
|
|
6670
|
-
reviewtitle: '',
|
|
6671
|
-
reviewbody: '',
|
|
6672
|
-
reviewrate: 0,
|
|
6673
|
-
reviewname: '',
|
|
6674
|
-
hasreview: 0
|
|
6675
|
-
}),
|
|
6676
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
6677
|
-
reviewpayloadobj = _useState6[0],
|
|
6678
|
-
setreviewpayloadobj = _useState6[1];
|
|
6679
|
-
// useEffect(() => {
|
|
6680
|
-
// var cartindex = templatepropcontext.pagesnprop.findIndex((x) => x.staticpageid == '63fcbef36eebe');
|
|
6681
|
-
// if (cartindex >= 0) {
|
|
6682
|
-
// setpageindexcontext(cartindex);
|
|
6683
|
-
// setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
6684
|
-
// if (props.srcfromprops != 'templatedraftrouter') {
|
|
6685
|
-
// setCurrentPageIdContext(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
6686
|
-
// }
|
|
6687
|
-
// }
|
|
6688
|
-
// }, []);
|
|
6689
|
-
useEffect(function () {
|
|
6690
|
-
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
6691
|
-
var secpropobj = {};
|
|
6692
|
-
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
6693
|
-
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6694
|
-
});
|
|
6695
|
-
setsectionproperties(_objectSpread$2z({}, secpropobj));
|
|
6696
|
-
}
|
|
6697
|
-
}, [StatePagePropertiesContext]);
|
|
6698
|
-
useEffect(function () {
|
|
6699
|
-
var _templatepropcontext$;
|
|
6700
|
-
var secpropobj = {};
|
|
6701
|
-
templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
|
|
6702
|
-
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6703
|
-
});
|
|
6704
|
-
setsectionproperties(_objectSpread$2z({}, secpropobj));
|
|
6705
|
-
}, [pageindexcontext]);
|
|
6706
|
-
var reviewstyles = {
|
|
6707
|
-
submitreviewbtn: css({
|
|
6708
|
-
width: sectionproperties.reviewbtn_width + 'px',
|
|
6709
|
-
height: sectionproperties.reviewbtn_height + 'px',
|
|
6710
|
-
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
6711
|
-
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
6712
|
-
color: sectionproperties.reviewbtn_color,
|
|
6713
|
-
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
6714
|
-
backgroundColor: sectionproperties.reviewbtn_bgcolor,
|
|
6715
|
-
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
6716
|
-
':hover': {
|
|
6717
|
-
transition: '.3s',
|
|
6718
|
-
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover,
|
|
6719
|
-
color: sectionproperties.reviewbtn_coloronhover
|
|
6720
|
-
}
|
|
6721
|
-
}),
|
|
6722
|
-
form_control: css((_css = {
|
|
6723
|
-
position: 'relative',
|
|
6724
|
-
display: 'flex',
|
|
6725
|
-
alignItems: 'center'
|
|
6726
|
-
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_css, "display", 'block'), "width", '100%'), "padding", '0 10px'), "transition", '.3s'), "fontWeight", 500), "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), "borderRadius", sectionproperties.inputfieldborderradius + 'px'), "height", sectionproperties.inputfieldheight + 'px'), "background", sectionproperties.input_bgcolor), _defineProperty(_defineProperty(_defineProperty(_css, "color", sectionproperties.inputfieldcolor), ':focus', {
|
|
6727
|
-
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
6728
|
-
}), ':focus .login_input_icon', {
|
|
6729
|
-
color: sectionproperties.inputfeildbordercoloronfocus
|
|
6730
|
-
}))),
|
|
6731
|
-
inputfield_label: css({
|
|
6732
|
-
color: sectionproperties.form_labelcolor,
|
|
6733
|
-
fontWeight: sectionproperties.form_labelfontweight,
|
|
6734
|
-
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
6735
|
-
textTransform: sectionproperties.form_labeltexttransform,
|
|
6736
|
-
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
6737
|
-
}),
|
|
6738
|
-
reviewbutton: css({
|
|
6739
|
-
width: sectionproperties.reviewbtn_width + 'px',
|
|
6740
|
-
height: sectionproperties.reviewbtn_height + 'px',
|
|
6741
|
-
background: sectionproperties.reviewbtn_bgcolor,
|
|
6742
|
-
color: sectionproperties.reviewbtn_color,
|
|
6743
|
-
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
6744
|
-
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
6745
|
-
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
6746
|
-
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
6747
|
-
':hover': {
|
|
6748
|
-
transition: '.3s',
|
|
6749
|
-
color: sectionproperties.reviewbtn_coloronhover,
|
|
6750
|
-
borderColor: sectionproperties.reviewbtn_coloronhover,
|
|
6751
|
-
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
|
|
6752
|
-
}
|
|
6753
|
-
}),
|
|
6754
|
-
productname: css({
|
|
6755
|
-
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
6756
|
-
textTransform: sectionproperties.prodNameTextTranform,
|
|
6757
|
-
fontWeight: sectionproperties.prodNameFontWeight,
|
|
6758
|
-
color: sectionproperties.prodNameColor
|
|
6759
|
-
})
|
|
6760
|
-
};
|
|
6761
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
6762
|
-
className: 'row w-100 ml-0 mr-0 pb-5',
|
|
6763
|
-
style: {
|
|
6764
|
-
marginTop: sectionproperties.marginTop + 'px'
|
|
6765
|
-
}
|
|
6766
|
-
}, sectionproperties.sectionTitleFontSize != 0 && /*#__PURE__*/React.createElement("div", {
|
|
6767
|
-
"class": "row m-0 w-100 mt-3"
|
|
6768
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6769
|
-
"class": "col-lg-12 p-0 allcentered"
|
|
6770
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
6771
|
-
"class": "m-0 p-0",
|
|
6772
|
-
style: {
|
|
6773
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
6774
|
-
color: sectionproperties.sectionTitleColor,
|
|
6775
|
-
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
6776
|
-
}
|
|
6777
|
-
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React.createElement("div", {
|
|
6778
|
-
"class": "col-lg-12"
|
|
6779
|
-
}, /*#__PURE__*/React.createElement("hr", null))), /*#__PURE__*/React.createElement("div", {
|
|
6780
|
-
"class": "col-lg-12 mb-3"
|
|
6781
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6782
|
-
"class": "row m-0 w-100 d-flex justify-content-start align-items-center"
|
|
6783
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6784
|
-
"class": "d-flex justify-content-start align-items-center",
|
|
6785
|
-
style: {
|
|
6786
|
-
width: '9vh',
|
|
6787
|
-
height: '9vh'
|
|
6788
|
-
}
|
|
6789
|
-
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
6790
|
-
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
6791
|
-
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
6792
|
-
path: fetchProductInfoQueryContext.data.data.productinfo.productmainimage,
|
|
6793
|
-
style: {
|
|
6794
|
-
width: '100%',
|
|
6795
|
-
height: '100%',
|
|
6796
|
-
objectFit: 'contain'
|
|
6797
|
-
},
|
|
6798
|
-
loading: "lazy"
|
|
6799
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
6800
|
-
"class": "col-lg-9 co-md-9 col-sm-9 d-flex justify-content-start align-items-center"
|
|
6801
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6802
|
-
"class": "row m-0 w-100"
|
|
6803
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6804
|
-
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
6805
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
6806
|
-
"class": reviewstyles.productname + ' m-0 p-0 '
|
|
6807
|
-
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), /*#__PURE__*/React.createElement("div", {
|
|
6808
|
-
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
6809
|
-
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
6810
|
-
count: 5,
|
|
6811
|
-
value: reviewpayloadobj.reviewrate,
|
|
6812
|
-
size: 18,
|
|
6813
|
-
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
6814
|
-
className: "far fa-star",
|
|
6815
|
-
style: {
|
|
6816
|
-
color: '#bfbfbf'
|
|
6817
|
-
}
|
|
6818
|
-
}),
|
|
6819
|
-
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
6820
|
-
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
6821
|
-
}),
|
|
6822
|
-
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
6823
|
-
className: "fa fa-star",
|
|
6824
|
-
style: {
|
|
6825
|
-
color: '#FAB400'
|
|
6826
|
-
}
|
|
6827
|
-
}),
|
|
6828
|
-
activeColor: "#ffd700",
|
|
6829
|
-
onChange: function onChange(event) {
|
|
6830
|
-
var tempreviewpayloadobj = _objectSpread$2z({}, reviewpayloadobj);
|
|
6831
|
-
tempreviewpayloadobj.reviewrate = event;
|
|
6832
|
-
setreviewpayloadobj(_objectSpread$2z({}, tempreviewpayloadobj));
|
|
6833
|
-
}
|
|
6834
|
-
})))))), /*#__PURE__*/React.createElement("div", {
|
|
6835
|
-
"class": "col-lg-12"
|
|
6836
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6837
|
-
"class": "row m-0 w-100"
|
|
6838
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6839
|
-
"class": "col-lg-12 mb-4"
|
|
6840
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
6841
|
-
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
6842
|
-
}, langdetect == 'en' ? 'Your Name' : 'اسمك'), /*#__PURE__*/React.createElement("input", {
|
|
6843
|
-
"class": reviewstyles.form_control,
|
|
6844
|
-
value: reviewpayloadobj.reviewname,
|
|
6845
|
-
onChange: function onChange(event) {
|
|
6846
|
-
var tempreviewpayloadobj = _objectSpread$2z({}, reviewpayloadobj);
|
|
6847
|
-
tempreviewpayloadobj.reviewname = event.target.value;
|
|
6848
|
-
setreviewpayloadobj(_objectSpread$2z({}, tempreviewpayloadobj));
|
|
6849
|
-
}
|
|
6850
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
6851
|
-
"class": "col-lg-12 mb-4"
|
|
6852
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
6853
|
-
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
6854
|
-
}, langdetect == 'en' ? 'Review title' : 'عنوان التقييم'), /*#__PURE__*/React.createElement("input", {
|
|
6855
|
-
"class": reviewstyles.form_control,
|
|
6856
|
-
value: reviewpayloadobj.reviewtitle,
|
|
6857
|
-
onChange: function onChange(event) {
|
|
6858
|
-
var tempreviewpayloadobj = _objectSpread$2z({}, reviewpayloadobj);
|
|
6859
|
-
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
6860
|
-
setreviewpayloadobj(_objectSpread$2z({}, tempreviewpayloadobj));
|
|
6861
|
-
}
|
|
6862
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
6863
|
-
"class": "col-lg-12 mb-4"
|
|
6864
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
6865
|
-
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
6866
|
-
}, langdetect == 'en' ? 'Your Review' : 'تقييمك'), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
6867
|
-
type: 'text',
|
|
6868
|
-
"class": reviewstyles.form_control + ' form_control ',
|
|
6869
|
-
value: reviewpayloadobj.reviewbody,
|
|
6870
|
-
onChange: function onChange(event) {
|
|
6871
|
-
var tempreviewpayloadobj = _objectSpread$2z({}, reviewpayloadobj);
|
|
6872
|
-
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
6873
|
-
setreviewpayloadobj(_objectSpread$2z({}, tempreviewpayloadobj));
|
|
6874
|
-
},
|
|
6875
|
-
style: {
|
|
6876
|
-
resize: 'none',
|
|
6877
|
-
minRows: 5
|
|
6878
|
-
}
|
|
6879
|
-
})))), canuserreview && /*#__PURE__*/React.createElement("div", {
|
|
6880
|
-
"class": "col-lg-12 allcentered mt-3"
|
|
6881
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
6882
|
-
"class": "".concat(reviewstyles.submitreviewbtn),
|
|
6883
|
-
onClick: function onClick() {
|
|
6884
|
-
if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
|
|
6885
|
-
GeneralAPIMutationContext.mutate({
|
|
6886
|
-
endpointurl: '/addproductreview',
|
|
6887
|
-
productid: productid,
|
|
6888
|
-
reviewpayloadobj: reviewpayloadobj,
|
|
6889
|
-
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
6890
|
-
if (data.data.status) {
|
|
6891
|
-
NotificationManager.success('', 'Success');
|
|
6892
|
-
addreviewcallback();
|
|
6893
|
-
window.location.reload();
|
|
6894
|
-
} else {
|
|
6895
|
-
NotificationManager.warning('', data.data.reason);
|
|
6896
|
-
}
|
|
6897
|
-
}
|
|
6898
|
-
});
|
|
6899
|
-
} else {
|
|
6900
|
-
NotificationManager.warning('', langdetect == 'en' ? 'Please complete the missing fields' : 'من فضلك اكمل باقى البيانات');
|
|
6901
|
-
|
|
6902
|
-
// alert('Please fill the missing fields');
|
|
6903
|
-
}
|
|
6904
|
-
}
|
|
6905
|
-
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
6906
|
-
};
|
|
6907
|
-
|
|
6908
|
-
function ownKeys$2y(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; }
|
|
6909
|
-
function _objectSpread$2y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6910
|
-
var ProductReviews = function ProductReviews(props) {
|
|
6911
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
|
|
6912
|
-
props.actions.lang;
|
|
6913
|
-
var langdetect = props.actions.langdetect;
|
|
6914
|
-
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
6915
|
-
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
6916
|
-
props.actions.NotificationManager;
|
|
6917
|
-
var sectionproperties = props.actions.sectionproperties;
|
|
6918
|
-
var actions = props.actions;
|
|
6919
|
-
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
|
|
6920
|
-
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
6921
|
-
var _useState = useState(false),
|
|
6922
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
6923
|
-
canuserreview = _useState2[0],
|
|
6924
|
-
setcanuserreview = _useState2[1];
|
|
6925
|
-
var _useState3 = useState(false),
|
|
6926
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
6927
|
-
openreviewmodal = _useState4[0],
|
|
6928
|
-
setopenreviewmodal = _useState4[1];
|
|
6929
|
-
var _useState5 = useState('all'),
|
|
6930
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
6931
|
-
filterproductreviews = _useState6[0],
|
|
6932
|
-
setfilterproductreviews = _useState6[1];
|
|
6933
|
-
var _useState7 = useState([]),
|
|
6934
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
6935
|
-
productreviews = _useState8[0],
|
|
6936
|
-
setproductreviews = _useState8[1];
|
|
6937
|
-
useEffect(function () {
|
|
6938
|
-
if (fetchProductInfoQueryContext.isSuccess) {
|
|
6939
|
-
getreviewsassignermutationfunc();
|
|
6940
|
-
}
|
|
6941
|
-
}, [filterproductreviews]);
|
|
6942
|
-
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
6943
|
-
var _fetchProductInfoQuer2;
|
|
6944
|
-
GeneralAPIMutationContext.mutate({
|
|
6945
|
-
endpointurl: '/fetchproductreviews',
|
|
6946
|
-
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.productid,
|
|
6947
|
-
filterproductreviews: filterproductreviews,
|
|
6948
|
-
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
6949
|
-
if (data.data.status) {
|
|
6950
|
-
setproductreviews(data.data.productreviews);
|
|
6951
|
-
setcanuserreview(data.data.canuserAddReview);
|
|
6952
|
-
}
|
|
6953
|
-
}
|
|
6954
|
-
});
|
|
6955
|
-
};
|
|
6956
|
-
var addreviewcallback = function addreviewcallback() {
|
|
6957
|
-
setopenreviewmodal(false);
|
|
6958
|
-
getreviewsassignermutationfunc();
|
|
6959
|
-
fetchProductInfoQueryContext.refetch();
|
|
6960
|
-
};
|
|
6961
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
6962
|
-
className: 'row w-100 ml-0 mr-0',
|
|
6963
|
-
style: {
|
|
6964
|
-
marginTop: sectionproperties.marginTop + 'px'
|
|
6965
|
-
}
|
|
6966
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6967
|
-
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0"
|
|
6968
|
-
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
6969
|
-
"class": "col-lg-12 allcentered",
|
|
6970
|
-
style: {
|
|
6971
|
-
height: '20vh'
|
|
6972
|
-
}
|
|
6973
|
-
}, /*#__PURE__*/React.createElement(Messaging, {
|
|
6974
|
-
color: "#ccc",
|
|
6975
|
-
width: "10px",
|
|
6976
|
-
height: "10px",
|
|
6977
|
-
duration: "1s"
|
|
6978
|
-
})), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
6979
|
-
"class": "row m-0 w-100"
|
|
6980
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6981
|
-
"class": "col-lg-3"
|
|
6982
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6983
|
-
"class": "row m-0 w-100 allcentered"
|
|
6984
|
-
}, canuserreview && /*#__PURE__*/React.createElement("div", {
|
|
6985
|
-
"class": "col-lg-12 allcentered mb-3 p-0"
|
|
6986
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
6987
|
-
"class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
|
|
6988
|
-
onClick: function onClick() {
|
|
6989
|
-
setopenreviewmodal(true);
|
|
6990
|
-
}
|
|
6991
|
-
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), /*#__PURE__*/React.createElement("div", {
|
|
6992
|
-
"class": "col-lg-12 p-0 mb-3"
|
|
6993
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
6994
|
-
"class": "row m-0 w-100 py-3 px-2",
|
|
6995
|
-
style: {
|
|
6996
|
-
borderRadius: 10,
|
|
6997
|
-
background: '#eee'
|
|
6998
|
-
}
|
|
6999
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7000
|
-
"class": "col-lg-12 p-0 allcentered"
|
|
7001
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
7002
|
-
"class": "m-0 font-weight-600 text-uppercase",
|
|
7003
|
-
style: {
|
|
7004
|
-
fontSize: '17px'
|
|
7005
|
-
}
|
|
7006
|
-
}, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React.createElement("div", {
|
|
7007
|
-
"class": "col-lg-12 pl-3 pr-3"
|
|
7008
|
-
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
7009
|
-
"class": "col-lg-12 p-0 allcentered"
|
|
7010
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
7011
|
-
"class": "m-0 p-0 font-weight-600",
|
|
7012
|
-
style: {
|
|
7013
|
-
fontSize: '20px'
|
|
7014
|
-
}
|
|
7015
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productoverallrate, "/5")), /*#__PURE__*/React.createElement("div", {
|
|
7016
|
-
"class": "col-lg-12 p-0 allcentered"
|
|
7017
|
-
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
7018
|
-
count: 5,
|
|
7019
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.productoverallrate,
|
|
7020
|
-
edit: false,
|
|
7021
|
-
size: 18,
|
|
7022
|
-
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
7023
|
-
className: "far fa-star",
|
|
7024
|
-
style: {
|
|
7025
|
-
color: '#bfbfbf'
|
|
7026
|
-
}
|
|
7027
|
-
}),
|
|
7028
|
-
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
7029
|
-
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
7030
|
-
}),
|
|
7031
|
-
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
7032
|
-
className: "fa fa-star",
|
|
7033
|
-
style: {
|
|
7034
|
-
color: '#FAB400'
|
|
7035
|
-
}
|
|
7036
|
-
}),
|
|
7037
|
-
activeColor: "#ffd700"
|
|
7038
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
7039
|
-
"class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
|
|
7040
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7041
|
-
"class": "row m-0 w-100 py-3 px-2",
|
|
7042
|
-
style: {
|
|
7043
|
-
borderRadius: 10,
|
|
7044
|
-
background: '#eee'
|
|
7045
|
-
}
|
|
7046
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7047
|
-
"class": "col-lg-12 p-0 allcentered"
|
|
7048
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
7049
|
-
"class": "m-0 font-weight-600 text-uppercase",
|
|
7050
|
-
style: {
|
|
7051
|
-
fontSize: '17px'
|
|
7052
|
-
}
|
|
7053
|
-
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
7054
|
-
"class": "col-lg-12 pl-3 pr-3"
|
|
7055
|
-
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
7056
|
-
"class": "col-lg-12 d-flex justify-content-center"
|
|
7057
|
-
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
7058
|
-
count: 5,
|
|
7059
|
-
value: filterproductreviews
|
|
7060
|
-
// edit={false}
|
|
7061
|
-
,
|
|
7062
|
-
size: 18,
|
|
7063
|
-
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
7064
|
-
className: "far fa-star",
|
|
7065
|
-
style: {
|
|
7066
|
-
color: '#bfbfbf'
|
|
7067
|
-
}
|
|
7068
|
-
}),
|
|
7069
|
-
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
7070
|
-
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
7071
|
-
}),
|
|
7072
|
-
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
7073
|
-
className: "fa fa-star",
|
|
7074
|
-
style: {
|
|
7075
|
-
color: '#FAB400'
|
|
7076
|
-
}
|
|
7077
|
-
}),
|
|
7078
|
-
activeColor: "#ffd700",
|
|
7079
|
-
onChange: function onChange(event) {
|
|
7080
|
-
setfilterproductreviews(event);
|
|
7081
|
-
}
|
|
7082
|
-
})))))), /*#__PURE__*/React.createElement("div", {
|
|
7083
|
-
"class": "col-lg-9"
|
|
7084
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7085
|
-
"class": "row m-0 w-100"
|
|
7086
|
-
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
7087
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7088
|
-
"class": "col-lg-12 flex-column"
|
|
7089
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7090
|
-
"class": "row m-0 w-100"
|
|
7091
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7092
|
-
"class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
|
|
7093
|
-
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
7094
|
-
count: 5,
|
|
7095
|
-
value: reviewitem.review_rating,
|
|
7096
|
-
edit: false,
|
|
7097
|
-
size: 18,
|
|
7098
|
-
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
7099
|
-
className: "far fa-star",
|
|
7100
|
-
style: {
|
|
7101
|
-
color: '#bfbfbf'
|
|
7102
|
-
}
|
|
7103
|
-
}),
|
|
7104
|
-
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
7105
|
-
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
7106
|
-
}),
|
|
7107
|
-
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
7108
|
-
className: "fa fa-star",
|
|
7109
|
-
style: {
|
|
7110
|
-
color: '#FAB400'
|
|
7111
|
-
}
|
|
7112
|
-
}),
|
|
7113
|
-
activeColor: "#ffd700"
|
|
7114
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
7115
|
-
"class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
|
|
7116
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
7117
|
-
"class": "m-0 p-0 font-weight-600",
|
|
7118
|
-
style: {
|
|
7119
|
-
fontSize: '17px'
|
|
7120
|
-
}
|
|
7121
|
-
}, reviewitem.reviewtitle)), /*#__PURE__*/React.createElement("div", {
|
|
7122
|
-
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
7123
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
7124
|
-
"class": "m-0 p-0 font-weight-500"
|
|
7125
|
-
}, reviewitem.reviewbody)), /*#__PURE__*/React.createElement("div", {
|
|
7126
|
-
"class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
|
|
7127
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
7128
|
-
"class": "m-0 p-0 font-weight-600"
|
|
7129
|
-
}, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React.createElement("div", {
|
|
7130
|
-
"class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-500 text-light"
|
|
7131
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
7132
|
-
"class": "fa fa-clock text-light ml-2 mr-2"
|
|
7133
|
-
}), " ", reviewitem.timestamp)), /*#__PURE__*/React.createElement("hr", null));
|
|
7134
|
-
}))))), /*#__PURE__*/React.createElement(Modal, {
|
|
7135
|
-
show: openreviewmodal,
|
|
7136
|
-
onHide: function onHide() {
|
|
7137
|
-
return setopenreviewmodal(false);
|
|
7138
|
-
},
|
|
7139
|
-
centered: true,
|
|
7140
|
-
size: "md",
|
|
7141
|
-
"class": "reviewmodal"
|
|
7142
|
-
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(AddReview, {
|
|
7143
|
-
actions: _objectSpread$2y(_objectSpread$2y({}, actions), {}, {
|
|
7144
|
-
productid: productid,
|
|
7145
|
-
canuserreview: canuserreview,
|
|
7146
|
-
addreviewcallback: addreviewcallback
|
|
7147
|
-
})
|
|
7148
|
-
}))));
|
|
7149
|
-
};
|
|
7150
|
-
|
|
7151
7223
|
function ownKeys$2x(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; }
|
|
7152
7224
|
function _objectSpread$2x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7153
7225
|
var Productinfo = function Productinfo(props) {
|
|
@@ -8825,7 +8897,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
8825
8897
|
lang: lang,
|
|
8826
8898
|
srcfromprops: props.srcfromprops
|
|
8827
8899
|
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "returnpolicyobj", returnpolicyobj), "productinfo_cssstyles", productinfo_cssstyles), "addtocartfunc", addtocartfunc), "selectproductoptionvalue", selectproductoptionvalue), "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), "productimagesarray", productimagesarray), "fetchProductInfoQueryContext", fetchProductInfoQueryContext), "sectionproperties", sectionproperties), "addtocardpayloadobj", addtocardpayloadobj), "ProductInfoObj", ProductInfoObj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "currentshowingimageindex", currentshowingimageindex), "setcurrentshowingimageindex", setcurrentshowingimageindex), "setaddtocardpayloadobj", setaddtocardpayloadobj), "routingcountext", routingcountext), "AddtoCartMutationContext", AddtoCartMutationContext), "authdetailsContext", authdetailsContext), "addtofavoritescontext", addtofavoritescontext), "StaticPagesLinksContext", StaticPagesLinksContext), "variantindexcompleted", variantindexcompleted), "GeneralAPIMutationContext", GeneralAPIMutationContext), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, "NotificationManager", NotificationManager), "getprice_discountpriceprops", getprice_discountpriceprops), "quantityconditionfoundobjprops", quantityconditionfoundobj), "relatedproducts", relatedproducts), "getQuantityCondition", getQuantityCondition), "StoreInfoprops", StoreInfo), "templatepropcontext", templatepropcontext), "ikimagecredcontext", ikimagecredcontext), "sizeguideimage", sizeguideimage), "setopensizeguidemodal", setopensizeguidemodal))
|
|
8828
|
-
}), props.srcfromprops != 'templatedraftrouter' && /*#__PURE__*/React.createElement("div", {
|
|
8900
|
+
}), props.srcfromprops != 'templatedraftrouter' && sectionproperties.showtabs == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
8829
8901
|
className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 p-0 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
|
|
8830
8902
|
style: {
|
|
8831
8903
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
@@ -9942,6 +10014,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
9942
10014
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
9943
10015
|
className: "row m-0 w-100"
|
|
9944
10016
|
}, fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitems.map(function (item, index) {
|
|
10017
|
+
var _authdetailsContext$i3, _authdetailsContext$i4;
|
|
9945
10018
|
var variantoptions = [];
|
|
9946
10019
|
if (item.isvariant == 1) {
|
|
9947
10020
|
var decodevariantoptions = JSON.parse(item.variantoptions);
|
|
@@ -10028,7 +10101,10 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
10028
10101
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10029
10102
|
},
|
|
10030
10103
|
onClick: function onClick() {
|
|
10031
|
-
|
|
10104
|
+
var _authdetailsContext$i2;
|
|
10105
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '68248846ec6bc') ; else {
|
|
10106
|
+
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
10107
|
+
}
|
|
10032
10108
|
}
|
|
10033
10109
|
}, item.productname)), sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10034
10110
|
className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center"
|
|
@@ -10056,7 +10132,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
10056
10132
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10057
10133
|
className: ' m-0 p-0 font-13 fontfamilymedium wordbreak allcentered '
|
|
10058
10134
|
}, variantoptionitem.optionname, ": ", variantoptionitem.optionvalue));
|
|
10059
|
-
}))), item.product_extrafields != null && /*#__PURE__*/React.createElement("div", {
|
|
10135
|
+
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.instid) != '68248846ec6bc' && /*#__PURE__*/React.createElement("div", {
|
|
10060
10136
|
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
10061
10137
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10062
10138
|
"class": "row m-0 w-100"
|
|
@@ -10077,7 +10153,32 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
10077
10153
|
fontWeight: sectionproperties.varianttext_fontweight
|
|
10078
10154
|
}
|
|
10079
10155
|
}, extrafielditem.value)));
|
|
10080
|
-
})))))
|
|
10156
|
+
}))), item.product_extrafields != null && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instid) == '68248846ec6bc' && /*#__PURE__*/React.createElement("div", {
|
|
10157
|
+
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
10158
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10159
|
+
"class": "row m-0 w-100"
|
|
10160
|
+
}, /*#__PURE__*/React.createElement("table", {
|
|
10161
|
+
className: 'table tablevertical'
|
|
10162
|
+
}, product_extrafields.map(function (extrafielditem, extrafieldindex) {
|
|
10163
|
+
return /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
10164
|
+
style: {
|
|
10165
|
+
textTransform: 'capitalize',
|
|
10166
|
+
color: '#000',
|
|
10167
|
+
fontWeight: 400
|
|
10168
|
+
}
|
|
10169
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10170
|
+
"class": "d-flex flex-row",
|
|
10171
|
+
style: {
|
|
10172
|
+
color: sectionproperties.featurecolor
|
|
10173
|
+
}
|
|
10174
|
+
}, langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar)), /*#__PURE__*/React.createElement("td", {
|
|
10175
|
+
style: {
|
|
10176
|
+
color: '#000',
|
|
10177
|
+
fontWeight: 400,
|
|
10178
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
10179
|
+
}
|
|
10180
|
+
}, extrafielditem.value));
|
|
10181
|
+
}))))))), /*#__PURE__*/React.createElement("div", {
|
|
10081
10182
|
className: "col-lg-12 p-0"
|
|
10082
10183
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
10083
10184
|
className: "mt- mb-3"
|
|
@@ -14006,7 +14107,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
14006
14107
|
background: sectionproperties.input_bgcolor
|
|
14007
14108
|
}
|
|
14008
14109
|
})), /*#__PURE__*/React.createElement("div", {
|
|
14009
|
-
className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0',
|
|
14110
|
+
className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0 flex-column' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0 flex-column',
|
|
14010
14111
|
style: {
|
|
14011
14112
|
display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.customerEmailrequiered) == 1 ? 'flex' : sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.customerEmailrequiered) == 0 ? 'none' : 'flex'
|
|
14012
14113
|
}
|
|
@@ -33637,7 +33738,7 @@ styleInject(css_248z$v);
|
|
|
33637
33738
|
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; }
|
|
33638
33739
|
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; }
|
|
33639
33740
|
var Simpleheader = function Simpleheader(props) {
|
|
33640
|
-
var _header_cssstyles, _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i2, _authdetailsContext$i6, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$i7, _authdetailsContext$c2, _authdetailsContext$
|
|
33741
|
+
var _header_cssstyles, _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i2, _authdetailsContext$i6, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$c2, _authdetailsContext$i0, _authdetailsContext$i1, _authdetailsContext$i10, _authdetailsContext$i11, _logoarrayofobjects$3, _logoarrayofobjects$4;
|
|
33641
33742
|
var actions = props.actions;
|
|
33642
33743
|
var _useState = useState(''),
|
|
33643
33744
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -34177,6 +34278,28 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
34177
34278
|
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34178
34279
|
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
34179
34280
|
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34281
|
+
}), langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) == '68248846ec6bc' && /*#__PURE__*/React.createElement(Dropdown.Divider, null), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instid) == '68248846ec6bc' && /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
34282
|
+
onClick: function onClick() {
|
|
34283
|
+
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
34284
|
+
}
|
|
34285
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34286
|
+
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' allcenetered m-0 p-0 '
|
|
34287
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
34288
|
+
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem allcenetered m-0 p-0 '
|
|
34289
|
+
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React.createElement(FiShoppingBag, {
|
|
34290
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34291
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React.createElement(CgShoppingBag, {
|
|
34292
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34293
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React.createElement(BsBag, {
|
|
34294
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34295
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React.createElement(HiOutlineShoppingBag, {
|
|
34296
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34297
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React.createElement(FiShoppingCart, {
|
|
34298
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34299
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
34300
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34301
|
+
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
34302
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34180
34303
|
}), langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement(Dropdown.Divider, null), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
34181
34304
|
onClick: function onClick() {
|
|
34182
34305
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
@@ -34211,7 +34334,7 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
34211
34334
|
"class": ' h-100 d-flex align-items-center '
|
|
34212
34335
|
}, /*#__PURE__*/React.createElement(HiUserCircle, {
|
|
34213
34336
|
size: sectionproperties.userBtnTextfontsize
|
|
34214
|
-
})), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34337
|
+
})), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instid) == '67b1bb900a541' && /*#__PURE__*/React.createElement("span", {
|
|
34215
34338
|
className: "mx-2",
|
|
34216
34339
|
style: {
|
|
34217
34340
|
fontSize: 18
|
|
@@ -34264,6 +34387,28 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
34264
34387
|
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34265
34388
|
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
34266
34389
|
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34390
|
+
}), langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.instid) == '68248846ec6bc' && /*#__PURE__*/React.createElement(Dropdown.Divider, null), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.instid) == '68248846ec6bc' && /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
34391
|
+
onClick: function onClick() {
|
|
34392
|
+
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
34393
|
+
}
|
|
34394
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34395
|
+
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' allcenetered m-0 p-0 '
|
|
34396
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
34397
|
+
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem allcenetered m-0 p-0 '
|
|
34398
|
+
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React.createElement(FiShoppingBag, {
|
|
34399
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34400
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React.createElement(CgShoppingBag, {
|
|
34401
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34402
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React.createElement(BsBag, {
|
|
34403
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34404
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React.createElement(HiOutlineShoppingBag, {
|
|
34405
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34406
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React.createElement(FiShoppingCart, {
|
|
34407
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34408
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
34409
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34410
|
+
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
34411
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
34267
34412
|
}), langdetect == 'en' ? sectionproperties.previousorders_titleen : sectionproperties.previousorders_titlear))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement(Dropdown.Divider, null), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
34268
34413
|
onClick: function onClick() {
|
|
34269
34414
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
@@ -34382,7 +34527,7 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
34382
34527
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
34383
34528
|
}, /*#__PURE__*/React.createElement("span", {
|
|
34384
34529
|
"class": "ml-2 mr-2"
|
|
34385
|
-
}, "English"))))))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34530
|
+
}, "English"))))))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 || (_authdetailsContext$i10 = _authdetailsContext$i10.instcurrencies) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.length) > 1 && sectionproperties.showcurrency == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
34386
34531
|
"class": ' d-flex align-items-center justify-content-end '
|
|
34387
34532
|
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
|
|
34388
34533
|
"class": ' d-flex align-items-center justify-content-center '
|
|
@@ -34394,8 +34539,8 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
34394
34539
|
"class": header_cssstyles.currencycont + ' row m-0 w-100 d-flex align-items-center '
|
|
34395
34540
|
}, /*#__PURE__*/React.createElement("p", {
|
|
34396
34541
|
"class": "m-0 p-0 ml-2 mr-2"
|
|
34397
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, null)))), /*#__PURE__*/React.createElement(Dropdown.Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34398
|
-
var _authdetailsContext$
|
|
34542
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, null)))), /*#__PURE__*/React.createElement(Dropdown.Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 || (_authdetailsContext$i11 = _authdetailsContext$i11.instcurrencies) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.map(function (item, index) {
|
|
34543
|
+
var _authdetailsContext$i12;
|
|
34399
34544
|
return /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
34400
34545
|
onClick: function onClick() {
|
|
34401
34546
|
setcurrencyfunccontext(item);
|
|
@@ -34411,7 +34556,7 @@ var Simpleheader = function Simpleheader(props) {
|
|
|
34411
34556
|
style: {}
|
|
34412
34557
|
}, /*#__PURE__*/React.createElement(FaMoneyBillWave, null), /*#__PURE__*/React.createElement("span", {
|
|
34413
34558
|
"class": 'ml-2 mr-2'
|
|
34414
|
-
}, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
34559
|
+
}, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 || (_authdetailsContext$i12 = _authdetailsContext$i12.instcurrencies) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.length) - 1 && /*#__PURE__*/React.createElement("div", {
|
|
34415
34560
|
"class": "col-lg-12 p-0"
|
|
34416
34561
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
34417
34562
|
"class": "m-0"
|
|
@@ -86047,59 +86192,94 @@ var Variants_J_Cards = function Variants_J_Cards(props) {
|
|
|
86047
86192
|
"class": ' row m-0 w-100 '
|
|
86048
86193
|
}, options_w_values === null || options_w_values === void 0 ? void 0 : options_w_values.map(function (item, index) {
|
|
86049
86194
|
var _item$values5, _item$values6, _item$values7;
|
|
86050
|
-
return
|
|
86051
|
-
|
|
86052
|
-
|
|
86053
|
-
|
|
86054
|
-
|
|
86055
|
-
|
|
86056
|
-
|
|
86057
|
-
|
|
86195
|
+
return (
|
|
86196
|
+
/*#__PURE__*/
|
|
86197
|
+
// scrollhorixontalcontainer
|
|
86198
|
+
React.createElement("div", {
|
|
86199
|
+
className: "col-lg-12 col-md-12 d-flex mb-2 allcentered p-sm-0"
|
|
86200
|
+
}, item === null || item === void 0 || (_item$values5 = item.values) === null || _item$values5 === void 0 ? void 0 : _item$values5.map(function (valitem, valindex) {
|
|
86201
|
+
var isChoosedValueExists = false;
|
|
86202
|
+
choosen_values === null || choosen_values === void 0 || choosen_values.forEach(function (choseitem, choseindex) {
|
|
86203
|
+
if (choseitem != null) {
|
|
86204
|
+
if ((choseitem === null || choseitem === void 0 ? void 0 : choseitem.valueid) == (valitem === null || valitem === void 0 ? void 0 : valitem.valueid)) {
|
|
86205
|
+
isChoosedValueExists = true;
|
|
86206
|
+
}
|
|
86207
|
+
}
|
|
86208
|
+
});
|
|
86209
|
+
if (valindex <= 3) {
|
|
86210
|
+
if (sectionproperties.typeofvariantstobeshownincard == 'Show Colors Only') {
|
|
86211
|
+
var _item$option_info5, _item$option_info6, _item$option_info7, _item$option_info8;
|
|
86212
|
+
if ((item === null || item === void 0 || (_item$option_info5 = item.option_info) === null || _item$option_info5 === void 0 ? void 0 : _item$option_info5.optionname) == 'Color' || (item === null || item === void 0 || (_item$option_info6 = item.option_info) === null || _item$option_info6 === void 0 ? void 0 : _item$option_info6.optionname) == 'Colour' || (item === null || item === void 0 || (_item$option_info7 = item.option_info) === null || _item$option_info7 === void 0 ? void 0 : _item$option_info7.optionname) == 'color' || (item === null || item === void 0 || (_item$option_info8 = item.option_info) === null || _item$option_info8 === void 0 ? void 0 : _item$option_info8.optionname) == 'colour') {
|
|
86213
|
+
var _item$option_info9, _item$option_info0, _item$option_info1, _item$option_info10, _item$option_info11, _valitem$valueinfo, _item$option_info12, _valitem$valueinfo2;
|
|
86214
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
86215
|
+
style: {
|
|
86216
|
+
textAlign: 'center'
|
|
86217
|
+
},
|
|
86218
|
+
"class": "mx-1"
|
|
86219
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
86220
|
+
onClick: function onClick() {
|
|
86221
|
+
choose_valueFunc(valitem, item === null || item === void 0 ? void 0 : item.option_info);
|
|
86222
|
+
},
|
|
86223
|
+
style: {
|
|
86224
|
+
// backgroundColor: isChoosedValueExists ? 'lightblue' : 'white',
|
|
86225
|
+
color: isChoosedValueExists ? '#ffffff' : '#000000',
|
|
86226
|
+
border: isChoosedValueExists ? '3px solid ' + sectionproperties.activeproductcolor : '1px solid ' + sectionproperties.variantcontainerbordercolor,
|
|
86227
|
+
padding: (item === null || item === void 0 || (_item$option_info9 = item.option_info) === null || _item$option_info9 === void 0 ? void 0 : _item$option_info9.optionname) == 'Color' ? '5px' : '5px 10px',
|
|
86228
|
+
cursor: valitem.disabled ? 'not-allowed' : 'pointer',
|
|
86229
|
+
fontSize: '13px',
|
|
86230
|
+
width: (item === null || item === void 0 || (_item$option_info0 = item.option_info) === null || _item$option_info0 === void 0 ? void 0 : _item$option_info0.optionname) == 'Color' ? 25 : '',
|
|
86231
|
+
height: (item === null || item === void 0 || (_item$option_info1 = item.option_info) === null || _item$option_info1 === void 0 ? void 0 : _item$option_info1.optionname) == 'Color' ? 25 : '',
|
|
86232
|
+
borderRadius: (item === null || item === void 0 || (_item$option_info10 = item.option_info) === null || _item$option_info10 === void 0 ? void 0 : _item$option_info10.optionname) == 'Color' ? 100 : 5,
|
|
86233
|
+
background: (item === null || item === void 0 || (_item$option_info11 = item.option_info) === null || _item$option_info11 === void 0 ? void 0 : _item$option_info11.optionname) == 'Color' ? valitem === null || valitem === void 0 || (_valitem$valueinfo = valitem.valueinfo) === null || _valitem$valueinfo === void 0 ? void 0 : _valitem$valueinfo.valuename : isChoosedValueExists ? sectionproperties.activeproductcolor : '#ffffff',
|
|
86234
|
+
fontWeight: 500
|
|
86235
|
+
},
|
|
86236
|
+
disabled: valitem.disabled
|
|
86237
|
+
}, (item === null || item === void 0 || (_item$option_info12 = item.option_info) === null || _item$option_info12 === void 0 ? void 0 : _item$option_info12.optionname) == 'Color' ? '' : (valitem === null || valitem === void 0 || (_valitem$valueinfo2 = valitem.valueinfo) === null || _valitem$valueinfo2 === void 0 ? void 0 : _valitem$valueinfo2.valuename) || 'Unnamed'));
|
|
86238
|
+
}
|
|
86239
|
+
} else {
|
|
86240
|
+
var _item$option_info13, _item$option_info14, _item$option_info15, _item$option_info16, _item$option_info17, _valitem$valueinfo3, _item$option_info18, _valitem$valueinfo4;
|
|
86241
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
86242
|
+
style: {
|
|
86243
|
+
textAlign: 'center'
|
|
86244
|
+
},
|
|
86245
|
+
"class": "mx-1"
|
|
86246
|
+
}, item.optionname, /*#__PURE__*/React.createElement("button", {
|
|
86247
|
+
onClick: function onClick() {
|
|
86248
|
+
choose_valueFunc(valitem, item === null || item === void 0 ? void 0 : item.option_info);
|
|
86249
|
+
},
|
|
86250
|
+
style: {
|
|
86251
|
+
// backgroundColor: isChoosedValueExists ? 'lightblue' : 'white',
|
|
86252
|
+
color: isChoosedValueExists ? '#ffffff' : '#000000',
|
|
86253
|
+
border: isChoosedValueExists ? '3px solid ' + sectionproperties.activeproductcolor : '1px solid ' + sectionproperties.variantcontainerbordercolor,
|
|
86254
|
+
padding: (item === null || item === void 0 || (_item$option_info13 = item.option_info) === null || _item$option_info13 === void 0 ? void 0 : _item$option_info13.optionname) == 'Color' ? '5px' : '5px 10px',
|
|
86255
|
+
cursor: valitem.disabled ? 'not-allowed' : 'pointer',
|
|
86256
|
+
fontSize: '13px',
|
|
86257
|
+
width: (item === null || item === void 0 || (_item$option_info14 = item.option_info) === null || _item$option_info14 === void 0 ? void 0 : _item$option_info14.optionname) == 'Color' ? 25 : '',
|
|
86258
|
+
height: (item === null || item === void 0 || (_item$option_info15 = item.option_info) === null || _item$option_info15 === void 0 ? void 0 : _item$option_info15.optionname) == 'Color' ? 25 : '',
|
|
86259
|
+
borderRadius: (item === null || item === void 0 || (_item$option_info16 = item.option_info) === null || _item$option_info16 === void 0 ? void 0 : _item$option_info16.optionname) == 'Color' ? 100 : 5,
|
|
86260
|
+
background: (item === null || item === void 0 || (_item$option_info17 = item.option_info) === null || _item$option_info17 === void 0 ? void 0 : _item$option_info17.optionname) == 'Color' ? valitem === null || valitem === void 0 || (_valitem$valueinfo3 = valitem.valueinfo) === null || _valitem$valueinfo3 === void 0 ? void 0 : _valitem$valueinfo3.valuename : isChoosedValueExists ? sectionproperties.activeproductcolor : '#ffffff',
|
|
86261
|
+
fontWeight: 500
|
|
86262
|
+
},
|
|
86263
|
+
disabled: valitem.disabled
|
|
86264
|
+
}, (item === null || item === void 0 || (_item$option_info18 = item.option_info) === null || _item$option_info18 === void 0 ? void 0 : _item$option_info18.optionname) == 'Color' ? '' : (valitem === null || valitem === void 0 || (_valitem$valueinfo4 = valitem.valueinfo) === null || _valitem$valueinfo4 === void 0 ? void 0 : _valitem$valueinfo4.valuename) || 'Unnamed'));
|
|
86058
86265
|
}
|
|
86059
86266
|
}
|
|
86060
|
-
})
|
|
86061
|
-
|
|
86062
|
-
|
|
86063
|
-
|
|
86064
|
-
|
|
86065
|
-
|
|
86066
|
-
|
|
86067
|
-
|
|
86068
|
-
|
|
86069
|
-
|
|
86070
|
-
|
|
86071
|
-
|
|
86072
|
-
|
|
86073
|
-
|
|
86074
|
-
|
|
86075
|
-
|
|
86076
|
-
padding: (item === null || item === void 0 || (_item$option_info5 = item.option_info) === null || _item$option_info5 === void 0 ? void 0 : _item$option_info5.optionname) == 'Color' ? '5px' : '5px 10px',
|
|
86077
|
-
cursor: valitem.disabled ? 'not-allowed' : 'pointer',
|
|
86078
|
-
fontSize: '13px',
|
|
86079
|
-
width: (item === null || item === void 0 || (_item$option_info6 = item.option_info) === null || _item$option_info6 === void 0 ? void 0 : _item$option_info6.optionname) == 'Color' ? 25 : '',
|
|
86080
|
-
height: (item === null || item === void 0 || (_item$option_info7 = item.option_info) === null || _item$option_info7 === void 0 ? void 0 : _item$option_info7.optionname) == 'Color' ? 25 : '',
|
|
86081
|
-
borderRadius: (item === null || item === void 0 || (_item$option_info8 = item.option_info) === null || _item$option_info8 === void 0 ? void 0 : _item$option_info8.optionname) == 'Color' ? 100 : 5,
|
|
86082
|
-
background: (item === null || item === void 0 || (_item$option_info9 = item.option_info) === null || _item$option_info9 === void 0 ? void 0 : _item$option_info9.optionname) == 'Color' ? valitem === null || valitem === void 0 || (_valitem$valueinfo = valitem.valueinfo) === null || _valitem$valueinfo === void 0 ? void 0 : _valitem$valueinfo.valuename : isChoosedValueExists ? sectionproperties.activeproductcolor : '#ffffff',
|
|
86083
|
-
fontWeight: 500
|
|
86084
|
-
},
|
|
86085
|
-
disabled: valitem.disabled
|
|
86086
|
-
}, (item === null || item === void 0 || (_item$option_info0 = item.option_info) === null || _item$option_info0 === void 0 ? void 0 : _item$option_info0.optionname) == 'Color' ? '' : (valitem === null || valitem === void 0 || (_valitem$valueinfo2 = valitem.valueinfo) === null || _valitem$valueinfo2 === void 0 ? void 0 : _valitem$valueinfo2.valuename) || 'Unnamed'));
|
|
86087
|
-
}
|
|
86088
|
-
}), (item === null || item === void 0 || (_item$values6 = item.values) === null || _item$values6 === void 0 ? void 0 : _item$values6.length) > 4 && /*#__PURE__*/React.createElement("div", {
|
|
86089
|
-
className: "mx-1 d-flex align-items-center justify-content-center",
|
|
86090
|
-
style: {
|
|
86091
|
-
width: 25,
|
|
86092
|
-
height: 25,
|
|
86093
|
-
borderRadius: 100,
|
|
86094
|
-
backgroundColor: sectionproperties.activeproductcolor,
|
|
86095
|
-
color: '#fff',
|
|
86096
|
-
fontSize: '13px',
|
|
86097
|
-
cursor: 'pointer'
|
|
86098
|
-
},
|
|
86099
|
-
onClick: function onClick() {
|
|
86100
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, props.actions.item.productid, props.actions.fetchingtypeprops, null);
|
|
86101
|
-
}
|
|
86102
|
-
}, "+", (item === null || item === void 0 || (_item$values7 = item.values) === null || _item$values7 === void 0 ? void 0 : _item$values7.length) - 4));
|
|
86267
|
+
}), (item === null || item === void 0 || (_item$values6 = item.values) === null || _item$values6 === void 0 ? void 0 : _item$values6.length) > 4 && /*#__PURE__*/React.createElement("div", {
|
|
86268
|
+
className: "mx-1 d-flex align-items-center justify-content-center",
|
|
86269
|
+
style: {
|
|
86270
|
+
width: 25,
|
|
86271
|
+
height: 25,
|
|
86272
|
+
borderRadius: 100,
|
|
86273
|
+
backgroundColor: sectionproperties.activeproductcolor,
|
|
86274
|
+
color: '#fff',
|
|
86275
|
+
fontSize: '13px',
|
|
86276
|
+
cursor: 'pointer'
|
|
86277
|
+
},
|
|
86278
|
+
onClick: function onClick() {
|
|
86279
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, props.actions.item.productid, props.actions.fetchingtypeprops, null);
|
|
86280
|
+
}
|
|
86281
|
+
}, "+", (item === null || item === void 0 || (_item$values7 = item.values) === null || _item$values7 === void 0 ? void 0 : _item$values7.length) - 4))
|
|
86282
|
+
);
|
|
86103
86283
|
})));
|
|
86104
86284
|
};
|
|
86105
86285
|
|