@bjsdistribution/dms-client-return 0.0.73 → 0.0.75

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.
Files changed (24) hide show
  1. package/dist/components/order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn.d.ts +1 -1
  2. package/dist/dms-client-return.cjs.development.js +249 -137
  3. package/dist/dms-client-return.cjs.development.js.map +1 -1
  4. package/dist/dms-client-return.cjs.production.min.js +1 -1
  5. package/dist/dms-client-return.cjs.production.min.js.map +1 -1
  6. package/dist/dms-client-return.esm.js +249 -137
  7. package/dist/dms-client-return.esm.js.map +1 -1
  8. package/package.json +2 -2
  9. package/src/components/order-daily-overview/filters/Filters.tsx +42 -42
  10. package/src/components/order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn.tsx +5 -4
  11. package/src/components/order-view/fakedata.ts +2 -0
  12. package/src/components/order-view/index.tsx +3 -0
  13. package/src/components/order-view/notes/index.tsx +25 -16
  14. package/src/components/order-view/notes/logs/index.tsx +0 -3
  15. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactEmail.tsx +5 -15
  16. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.tsx +45 -16
  17. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.tsx +42 -8
  18. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactWork.tsx +41 -19
  19. package/src/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.tsx +5 -1
  20. package/src/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.tsx +5 -1
  21. package/src/components/order-view/order-details/expanded-content/customer-section/location-info/What3words.tsx +12 -5
  22. package/src/components/order-view/order-details/expanded-content/footer/index.tsx +8 -14
  23. package/src/components/order-view/order-details/expanded-content/orders-section/DeliveryDate.tsx +9 -1
  24. package/src/components/order-view/order-details/expanded-content/services-section/TimedService.tsx +13 -1
@@ -58,6 +58,9 @@ function _extends() {
58
58
  return n;
59
59
  }, _extends.apply(null, arguments);
60
60
  }
61
+ function _objectDestructuringEmpty(t) {
62
+ if (null == t) throw new TypeError("Cannot destructure " + t);
63
+ }
61
64
  function _objectWithoutPropertiesLoose(r, e) {
62
65
  if (null == r) return {};
63
66
  var t = {};
@@ -583,11 +586,6 @@ var PrintOptionTOggle = /*#__PURE__*/jotai.atom(null);
583
586
  var usePrintOptionTOggle = function usePrintOptionTOggle() {
584
587
  return jotai.useAtom(PrintOptionTOggle);
585
588
  };
586
- // Overview Table
587
- var atomRoutesTable = /*#__PURE__*/jotai.atom([]);
588
- var useRoutesTable = function useRoutesTable() {
589
- return jotai.useAtom(atomRoutesTable);
590
- };
591
589
  //this
592
590
  var loading = /*#__PURE__*/jotai.atom(false);
593
591
  var useStatsLoading = function useStatsLoading() {
@@ -644,10 +642,6 @@ var atomItemsPerOverviewPage = /*#__PURE__*/jotai.atom(50);
644
642
  var useItemsPerOverviewPage = function useItemsPerOverviewPage() {
645
643
  return jotai.useAtom(atomItemsPerOverviewPage);
646
644
  };
647
- var countStatus = /*#__PURE__*/jotai.atom([]);
648
- var useCountData = function useCountData() {
649
- return jotai.useAtom(countStatus);
650
- };
651
645
  //
652
646
  // ROUTE DETAILS PAGE STATES ->
653
647
  // const orderId = atom<number | undefined>(undefined);
@@ -1575,9 +1569,9 @@ var optionsForReturnPrint = [{
1575
1569
  var _templateObject$4, _templateObject2$2;
1576
1570
  var options = optionsForReturnPrint;
1577
1571
  var PrintDropDownReturn = function PrintDropDownReturn(_ref) {
1578
- var legacyProductId = _ref.legacyProductId;
1572
+ _objectDestructuringEmpty(_ref);
1579
1573
  var downloadFiles = function downloadFiles() {
1580
- var url = "https://us.toolbox.bjshomedelivery.com/offload/return_label?gsit_products_id=" + legacyProductId;
1574
+ var url = "";
1581
1575
  window.open(url, '_blank'); // Opens the URL in a new tab
1582
1576
  };
1583
1577
  return React__default.createElement(OptionsList, null, options == null ? void 0 : options.map(function (item, index) {
@@ -4041,10 +4035,11 @@ function Latitude() {
4041
4035
  placeholder: "Latitude",
4042
4036
  onKeyDown: handleKeyDown,
4043
4037
  value: (orderRecipient == null ? void 0 : orderRecipient.latitude) || '',
4044
- onChange: onChange
4038
+ onChange: onChange,
4039
+ readOnly: true
4045
4040
  }));
4046
4041
  }
4047
- var CustomInput = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject$n || (_templateObject$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 25px;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4042
+ var CustomInput = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject$n || (_templateObject$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n opacity: 0.8;\n background-color: #f4f4f4;\n pointer-events: none;\n"])));
4048
4043
  var Container$a = /*#__PURE__*/styled__default.div(_templateObject2$h || (_templateObject2$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4049
4044
 
4050
4045
  var _templateObject$o, _templateObject2$i;
@@ -4075,10 +4070,11 @@ function Longitude() {
4075
4070
  placeholder: "Longitude",
4076
4071
  onKeyDown: handleKeyDown,
4077
4072
  value: (orderRecipient == null ? void 0 : orderRecipient.longitude) || '',
4078
- onChange: onChange
4073
+ onChange: onChange,
4074
+ readOnly: true
4079
4075
  }));
4080
4076
  }
4081
- var CustomInput$1 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject$o || (_templateObject$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 25px;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4077
+ var CustomInput$1 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject$o || (_templateObject$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n opacity: 0.8;\n background-color: #f4f4f4;\n pointer-events: none;\n"])));
4082
4078
  var Container$b = /*#__PURE__*/styled__default.div(_templateObject2$i || (_templateObject2$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4083
4079
 
4084
4080
  var _templateObject$p, _templateObject2$j, _templateObject3$7, _templateObject4$4, _templateObject5$3;
@@ -4106,12 +4102,20 @@ function What3words() {
4106
4102
  });
4107
4103
  };
4108
4104
  var validateInput = function validateInput(value) {
4109
- var isValid = w3wRegex.test(value);
4110
- setErrors(function (prev) {
4111
- return _extends({}, prev, {
4112
- w3wError: isValid ? '' : 'Please enter a valid input (word.word.word)'
4105
+ if (value.trim()) {
4106
+ var isValid = w3wRegex.test(value);
4107
+ setErrors(function (prev) {
4108
+ return _extends({}, prev, {
4109
+ w3wError: isValid ? '' : 'Please enter a valid input (word.word.word)'
4110
+ });
4113
4111
  });
4114
- });
4112
+ } else {
4113
+ setErrors(function (prev) {
4114
+ return _extends({}, prev, {
4115
+ w3wError: ''
4116
+ });
4117
+ });
4118
+ }
4115
4119
  };
4116
4120
  return React__default.createElement(Container$c, null, React__default.createElement(dmsComponentLibrary.Label, {
4117
4121
  label: "What3Words Address",
@@ -4138,18 +4142,18 @@ var RightColumn$1 = /*#__PURE__*/styled__default.div(_templateObject$q || (_temp
4138
4142
  var Right = /*#__PURE__*/styled__default.div(_templateObject2$k || (_templateObject2$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
4139
4143
  var Container$d = /*#__PURE__*/styled__default.div(_templateObject3$8 || (_templateObject3$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
4140
4144
 
4141
- var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5;
4142
- // import CallCustomer from './CallCustomer';
4145
+ var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5, _templateObject5$4;
4143
4146
  // const LANDLINE_REGEX = /^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/;
4144
4147
  function ContactHome() {
4145
- var _orderRecipient$conta;
4148
+ var _useAtom = jotai.useAtom(errorAtom),
4149
+ errors = _useAtom[0],
4150
+ setErrors = _useAtom[1];
4146
4151
  // Show call icons only if number is valid
4147
4152
  // show copy icon if there is input value
4148
4153
  var _useOrderDetails = useOrderDetails(),
4149
4154
  orderDetails = _useOrderDetails[0],
4150
4155
  setOrderDetails = _useOrderDetails[1];
4151
4156
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4152
- var showCopyIcon = (orderRecipient == null ? void 0 : orderRecipient.contact_home) !== undefined && (orderRecipient == null ? void 0 : orderRecipient.contact_home) !== null && (orderRecipient == null || (_orderRecipient$conta = orderRecipient.contact_home) == null ? void 0 : _orderRecipient$conta.length) > 0;
4153
4157
  var onChange = function onChange(e) {
4154
4158
  var val = e.target.value;
4155
4159
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4162,37 +4166,63 @@ function ContactHome() {
4162
4166
  order_recipient: updatedOrderRecipient
4163
4167
  });
4164
4168
  });
4169
+ if (val) {
4170
+ if (val.length < 10) {
4171
+ setErrors(function (prevErrors) {
4172
+ return _extends({}, prevErrors, {
4173
+ homeContactError: 'Phone number must be at least 10 digits.'
4174
+ });
4175
+ });
4176
+ } else if (val.length > 11) {
4177
+ setErrors(function (prevErrors) {
4178
+ return _extends({}, prevErrors, {
4179
+ homeContactError: 'Phone number must not exceed 11 digits.'
4180
+ });
4181
+ });
4182
+ } else {
4183
+ setErrors(function (prevErrors) {
4184
+ return _extends({}, prevErrors, {
4185
+ homeContactError: ''
4186
+ });
4187
+ });
4188
+ }
4189
+ } else {
4190
+ setErrors(function (prevErrors) {
4191
+ return _extends({}, prevErrors, {
4192
+ homeContactError: ''
4193
+ });
4194
+ });
4195
+ }
4165
4196
  };
4166
4197
  return React__default.createElement(MainContainer$1, null, React__default.createElement(Wrapper$7, null, React__default.createElement(dmsComponentLibrary.Label, {
4167
4198
  label: "Contact Home",
4168
4199
  htmlFor: "contact-home"
4169
- }), showCopyIcon && React__default.createElement(CopyText, {
4170
- text: orderRecipient == null ? void 0 : orderRecipient.contact_home
4171
4200
  })), React__default.createElement(InputContainer, null, React__default.createElement(CustomInput$3, {
4172
4201
  name: "contact-home",
4173
4202
  type: "text",
4174
4203
  placeholder: "Home Number",
4175
4204
  onKeyDown: handleKeyDown,
4205
+ minLength: 10,
4206
+ maxLength: 10,
4176
4207
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
4177
4208
  onChange: onChange
4178
- })));
4209
+ })), errors.homeContactError && React__default.createElement(ErrorText$1, null, errors.homeContactError));
4179
4210
  }
4180
4211
  var Wrapper$7 = /*#__PURE__*/styled__default.div(_templateObject$r || (_templateObject$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4181
- var CustomInput$3 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject2$l || (_templateObject2$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 80%;\n border-radius: 25px;\n // @media (max-width: 1024px) {\n // width: 80%;\n // }\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4212
+ var CustomInput$3 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject2$l || (_templateObject2$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 80%;\n // @media (max-width: 1024px) {\n // width: 80%;\n // }\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4182
4213
  var InputContainer = /*#__PURE__*/styled__default.div(_templateObject3$9 || (_templateObject3$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4183
4214
  var MainContainer$1 = /*#__PURE__*/styled__default.div(_templateObject4$5 || (_templateObject4$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4215
+ var ErrorText$1 = /*#__PURE__*/styled__default.span(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4184
4216
 
4185
- var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6;
4186
- // import CallCustomer from './CallCustomer';
4217
+ var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6, _templateObject5$5;
4187
4218
  function ContactWork() {
4188
- var _orderRecipient$conta;
4189
- // Show call icons only if number is valid
4190
- // show copy icon if there is input value
4219
+ var _useAtom = jotai.useAtom(errorAtom),
4220
+ errors = _useAtom[0],
4221
+ setErrors = _useAtom[1];
4191
4222
  var _useOrderDetails = useOrderDetails(),
4192
4223
  orderDetails = _useOrderDetails[0],
4193
4224
  setOrderDetails = _useOrderDetails[1];
4194
4225
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4195
- var showCopyIcon = (orderRecipient == null ? void 0 : orderRecipient.contact_work) !== undefined && (orderRecipient == null ? void 0 : orderRecipient.contact_work) !== null && (orderRecipient == null || (_orderRecipient$conta = orderRecipient.contact_work) == null ? void 0 : _orderRecipient$conta.length) > 0;
4196
4226
  var onChange = function onChange(e) {
4197
4227
  var val = e.target.value;
4198
4228
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4205,25 +4235,54 @@ function ContactWork() {
4205
4235
  order_recipient: updatedOrderRecipient
4206
4236
  });
4207
4237
  });
4238
+ // Validate only if there is a value entered
4239
+ if (val) {
4240
+ if (val.length < 10) {
4241
+ setErrors(function (prevErrors) {
4242
+ return _extends({}, prevErrors, {
4243
+ workCOntanctError: 'Phone number must be at least 10 digits.'
4244
+ });
4245
+ });
4246
+ } else if (val.length > 10) {
4247
+ setErrors(function (prevErrors) {
4248
+ return _extends({}, prevErrors, {
4249
+ workCOntanctError: 'Phone number must not exceed 10 digits.'
4250
+ });
4251
+ });
4252
+ } else {
4253
+ setErrors(function (prevErrors) {
4254
+ return _extends({}, prevErrors, {
4255
+ workCOntanctError: ''
4256
+ });
4257
+ });
4258
+ }
4259
+ } else {
4260
+ setErrors(function (prevErrors) {
4261
+ return _extends({}, prevErrors, {
4262
+ workCOntanctError: ''
4263
+ });
4264
+ });
4265
+ }
4208
4266
  };
4209
4267
  return React__default.createElement(Container$e, null, React__default.createElement(Wrapper$8, null, React__default.createElement(dmsComponentLibrary.Label, {
4210
4268
  label: "Contact Work",
4211
4269
  htmlFor: "contact-work"
4212
- }), showCopyIcon && React__default.createElement(CopyText, {
4213
- text: orderRecipient == null ? void 0 : orderRecipient.contact_work
4214
4270
  })), React__default.createElement(InputContainer$1, null, React__default.createElement(CustomInput$4, {
4215
4271
  name: "contact-work",
4216
4272
  type: "text",
4217
4273
  placeholder: "Work Number",
4218
4274
  onKeyDown: handleKeyDown,
4219
4275
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
4220
- onChange: onChange
4221
- })));
4276
+ onChange: onChange,
4277
+ minLength: 10,
4278
+ maxLength: 10
4279
+ })), errors.workCOntanctError && React__default.createElement(ErrorText$2, null, errors.workCOntanctError));
4222
4280
  }
4223
4281
  var InputContainer$1 = /*#__PURE__*/styled__default.div(_templateObject$s || (_templateObject$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4224
4282
  var Wrapper$8 = /*#__PURE__*/styled__default.div(_templateObject2$m || (_templateObject2$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4225
- var CustomInput$4 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject3$a || (_templateObject3$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 25px;\n width: 100%;\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4283
+ var CustomInput$4 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject3$a || (_templateObject3$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4226
4284
  var Container$e = /*#__PURE__*/styled__default.div(_templateObject4$6 || (_templateObject4$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4285
+ var ErrorText$2 = /*#__PURE__*/styled__default.span(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4227
4286
 
4228
4287
  var _templateObject$t;
4229
4288
  function CallCustomer() {
@@ -4231,10 +4290,13 @@ function CallCustomer() {
4231
4290
  }
4232
4291
  var Container$f = /*#__PURE__*/styled__default.div(_templateObject$t || (_templateObject$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n"])));
4233
4292
 
4234
- var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7;
4293
+ var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7, _templateObject5$6;
4235
4294
  // const MOBILE_REGEX = /^(\+44\s?7\d{3}|\(?07\d{3}\)?)\s?\d{3}\s?\d{3}$/;
4236
4295
  function ContactMobile() {
4237
4296
  var _orderRecipient$conta;
4297
+ var _useAtom = jotai.useAtom(errorAtom),
4298
+ errors = _useAtom[0],
4299
+ setErrors = _useAtom[1];
4238
4300
  // Show call icons only if number is valid
4239
4301
  // show copy icon if there is input value
4240
4302
  var _useOrderDetails = useOrderDetails(),
@@ -4254,6 +4316,33 @@ function ContactMobile() {
4254
4316
  order_recipient: updatedOrderRecipient
4255
4317
  });
4256
4318
  });
4319
+ if (val) {
4320
+ if (val.length < 10) {
4321
+ setErrors(function (prevErrors) {
4322
+ return _extends({}, prevErrors, {
4323
+ mobileError: 'Phone number must be at least 10 digits.'
4324
+ });
4325
+ });
4326
+ } else if (val.length > 11) {
4327
+ setErrors(function (prevErrors) {
4328
+ return _extends({}, prevErrors, {
4329
+ mobileError: 'Phone number must not exceed 11 digits.'
4330
+ });
4331
+ });
4332
+ } else {
4333
+ setErrors(function (prevErrors) {
4334
+ return _extends({}, prevErrors, {
4335
+ mobileError: ''
4336
+ });
4337
+ });
4338
+ }
4339
+ } else {
4340
+ setErrors(function (prevErrors) {
4341
+ return _extends({}, prevErrors, {
4342
+ mobileError: ''
4343
+ });
4344
+ });
4345
+ }
4257
4346
  };
4258
4347
  return React__default.createElement(Container$g, null, React__default.createElement(Wrapper$9, null, React__default.createElement(dmsComponentLibrary.Label, {
4259
4348
  label: "Contact Mobile",
@@ -4262,21 +4351,23 @@ function ContactMobile() {
4262
4351
  text: orderRecipient == null ? void 0 : orderRecipient.contact_mobile
4263
4352
  })), React__default.createElement(InputContainer$2, null, React__default.createElement(CustomInput$5, {
4264
4353
  name: "contact-work",
4354
+ minLength: 10,
4355
+ maxLength: 10,
4265
4356
  type: "text",
4266
4357
  placeholder: "Mobile Number",
4267
4358
  onKeyDown: handleKeyDown,
4268
4359
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
4269
4360
  onChange: onChange
4270
- }), React__default.createElement(CallCustomer, null)));
4361
+ }), React__default.createElement(CallCustomer, null)), errors.mobileError && React__default.createElement(ErrorText$3, null, errors.mobileError));
4271
4362
  }
4272
4363
  var InputContainer$2 = /*#__PURE__*/styled__default.div(_templateObject$u || (_templateObject$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4273
4364
  var Wrapper$9 = /*#__PURE__*/styled__default.div(_templateObject2$n || (_templateObject2$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4274
- var CustomInput$5 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject3$b || (_templateObject3$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 80%;\n border-radius: 25px;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4365
+ var CustomInput$5 = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject3$b || (_templateObject3$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 80%;\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &:focus-visible {\n outline: none;\n }\n"])));
4275
4366
  var Container$g = /*#__PURE__*/styled__default.div(_templateObject4$7 || (_templateObject4$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4367
+ var ErrorText$3 = /*#__PURE__*/styled__default.span(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4276
4368
 
4277
4369
  var _templateObject$v, _templateObject2$o, _templateObject3$c;
4278
4370
  function ContactEmail() {
4279
- var _orderRecipient$conta;
4280
4371
  var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
4281
4372
  var _useOrderDetails = useOrderDetails(),
4282
4373
  orderDetails = _useOrderDetails[0],
@@ -4285,7 +4376,6 @@ function ContactEmail() {
4285
4376
  errors = _useAtom[0],
4286
4377
  setErrors = _useAtom[1];
4287
4378
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4288
- var showCopyIcon = (orderRecipient == null ? void 0 : orderRecipient.contact_email) !== undefined && (orderRecipient == null ? void 0 : orderRecipient.contact_email) !== null && (orderRecipient == null || (_orderRecipient$conta = orderRecipient.contact_email) == null ? void 0 : _orderRecipient$conta.length) > 0;
4289
4379
  var onChange = function onChange(e) {
4290
4380
  var val = e.target.value;
4291
4381
  validateInput(val);
@@ -4304,29 +4394,24 @@ function ContactEmail() {
4304
4394
  var isValid = emailRegex.test(value);
4305
4395
  setErrors(function (prev) {
4306
4396
  return _extends({}, prev, {
4307
- emailError: isValid ? '' : 'Please enter a valid Email Address'
4397
+ emailError: value && !isValid ? 'Please enter a valid Email Address' : ''
4308
4398
  });
4309
4399
  });
4310
4400
  };
4311
4401
  return React__default.createElement(Container$h, null, React__default.createElement(Wrapper$a, null, React__default.createElement(dmsComponentLibrary.Label, {
4312
4402
  label: "Email",
4313
4403
  htmlFor: "email-id"
4314
- }), showCopyIcon && React__default.createElement(CopyText, {
4315
- text: orderRecipient == null ? void 0 : orderRecipient.contact_email
4316
4404
  })), React__default.createElement(dmsComponentLibrary.Input, {
4317
4405
  name: "email-id",
4318
4406
  type: "email",
4319
4407
  placeholder: "Email",
4320
4408
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
4321
- onChange: onChange,
4322
- style: {
4323
- borderRadius: '25px'
4324
- }
4325
- }), errors.emailError && React__default.createElement(ErrorText$1, null, errors.emailError));
4409
+ onChange: onChange
4410
+ }), errors.emailError && React__default.createElement(ErrorText$4, null, errors.emailError));
4326
4411
  }
4327
4412
  var Wrapper$a = /*#__PURE__*/styled__default.div(_templateObject$v || (_templateObject$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4328
4413
  var Container$h = /*#__PURE__*/styled__default.div(_templateObject2$o || (_templateObject2$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4329
- var ErrorText$1 = /*#__PURE__*/styled__default.span(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4414
+ var ErrorText$4 = /*#__PURE__*/styled__default.span(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4330
4415
 
4331
4416
  var _templateObject$w, _templateObject2$p;
4332
4417
  function ContactDetails() {
@@ -4458,11 +4543,15 @@ var Container$l = /*#__PURE__*/styled__default.div(_templateObject2$t || (_templ
4458
4543
 
4459
4544
  var _templateObject$C;
4460
4545
  function DeliveryDate() {
4546
+ var _orderStatus$;
4461
4547
  var _useOrderDetails = useOrderDetails(),
4462
4548
  orderDetails = _useOrderDetails[0],
4463
4549
  setOrderDetails = _useOrderDetails[1];
4464
4550
  var _usePrevOrderDetails = usePrevOrderDetails(),
4465
4551
  prevOrderDetails = _usePrevOrderDetails[0];
4552
+ var _useStatusDetails = useStatusDetails(),
4553
+ orderStatus = _useStatusDetails[0];
4554
+ var routedStatus = orderStatus == null || (_orderStatus$ = orderStatus[0]) == null ? void 0 : _orderStatus$.routed;
4466
4555
  var actionDate = orderDetails != null && orderDetails.action_date ? new Date(orderDetails == null ? void 0 : orderDetails.action_date) : null;
4467
4556
  var onChange = function onChange(date, _dateString) {
4468
4557
  var selectedDate = date == null ? void 0 : date.format('YYYY-MM-DDTHH:mm:ss');
@@ -4497,7 +4586,8 @@ function DeliveryDate() {
4497
4586
  style: {
4498
4587
  borderRadius: '25px'
4499
4588
  },
4500
- allowClear: false
4589
+ allowClear: false,
4590
+ disabled: routedStatus
4501
4591
  }));
4502
4592
  }
4503
4593
  var MainContainer$2 = /*#__PURE__*/styled__default.div(_templateObject$C || (_templateObject$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
@@ -4766,6 +4856,13 @@ function TimedServiceDropdown() {
4766
4856
  label: "Timed Service",
4767
4857
  htmlFor: "timedServiceDropdown"
4768
4858
  }), React__default.createElement(StyledSelectDropdown, {
4859
+ styles: _extends({}, dmsComponentLibrary.dropdownStyles, {
4860
+ control: function control(styles) {
4861
+ return _extends({}, styles, {
4862
+ width: 'max-content'
4863
+ });
4864
+ }
4865
+ }),
4769
4866
  placeholder: "Select Timed Service",
4770
4867
  options: timedServicesOptions || [],
4771
4868
  value: timedServicesOptions == null ? void 0 : timedServicesOptions.filter(function (f) {
@@ -5208,7 +5305,7 @@ var Container$x = /*#__PURE__*/styled__default.div(_templateObject$S || (_templa
5208
5305
  return disabled && "\n pointer-events: none;\n\n > * {\n pointer-events: none;\n }\n ";
5209
5306
  });
5210
5307
 
5211
- var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$4;
5308
+ var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$7;
5212
5309
  function ServicesSection() {
5213
5310
  return React__default.createElement(CustomFormSection$3, null, React__default.createElement(Header, {
5214
5311
  label: "Services"
@@ -5218,7 +5315,7 @@ var Top = /*#__PURE__*/styled__default.div(_templateObject$T || (_templateObject
5218
5315
  var DropDownContainer = /*#__PURE__*/styled__default.div(_templateObject2$F || (_templateObject2$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: contents;\n @media screen and (max-width: 1280px) {\n display: flex;\n gap: 15px;\n }\n"])));
5219
5316
  var RadioContainer = /*#__PURE__*/styled__default.div(_templateObject3$g || (_templateObject3$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: contents;\n @media screen and (max-width: 1280px) {\n display: flex;\n gap: 15px;\n }\n"])));
5220
5317
  var Bottom = /*#__PURE__*/styled__default.div(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
5221
- var CustomFormSection$3 = /*#__PURE__*/styled__default(dmsComponentLibrary.FormSection)(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n flex-direction: column;\n gap: 10px;\n border-radius: 8px;\n background: #f8fafc;\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1);\n label,\n input,\n span {\n cursor: default !important;\n }\n"])));
5318
+ var CustomFormSection$3 = /*#__PURE__*/styled__default(dmsComponentLibrary.FormSection)(_templateObject5$7 || (_templateObject5$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n flex-direction: column;\n gap: 10px;\n border-radius: 8px;\n background: #f8fafc;\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1);\n label,\n input,\n span {\n cursor: default !important;\n }\n"])));
5222
5319
 
5223
5320
  var _templateObject$U, _templateObject2$G, _templateObject3$h;
5224
5321
  function AllowTracking() {
@@ -5319,12 +5416,10 @@ function OrderDetailsFooter() {
5319
5416
  var updateOrder = useUpdateOrder();
5320
5417
  var _useAtom = jotai.useAtom(errorAtom),
5321
5418
  errorState = _useAtom[0];
5322
- // const [, setLogsCallAPi] = useLogsCallAPi();
5323
5419
  var _useUpdateApiCall = useUpdateApiCall(),
5324
5420
  setCallApi = _useUpdateApiCall[1]; //single detail
5325
- // const [, setNoteLoadingStore] = UseNotesLoading();
5326
5421
  var errorFound = function errorFound() {
5327
- var isError = errorState.w3wError.length > 0 || errorState.emailError.length > 0 || errorState.homeContactError.length > 0 || errorState.workCOntanctError.length > 0 || errorState.mobileError.length > 0 || errorState.postCodeError.length > 0;
5422
+ var isError = (errorState == null ? void 0 : errorState.w3wError.length) > 0 || (errorState == null ? void 0 : errorState.emailError.length) > 0 || (errorState == null ? void 0 : errorState.homeContactError.length) > 0 || (errorState == null ? void 0 : errorState.workCOntanctError.length) > 0 || (errorState == null ? void 0 : errorState.mobileError.length) > 0 || (errorState == null ? void 0 : errorState.postCodeError.length) > 0;
5328
5423
  return isError;
5329
5424
  };
5330
5425
  var isDifferent = function isDifferent() {
@@ -5391,7 +5486,7 @@ function OrderDetailsFooter() {
5391
5486
  disabled: !isDifferent() || errorFound()
5392
5487
  }, "Save Details"));
5393
5488
  }
5394
- var Container$z = /*#__PURE__*/styled__default.div(_templateObject$V || (_templateObject$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n padding: 10px 15px;\n align-items: flex-start;\n border: 1px solid #edebe8;\n background: #f8fafc;\n margin: 0px;\n border-radius: 0px 0px 8px 8px;\n align-items: center;\n"])));
5489
+ var Container$z = /*#__PURE__*/styled__default.div(_templateObject$V || (_templateObject$V = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n padding: 10px 15px;\n align-items: flex-start;\n border-top: 1px solid #edebe8;\n background: #f8fafc;\n margin: 0px -15px -15px -15px;\n border-radius: 0px 0px 8px 8px;\n"])));
5395
5490
 
5396
5491
  var _templateObject$W, _templateObject2$H, _templateObject3$i;
5397
5492
  function ExpandedContent() {
@@ -5588,7 +5683,7 @@ var Th = /*#__PURE__*/styled__default.th(_templateObject3$k || (_templateObject3
5588
5683
  var Td = /*#__PURE__*/styled__default.td(_templateObject4$9 || (_templateObject4$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n padding: 6px 15px;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.08);\n border-right: none;\n border-left: none;\n"])));
5589
5684
  var IconCover = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 8px;\n span {\n margin-top: 4px;\n }\n"])));
5590
5685
 
5591
- var _templateObject$Y, _templateObject2$K, _templateObject3$l, _templateObject4$a, _templateObject5$5, _templateObject6$2, _templateObject7$4, _templateObject8$2, _templateObject9$1;
5686
+ var _templateObject$Y, _templateObject2$K, _templateObject3$l, _templateObject4$a, _templateObject5$8, _templateObject6$2, _templateObject7$4, _templateObject8$2, _templateObject9$1;
5592
5687
  var GenericAuditLogsTable = function GenericAuditLogsTable() {
5593
5688
  var _getNotes$data, _getNotes$data2;
5594
5689
  var tableHeadData = NotesTableData[0].tableHead; // Assuming NotesTableData contains table header information
@@ -5621,14 +5716,13 @@ var AuditTableWrapper = /*#__PURE__*/styled__default.div(_templateObject$Y || (_
5621
5716
  var DateTd = /*#__PURE__*/styled__default(Td)(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6d6d6d;\n"])));
5622
5717
  var NoDataFound = /*#__PURE__*/styled__default(Td)(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 16px;\n font-size: 16px;\n color: #999;\n"])));
5623
5718
  var StyledTable$2 = /*#__PURE__*/styled__default(Table)(_templateObject4$a || (_templateObject4$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n table-layout: fixed;\n td.noBoder {\n background: none !important;\n border: none !important;\n padding: 0;\n }\n"])));
5624
- var StyledTr = /*#__PURE__*/styled__default.tr(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:nth-child(even) {\n background-color: #f3fbff;\n }\n"])));
5719
+ var StyledTr = /*#__PURE__*/styled__default.tr(_templateObject5$8 || (_templateObject5$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:nth-child(even) {\n background-color: #f3fbff;\n }\n"])));
5625
5720
  var StyledTd = /*#__PURE__*/styled__default(Td)(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 10px;\n"])));
5626
5721
  var CreatedBy$1 = /*#__PURE__*/styled__default.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
5627
5722
  var ScrollableTableWrapper = /*#__PURE__*/styled__default.div(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n overflow: auto;\n"])));
5628
5723
  var StickyHeaderWrapper = /*#__PURE__*/styled__default.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: #fff;\n"])));
5629
5724
 
5630
5725
  var _templateObject$Z;
5631
- // import CustomScrollBar from '../../../../common/scrollbar';
5632
5726
  function AuditLogs() {
5633
5727
  return React__default.createElement(Container$C, null, React__default.createElement(GenericAuditLogsTable, null));
5634
5728
  }
@@ -5694,11 +5788,16 @@ function Notes() {
5694
5788
  setShouldPerformAction(true);
5695
5789
  }
5696
5790
  if (!NotesLoading && NotesData != null && NotesData.data) {
5697
- var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
5698
- return item['ORDER-NOTE'] || item['ORDER'];
5791
+ // const updatedData = NotesData?.data
5792
+ // .filter((item: any) => item['ORDER-NOTE'] || item['ORDER'])
5793
+ // .map((item: any) => [item['ORDER-NOTE'], item['ORDER']])
5794
+ // .flat()
5795
+ // .filter(Boolean);
5796
+ var updatedData = NotesData.data.filter(function (item) {
5797
+ return item['ORDER-NOTE'] || item['ORDER'] || item['ORDER-RETURN'];
5699
5798
  }).map(function (item) {
5700
- return [item['ORDER-NOTE'], item['ORDER']];
5701
- }).flat().filter(Boolean);
5799
+ return [item['ORDER-NOTE'], item['ORDER'], item['ORDER-RETURN']];
5800
+ });
5702
5801
  // const orderData = NotesData?.data[0]?.ORDER || [];
5703
5802
  // const orderNotesData = NotesData?.data[1]?.['ORDER-NOTE'] || [];
5704
5803
  // const allNotes = [...orderData, ...orderNotesData];
@@ -5740,7 +5839,7 @@ function ChevronUp(props) {
5740
5839
  }));
5741
5840
  }
5742
5841
 
5743
- var _templateObject$10, _templateObject2$M, _templateObject3$n, _templateObject4$b, _templateObject5$6, _templateObject6$3, _templateObject7$5, _templateObject8$3;
5842
+ var _templateObject$10, _templateObject2$M, _templateObject3$n, _templateObject4$b, _templateObject5$9, _templateObject6$3, _templateObject7$5, _templateObject8$3;
5744
5843
  function CollapsableForm(props) {
5745
5844
  var _useState = React.useState(true),
5746
5845
  isExpanded = _useState[0],
@@ -5764,7 +5863,7 @@ var CustomizedFormSection$1 = /*#__PURE__*/styled__default.div(_templateObject$1
5764
5863
  var CardHeader$1 = /*#__PURE__*/styled__default.div(_templateObject2$M || (_templateObject2$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid #f0f2f2;\n background-color: #f8fafc;\n color: #3a3630;\n font-size: 16px;\n padding: 10px;\n border-bottom: 1px solid #ddd;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: 'Roboto', sans-serif;\n font-weight: 600;\n"])));
5765
5864
  var Text$3 = /*#__PURE__*/styled__default.span(_templateObject3$n || (_templateObject3$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: #3a3630;\n font-weight: 500;\n font-family: 'lato', sans-serif;\n cursor: pointer;\n"])));
5766
5865
  var Container$E = /*#__PURE__*/styled__default.div(_templateObject4$b || (_templateObject4$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
5767
- var MainContainer$5 = /*#__PURE__*/styled__default.div(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
5866
+ var MainContainer$5 = /*#__PURE__*/styled__default.div(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
5768
5867
  var IconContainer$1 = /*#__PURE__*/styled__default.div(_templateObject6$3 || (_templateObject6$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 25px;\n height: 25px;\n padding: 2px;\n border-radius: 3px;\n background: #ffffff;\n box-shadow: 0px 1px 2px 0px #1018280d;\n &:hover {\n background: rgba(58, 54, 57, 0.05);\n }\n svg {\n transform: rotate(", ");\n }\n"])), function (props) {
5769
5868
  return props.isExpanded ? '360deg' : '180deg';
5770
5869
  });
@@ -5793,7 +5892,7 @@ var ThumbVertical = /*#__PURE__*/styled__default.div(_templateObject$11 || (_tem
5793
5892
  var View = /*#__PURE__*/styled__default.div(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
5794
5893
  var TrackHorizontal = /*#__PURE__*/styled__default.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
5795
5894
 
5796
- var _templateObject$12, _templateObject2$O, _templateObject3$p, _templateObject4$c, _templateObject5$7, _templateObject6$4, _templateObject7$6, _templateObject8$4, _templateObject9$2;
5895
+ var _templateObject$12, _templateObject2$O, _templateObject3$p, _templateObject4$c, _templateObject5$a, _templateObject6$4, _templateObject7$6, _templateObject8$4, _templateObject9$2;
5797
5896
  function DynamicTable(_ref) {
5798
5897
  var columns = _ref.columns,
5799
5898
  data = _ref.data;
@@ -5843,7 +5942,7 @@ var Container$F = /*#__PURE__*/styled__default.div(_templateObject$12 || (_templ
5843
5942
  var TableWrapper = /*#__PURE__*/styled__default.div(_templateObject2$O || (_templateObject2$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 100%;\n overflow-x: auto;\n scrollbar-width: thin;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n"])));
5844
5943
  var TableHeadData = /*#__PURE__*/styled__default.th(_templateObject3$p || (_templateObject3$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 20px;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n letter-spacing: 0px;\n"])));
5845
5944
  var TableData = /*#__PURE__*/styled__default.td(_templateObject4$c || (_templateObject4$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-spacing: 0px;\n padding: 13px;\n font-family: 'Lato', sans-serif;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0px;\n"])));
5846
- var TableRow = /*#__PURE__*/styled__default.tr(_templateObject5$7 || (_templateObject5$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: stretch;\n width: 100%;\n border-bottom: 1px solid rgb(215, 214, 213);\n font-weight: 300;\n"])));
5945
+ var TableRow = /*#__PURE__*/styled__default.tr(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: stretch;\n width: 100%;\n border-bottom: 1px solid rgb(215, 214, 213);\n font-weight: 300;\n"])));
5847
5946
  var TableBody = /*#__PURE__*/styled__default.tbody(_templateObject6$4 || (_templateObject6$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom-right-radius: 10px;\n background: rgb(255, 255, 255);\n height: 96%;\n overflow: auto;\n width: 100%;\n"])));
5848
5947
  var TableHead = /*#__PURE__*/styled__default.thead(_templateObject7$6 || (_templateObject7$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0px;\n z-index: 1;\n background: #f8f8f8;\n white-space: nowrap;\n"])));
5849
5948
  var Table$1 = /*#__PURE__*/styled__default.table(_templateObject8$4 || (_templateObject8$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 50%;\n background: rgb(255, 255, 255);\n box-shadow: 0px 4px 30px 0px #2e2d740d;\n"])));
@@ -6861,7 +6960,7 @@ function UploadIcon(props) {
6861
6960
  })));
6862
6961
  }
6863
6962
 
6864
- var _templateObject$1k, _templateObject2$$, _templateObject3$u, _templateObject4$g, _templateObject5$8, _templateObject6$5, _templateObject7$7;
6963
+ var _templateObject$1k, _templateObject2$$, _templateObject3$u, _templateObject4$g, _templateObject5$b, _templateObject6$5, _templateObject7$7;
6865
6964
  var Dragger = antd.Upload.Dragger;
6866
6965
  var props = {
6867
6966
  name: 'file',
@@ -6892,7 +6991,7 @@ var MainContainer$8 = /*#__PURE__*/styled__default.div(_templateObject$1k || (_t
6892
6991
  var Text2 = /*#__PURE__*/styled__default.p(_templateObject2$$ || (_templateObject2$$ = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #BCBAB7;\n text-align: center;\n font-family: 'Roboto', sans-serif;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n text-transform: lowercase;\n padding: 0;\n margin: 0;\n"])));
6893
6992
  var TextContainer$2 = /*#__PURE__*/styled__default.div(_templateObject3$u || (_templateObject3$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
6894
6993
  var Text1 = /*#__PURE__*/styled__default.p(_templateObject4$g || (_templateObject4$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #AEA9A1;\n text-align: left;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n text-transform: lowercase;\n padding: 0;\n margin: 0;\n"])));
6895
- var IconContainer$3 = /*#__PURE__*/styled__default.div(_templateObject5$8 || (_templateObject5$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465AC;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
6994
+ var IconContainer$3 = /*#__PURE__*/styled__default.div(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465AC;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
6896
6995
  var UploadButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject6$5 || (_templateObject6$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
6897
6996
  var Container$Q = /*#__PURE__*/styled__default.div(_templateObject7$7 || (_templateObject7$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n padding: 6px;\n align-items: center;\n align-self: stretch;\n border-radius: 30px;\n border: 1px solid #E0E2E7;\n background: #FFF;\n\n \n"])));
6898
6997
 
@@ -7237,7 +7336,7 @@ var Input = /*#__PURE__*/styled__default.input(_templateObject2$12 || (_template
7237
7336
  });
7238
7337
  var RadioContainer$1 = /*#__PURE__*/styled__default.div(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
7239
7338
 
7240
- var _templateObject$1p, _templateObject2$13, _templateObject3$y, _templateObject4$i, _templateObject5$9, _templateObject6$6, _templateObject7$8;
7339
+ var _templateObject$1p, _templateObject2$13, _templateObject3$y, _templateObject4$i, _templateObject5$c, _templateObject6$6, _templateObject7$8;
7241
7340
  function RadioButtonGroup(props) {
7242
7341
  var heading = props.heading,
7243
7342
  _props$direction = props.direction,
@@ -7278,7 +7377,7 @@ var RequiredText = /*#__PURE__*/styled__default.span(_templateObject3$y || (_tem
7278
7377
  return !props.$required && 'visibility: hidden;';
7279
7378
  }, labelStyles);
7280
7379
  var LegendContainer = /*#__PURE__*/styled__default.div(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-bottom: 7px;\n"])));
7281
- var Legend = /*#__PURE__*/styled__default.legend(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
7380
+ var Legend = /*#__PURE__*/styled__default.legend(_templateObject5$c || (_templateObject5$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n line-height: 20px;\n"])), fonts.secondary);
7282
7381
  var Fieldset = /*#__PURE__*/styled__default.fieldset(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
7283
7382
  var Wrapper$g = /*#__PURE__*/styled__default.div(_templateObject7$8 || (_templateObject7$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: 32px;\n padding: 0px 10px;\n border-radius: 15px;\n border: 1px solid #e0e2e7;\n background: #fff;\n height: 30px;\n justify-content: space-evenly;\n"])), function (props) {
7284
7383
  return props.$direction === 'horizontal' ? 'row' : 'column';
@@ -7317,7 +7416,7 @@ function DeliveryPoint() {
7317
7416
  }
7318
7417
  var Container$R = /*#__PURE__*/styled__default.div(_templateObject$1q || (_templateObject$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n /* height: 30px; */\n padding: 1px;\n align-items: flex-start;\n align-self: stretch;\n"])));
7319
7418
 
7320
- var _templateObject$1r, _templateObject2$14, _templateObject3$z, _templateObject4$j, _templateObject5$a, _templateObject6$7, _templateObject7$9, _templateObject8$5;
7419
+ var _templateObject$1r, _templateObject2$14, _templateObject3$z, _templateObject4$j, _templateObject5$d, _templateObject6$7, _templateObject7$9, _templateObject8$5;
7321
7420
  var _excluded$5 = ["imageSrc", "label", "checked"];
7322
7421
  function Checkbox(props) {
7323
7422
  var imageSrc = props.imageSrc,
@@ -7348,7 +7447,7 @@ var Circle = /*#__PURE__*/styled__default.span(_templateObject3$z || (_templateO
7348
7447
  var Text$6 = /*#__PURE__*/styled__default.span(_templateObject4$j || (_templateObject4$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: ", ";\n font-family: 'lato', sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n"])), function (props) {
7349
7448
  return props.$checked ? '#3a3630' : 'rgba(58, 54, 48, 0.50)';
7350
7449
  });
7351
- var InformationContainer = /*#__PURE__*/styled__default.div(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: center;\n"])));
7450
+ var InformationContainer = /*#__PURE__*/styled__default.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: center;\n"])));
7352
7451
  var CheckboxContainer = /*#__PURE__*/styled__default.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
7353
7452
  var HiddenCheckbox = /*#__PURE__*/styled__default.input(_templateObject7$9 || (_templateObject7$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 0;\n height: 100%;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 100%;\n opacity: 0;\n cursor: pointer;\n top: 0;\n left: 0;\n"])));
7354
7453
  var MainContainer$9 = /*#__PURE__*/styled__default.div(_templateObject8$5 || (_templateObject8$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n width: 130px;\n height: 93px;\n gap: 10px;\n border-radius: 15px;\n border: 1px solid ", ";\n align-items: center;\n justify-content: center;\n position: relative;\n\n &:hover {\n border: 1px solid #cbc8c2;\n .checkbox-img {\n filter: grayscale(0);\n }\n }\n"])), function (props) {
@@ -7467,7 +7566,7 @@ function ReturnReason() {
7467
7566
  });
7468
7567
  }
7469
7568
 
7470
- var _templateObject$1v, _templateObject2$17, _templateObject3$B, _templateObject4$k, _templateObject5$b, _templateObject6$8, _templateObject7$a;
7569
+ var _templateObject$1v, _templateObject2$17, _templateObject3$B, _templateObject4$k, _templateObject5$e, _templateObject6$8, _templateObject7$a;
7471
7570
  function CancelOrder() {
7472
7571
  var _orderStaticData$canc;
7473
7572
  var _useOrderId = useOrderId(),
@@ -7582,7 +7681,7 @@ var Label$5 = /*#__PURE__*/styled__default.label(_templateObject$1v || (_templat
7582
7681
  var Container$U = /*#__PURE__*/styled__default.div(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7583
7682
  var Wrapper$h = /*#__PURE__*/styled__default.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n > div {\n width: 50%;\n }\n"])));
7584
7683
  var TopLeft = /*#__PURE__*/styled__default.div(_templateObject4$k || (_templateObject4$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 15px;\n width: 50%;\n"])));
7585
- var TopRight = /*#__PURE__*/styled__default.div(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
7684
+ var TopRight = /*#__PURE__*/styled__default.div(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
7586
7685
  var Top$2 = /*#__PURE__*/styled__default.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 30px;\n width: 100%;\n"])));
7587
7686
  // const Bottom = styled.div``;
7588
7687
  var ContentContainer$3 = /*#__PURE__*/styled__default.div(_templateObject7$a || (_templateObject7$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 0px 15px;\n align-items: flex-start;\n gap: 10px;\n flex-direction: column;\n"])));
@@ -7626,11 +7725,11 @@ function EmailAddress() {
7626
7725
  type: "text",
7627
7726
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
7628
7727
  onChange: onChange
7629
- }), errors.emailError && React__default.createElement(ErrorText$2, null, errors.emailError));
7728
+ }), errors.emailError && React__default.createElement(ErrorText$5, null, errors.emailError));
7630
7729
  }
7631
7730
  var Label$6 = /*#__PURE__*/styled__default.label(_templateObject$1w || (_templateObject$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
7632
7731
  var Container$V = /*#__PURE__*/styled__default.div(_templateObject2$18 || (_templateObject2$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7633
- var ErrorText$2 = /*#__PURE__*/styled__default.span(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7732
+ var ErrorText$5 = /*#__PURE__*/styled__default.span(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7634
7733
 
7635
7734
  var _templateObject$1x, _templateObject2$19, _templateObject3$D;
7636
7735
  function ContactPhone() {
@@ -7691,11 +7790,11 @@ function ContactPhone() {
7691
7790
  },
7692
7791
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
7693
7792
  onChange: onChange
7694
- }), errors.homeContactError && React__default.createElement(ErrorText$3, null, errors.homeContactError));
7793
+ }), errors.homeContactError && React__default.createElement(ErrorText$6, null, errors.homeContactError));
7695
7794
  }
7696
7795
  var Label$7 = /*#__PURE__*/styled__default.label(_templateObject$1x || (_templateObject$1x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
7697
7796
  var Container$W = /*#__PURE__*/styled__default.div(_templateObject2$19 || (_templateObject2$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7698
- var ErrorText$3 = /*#__PURE__*/styled__default.span(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7797
+ var ErrorText$6 = /*#__PURE__*/styled__default.span(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7699
7798
 
7700
7799
  var _templateObject$1y, _templateObject2$1a, _templateObject3$E;
7701
7800
  function ContactWork$1() {
@@ -7756,11 +7855,11 @@ function ContactWork$1() {
7756
7855
  },
7757
7856
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
7758
7857
  onChange: onChange
7759
- }), errors.workContactError && React__default.createElement(ErrorText$4, null, errors.workContactError));
7858
+ }), errors.workContactError && React__default.createElement(ErrorText$7, null, errors.workContactError));
7760
7859
  }
7761
7860
  var Label$8 = /*#__PURE__*/styled__default.label(_templateObject$1y || (_templateObject$1y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
7762
7861
  var Container$X = /*#__PURE__*/styled__default.div(_templateObject2$1a || (_templateObject2$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7763
- var ErrorText$4 = /*#__PURE__*/styled__default.span(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7862
+ var ErrorText$7 = /*#__PURE__*/styled__default.span(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7764
7863
 
7765
7864
  var _templateObject$1z, _templateObject2$1b, _templateObject3$F;
7766
7865
  function ContactMobile$1() {
@@ -7821,11 +7920,11 @@ function ContactMobile$1() {
7821
7920
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
7822
7921
  onKeyDown: handleKeyDown,
7823
7922
  onChange: onChange
7824
- }), errors.mobileError && React__default.createElement(ErrorText$5, null, errors.mobileError));
7923
+ }), errors.mobileError && React__default.createElement(ErrorText$8, null, errors.mobileError));
7825
7924
  }
7826
7925
  var Label$9 = /*#__PURE__*/styled__default.label(_templateObject$1z || (_templateObject$1z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n"])));
7827
7926
  var Container$Y = /*#__PURE__*/styled__default.div(_templateObject2$1b || (_templateObject2$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7828
- var ErrorText$5 = /*#__PURE__*/styled__default.span(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7927
+ var ErrorText$8 = /*#__PURE__*/styled__default.span(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7829
7928
 
7830
7929
  function ContactTypeDropdown() {
7831
7930
  var _useOrderStaticData = useOrderStaticData(),
@@ -8339,11 +8438,11 @@ function ConfirmOrder() {
8339
8438
  var Wrapper$j = /*#__PURE__*/styled__default.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
8340
8439
  var ContentContainer$4 = /*#__PURE__*/styled__default.div(_templateObject2$1k || (_templateObject2$1k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* display: flex; */\n padding: 15px 12px;\n flex: 1 0 0;\n border-radius: 15px;\n background: white;\n display: flex;\n flex-direction: column;\n gap: 15px;\n overflow: auto;\n min-height: 500px;\n overflow-x: hidden;\n max-height: 500px;\n scrollbar-width: thin;\n"])));
8341
8440
 
8342
- var _templateObject2$1l, _templateObject3$I, _templateObject4$n, _templateObject5$c, _templateObject6$9, _templateObject7$b, _templateObject8$6, _templateObject9$3, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13, _templateObject14$1, _templateObject15, _templateObject18, _templateObject19$1, _templateObject26;
8441
+ var _templateObject2$1l, _templateObject3$I, _templateObject4$n, _templateObject5$f, _templateObject6$9, _templateObject7$b, _templateObject8$6, _templateObject9$3, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13, _templateObject14$1, _templateObject15, _templateObject18, _templateObject19$1, _templateObject26;
8343
8442
  var StyledInput = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject2$1l || (_templateObject2$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 66px;\n min-width: 700px;\n"])));
8344
8443
  var StyledTextArea$1 = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject3$I || (_templateObject3$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px;\n align-items: flex-start;\n gap: 4px;\n flex: 1 0 0;\n align-self: stretch;\n border-radius: 10px;\n border: 1px solid #e0e2e7;\n background: #fff;\n resize: none;\n min-height: 200px;\n"])));
8345
8444
  var StyledTextAreas = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject4$n || (_templateObject4$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px;\n align-items: flex-start;\n gap: 4px;\n flex: 1 0 0;\n align-self: stretch;\n border-radius: 10px;\n border: 1px solid #e0e2e7;\n background: #fff;\n resize: none;\n min-height: 50px;\n"])));
8346
- var SplitLayout = /*#__PURE__*/styled__default.div(_templateObject5$c || (_templateObject5$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n"])));
8445
+ var SplitLayout = /*#__PURE__*/styled__default.div(_templateObject5$f || (_templateObject5$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n"])));
8347
8446
  var SplitText = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n flex-direction: column;\n margin-bottom: 4px;\n"])));
8348
8447
  var Row$4 = /*#__PURE__*/styled__default.div(_templateObject7$b || (_templateObject7$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1 0 0;\n display: grid;\n gap: 5px;\n justify-content: center;\n"])));
8349
8448
  var HoldRow = /*#__PURE__*/styled__default.div(_templateObject8$6 || (_templateObject8$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1 0 0;\n display: grid;\n gap: 5px;\n justify-content: center;\n /* margin-bottom: 25px; */\n"])));
@@ -8432,6 +8531,9 @@ var optionsMenu = [{
8432
8531
  }, {
8433
8532
  label: 'Cancel',
8434
8533
  value: 'cancel-order'
8534
+ }, {
8535
+ label: 'Un Hold',
8536
+ value: 'unhold-order'
8435
8537
  }];
8436
8538
  var PrintMenu = [{
8437
8539
  label: 'Return Notes',
@@ -9350,7 +9452,7 @@ function useFetchReminders() {
9350
9452
  return perform;
9351
9453
  }
9352
9454
 
9353
- var _templateObject$1N, _templateObject2$1p, _templateObject3$L, _templateObject4$q, _templateObject5$d, _templateObject6$a, _templateObject7$c;
9455
+ var _templateObject$1N, _templateObject2$1p, _templateObject3$L, _templateObject4$q, _templateObject5$g, _templateObject6$a, _templateObject7$c;
9354
9456
  var ViewReminderModal = function ViewReminderModal() {
9355
9457
  var _reminderData$reminde, _reminderData$order_d, _reminderData$order_d2, _reminderData$reminde2, _reminderData$reminde3, _reminderData$reminde4, _reminderData$reminde5;
9356
9458
  var _useCurrentAction = useCurrentAction(),
@@ -9510,15 +9612,15 @@ var StyledWrapper = /*#__PURE__*/styled__default.div(_templateObject$1N || (_tem
9510
9612
  var StyledLabel$1 = /*#__PURE__*/styled__default.label(_templateObject2$1p || (_templateObject2$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
9511
9613
  var StyledSpan = /*#__PURE__*/styled__default.span(_templateObject3$L || (_templateObject3$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #131313;\n font-family: 'Lato', sans-serif;\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n white-space: nowrap;\n"])));
9512
9614
  var StyledCheckbox = /*#__PURE__*/styled__default.div(_templateObject4$q || (_templateObject4$q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n input[type='checkbox'] {\n display: none;\n }\n\n input[type='checkbox'] + span:before {\n width: 14px;\n height: 14px;\n border: 1.5px solid #3a3630;\n content: '';\n display: inline-block;\n margin: 0 8px 0 0;\n padding: 0;\n border-radius: 50%;\n }\n\n input[type='checkbox']:checked + span:before {\n background: #feba30;\n border: 1.5px solid #3a3630;\n box-shadow: inset 0px 0px 0px 1px #fff;\n color: #333;\n content: '';\n text-align: center;\n border-radius: 50%;\n display: flex;\n width: 14px;\n height: 14px;\n }\n\n input[type='checkbox']:focus + span::before {\n outline: 0;\n }\n"])));
9513
- var OuterDiv = /*#__PURE__*/styled__default.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
9615
+ var OuterDiv = /*#__PURE__*/styled__default.div(_templateObject5$g || (_templateObject5$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
9514
9616
  var RoundCheckbox = /*#__PURE__*/styled__default.span(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9515
9617
  var LabelText = /*#__PURE__*/styled__default.span(_templateObject7$c || (_templateObject7$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--primary-dark-brown, #3a3630);\n font-family: Lato;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n"])));
9516
9618
 
9517
- var _templateObject$1O, _templateObject3$M, _templateObject5$e, _templateObject7$d, _templateObject8$8, _templateObject9$4;
9619
+ var _templateObject$1O, _templateObject3$M, _templateObject5$h, _templateObject7$d, _templateObject8$8, _templateObject9$4;
9518
9620
  // Shared styles and components
9519
9621
  var Wrapper$k = /*#__PURE__*/styled__default.div(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
9520
9622
  var SplitContainer = /*#__PURE__*/styled__default.div(_templateObject3$M || (_templateObject3$M = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n /* width: 95%; */\n min-width: 25vw;\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9521
- var Label$f = /*#__PURE__*/styled__default.label(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
9623
+ var Label$f = /*#__PURE__*/styled__default.label(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
9522
9624
  var ContentContainer$6 = /*#__PURE__*/styled__default.div(_templateObject7$d || (_templateObject7$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px 12px;\n margin: 5px 14px;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 15px;\n background: #f8fafc;\n border-radius: 15px;\n"])));
9523
9625
  var Row$6 = /*#__PURE__*/styled__default.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9524
9626
  var DoubleDropdownContainer = /*#__PURE__*/styled__default.div(_templateObject9$4 || (_templateObject9$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n width: 100%;\n"])));
@@ -9535,7 +9637,7 @@ var FormRow = function FormRow(_ref) {
9535
9637
  }, " * ")), children);
9536
9638
  };
9537
9639
 
9538
- var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$f;
9640
+ var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$i;
9539
9641
  dayjs.extend(utc);
9540
9642
  dayjs.extend(dateFns.isValid);
9541
9643
  function CreateReminderModal() {
@@ -9762,7 +9864,7 @@ var StyleContainer = /*#__PURE__*/styled__default.div(_templateObject$1P || (_te
9762
9864
  var Label$g = /*#__PURE__*/styled__default.label(_templateObject2$1q || (_templateObject2$1q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6a7378;\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n font-weight: 500;\n"])));
9763
9865
  var StyledAntSelect$4 = /*#__PURE__*/styled__default(antd.Select)(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n width: 20vw;\n border-radius: 22px;\n }\n"])));
9764
9866
  var StyledTextArea$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.TextArea)(_templateObject4$r || (_templateObject4$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 12px;\n align-items: flex-start;\n gap: 4px;\n align-self: stretch;\n border-radius: 10px;\n border: 1px solid var(--Neutral-Gray-Gray-100, #e0e2e7);\n background: var(--Flowkit-White, #fff);\n resize: none;\n height: 100px;\n"])));
9765
- var StyledLink = /*#__PURE__*/styled__default.div(_templateObject5$f || (_templateObject5$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--contextual-blue, #6396e5);\n font-family: Lato;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n cursor: pointer;\n"])));
9867
+ var StyledLink = /*#__PURE__*/styled__default.div(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--contextual-blue, #6396e5);\n font-family: Lato;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n cursor: pointer;\n"])));
9766
9868
 
9767
9869
  function useCreateReminder() {
9768
9870
  var ssoToken = getCookie('id_token');
@@ -10157,7 +10259,7 @@ function useUpdateFlag() {
10157
10259
  return create;
10158
10260
  }
10159
10261
 
10160
- var _templateObject$1S, _templateObject2$1s, _templateObject3$O, _templateObject4$s, _templateObject5$g, _templateObject6$b;
10262
+ var _templateObject$1S, _templateObject2$1s, _templateObject3$O, _templateObject4$s, _templateObject5$j, _templateObject6$b;
10161
10263
  function HeaderSection() {
10162
10264
  var _useSingleFlagData = useSingleFlagData(),
10163
10265
  dataArray = _useSingleFlagData[0];
@@ -10231,7 +10333,7 @@ var Header$1 = /*#__PURE__*/styled__default.div(_templateObject$1S || (_template
10231
10333
  var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.CancelAndCompleteAction)(_templateObject2$1s || (_templateObject2$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
10232
10334
  var ResolveButton = /*#__PURE__*/styled__default.button(_templateObject3$O || (_templateObject3$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #3a3630;\n font-size: 14px;\n font-weight: 600;\n background: transparent;\n border: none;\n cursor: pointer;\n"])));
10233
10335
  var Title$7 = /*#__PURE__*/styled__default.span(_templateObject4$s || (_templateObject4$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'Roboto', sans-serif;\n font-size: 20px;\n font-weight: 900;\n line-height: 32px;\n text-transform: uppercase;\n color: #3a3630;\n"])));
10234
- var StyledOverlay = /*#__PURE__*/styled__default.div(_templateObject5$g || (_templateObject5$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(2px);\n z-index: 1000;\n"])));
10336
+ var StyledOverlay = /*#__PURE__*/styled__default.div(_templateObject5$j || (_templateObject5$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(2px);\n z-index: 1000;\n"])));
10235
10337
  var CrossWrapper = /*#__PURE__*/styled__default.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
10236
10338
 
10237
10339
  var _templateObject$1T, _templateObject2$1t;
@@ -10349,7 +10451,7 @@ function ButtonsSection() {
10349
10451
  var Buttons = /*#__PURE__*/styled__default.div(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10350
10452
  var Flex = /*#__PURE__*/styled__default.div(_templateObject2$1u || (_templateObject2$1u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10351
10453
 
10352
- var _templateObject$1V, _templateObject2$1v, _templateObject3$P, _templateObject4$t, _templateObject5$h, _templateObject6$c;
10454
+ var _templateObject$1V, _templateObject2$1v, _templateObject3$P, _templateObject4$t, _templateObject5$k, _templateObject6$c;
10353
10455
  function ActionSection() {
10354
10456
  var _useCurrentAction = useCurrentAction(),
10355
10457
  setCurrentAction = _useCurrentAction[1];
@@ -10439,10 +10541,10 @@ var ButtonWrapper = /*#__PURE__*/styled__default.div(_templateObject$1V || (_tem
10439
10541
  var SaveButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10440
10542
  var CancelButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10441
10543
  var DropDowns = /*#__PURE__*/styled__default.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10442
- var TooltipContent = /*#__PURE__*/styled__default.div(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
10544
+ var TooltipContent = /*#__PURE__*/styled__default.div(_templateObject5$k || (_templateObject5$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
10443
10545
  var Wrapper$l = /*#__PURE__*/styled__default.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10444
10546
 
10445
- var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$i;
10547
+ var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$l;
10446
10548
  function DetailSection() {
10447
10549
  var _dataArray$order_data, _dataArray$order_data2;
10448
10550
  var _useSingleFlagData = useSingleFlagData(),
@@ -10458,7 +10560,7 @@ var Detail = /*#__PURE__*/styled__default.div(_templateObject$1W || (_templateOb
10458
10560
  var Flex$1 = /*#__PURE__*/styled__default.div(_templateObject2$1w || (_templateObject2$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10459
10561
  var Ref = /*#__PURE__*/styled__default.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
10460
10562
  var Order = /*#__PURE__*/styled__default.div(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n text-decoration: underline;\n font-family: 'Lato', sans-serif;\n"])));
10461
- var StyledLabel$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.Label)(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
10563
+ var StyledLabel$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.Label)(_templateObject5$l || (_templateObject5$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
10462
10564
 
10463
10565
  function useFetchSingleFlagsData() {
10464
10566
  var _useFlagRefId = useFlagRefId(),
@@ -11196,6 +11298,7 @@ function OrderView() {
11196
11298
  }
11197
11299
  } else {
11198
11300
  var paths = location.pathname.split('/');
11301
+ console.log(paths[paths.length - 1], 'paths');
11199
11302
  setOrderId(paths[paths.length - 1]);
11200
11303
  }
11201
11304
  }, [location.search, loadingExternal]);
@@ -11417,6 +11520,7 @@ function OrderView() {
11417
11520
  setGsitOrderId(undefined);
11418
11521
  };
11419
11522
  }, [gsitId]);
11523
+ console.log(orderId, 'orderId');
11420
11524
  return React__default.createElement(MainContainer$b, null, React__default.createElement(GeneralHeader, null), React__default.createElement(DetailsFilters, null), React__default.createElement(OrderDetails$1, null), React__default.createElement(ProductsInfo, null), React__default.createElement(SplitLayout$1, null, React__default.createElement(NotesContainer, null, React__default.createElement(Notes, null)), React__default.createElement(TablesContainer, null, React__default.createElement(SystemLogs, null))), React__default.createElement(OrderActions, null));
11421
11525
  }
11422
11526
  var MainContainer$b = /*#__PURE__*/styled__default.div(_templateObject$24 || (_templateObject$24 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding-bottom: 30px;\n"])));
@@ -11472,45 +11576,53 @@ var BulkFilter = function BulkFilter() {
11472
11576
  );
11473
11577
  };
11474
11578
 
11475
- var _excluded$6 = ["count"];
11579
+ // import { TableRowType } from '../shared/interface';
11580
+ // import { filtersReducerAtom } from '../header-filters/filterStore';
11581
+ // import { useApiHook } from '@bjsdistribution/dms-component-library';
11582
+ // import {
11583
+ // UsePaginationData,
11584
+ // useCountData,
11585
+ // useRoutesTable,
11586
+ // } from '../store/store';
11587
+ // import { notification } from 'antd';
11476
11588
  // import { useAtom } from 'jotai';
11477
11589
  var Filters = function Filters() {
11478
- var _useRoutesTable = useRoutesTable(),
11479
- setData = _useRoutesTable[1];
11590
+ // const [, setData] = useRoutesTable();
11480
11591
  // const [state] = useAtom(filtersReducerAtom);
11481
- var _UsePaginationData = UsePaginationData(),
11482
- setPaginationObject = _UsePaginationData[1];
11483
- var _useCountData = useCountData(),
11484
- setCount = _useCountData[1];
11592
+ // const [, setPaginationObject] = UsePaginationData();
11593
+ // const [, setCount] = useCountData();
11485
11594
  // Hooks
11486
11595
  // const { 'x-filters': filters, 'x-pagination': pagination } = state;
11487
- var _useApiHook = dmsComponentLibrary.useApiHook({
11488
- endpoint: 'orders/',
11489
- method: 'GET'
11490
- }),
11491
- fetchedData = _useApiHook.data,
11492
- apiLoading = _useApiHook.loading,
11493
- paginationData = _useApiHook.paginationData;
11494
- React.useEffect(function () {
11495
- if (fetchedData && fetchedData.data) {
11496
- var data = fetchedData.data;
11497
- setData(data);
11498
- if (paginationData !== null) {
11499
- var _JSON$parse = JSON.parse(paginationData),
11500
- count = _JSON$parse.count,
11501
- rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$6);
11502
- setPaginationObject(rest);
11503
- setCount(count);
11504
- } else {
11505
- // console.error('Pagination data is null');
11506
- antd.notification.error({
11507
- message: 'Error',
11508
- description: 'Pagination data is null'
11509
- });
11510
- }
11511
- }
11512
- }, [apiLoading]);
11513
- var _useState = React.useState(true);
11596
+ // const {
11597
+ // data: fetchedData,
11598
+ // loading: apiLoading,
11599
+ // paginationData,
11600
+ // } = useApiHook<{
11601
+ // data: TableRowType[];
11602
+ // }>({
11603
+ // endpoint: 'orders/',
11604
+ // method: 'GET',
11605
+ // // pagination: pagination,
11606
+ // // filters: filters,
11607
+ // });
11608
+ // useEffect(() => {
11609
+ // if (fetchedData && fetchedData.data) {
11610
+ // const data = fetchedData.data;
11611
+ // setData(data);
11612
+ // if (paginationData !== null) {
11613
+ // const { count, ...rest } = JSON.parse(paginationData);
11614
+ // setPaginationObject(rest);
11615
+ // setCount(count);
11616
+ // } else {
11617
+ // // console.error('Pagination data is null');
11618
+ // notification.error({
11619
+ // message: 'Error',
11620
+ // description: 'Pagination data is null',
11621
+ // });
11622
+ // }
11623
+ // }
11624
+ // }, [apiLoading]);
11625
+ // const [] = useState(true);
11514
11626
  // const ToggleView = () => {
11515
11627
  // setDataView(!DataView);
11516
11628
  // };
@@ -11783,7 +11895,7 @@ var overviewfiltersReducerAtom = /*#__PURE__*/jotai.atom(function (get) {
11783
11895
  });
11784
11896
 
11785
11897
  var _templateObject$26, _templateObject2$1C, _templateObject3$T;
11786
- var _excluded$7 = ["count"];
11898
+ var _excluded$6 = ["count"];
11787
11899
  function ReturnMainTable() {
11788
11900
  var _useAtom = jotai.useAtom(overviewfiltersReducerAtom),
11789
11901
  state = _useAtom[0];
@@ -11832,7 +11944,7 @@ function ReturnMainTable() {
11832
11944
  try {
11833
11945
  var _JSON$parse = JSON.parse(paginationData),
11834
11946
  count = _JSON$parse.count,
11835
- rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$7);
11947
+ rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$6);
11836
11948
  setPaginationObject(rest);
11837
11949
  } catch (error) {
11838
11950
  console.error('Error parsing paginationData:', error);