tabexseriescomponents 0.2.758 → 0.2.760

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 CHANGED
@@ -11650,13 +11650,13 @@ var Checkout = function Checkout(props) {
11650
11650
  className: "col-lg-12 p-0 d-flex justify-content-end"
11651
11651
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11652
11652
  className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
11653
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11653
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11654
11654
  className: "row m-0 w-100 d-flex flex-column justify-content-end"
11655
11655
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11656
11656
  className: "col-lg-12 p-0 d-flex justify-content-end"
11657
11657
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11658
11658
  className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
11659
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
11659
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
11660
11660
  className: "col-lg-12 p-0 d-flex justify-content-end"
11661
11661
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11662
11662
  className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-left '
@@ -16124,32 +16124,44 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
16124
16124
  function ownKeys$2h(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; }
16125
16125
  function _objectSpread$2h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2h(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16126
16126
  var OrderSuccess = function OrderSuccess(props) {
16127
- var _props$actions2;
16128
- props.actions.lang;
16127
+ var _props$actions2, _logoarrayofobjects$, _logoarrayofobjects$2, _lastOrderinfoObj$dat, _lastOrderinfoObj$dat2, _lastOrderinfoObj$dat3, _lastOrderinfoObj$dat4, _lastOrderinfoObj$dat5, _lastOrderinfoObj$dat6, _lastOrderinfoObj$dat7, _lastOrderinfoObj$dat8, _lastOrderinfoObj$dat11, _lastOrderinfoObj$dat12, _lastOrderinfoObj$dat13, _lastOrderinfoObj$dat14, _lastOrderinfoObj$dat15, _lastOrderinfoObj$dat16, _lastOrderinfoObj$dat17, _lastOrderinfoObj$dat18, _lastOrderinfoObj$dat19;
16128
+ var lang = props.actions.lang;
16129
16129
  var langdetect = props.actions.langdetect;
16130
16130
  var routingcountext = props.actions.routingcountext;
16131
16131
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
16132
16132
  var templatepropcontext = props.actions.templatepropcontext;
16133
16133
  var uselocation = props.actions.uselocation;
16134
- props.actions.ikimagecredcontext;
16134
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
16135
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
16135
16136
  var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
16136
- var _useState = React.useState(false),
16137
+ props.actions.fetchorderhistoryQueryContext;
16138
+ var _useState = React.useState(null),
16137
16139
  _useState2 = _slicedToArray__default["default"](_useState, 2),
16138
- IsOrderSuccess = _useState2[0],
16139
- setIsOrderSuccess = _useState2[1];
16140
- var _useState3 = React.useState(''),
16140
+ lastOrderinfoObj = _useState2[0],
16141
+ setlastOrderinfoObj = _useState2[1];
16142
+ var _useState3 = React.useState(false),
16141
16143
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
16142
- ReasonFail = _useState4[0],
16143
- setReasonFail = _useState4[1];
16144
+ IsOrderSuccess = _useState4[0],
16145
+ setIsOrderSuccess = _useState4[1];
16144
16146
  var _useState5 = React.useState(''),
16145
16147
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
16146
- sectionproperties = _useState6[0],
16147
- setsectionproperties = _useState6[1];
16148
+ ReasonFail = _useState6[0],
16149
+ setReasonFail = _useState6[1];
16148
16150
  var _useState7 = React.useState(''),
16149
- _useState8 = _slicedToArray__default["default"](_useState7, 2);
16150
- _useState8[0];
16151
- var setCurrentPageId = _useState8[1];
16151
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
16152
+ sectionproperties = _useState8[0],
16153
+ setsectionproperties = _useState8[1];
16154
+ var _useState9 = React.useState(''),
16155
+ _useState10 = _slicedToArray__default["default"](_useState9, 2);
16156
+ _useState10[0];
16157
+ var setCurrentPageId = _useState10[1];
16152
16158
  var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
16159
+ var _useState11 = React.useState([]),
16160
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
16161
+ logoarrayofobjects = _useState12[0],
16162
+ setlogoarrayofobjects = _useState12[1];
16163
+ var templateproperties_context = props.actions.templateproperties_context;
16164
+
16153
16165
  // useEffect(() => {
16154
16166
  // const query = new URLSearchParams(uselocation.search);
16155
16167
  // var issuccess = query.get('status');
@@ -16203,6 +16215,40 @@ var OrderSuccess = function OrderSuccess(props) {
16203
16215
  });
16204
16216
  setsectionproperties(_objectSpread$2h({}, secpropobj));
16205
16217
  }, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
16218
+ React.useEffect(function () {
16219
+ var query = new URLSearchParams(uselocation.search);
16220
+ var order_id = query.get('order_id');
16221
+ if (order_id != undefined && order_id != null && order_id.length != 0) {
16222
+ GeneralAPIMutationContext.mutate({
16223
+ endpointurl: '/p_fetchorderinformation',
16224
+ orderid: order_id,
16225
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
16226
+ var _data$data;
16227
+ var templastorderobj = _objectSpread$2h({}, lastOrderinfoObj);
16228
+ if ((data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.data) != null) {
16229
+ templastorderobj = data.data;
16230
+ } else {
16231
+ templastorderobj = {
16232
+ status: false
16233
+ };
16234
+ }
16235
+ setlastOrderinfoObj(_objectSpread$2h({}, templastorderobj));
16236
+ }
16237
+ });
16238
+ } else {
16239
+ setlastOrderinfoObj({
16240
+ status: false
16241
+ });
16242
+ }
16243
+ }, []);
16244
+ React.useEffect(function () {
16245
+ if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
16246
+ var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
16247
+ if (Array.isArray(logoarrayofobjectsparsed)) {
16248
+ setlogoarrayofobjects(_toConsumableArray__default["default"](logoarrayofobjectsparsed));
16249
+ }
16250
+ }
16251
+ }, [templateproperties_context]);
16206
16252
  var authdetailsContext = props.actions.authdetailsContext;
16207
16253
  var ordersuccessstyle = {
16208
16254
  ordersuccessbtn: glamor.css({
@@ -16225,13 +16271,13 @@ var OrderSuccess = function OrderSuccess(props) {
16225
16271
  }
16226
16272
  }),
16227
16273
  containerstyle: glamor.css({
16228
- paddingLeft: sectionproperties.paddingLeft + 'px',
16229
- paddingRight: sectionproperties.paddingRight + 'px',
16230
- paddingTop: sectionproperties.marginTop + 'px',
16231
- paddingBottom: sectionproperties.marginBottom + 'px',
16274
+ paddingLeft: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.paddingLeft + 'px' : 0,
16275
+ paddingRight: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.paddingRight + 'px' : 0,
16276
+ paddingTop: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginTop + 'px' : 0,
16277
+ paddingBottom: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginBottom + 'px' : 0,
16232
16278
  background: sectionproperties.outerbgcolor,
16233
16279
  '@media (max-width: 800px)': {
16234
- paddingTop: sectionproperties.marginTopResp + 'px'
16280
+ paddingTop: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginTopResp + 'px' : 0
16235
16281
  }
16236
16282
  })
16237
16283
  };
@@ -16239,12 +16285,235 @@ var OrderSuccess = function OrderSuccess(props) {
16239
16285
  className: ordersuccessstyle.containerstyle + ' row ml-0 mr-0 w-100 justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2 ',
16240
16286
  style: {}
16241
16287
  }, IsOrderSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
16242
- className: "col-lg-12 allcentered flex-column d-none mt-4 mb-4 ",
16288
+ // className="col-lg-12 allcentered flex-column d-none "
16289
+ className: sectionproperties.cardstyletype != 'Style 2' ? 'col-lg-12 allcentered flex-column d-none mt-4 mb-4 ' : 'col-lg-12 allcentered flex-column',
16243
16290
  style: {
16244
- minHeight: '50vh',
16291
+ minHeight: sectionproperties.cardstyletype != 'Style 2' ? '50vh' : '',
16245
16292
  background: sectionproperties.backgroundColor,
16246
- borderRadius: '10px'
16293
+ borderRadius: sectionproperties.cardstyletype != 'Style 2' ? '10px' : 0,
16294
+ color: '#000'
16295
+ }
16296
+ }, lastOrderinfoObj != null && lastOrderinfoObj.status && sectionproperties.cardstyletype == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
16297
+ "class": "row m-0 w-100 px-5 py-5 px-1025-1 px-md-0",
16298
+ style: {
16299
+ paddingLeft: 200,
16300
+ paddingRight: 200
16301
+ }
16302
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16303
+ "class": "col-12 p-0 text-start mb-4"
16304
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16305
+ "class": ' text-start',
16306
+ style: {
16307
+ width: '15%'
16308
+ }
16309
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
16310
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
16311
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
16312
+ path: langdetect == 'en' ? (_logoarrayofobjects$ = logoarrayofobjects[0]) === null || _logoarrayofobjects$ === void 0 ? void 0 : _logoarrayofobjects$.englishlogo : (_logoarrayofobjects$2 = logoarrayofobjects[0]) === null || _logoarrayofobjects$2 === void 0 ? void 0 : _logoarrayofobjects$2.arabiclogo,
16313
+ style: {
16314
+ maxWidth: '100%',
16315
+ maxHeight: '100%'
16316
+ }
16317
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16318
+ "class": "col-6 col-md-12 text-start border-md-none",
16319
+ style: {
16320
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : '',
16321
+ borderLeft: langdetect == 'ar' ? '1px solid #ccc' : ''
16322
+ }
16323
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16324
+ "class": "row m-0 w-100"
16325
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16326
+ "class": "col-12 p-0 text-start mb-1 font-weight-500",
16327
+ style: {
16328
+ fontSize: 15
16329
+ }
16330
+ }, "Order #", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat === void 0 || (_lastOrderinfoObj$dat = _lastOrderinfoObj$dat.orderinfo) === null || _lastOrderinfoObj$dat === void 0 ? void 0 : _lastOrderinfoObj$dat.orderid), /*#__PURE__*/React__default["default"].createElement("div", {
16331
+ "class": "col-12 p-0 text-start mb-4 font-weight-500"
16332
+ }, langdetect == 'en' ? 'Thank you,' : 'شكرا،', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat2 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat2 === void 0 || (_lastOrderinfoObj$dat2 = _lastOrderinfoObj$dat2.orderinfo) === null || _lastOrderinfoObj$dat2 === void 0 ? void 0 : _lastOrderinfoObj$dat2.customername), /*#__PURE__*/React__default["default"].createElement("div", {
16333
+ "class": "col-12 p-0 text-start font-weight-500"
16334
+ }, langdetect == 'en' ? 'Your order has been placed.' : 'الطلب تم بنجاح'), /*#__PURE__*/React__default["default"].createElement("div", {
16335
+ "class": "col-12 p-0 text-start font-weight-500"
16336
+ }, langdetect == 'en' ? 'You’ll receive a confirmation email with your order details shortly.' : 'ستتلقى رسالة تأكيد عبر البريد الإلكتروني تحتوي على تفاصيل طلبك قريبًا.'), /*#__PURE__*/React__default["default"].createElement("div", {
16337
+ "class": "col-lg-12 p-0 mt-4",
16338
+ style: {
16339
+ border: '1px solid #ccc',
16340
+ borderRadius: 10
16341
+ }
16342
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16343
+ "class": "row m-0 w-100 px-3 py-4"
16344
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16345
+ "class": "col-12 text-start mb-3"
16346
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16347
+ "class": "m-0",
16348
+ style: {
16349
+ fontSize: 16,
16350
+ fontWeight: 600
16351
+ }
16352
+ }, langdetect == 'en' ? 'Order details' : 'تفاصيل الطلب')), /*#__PURE__*/React__default["default"].createElement("div", {
16353
+ "class": "col-6 col-md-12"
16354
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16355
+ "class": "row m-0 w-100"
16356
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16357
+ "class": "col-12 p-0 text-start mb-2"
16358
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16359
+ "class": "m-0",
16360
+ style: {
16361
+ fontSize: 15,
16362
+ fontWeight: 600
16247
16363
  }
16364
+ }, langdetect == 'en' ? 'Contact Information' : 'بياتات العميل')), /*#__PURE__*/React__default["default"].createElement("div", {
16365
+ "class": "col-12 p-0 text-start"
16366
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat3 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat3 === void 0 || (_lastOrderinfoObj$dat3 = _lastOrderinfoObj$dat3.orderinfo) === null || _lastOrderinfoObj$dat3 === void 0 ? void 0 : _lastOrderinfoObj$dat3.customeremail)), /*#__PURE__*/React__default["default"].createElement("div", {
16367
+ "class": "col-12 p-0 text-start"
16368
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat4 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat4 === void 0 || (_lastOrderinfoObj$dat4 = _lastOrderinfoObj$dat4.orderinfo) === null || _lastOrderinfoObj$dat4 === void 0 ? void 0 : _lastOrderinfoObj$dat4.customerphonenumber)), /*#__PURE__*/React__default["default"].createElement("div", {
16369
+ "class": "col-12 p-0 text-start mb-2"
16370
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16371
+ style: {
16372
+ fontSize: 15,
16373
+ fontWeight: 600
16374
+ },
16375
+ "class": "m-0"
16376
+ }, langdetect == 'en' ? 'Shipping address' : 'عنوان الشحن')), /*#__PURE__*/React__default["default"].createElement("div", {
16377
+ "class": "col-12 p-0 text-start"
16378
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat5 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat5 === void 0 || (_lastOrderinfoObj$dat5 = _lastOrderinfoObj$dat5.orderinfo) === null || _lastOrderinfoObj$dat5 === void 0 ? void 0 : _lastOrderinfoObj$dat5.address)))), /*#__PURE__*/React__default["default"].createElement("div", {
16379
+ "class": "col-6 col-md-12"
16380
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16381
+ "class": "col-12 p-0 text-start mb-2"
16382
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16383
+ style: {
16384
+ fontSize: 15,
16385
+ fontWeight: 600
16386
+ },
16387
+ "class": "m-0"
16388
+ }, langdetect == 'en' ? 'Payment method' : 'طريقة الدفع')), /*#__PURE__*/React__default["default"].createElement("div", {
16389
+ "class": "col-12 p-0 text-start"
16390
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat6 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat6 === void 0 || (_lastOrderinfoObj$dat6 = _lastOrderinfoObj$dat6.orderinfo) === null || _lastOrderinfoObj$dat6 === void 0 ? void 0 : _lastOrderinfoObj$dat6.paymentmethod) == 'cod' ? langdetect == 'en' ? 'Cash on delivery' : 'الدفع عند الاستلام' : lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat7 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat7 === void 0 || (_lastOrderinfoObj$dat7 = _lastOrderinfoObj$dat7.orderinfo) === null || _lastOrderinfoObj$dat7 === void 0 ? void 0 : _lastOrderinfoObj$dat7.paymentmethod))))))), /*#__PURE__*/React__default["default"].createElement("div", {
16391
+ "class": "col-6 col-md-12 p-md-0"
16392
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16393
+ "class": "row m-0 w-100 mb-auto mt-md-4"
16394
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16395
+ "class": "col-lg-12 text-start mb-3"
16396
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16397
+ "class": "m-0 p-0",
16398
+ style: {
16399
+ fontSize: 20,
16400
+ fontWeight: 600
16401
+ }
16402
+ }, langdetect == 'en' ? 'Items Ordered' : 'المنتجات')), /*#__PURE__*/React__default["default"].createElement("div", {
16403
+ "class": "col-12 p-0"
16404
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16405
+ "class": "row m-0 w-100",
16406
+ style: {
16407
+ maxHeight: '40vh',
16408
+ overflowY: 'scroll'
16409
+ }
16410
+ }, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat8 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat8 === void 0 ? void 0 : _lastOrderinfoObj$dat8.orderitems.map(function (item, index) {
16411
+ var _lastOrderinfoObj$dat9, _lastOrderinfoObj$dat10;
16412
+ var variantoptions = [];
16413
+ if (item.isvariant == 1) {
16414
+ var decodevariantoptions = JSON.parse(item.variantoptions);
16415
+ variantoptions = decodevariantoptions;
16416
+ }
16417
+ return /*#__PURE__*/React__default["default"].createElement("div", {
16418
+ className: "col-lg-12 p-0"
16419
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16420
+ className: "row m-0 w-100 d-flex",
16421
+ style: {
16422
+ fontSize: 15
16423
+ }
16424
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16425
+ className: "col-8 d-flex"
16426
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16427
+ className: "row m-0 w-100"
16428
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16429
+ "class": "col-lg-12 p-0 text-start"
16430
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16431
+ className: ' m-0 p-0 ',
16432
+ style: {
16433
+ textAlign: langdetect == 'en' ? 'left' : 'right'
16434
+ }
16435
+ }, langdetect == 'en' ? item.productname_en : item.productname_ar)), (item === null || item === void 0 ? void 0 : item.isvariant) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
16436
+ className: "col-lg-12 p-0 d-flex justify-content-start"
16437
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16438
+ "class": "row m-0 w-100"
16439
+ }, variantoptions.map(function (variantitem, variantindex) {
16440
+ return /*#__PURE__*/React__default["default"].createElement("div", {
16441
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
16442
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16443
+ className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 font-13 '
16444
+ }, (variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier) != null ? variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier : variantitem === null || variantitem === void 0 ? void 0 : variantitem.optionvalue));
16445
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16446
+ className: "col-lg-12 p-0 d-flex justify-content-start"
16447
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16448
+ className: "m-0 p-0 font-weight-500"
16449
+ }, lang.qty, ": ", item.quantity)))), /*#__PURE__*/React__default["default"].createElement("div", {
16450
+ className: "col-4 d-flex text-end"
16451
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16452
+ "class": "m-0 p-0 font-weight-500 mb-auto"
16453
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat9 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat9 === void 0 || (_lastOrderinfoObj$dat9 = _lastOrderinfoObj$dat9.orderinfo) === null || _lastOrderinfoObj$dat9 === void 0 ? void 0 : _lastOrderinfoObj$dat9.currencyname_en : '', " ", item.finalprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat10 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat10 === void 0 || (_lastOrderinfoObj$dat10 = _lastOrderinfoObj$dat10.orderinfo) === null || _lastOrderinfoObj$dat10 === void 0 ? void 0 : _lastOrderinfoObj$dat10.currencyname_ar : '')), /*#__PURE__*/React__default["default"].createElement("div", {
16454
+ "class": "col-12 my-2"
16455
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16456
+ style: {
16457
+ width: '100%',
16458
+ height: 1,
16459
+ background: '#eee'
16460
+ }
16461
+ }))));
16462
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16463
+ "class": "col-lg-12 p-0 mt-5",
16464
+ style: {
16465
+ fontSize: 16
16466
+ }
16467
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16468
+ className: "row m-0 w-100 font-weight-600"
16469
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16470
+ "class": "col-6 text-start"
16471
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16472
+ className: "m-0 p-0"
16473
+ }, langdetect == 'en' ? 'Sub total' : 'الاجمالي')), /*#__PURE__*/React__default["default"].createElement("div", {
16474
+ "class": "col-6 text-end"
16475
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16476
+ className: "m-0 p-0 font-weight-500"
16477
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat11 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat11 === void 0 || (_lastOrderinfoObj$dat11 = _lastOrderinfoObj$dat11.orderinfo) === null || _lastOrderinfoObj$dat11 === void 0 ? void 0 : _lastOrderinfoObj$dat11.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat12 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat12 === void 0 ? void 0 : _lastOrderinfoObj$dat12.totalitemsprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat13 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat13 === void 0 || (_lastOrderinfoObj$dat13 = _lastOrderinfoObj$dat13.orderinfo) === null || _lastOrderinfoObj$dat13 === void 0 ? void 0 : _lastOrderinfoObj$dat13.currencyname_ar : '')))), /*#__PURE__*/React__default["default"].createElement("div", {
16478
+ "class": "col-lg-12 p-0 mt-1",
16479
+ style: {
16480
+ fontSize: 16
16481
+ }
16482
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16483
+ className: "row m-0 w-100 font-weight-600"
16484
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16485
+ "class": "col-6 text-start"
16486
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16487
+ className: "m-0 p-0"
16488
+ }, langdetect == 'en' ? 'Shipping' : 'الشحن')), /*#__PURE__*/React__default["default"].createElement("div", {
16489
+ "class": "col-6 text-end"
16490
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16491
+ className: "m-0 p-0 font-weight-500"
16492
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat14 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat14 === void 0 || (_lastOrderinfoObj$dat14 = _lastOrderinfoObj$dat14.orderinfo) === null || _lastOrderinfoObj$dat14 === void 0 ? void 0 : _lastOrderinfoObj$dat14.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat15 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat15 === void 0 ? void 0 : _lastOrderinfoObj$dat15.ordershippingfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat16 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat16 === void 0 || (_lastOrderinfoObj$dat16 = _lastOrderinfoObj$dat16.orderinfo) === null || _lastOrderinfoObj$dat16 === void 0 ? void 0 : _lastOrderinfoObj$dat16.currencyname_ar : '')))), /*#__PURE__*/React__default["default"].createElement("div", {
16493
+ "class": "col-lg-12 p-0 my-3"
16494
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16495
+ style: {
16496
+ width: '100%',
16497
+ height: 1,
16498
+ background: '#eee'
16499
+ }
16500
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
16501
+ "class": "col-lg-12 p-0 mt-1",
16502
+ style: {
16503
+ fontSize: 16
16504
+ }
16505
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16506
+ className: "row m-0 w-100 font-weight-600"
16507
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16508
+ "class": "col-6 text-start"
16509
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16510
+ className: "m-0 p-0"
16511
+ }, langdetect == 'en' ? 'Total' : 'الاجمالي')), /*#__PURE__*/React__default["default"].createElement("div", {
16512
+ "class": "col-6 text-end"
16513
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16514
+ className: "m-0 p-0 font-weight-500"
16515
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat17 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat17 === void 0 || (_lastOrderinfoObj$dat17 = _lastOrderinfoObj$dat17.orderinfo) === null || _lastOrderinfoObj$dat17 === void 0 ? void 0 : _lastOrderinfoObj$dat17.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat18 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat18 === void 0 ? void 0 : _lastOrderinfoObj$dat18.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat19 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat19 === void 0 || (_lastOrderinfoObj$dat19 = _lastOrderinfoObj$dat19.orderinfo) === null || _lastOrderinfoObj$dat19 === void 0 ? void 0 : _lastOrderinfoObj$dat19.currencyname_ar : ''))))))), sectionproperties.cardstyletype != 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
16516
+ className: "col-lg-12 allcentered flex-column "
16248
16517
  }, /*#__PURE__*/React__default["default"].createElement(IoBagCheckOutline.IoBagCheckOutline, {
16249
16518
  size: sectionproperties.icontextfontsize,
16250
16519
  color: sectionproperties.iconcontainercolor,
@@ -16264,7 +16533,7 @@ var OrderSuccess = function OrderSuccess(props) {
16264
16533
  onClick: function onClick() {
16265
16534
  routingcountext(StaticPagesLinksContext.Ordershistory);
16266
16535
  }
16267
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), !IsOrderSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
16536
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))), !IsOrderSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
16268
16537
  className: "col-lg-12 allcentered flex-column mt-4 mb-4 ",
16269
16538
  style: {
16270
16539
  minHeight: '50vh',
@@ -68230,7 +68499,7 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
68230
68499
  }
68231
68500
  }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))));
68232
68501
  })), sectionproperties.view_as_slider_vertical == 'Vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
68233
- "class": "row m-0 w-100"
68502
+ "class": "row m-0 w-100 d-flex justify-content-center"
68234
68503
  }, sectionproperties.flippingcards == 'No' && cardsarray.map(function (cardinfoitem, cardinfoindex) {
68235
68504
  var _authdetailsContext$i3, _authdetailsContext$i4;
68236
68505
  return /*#__PURE__*/React__default["default"].createElement("div", {
package/dist/index.esm.js CHANGED
@@ -11601,13 +11601,13 @@ var Checkout = function Checkout(props) {
11601
11601
  className: "col-lg-12 p-0 d-flex justify-content-end"
11602
11602
  }, /*#__PURE__*/React.createElement("p", {
11603
11603
  className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
11604
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React.createElement("div", {
11604
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React.createElement("div", {
11605
11605
  className: "row m-0 w-100 d-flex flex-column justify-content-end"
11606
11606
  }, /*#__PURE__*/React.createElement("div", {
11607
11607
  className: "col-lg-12 p-0 d-flex justify-content-end"
11608
11608
  }, /*#__PURE__*/React.createElement("p", {
11609
11609
  className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
11610
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("div", {
11610
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("div", {
11611
11611
  className: "col-lg-12 p-0 d-flex justify-content-end"
11612
11612
  }, /*#__PURE__*/React.createElement("p", {
11613
11613
  className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-left '
@@ -16075,32 +16075,44 @@ var Categoriesdropdown = function Categoriesdropdown(props) {
16075
16075
  function ownKeys$2h(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; }
16076
16076
  function _objectSpread$2h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16077
16077
  var OrderSuccess = function OrderSuccess(props) {
16078
- var _props$actions2;
16079
- props.actions.lang;
16078
+ var _props$actions2, _logoarrayofobjects$, _logoarrayofobjects$2, _lastOrderinfoObj$dat, _lastOrderinfoObj$dat2, _lastOrderinfoObj$dat3, _lastOrderinfoObj$dat4, _lastOrderinfoObj$dat5, _lastOrderinfoObj$dat6, _lastOrderinfoObj$dat7, _lastOrderinfoObj$dat8, _lastOrderinfoObj$dat11, _lastOrderinfoObj$dat12, _lastOrderinfoObj$dat13, _lastOrderinfoObj$dat14, _lastOrderinfoObj$dat15, _lastOrderinfoObj$dat16, _lastOrderinfoObj$dat17, _lastOrderinfoObj$dat18, _lastOrderinfoObj$dat19;
16079
+ var lang = props.actions.lang;
16080
16080
  var langdetect = props.actions.langdetect;
16081
16081
  var routingcountext = props.actions.routingcountext;
16082
16082
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
16083
16083
  var templatepropcontext = props.actions.templatepropcontext;
16084
16084
  var uselocation = props.actions.uselocation;
16085
- props.actions.ikimagecredcontext;
16085
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
16086
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
16086
16087
  var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
16087
- var _useState = useState(false),
16088
+ props.actions.fetchorderhistoryQueryContext;
16089
+ var _useState = useState(null),
16088
16090
  _useState2 = _slicedToArray(_useState, 2),
16089
- IsOrderSuccess = _useState2[0],
16090
- setIsOrderSuccess = _useState2[1];
16091
- var _useState3 = useState(''),
16091
+ lastOrderinfoObj = _useState2[0],
16092
+ setlastOrderinfoObj = _useState2[1];
16093
+ var _useState3 = useState(false),
16092
16094
  _useState4 = _slicedToArray(_useState3, 2),
16093
- ReasonFail = _useState4[0],
16094
- setReasonFail = _useState4[1];
16095
+ IsOrderSuccess = _useState4[0],
16096
+ setIsOrderSuccess = _useState4[1];
16095
16097
  var _useState5 = useState(''),
16096
16098
  _useState6 = _slicedToArray(_useState5, 2),
16097
- sectionproperties = _useState6[0],
16098
- setsectionproperties = _useState6[1];
16099
+ ReasonFail = _useState6[0],
16100
+ setReasonFail = _useState6[1];
16099
16101
  var _useState7 = useState(''),
16100
- _useState8 = _slicedToArray(_useState7, 2);
16101
- _useState8[0];
16102
- var setCurrentPageId = _useState8[1];
16102
+ _useState8 = _slicedToArray(_useState7, 2),
16103
+ sectionproperties = _useState8[0],
16104
+ setsectionproperties = _useState8[1];
16105
+ var _useState9 = useState(''),
16106
+ _useState10 = _slicedToArray(_useState9, 2);
16107
+ _useState10[0];
16108
+ var setCurrentPageId = _useState10[1];
16103
16109
  var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
16110
+ var _useState11 = useState([]),
16111
+ _useState12 = _slicedToArray(_useState11, 2),
16112
+ logoarrayofobjects = _useState12[0],
16113
+ setlogoarrayofobjects = _useState12[1];
16114
+ var templateproperties_context = props.actions.templateproperties_context;
16115
+
16104
16116
  // useEffect(() => {
16105
16117
  // const query = new URLSearchParams(uselocation.search);
16106
16118
  // var issuccess = query.get('status');
@@ -16154,6 +16166,40 @@ var OrderSuccess = function OrderSuccess(props) {
16154
16166
  });
16155
16167
  setsectionproperties(_objectSpread$2h({}, secpropobj));
16156
16168
  }, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
16169
+ useEffect(function () {
16170
+ var query = new URLSearchParams(uselocation.search);
16171
+ var order_id = query.get('order_id');
16172
+ if (order_id != undefined && order_id != null && order_id.length != 0) {
16173
+ GeneralAPIMutationContext.mutate({
16174
+ endpointurl: '/p_fetchorderinformation',
16175
+ orderid: order_id,
16176
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
16177
+ var _data$data;
16178
+ var templastorderobj = _objectSpread$2h({}, lastOrderinfoObj);
16179
+ if ((data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.data) != null) {
16180
+ templastorderobj = data.data;
16181
+ } else {
16182
+ templastorderobj = {
16183
+ status: false
16184
+ };
16185
+ }
16186
+ setlastOrderinfoObj(_objectSpread$2h({}, templastorderobj));
16187
+ }
16188
+ });
16189
+ } else {
16190
+ setlastOrderinfoObj({
16191
+ status: false
16192
+ });
16193
+ }
16194
+ }, []);
16195
+ useEffect(function () {
16196
+ if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
16197
+ var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
16198
+ if (Array.isArray(logoarrayofobjectsparsed)) {
16199
+ setlogoarrayofobjects(_toConsumableArray(logoarrayofobjectsparsed));
16200
+ }
16201
+ }
16202
+ }, [templateproperties_context]);
16157
16203
  var authdetailsContext = props.actions.authdetailsContext;
16158
16204
  var ordersuccessstyle = {
16159
16205
  ordersuccessbtn: css({
@@ -16176,13 +16222,13 @@ var OrderSuccess = function OrderSuccess(props) {
16176
16222
  }
16177
16223
  }),
16178
16224
  containerstyle: css({
16179
- paddingLeft: sectionproperties.paddingLeft + 'px',
16180
- paddingRight: sectionproperties.paddingRight + 'px',
16181
- paddingTop: sectionproperties.marginTop + 'px',
16182
- paddingBottom: sectionproperties.marginBottom + 'px',
16225
+ paddingLeft: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.paddingLeft + 'px' : 0,
16226
+ paddingRight: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.paddingRight + 'px' : 0,
16227
+ paddingTop: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginTop + 'px' : 0,
16228
+ paddingBottom: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginBottom + 'px' : 0,
16183
16229
  background: sectionproperties.outerbgcolor,
16184
16230
  '@media (max-width: 800px)': {
16185
- paddingTop: sectionproperties.marginTopResp + 'px'
16231
+ paddingTop: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginTopResp + 'px' : 0
16186
16232
  }
16187
16233
  })
16188
16234
  };
@@ -16190,12 +16236,235 @@ var OrderSuccess = function OrderSuccess(props) {
16190
16236
  className: ordersuccessstyle.containerstyle + ' row ml-0 mr-0 w-100 justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2 ',
16191
16237
  style: {}
16192
16238
  }, IsOrderSuccess && /*#__PURE__*/React.createElement("div", {
16193
- className: "col-lg-12 allcentered flex-column d-none mt-4 mb-4 ",
16239
+ // className="col-lg-12 allcentered flex-column d-none "
16240
+ className: sectionproperties.cardstyletype != 'Style 2' ? 'col-lg-12 allcentered flex-column d-none mt-4 mb-4 ' : 'col-lg-12 allcentered flex-column',
16194
16241
  style: {
16195
- minHeight: '50vh',
16242
+ minHeight: sectionproperties.cardstyletype != 'Style 2' ? '50vh' : '',
16196
16243
  background: sectionproperties.backgroundColor,
16197
- borderRadius: '10px'
16244
+ borderRadius: sectionproperties.cardstyletype != 'Style 2' ? '10px' : 0,
16245
+ color: '#000'
16246
+ }
16247
+ }, lastOrderinfoObj != null && lastOrderinfoObj.status && sectionproperties.cardstyletype == 'Style 2' && /*#__PURE__*/React.createElement("div", {
16248
+ "class": "row m-0 w-100 px-5 py-5 px-1025-1 px-md-0",
16249
+ style: {
16250
+ paddingLeft: 200,
16251
+ paddingRight: 200
16252
+ }
16253
+ }, /*#__PURE__*/React.createElement("div", {
16254
+ "class": "col-12 p-0 text-start mb-4"
16255
+ }, /*#__PURE__*/React.createElement("div", {
16256
+ "class": ' text-start',
16257
+ style: {
16258
+ width: '15%'
16259
+ }
16260
+ }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
16261
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
16262
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
16263
+ path: langdetect == 'en' ? (_logoarrayofobjects$ = logoarrayofobjects[0]) === null || _logoarrayofobjects$ === void 0 ? void 0 : _logoarrayofobjects$.englishlogo : (_logoarrayofobjects$2 = logoarrayofobjects[0]) === null || _logoarrayofobjects$2 === void 0 ? void 0 : _logoarrayofobjects$2.arabiclogo,
16264
+ style: {
16265
+ maxWidth: '100%',
16266
+ maxHeight: '100%'
16267
+ }
16268
+ }))), /*#__PURE__*/React.createElement("div", {
16269
+ "class": "col-6 col-md-12 text-start border-md-none",
16270
+ style: {
16271
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : '',
16272
+ borderLeft: langdetect == 'ar' ? '1px solid #ccc' : ''
16273
+ }
16274
+ }, /*#__PURE__*/React.createElement("div", {
16275
+ "class": "row m-0 w-100"
16276
+ }, /*#__PURE__*/React.createElement("div", {
16277
+ "class": "col-12 p-0 text-start mb-1 font-weight-500",
16278
+ style: {
16279
+ fontSize: 15
16280
+ }
16281
+ }, "Order #", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat === void 0 || (_lastOrderinfoObj$dat = _lastOrderinfoObj$dat.orderinfo) === null || _lastOrderinfoObj$dat === void 0 ? void 0 : _lastOrderinfoObj$dat.orderid), /*#__PURE__*/React.createElement("div", {
16282
+ "class": "col-12 p-0 text-start mb-4 font-weight-500"
16283
+ }, langdetect == 'en' ? 'Thank you,' : 'شكرا،', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat2 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat2 === void 0 || (_lastOrderinfoObj$dat2 = _lastOrderinfoObj$dat2.orderinfo) === null || _lastOrderinfoObj$dat2 === void 0 ? void 0 : _lastOrderinfoObj$dat2.customername), /*#__PURE__*/React.createElement("div", {
16284
+ "class": "col-12 p-0 text-start font-weight-500"
16285
+ }, langdetect == 'en' ? 'Your order has been placed.' : 'الطلب تم بنجاح'), /*#__PURE__*/React.createElement("div", {
16286
+ "class": "col-12 p-0 text-start font-weight-500"
16287
+ }, langdetect == 'en' ? 'You’ll receive a confirmation email with your order details shortly.' : 'ستتلقى رسالة تأكيد عبر البريد الإلكتروني تحتوي على تفاصيل طلبك قريبًا.'), /*#__PURE__*/React.createElement("div", {
16288
+ "class": "col-lg-12 p-0 mt-4",
16289
+ style: {
16290
+ border: '1px solid #ccc',
16291
+ borderRadius: 10
16292
+ }
16293
+ }, /*#__PURE__*/React.createElement("div", {
16294
+ "class": "row m-0 w-100 px-3 py-4"
16295
+ }, /*#__PURE__*/React.createElement("div", {
16296
+ "class": "col-12 text-start mb-3"
16297
+ }, /*#__PURE__*/React.createElement("p", {
16298
+ "class": "m-0",
16299
+ style: {
16300
+ fontSize: 16,
16301
+ fontWeight: 600
16302
+ }
16303
+ }, langdetect == 'en' ? 'Order details' : 'تفاصيل الطلب')), /*#__PURE__*/React.createElement("div", {
16304
+ "class": "col-6 col-md-12"
16305
+ }, /*#__PURE__*/React.createElement("div", {
16306
+ "class": "row m-0 w-100"
16307
+ }, /*#__PURE__*/React.createElement("div", {
16308
+ "class": "col-12 p-0 text-start mb-2"
16309
+ }, /*#__PURE__*/React.createElement("p", {
16310
+ "class": "m-0",
16311
+ style: {
16312
+ fontSize: 15,
16313
+ fontWeight: 600
16198
16314
  }
16315
+ }, langdetect == 'en' ? 'Contact Information' : 'بياتات العميل')), /*#__PURE__*/React.createElement("div", {
16316
+ "class": "col-12 p-0 text-start"
16317
+ }, /*#__PURE__*/React.createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat3 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat3 === void 0 || (_lastOrderinfoObj$dat3 = _lastOrderinfoObj$dat3.orderinfo) === null || _lastOrderinfoObj$dat3 === void 0 ? void 0 : _lastOrderinfoObj$dat3.customeremail)), /*#__PURE__*/React.createElement("div", {
16318
+ "class": "col-12 p-0 text-start"
16319
+ }, /*#__PURE__*/React.createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat4 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat4 === void 0 || (_lastOrderinfoObj$dat4 = _lastOrderinfoObj$dat4.orderinfo) === null || _lastOrderinfoObj$dat4 === void 0 ? void 0 : _lastOrderinfoObj$dat4.customerphonenumber)), /*#__PURE__*/React.createElement("div", {
16320
+ "class": "col-12 p-0 text-start mb-2"
16321
+ }, /*#__PURE__*/React.createElement("p", {
16322
+ style: {
16323
+ fontSize: 15,
16324
+ fontWeight: 600
16325
+ },
16326
+ "class": "m-0"
16327
+ }, langdetect == 'en' ? 'Shipping address' : 'عنوان الشحن')), /*#__PURE__*/React.createElement("div", {
16328
+ "class": "col-12 p-0 text-start"
16329
+ }, /*#__PURE__*/React.createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat5 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat5 === void 0 || (_lastOrderinfoObj$dat5 = _lastOrderinfoObj$dat5.orderinfo) === null || _lastOrderinfoObj$dat5 === void 0 ? void 0 : _lastOrderinfoObj$dat5.address)))), /*#__PURE__*/React.createElement("div", {
16330
+ "class": "col-6 col-md-12"
16331
+ }, /*#__PURE__*/React.createElement("div", {
16332
+ "class": "col-12 p-0 text-start mb-2"
16333
+ }, /*#__PURE__*/React.createElement("p", {
16334
+ style: {
16335
+ fontSize: 15,
16336
+ fontWeight: 600
16337
+ },
16338
+ "class": "m-0"
16339
+ }, langdetect == 'en' ? 'Payment method' : 'طريقة الدفع')), /*#__PURE__*/React.createElement("div", {
16340
+ "class": "col-12 p-0 text-start"
16341
+ }, /*#__PURE__*/React.createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat6 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat6 === void 0 || (_lastOrderinfoObj$dat6 = _lastOrderinfoObj$dat6.orderinfo) === null || _lastOrderinfoObj$dat6 === void 0 ? void 0 : _lastOrderinfoObj$dat6.paymentmethod) == 'cod' ? langdetect == 'en' ? 'Cash on delivery' : 'الدفع عند الاستلام' : lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat7 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat7 === void 0 || (_lastOrderinfoObj$dat7 = _lastOrderinfoObj$dat7.orderinfo) === null || _lastOrderinfoObj$dat7 === void 0 ? void 0 : _lastOrderinfoObj$dat7.paymentmethod))))))), /*#__PURE__*/React.createElement("div", {
16342
+ "class": "col-6 col-md-12 p-md-0"
16343
+ }, /*#__PURE__*/React.createElement("div", {
16344
+ "class": "row m-0 w-100 mb-auto mt-md-4"
16345
+ }, /*#__PURE__*/React.createElement("div", {
16346
+ "class": "col-lg-12 text-start mb-3"
16347
+ }, /*#__PURE__*/React.createElement("p", {
16348
+ "class": "m-0 p-0",
16349
+ style: {
16350
+ fontSize: 20,
16351
+ fontWeight: 600
16352
+ }
16353
+ }, langdetect == 'en' ? 'Items Ordered' : 'المنتجات')), /*#__PURE__*/React.createElement("div", {
16354
+ "class": "col-12 p-0"
16355
+ }, /*#__PURE__*/React.createElement("div", {
16356
+ "class": "row m-0 w-100",
16357
+ style: {
16358
+ maxHeight: '40vh',
16359
+ overflowY: 'scroll'
16360
+ }
16361
+ }, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat8 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat8 === void 0 ? void 0 : _lastOrderinfoObj$dat8.orderitems.map(function (item, index) {
16362
+ var _lastOrderinfoObj$dat9, _lastOrderinfoObj$dat10;
16363
+ var variantoptions = [];
16364
+ if (item.isvariant == 1) {
16365
+ var decodevariantoptions = JSON.parse(item.variantoptions);
16366
+ variantoptions = decodevariantoptions;
16367
+ }
16368
+ return /*#__PURE__*/React.createElement("div", {
16369
+ className: "col-lg-12 p-0"
16370
+ }, /*#__PURE__*/React.createElement("div", {
16371
+ className: "row m-0 w-100 d-flex",
16372
+ style: {
16373
+ fontSize: 15
16374
+ }
16375
+ }, /*#__PURE__*/React.createElement("div", {
16376
+ className: "col-8 d-flex"
16377
+ }, /*#__PURE__*/React.createElement("div", {
16378
+ className: "row m-0 w-100"
16379
+ }, /*#__PURE__*/React.createElement("div", {
16380
+ "class": "col-lg-12 p-0 text-start"
16381
+ }, /*#__PURE__*/React.createElement("p", {
16382
+ className: ' m-0 p-0 ',
16383
+ style: {
16384
+ textAlign: langdetect == 'en' ? 'left' : 'right'
16385
+ }
16386
+ }, langdetect == 'en' ? item.productname_en : item.productname_ar)), (item === null || item === void 0 ? void 0 : item.isvariant) == 1 && /*#__PURE__*/React.createElement("div", {
16387
+ className: "col-lg-12 p-0 d-flex justify-content-start"
16388
+ }, /*#__PURE__*/React.createElement("div", {
16389
+ "class": "row m-0 w-100"
16390
+ }, variantoptions.map(function (variantitem, variantindex) {
16391
+ return /*#__PURE__*/React.createElement("div", {
16392
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
16393
+ }, /*#__PURE__*/React.createElement("p", {
16394
+ className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 font-13 '
16395
+ }, (variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier) != null ? variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier : variantitem === null || variantitem === void 0 ? void 0 : variantitem.optionvalue));
16396
+ }))), /*#__PURE__*/React.createElement("div", {
16397
+ className: "col-lg-12 p-0 d-flex justify-content-start"
16398
+ }, /*#__PURE__*/React.createElement("p", {
16399
+ className: "m-0 p-0 font-weight-500"
16400
+ }, lang.qty, ": ", item.quantity)))), /*#__PURE__*/React.createElement("div", {
16401
+ className: "col-4 d-flex text-end"
16402
+ }, /*#__PURE__*/React.createElement("p", {
16403
+ "class": "m-0 p-0 font-weight-500 mb-auto"
16404
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat9 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat9 === void 0 || (_lastOrderinfoObj$dat9 = _lastOrderinfoObj$dat9.orderinfo) === null || _lastOrderinfoObj$dat9 === void 0 ? void 0 : _lastOrderinfoObj$dat9.currencyname_en : '', " ", item.finalprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat10 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat10 === void 0 || (_lastOrderinfoObj$dat10 = _lastOrderinfoObj$dat10.orderinfo) === null || _lastOrderinfoObj$dat10 === void 0 ? void 0 : _lastOrderinfoObj$dat10.currencyname_ar : '')), /*#__PURE__*/React.createElement("div", {
16405
+ "class": "col-12 my-2"
16406
+ }, /*#__PURE__*/React.createElement("div", {
16407
+ style: {
16408
+ width: '100%',
16409
+ height: 1,
16410
+ background: '#eee'
16411
+ }
16412
+ }))));
16413
+ }))), /*#__PURE__*/React.createElement("div", {
16414
+ "class": "col-lg-12 p-0 mt-5",
16415
+ style: {
16416
+ fontSize: 16
16417
+ }
16418
+ }, /*#__PURE__*/React.createElement("div", {
16419
+ className: "row m-0 w-100 font-weight-600"
16420
+ }, /*#__PURE__*/React.createElement("div", {
16421
+ "class": "col-6 text-start"
16422
+ }, /*#__PURE__*/React.createElement("p", {
16423
+ className: "m-0 p-0"
16424
+ }, langdetect == 'en' ? 'Sub total' : 'الاجمالي')), /*#__PURE__*/React.createElement("div", {
16425
+ "class": "col-6 text-end"
16426
+ }, /*#__PURE__*/React.createElement("p", {
16427
+ className: "m-0 p-0 font-weight-500"
16428
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat11 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat11 === void 0 || (_lastOrderinfoObj$dat11 = _lastOrderinfoObj$dat11.orderinfo) === null || _lastOrderinfoObj$dat11 === void 0 ? void 0 : _lastOrderinfoObj$dat11.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat12 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat12 === void 0 ? void 0 : _lastOrderinfoObj$dat12.totalitemsprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat13 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat13 === void 0 || (_lastOrderinfoObj$dat13 = _lastOrderinfoObj$dat13.orderinfo) === null || _lastOrderinfoObj$dat13 === void 0 ? void 0 : _lastOrderinfoObj$dat13.currencyname_ar : '')))), /*#__PURE__*/React.createElement("div", {
16429
+ "class": "col-lg-12 p-0 mt-1",
16430
+ style: {
16431
+ fontSize: 16
16432
+ }
16433
+ }, /*#__PURE__*/React.createElement("div", {
16434
+ className: "row m-0 w-100 font-weight-600"
16435
+ }, /*#__PURE__*/React.createElement("div", {
16436
+ "class": "col-6 text-start"
16437
+ }, /*#__PURE__*/React.createElement("p", {
16438
+ className: "m-0 p-0"
16439
+ }, langdetect == 'en' ? 'Shipping' : 'الشحن')), /*#__PURE__*/React.createElement("div", {
16440
+ "class": "col-6 text-end"
16441
+ }, /*#__PURE__*/React.createElement("p", {
16442
+ className: "m-0 p-0 font-weight-500"
16443
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat14 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat14 === void 0 || (_lastOrderinfoObj$dat14 = _lastOrderinfoObj$dat14.orderinfo) === null || _lastOrderinfoObj$dat14 === void 0 ? void 0 : _lastOrderinfoObj$dat14.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat15 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat15 === void 0 ? void 0 : _lastOrderinfoObj$dat15.ordershippingfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat16 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat16 === void 0 || (_lastOrderinfoObj$dat16 = _lastOrderinfoObj$dat16.orderinfo) === null || _lastOrderinfoObj$dat16 === void 0 ? void 0 : _lastOrderinfoObj$dat16.currencyname_ar : '')))), /*#__PURE__*/React.createElement("div", {
16444
+ "class": "col-lg-12 p-0 my-3"
16445
+ }, /*#__PURE__*/React.createElement("div", {
16446
+ style: {
16447
+ width: '100%',
16448
+ height: 1,
16449
+ background: '#eee'
16450
+ }
16451
+ })), /*#__PURE__*/React.createElement("div", {
16452
+ "class": "col-lg-12 p-0 mt-1",
16453
+ style: {
16454
+ fontSize: 16
16455
+ }
16456
+ }, /*#__PURE__*/React.createElement("div", {
16457
+ className: "row m-0 w-100 font-weight-600"
16458
+ }, /*#__PURE__*/React.createElement("div", {
16459
+ "class": "col-6 text-start"
16460
+ }, /*#__PURE__*/React.createElement("p", {
16461
+ className: "m-0 p-0"
16462
+ }, langdetect == 'en' ? 'Total' : 'الاجمالي')), /*#__PURE__*/React.createElement("div", {
16463
+ "class": "col-6 text-end"
16464
+ }, /*#__PURE__*/React.createElement("p", {
16465
+ className: "m-0 p-0 font-weight-500"
16466
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat17 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat17 === void 0 || (_lastOrderinfoObj$dat17 = _lastOrderinfoObj$dat17.orderinfo) === null || _lastOrderinfoObj$dat17 === void 0 ? void 0 : _lastOrderinfoObj$dat17.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat18 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat18 === void 0 ? void 0 : _lastOrderinfoObj$dat18.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat19 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat19 === void 0 || (_lastOrderinfoObj$dat19 = _lastOrderinfoObj$dat19.orderinfo) === null || _lastOrderinfoObj$dat19 === void 0 ? void 0 : _lastOrderinfoObj$dat19.currencyname_ar : ''))))))), sectionproperties.cardstyletype != 'Style 2' && /*#__PURE__*/React.createElement("div", {
16467
+ className: "col-lg-12 allcentered flex-column "
16199
16468
  }, /*#__PURE__*/React.createElement(IoBagCheckOutline, {
16200
16469
  size: sectionproperties.icontextfontsize,
16201
16470
  color: sectionproperties.iconcontainercolor,
@@ -16215,7 +16484,7 @@ var OrderSuccess = function OrderSuccess(props) {
16215
16484
  onClick: function onClick() {
16216
16485
  routingcountext(StaticPagesLinksContext.Ordershistory);
16217
16486
  }
16218
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), !IsOrderSuccess && /*#__PURE__*/React.createElement("div", {
16487
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))), !IsOrderSuccess && /*#__PURE__*/React.createElement("div", {
16219
16488
  className: "col-lg-12 allcentered flex-column mt-4 mb-4 ",
16220
16489
  style: {
16221
16490
  minHeight: '50vh',
@@ -68181,7 +68450,7 @@ var ServicesectionCenteredcards = function ServicesectionCenteredcards(props) {
68181
68450
  }
68182
68451
  }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))));
68183
68452
  })), sectionproperties.view_as_slider_vertical == 'Vertical' && /*#__PURE__*/React.createElement("div", {
68184
- "class": "row m-0 w-100"
68453
+ "class": "row m-0 w-100 d-flex justify-content-center"
68185
68454
  }, sectionproperties.flippingcards == 'No' && cardsarray.map(function (cardinfoitem, cardinfoindex) {
68186
68455
  var _authdetailsContext$i3, _authdetailsContext$i4;
68187
68456
  return /*#__PURE__*/React.createElement("div", {
package/dist/index.umd.js CHANGED
@@ -11465,13 +11465,13 @@
11465
11465
  className: "col-lg-12 p-0 d-flex justify-content-end"
11466
11466
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11467
11467
  className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
11468
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11468
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), item.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
11469
11469
  className: "row m-0 w-100 d-flex flex-column justify-content-end"
11470
11470
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11471
11471
  className: "col-lg-12 p-0 d-flex justify-content-end"
11472
11472
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11473
11473
  className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
11474
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
11474
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', sectionproperties.removedecimals == 'Without Decimals' ? parseFloat(Number(item.finalprice).toFixed(2)) : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma' ? Math.floor(item.finalprice).toLocaleString() : parseFloat(item.finalprice).toFixed(2), ' ', " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
11475
11475
  className: "col-lg-12 p-0 d-flex justify-content-end"
11476
11476
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11477
11477
  className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-left '
@@ -15939,32 +15939,44 @@
15939
15939
  function ownKeys$2h(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; }
15940
15940
  function _objectSpread$2h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2h(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15941
15941
  var OrderSuccess = function OrderSuccess(props) {
15942
- var _props$actions2;
15943
- props.actions.lang;
15942
+ var _props$actions2, _logoarrayofobjects$, _logoarrayofobjects$2, _lastOrderinfoObj$dat, _lastOrderinfoObj$dat2, _lastOrderinfoObj$dat3, _lastOrderinfoObj$dat4, _lastOrderinfoObj$dat5, _lastOrderinfoObj$dat6, _lastOrderinfoObj$dat7, _lastOrderinfoObj$dat8, _lastOrderinfoObj$dat11, _lastOrderinfoObj$dat12, _lastOrderinfoObj$dat13, _lastOrderinfoObj$dat14, _lastOrderinfoObj$dat15, _lastOrderinfoObj$dat16, _lastOrderinfoObj$dat17, _lastOrderinfoObj$dat18, _lastOrderinfoObj$dat19;
15943
+ var lang = props.actions.lang;
15944
15944
  var langdetect = props.actions.langdetect;
15945
15945
  var routingcountext = props.actions.routingcountext;
15946
15946
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
15947
15947
  var templatepropcontext = props.actions.templatepropcontext;
15948
15948
  var uselocation = props.actions.uselocation;
15949
- props.actions.ikimagecredcontext;
15949
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
15950
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
15950
15951
  var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
15951
- var _useState = React.useState(false),
15952
+ props.actions.fetchorderhistoryQueryContext;
15953
+ var _useState = React.useState(null),
15952
15954
  _useState2 = _slicedToArray__default["default"](_useState, 2),
15953
- IsOrderSuccess = _useState2[0],
15954
- setIsOrderSuccess = _useState2[1];
15955
- var _useState3 = React.useState(''),
15955
+ lastOrderinfoObj = _useState2[0],
15956
+ setlastOrderinfoObj = _useState2[1];
15957
+ var _useState3 = React.useState(false),
15956
15958
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
15957
- ReasonFail = _useState4[0],
15958
- setReasonFail = _useState4[1];
15959
+ IsOrderSuccess = _useState4[0],
15960
+ setIsOrderSuccess = _useState4[1];
15959
15961
  var _useState5 = React.useState(''),
15960
15962
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
15961
- sectionproperties = _useState6[0],
15962
- setsectionproperties = _useState6[1];
15963
+ ReasonFail = _useState6[0],
15964
+ setReasonFail = _useState6[1];
15963
15965
  var _useState7 = React.useState(''),
15964
- _useState8 = _slicedToArray__default["default"](_useState7, 2);
15965
- _useState8[0];
15966
- var setCurrentPageId = _useState8[1];
15966
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
15967
+ sectionproperties = _useState8[0],
15968
+ setsectionproperties = _useState8[1];
15969
+ var _useState9 = React.useState(''),
15970
+ _useState10 = _slicedToArray__default["default"](_useState9, 2);
15971
+ _useState10[0];
15972
+ var setCurrentPageId = _useState10[1];
15967
15973
  var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
15974
+ var _useState11 = React.useState([]),
15975
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
15976
+ logoarrayofobjects = _useState12[0],
15977
+ setlogoarrayofobjects = _useState12[1];
15978
+ var templateproperties_context = props.actions.templateproperties_context;
15979
+
15968
15980
  // useEffect(() => {
15969
15981
  // const query = new URLSearchParams(uselocation.search);
15970
15982
  // var issuccess = query.get('status');
@@ -16018,6 +16030,40 @@
16018
16030
  });
16019
16031
  setsectionproperties(_objectSpread$2h({}, secpropobj));
16020
16032
  }, [props === null || props === void 0 || (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
16033
+ React.useEffect(function () {
16034
+ var query = new URLSearchParams(uselocation.search);
16035
+ var order_id = query.get('order_id');
16036
+ if (order_id != undefined && order_id != null && order_id.length != 0) {
16037
+ GeneralAPIMutationContext.mutate({
16038
+ endpointurl: '/p_fetchorderinformation',
16039
+ orderid: order_id,
16040
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
16041
+ var _data$data;
16042
+ var templastorderobj = _objectSpread$2h({}, lastOrderinfoObj);
16043
+ if ((data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.data) != null) {
16044
+ templastorderobj = data.data;
16045
+ } else {
16046
+ templastorderobj = {
16047
+ status: false
16048
+ };
16049
+ }
16050
+ setlastOrderinfoObj(_objectSpread$2h({}, templastorderobj));
16051
+ }
16052
+ });
16053
+ } else {
16054
+ setlastOrderinfoObj({
16055
+ status: false
16056
+ });
16057
+ }
16058
+ }, []);
16059
+ React.useEffect(function () {
16060
+ if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
16061
+ var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
16062
+ if (Array.isArray(logoarrayofobjectsparsed)) {
16063
+ setlogoarrayofobjects(_toConsumableArray__default["default"](logoarrayofobjectsparsed));
16064
+ }
16065
+ }
16066
+ }, [templateproperties_context]);
16021
16067
  var authdetailsContext = props.actions.authdetailsContext;
16022
16068
  var ordersuccessstyle = {
16023
16069
  ordersuccessbtn: glamor.css({
@@ -16040,13 +16086,13 @@
16040
16086
  }
16041
16087
  }),
16042
16088
  containerstyle: glamor.css({
16043
- paddingLeft: sectionproperties.paddingLeft + 'px',
16044
- paddingRight: sectionproperties.paddingRight + 'px',
16045
- paddingTop: sectionproperties.marginTop + 'px',
16046
- paddingBottom: sectionproperties.marginBottom + 'px',
16089
+ paddingLeft: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.paddingLeft + 'px' : 0,
16090
+ paddingRight: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.paddingRight + 'px' : 0,
16091
+ paddingTop: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginTop + 'px' : 0,
16092
+ paddingBottom: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginBottom + 'px' : 0,
16047
16093
  background: sectionproperties.outerbgcolor,
16048
16094
  '@media (max-width: 800px)': {
16049
- paddingTop: sectionproperties.marginTopResp + 'px'
16095
+ paddingTop: sectionproperties.cardstyletype != 'Style 2' ? sectionproperties.marginTopResp + 'px' : 0
16050
16096
  }
16051
16097
  })
16052
16098
  };
@@ -16054,12 +16100,235 @@
16054
16100
  className: ordersuccessstyle.containerstyle + ' row ml-0 mr-0 w-100 justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2 ',
16055
16101
  style: {}
16056
16102
  }, IsOrderSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
16057
- className: "col-lg-12 allcentered flex-column d-none mt-4 mb-4 ",
16103
+ // className="col-lg-12 allcentered flex-column d-none "
16104
+ className: sectionproperties.cardstyletype != 'Style 2' ? 'col-lg-12 allcentered flex-column d-none mt-4 mb-4 ' : 'col-lg-12 allcentered flex-column',
16058
16105
  style: {
16059
- minHeight: '50vh',
16106
+ minHeight: sectionproperties.cardstyletype != 'Style 2' ? '50vh' : '',
16060
16107
  background: sectionproperties.backgroundColor,
16061
- borderRadius: '10px'
16108
+ borderRadius: sectionproperties.cardstyletype != 'Style 2' ? '10px' : 0,
16109
+ color: '#000'
16110
+ }
16111
+ }, lastOrderinfoObj != null && lastOrderinfoObj.status && sectionproperties.cardstyletype == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
16112
+ "class": "row m-0 w-100 px-5 py-5 px-1025-1 px-md-0",
16113
+ style: {
16114
+ paddingLeft: 200,
16115
+ paddingRight: 200
16116
+ }
16117
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16118
+ "class": "col-12 p-0 text-start mb-4"
16119
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16120
+ "class": ' text-start',
16121
+ style: {
16122
+ width: '15%'
16123
+ }
16124
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
16125
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
16126
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
16127
+ path: langdetect == 'en' ? (_logoarrayofobjects$ = logoarrayofobjects[0]) === null || _logoarrayofobjects$ === void 0 ? void 0 : _logoarrayofobjects$.englishlogo : (_logoarrayofobjects$2 = logoarrayofobjects[0]) === null || _logoarrayofobjects$2 === void 0 ? void 0 : _logoarrayofobjects$2.arabiclogo,
16128
+ style: {
16129
+ maxWidth: '100%',
16130
+ maxHeight: '100%'
16131
+ }
16132
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16133
+ "class": "col-6 col-md-12 text-start border-md-none",
16134
+ style: {
16135
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : '',
16136
+ borderLeft: langdetect == 'ar' ? '1px solid #ccc' : ''
16137
+ }
16138
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16139
+ "class": "row m-0 w-100"
16140
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16141
+ "class": "col-12 p-0 text-start mb-1 font-weight-500",
16142
+ style: {
16143
+ fontSize: 15
16144
+ }
16145
+ }, "Order #", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat === void 0 || (_lastOrderinfoObj$dat = _lastOrderinfoObj$dat.orderinfo) === null || _lastOrderinfoObj$dat === void 0 ? void 0 : _lastOrderinfoObj$dat.orderid), /*#__PURE__*/React__default["default"].createElement("div", {
16146
+ "class": "col-12 p-0 text-start mb-4 font-weight-500"
16147
+ }, langdetect == 'en' ? 'Thank you,' : 'شكرا،', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat2 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat2 === void 0 || (_lastOrderinfoObj$dat2 = _lastOrderinfoObj$dat2.orderinfo) === null || _lastOrderinfoObj$dat2 === void 0 ? void 0 : _lastOrderinfoObj$dat2.customername), /*#__PURE__*/React__default["default"].createElement("div", {
16148
+ "class": "col-12 p-0 text-start font-weight-500"
16149
+ }, langdetect == 'en' ? 'Your order has been placed.' : 'الطلب تم بنجاح'), /*#__PURE__*/React__default["default"].createElement("div", {
16150
+ "class": "col-12 p-0 text-start font-weight-500"
16151
+ }, langdetect == 'en' ? 'You’ll receive a confirmation email with your order details shortly.' : 'ستتلقى رسالة تأكيد عبر البريد الإلكتروني تحتوي على تفاصيل طلبك قريبًا.'), /*#__PURE__*/React__default["default"].createElement("div", {
16152
+ "class": "col-lg-12 p-0 mt-4",
16153
+ style: {
16154
+ border: '1px solid #ccc',
16155
+ borderRadius: 10
16156
+ }
16157
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16158
+ "class": "row m-0 w-100 px-3 py-4"
16159
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16160
+ "class": "col-12 text-start mb-3"
16161
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16162
+ "class": "m-0",
16163
+ style: {
16164
+ fontSize: 16,
16165
+ fontWeight: 600
16166
+ }
16167
+ }, langdetect == 'en' ? 'Order details' : 'تفاصيل الطلب')), /*#__PURE__*/React__default["default"].createElement("div", {
16168
+ "class": "col-6 col-md-12"
16169
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16170
+ "class": "row m-0 w-100"
16171
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16172
+ "class": "col-12 p-0 text-start mb-2"
16173
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16174
+ "class": "m-0",
16175
+ style: {
16176
+ fontSize: 15,
16177
+ fontWeight: 600
16062
16178
  }
16179
+ }, langdetect == 'en' ? 'Contact Information' : 'بياتات العميل')), /*#__PURE__*/React__default["default"].createElement("div", {
16180
+ "class": "col-12 p-0 text-start"
16181
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat3 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat3 === void 0 || (_lastOrderinfoObj$dat3 = _lastOrderinfoObj$dat3.orderinfo) === null || _lastOrderinfoObj$dat3 === void 0 ? void 0 : _lastOrderinfoObj$dat3.customeremail)), /*#__PURE__*/React__default["default"].createElement("div", {
16182
+ "class": "col-12 p-0 text-start"
16183
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat4 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat4 === void 0 || (_lastOrderinfoObj$dat4 = _lastOrderinfoObj$dat4.orderinfo) === null || _lastOrderinfoObj$dat4 === void 0 ? void 0 : _lastOrderinfoObj$dat4.customerphonenumber)), /*#__PURE__*/React__default["default"].createElement("div", {
16184
+ "class": "col-12 p-0 text-start mb-2"
16185
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16186
+ style: {
16187
+ fontSize: 15,
16188
+ fontWeight: 600
16189
+ },
16190
+ "class": "m-0"
16191
+ }, langdetect == 'en' ? 'Shipping address' : 'عنوان الشحن')), /*#__PURE__*/React__default["default"].createElement("div", {
16192
+ "class": "col-12 p-0 text-start"
16193
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat5 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat5 === void 0 || (_lastOrderinfoObj$dat5 = _lastOrderinfoObj$dat5.orderinfo) === null || _lastOrderinfoObj$dat5 === void 0 ? void 0 : _lastOrderinfoObj$dat5.address)))), /*#__PURE__*/React__default["default"].createElement("div", {
16194
+ "class": "col-6 col-md-12"
16195
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16196
+ "class": "col-12 p-0 text-start mb-2"
16197
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16198
+ style: {
16199
+ fontSize: 15,
16200
+ fontWeight: 600
16201
+ },
16202
+ "class": "m-0"
16203
+ }, langdetect == 'en' ? 'Payment method' : 'طريقة الدفع')), /*#__PURE__*/React__default["default"].createElement("div", {
16204
+ "class": "col-12 p-0 text-start"
16205
+ }, /*#__PURE__*/React__default["default"].createElement("p", null, (lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat6 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat6 === void 0 || (_lastOrderinfoObj$dat6 = _lastOrderinfoObj$dat6.orderinfo) === null || _lastOrderinfoObj$dat6 === void 0 ? void 0 : _lastOrderinfoObj$dat6.paymentmethod) == 'cod' ? langdetect == 'en' ? 'Cash on delivery' : 'الدفع عند الاستلام' : lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat7 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat7 === void 0 || (_lastOrderinfoObj$dat7 = _lastOrderinfoObj$dat7.orderinfo) === null || _lastOrderinfoObj$dat7 === void 0 ? void 0 : _lastOrderinfoObj$dat7.paymentmethod))))))), /*#__PURE__*/React__default["default"].createElement("div", {
16206
+ "class": "col-6 col-md-12 p-md-0"
16207
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16208
+ "class": "row m-0 w-100 mb-auto mt-md-4"
16209
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16210
+ "class": "col-lg-12 text-start mb-3"
16211
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16212
+ "class": "m-0 p-0",
16213
+ style: {
16214
+ fontSize: 20,
16215
+ fontWeight: 600
16216
+ }
16217
+ }, langdetect == 'en' ? 'Items Ordered' : 'المنتجات')), /*#__PURE__*/React__default["default"].createElement("div", {
16218
+ "class": "col-12 p-0"
16219
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16220
+ "class": "row m-0 w-100",
16221
+ style: {
16222
+ maxHeight: '40vh',
16223
+ overflowY: 'scroll'
16224
+ }
16225
+ }, lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat8 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat8 === void 0 ? void 0 : _lastOrderinfoObj$dat8.orderitems.map(function (item, index) {
16226
+ var _lastOrderinfoObj$dat9, _lastOrderinfoObj$dat10;
16227
+ var variantoptions = [];
16228
+ if (item.isvariant == 1) {
16229
+ var decodevariantoptions = JSON.parse(item.variantoptions);
16230
+ variantoptions = decodevariantoptions;
16231
+ }
16232
+ return /*#__PURE__*/React__default["default"].createElement("div", {
16233
+ className: "col-lg-12 p-0"
16234
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16235
+ className: "row m-0 w-100 d-flex",
16236
+ style: {
16237
+ fontSize: 15
16238
+ }
16239
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16240
+ className: "col-8 d-flex"
16241
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16242
+ className: "row m-0 w-100"
16243
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16244
+ "class": "col-lg-12 p-0 text-start"
16245
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16246
+ className: ' m-0 p-0 ',
16247
+ style: {
16248
+ textAlign: langdetect == 'en' ? 'left' : 'right'
16249
+ }
16250
+ }, langdetect == 'en' ? item.productname_en : item.productname_ar)), (item === null || item === void 0 ? void 0 : item.isvariant) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
16251
+ className: "col-lg-12 p-0 d-flex justify-content-start"
16252
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16253
+ "class": "row m-0 w-100"
16254
+ }, variantoptions.map(function (variantitem, variantindex) {
16255
+ return /*#__PURE__*/React__default["default"].createElement("div", {
16256
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
16257
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16258
+ className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 font-13 '
16259
+ }, (variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier) != null ? variantitem === null || variantitem === void 0 ? void 0 : variantitem.value_identifier : variantitem === null || variantitem === void 0 ? void 0 : variantitem.optionvalue));
16260
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16261
+ className: "col-lg-12 p-0 d-flex justify-content-start"
16262
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16263
+ className: "m-0 p-0 font-weight-500"
16264
+ }, lang.qty, ": ", item.quantity)))), /*#__PURE__*/React__default["default"].createElement("div", {
16265
+ className: "col-4 d-flex text-end"
16266
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16267
+ "class": "m-0 p-0 font-weight-500 mb-auto"
16268
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat9 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat9 === void 0 || (_lastOrderinfoObj$dat9 = _lastOrderinfoObj$dat9.orderinfo) === null || _lastOrderinfoObj$dat9 === void 0 ? void 0 : _lastOrderinfoObj$dat9.currencyname_en : '', " ", item.finalprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat10 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat10 === void 0 || (_lastOrderinfoObj$dat10 = _lastOrderinfoObj$dat10.orderinfo) === null || _lastOrderinfoObj$dat10 === void 0 ? void 0 : _lastOrderinfoObj$dat10.currencyname_ar : '')), /*#__PURE__*/React__default["default"].createElement("div", {
16269
+ "class": "col-12 my-2"
16270
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16271
+ style: {
16272
+ width: '100%',
16273
+ height: 1,
16274
+ background: '#eee'
16275
+ }
16276
+ }))));
16277
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
16278
+ "class": "col-lg-12 p-0 mt-5",
16279
+ style: {
16280
+ fontSize: 16
16281
+ }
16282
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16283
+ className: "row m-0 w-100 font-weight-600"
16284
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16285
+ "class": "col-6 text-start"
16286
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16287
+ className: "m-0 p-0"
16288
+ }, langdetect == 'en' ? 'Sub total' : 'الاجمالي')), /*#__PURE__*/React__default["default"].createElement("div", {
16289
+ "class": "col-6 text-end"
16290
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16291
+ className: "m-0 p-0 font-weight-500"
16292
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat11 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat11 === void 0 || (_lastOrderinfoObj$dat11 = _lastOrderinfoObj$dat11.orderinfo) === null || _lastOrderinfoObj$dat11 === void 0 ? void 0 : _lastOrderinfoObj$dat11.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat12 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat12 === void 0 ? void 0 : _lastOrderinfoObj$dat12.totalitemsprice, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat13 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat13 === void 0 || (_lastOrderinfoObj$dat13 = _lastOrderinfoObj$dat13.orderinfo) === null || _lastOrderinfoObj$dat13 === void 0 ? void 0 : _lastOrderinfoObj$dat13.currencyname_ar : '')))), /*#__PURE__*/React__default["default"].createElement("div", {
16293
+ "class": "col-lg-12 p-0 mt-1",
16294
+ style: {
16295
+ fontSize: 16
16296
+ }
16297
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16298
+ className: "row m-0 w-100 font-weight-600"
16299
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16300
+ "class": "col-6 text-start"
16301
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16302
+ className: "m-0 p-0"
16303
+ }, langdetect == 'en' ? 'Shipping' : 'الشحن')), /*#__PURE__*/React__default["default"].createElement("div", {
16304
+ "class": "col-6 text-end"
16305
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16306
+ className: "m-0 p-0 font-weight-500"
16307
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat14 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat14 === void 0 || (_lastOrderinfoObj$dat14 = _lastOrderinfoObj$dat14.orderinfo) === null || _lastOrderinfoObj$dat14 === void 0 ? void 0 : _lastOrderinfoObj$dat14.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat15 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat15 === void 0 ? void 0 : _lastOrderinfoObj$dat15.ordershippingfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat16 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat16 === void 0 || (_lastOrderinfoObj$dat16 = _lastOrderinfoObj$dat16.orderinfo) === null || _lastOrderinfoObj$dat16 === void 0 ? void 0 : _lastOrderinfoObj$dat16.currencyname_ar : '')))), /*#__PURE__*/React__default["default"].createElement("div", {
16308
+ "class": "col-lg-12 p-0 my-3"
16309
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16310
+ style: {
16311
+ width: '100%',
16312
+ height: 1,
16313
+ background: '#eee'
16314
+ }
16315
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
16316
+ "class": "col-lg-12 p-0 mt-1",
16317
+ style: {
16318
+ fontSize: 16
16319
+ }
16320
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16321
+ className: "row m-0 w-100 font-weight-600"
16322
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
16323
+ "class": "col-6 text-start"
16324
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16325
+ className: "m-0 p-0"
16326
+ }, langdetect == 'en' ? 'Total' : 'الاجمالي')), /*#__PURE__*/React__default["default"].createElement("div", {
16327
+ "class": "col-6 text-end"
16328
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
16329
+ className: "m-0 p-0 font-weight-500"
16330
+ }, langdetect == 'en' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat17 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat17 === void 0 || (_lastOrderinfoObj$dat17 = _lastOrderinfoObj$dat17.orderinfo) === null || _lastOrderinfoObj$dat17 === void 0 ? void 0 : _lastOrderinfoObj$dat17.currencyname_en : '', " ", lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat18 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat18 === void 0 ? void 0 : _lastOrderinfoObj$dat18.totalorderfees, ' ', langdetect == 'ar' ? lastOrderinfoObj === null || lastOrderinfoObj === void 0 || (_lastOrderinfoObj$dat19 = lastOrderinfoObj.data) === null || _lastOrderinfoObj$dat19 === void 0 || (_lastOrderinfoObj$dat19 = _lastOrderinfoObj$dat19.orderinfo) === null || _lastOrderinfoObj$dat19 === void 0 ? void 0 : _lastOrderinfoObj$dat19.currencyname_ar : ''))))))), sectionproperties.cardstyletype != 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
16331
+ className: "col-lg-12 allcentered flex-column "
16063
16332
  }, /*#__PURE__*/React__default["default"].createElement(IoBagCheckOutline.IoBagCheckOutline, {
16064
16333
  size: sectionproperties.icontextfontsize,
16065
16334
  color: sectionproperties.iconcontainercolor,
@@ -16079,7 +16348,7 @@
16079
16348
  onClick: function onClick() {
16080
16349
  routingcountext(StaticPagesLinksContext.Ordershistory);
16081
16350
  }
16082
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), !IsOrderSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
16351
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))), !IsOrderSuccess && /*#__PURE__*/React__default["default"].createElement("div", {
16083
16352
  className: "col-lg-12 allcentered flex-column mt-4 mb-4 ",
16084
16353
  style: {
16085
16354
  minHeight: '50vh',
@@ -68045,7 +68314,7 @@
68045
68314
  }
68046
68315
  }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar))));
68047
68316
  })), sectionproperties.view_as_slider_vertical == 'Vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
68048
- "class": "row m-0 w-100"
68317
+ "class": "row m-0 w-100 d-flex justify-content-center"
68049
68318
  }, sectionproperties.flippingcards == 'No' && cardsarray.map(function (cardinfoitem, cardinfoindex) {
68050
68319
  var _authdetailsContext$i3, _authdetailsContext$i4;
68051
68320
  return /*#__PURE__*/React__default["default"].createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.2.758",
3
+ "version": "0.2.760",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",