@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
@@ -50,6 +50,9 @@ function _extends() {
50
50
  return n;
51
51
  }, _extends.apply(null, arguments);
52
52
  }
53
+ function _objectDestructuringEmpty(t) {
54
+ if (null == t) throw new TypeError("Cannot destructure " + t);
55
+ }
53
56
  function _objectWithoutPropertiesLoose(r, e) {
54
57
  if (null == r) return {};
55
58
  var t = {};
@@ -575,11 +578,6 @@ var PrintOptionTOggle = /*#__PURE__*/atom(null);
575
578
  var usePrintOptionTOggle = function usePrintOptionTOggle() {
576
579
  return useAtom(PrintOptionTOggle);
577
580
  };
578
- // Overview Table
579
- var atomRoutesTable = /*#__PURE__*/atom([]);
580
- var useRoutesTable = function useRoutesTable() {
581
- return useAtom(atomRoutesTable);
582
- };
583
581
  //this
584
582
  var loading = /*#__PURE__*/atom(false);
585
583
  var useStatsLoading = function useStatsLoading() {
@@ -636,10 +634,6 @@ var atomItemsPerOverviewPage = /*#__PURE__*/atom(50);
636
634
  var useItemsPerOverviewPage = function useItemsPerOverviewPage() {
637
635
  return useAtom(atomItemsPerOverviewPage);
638
636
  };
639
- var countStatus = /*#__PURE__*/atom([]);
640
- var useCountData = function useCountData() {
641
- return useAtom(countStatus);
642
- };
643
637
  //
644
638
  // ROUTE DETAILS PAGE STATES ->
645
639
  // const orderId = atom<number | undefined>(undefined);
@@ -1567,9 +1561,9 @@ var optionsForReturnPrint = [{
1567
1561
  var _templateObject$4, _templateObject2$2;
1568
1562
  var options = optionsForReturnPrint;
1569
1563
  var PrintDropDownReturn = function PrintDropDownReturn(_ref) {
1570
- var legacyProductId = _ref.legacyProductId;
1564
+ _objectDestructuringEmpty(_ref);
1571
1565
  var downloadFiles = function downloadFiles() {
1572
- var url = "https://us.toolbox.bjshomedelivery.com/offload/return_label?gsit_products_id=" + legacyProductId;
1566
+ var url = "";
1573
1567
  window.open(url, '_blank'); // Opens the URL in a new tab
1574
1568
  };
1575
1569
  return React.createElement(OptionsList, null, options == null ? void 0 : options.map(function (item, index) {
@@ -4033,10 +4027,11 @@ function Latitude() {
4033
4027
  placeholder: "Latitude",
4034
4028
  onKeyDown: handleKeyDown,
4035
4029
  value: (orderRecipient == null ? void 0 : orderRecipient.latitude) || '',
4036
- onChange: onChange
4030
+ onChange: onChange,
4031
+ readOnly: true
4037
4032
  }));
4038
4033
  }
4039
- var CustomInput = /*#__PURE__*/styled(Input$1)(_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"])));
4034
+ var CustomInput = /*#__PURE__*/styled(Input$1)(_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"])));
4040
4035
  var Container$a = /*#__PURE__*/styled.div(_templateObject2$h || (_templateObject2$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4041
4036
 
4042
4037
  var _templateObject$o, _templateObject2$i;
@@ -4067,10 +4062,11 @@ function Longitude() {
4067
4062
  placeholder: "Longitude",
4068
4063
  onKeyDown: handleKeyDown,
4069
4064
  value: (orderRecipient == null ? void 0 : orderRecipient.longitude) || '',
4070
- onChange: onChange
4065
+ onChange: onChange,
4066
+ readOnly: true
4071
4067
  }));
4072
4068
  }
4073
- var CustomInput$1 = /*#__PURE__*/styled(Input$1)(_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"])));
4069
+ var CustomInput$1 = /*#__PURE__*/styled(Input$1)(_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"])));
4074
4070
  var Container$b = /*#__PURE__*/styled.div(_templateObject2$i || (_templateObject2$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4075
4071
 
4076
4072
  var _templateObject$p, _templateObject2$j, _templateObject3$7, _templateObject4$4, _templateObject5$3;
@@ -4098,12 +4094,20 @@ function What3words() {
4098
4094
  });
4099
4095
  };
4100
4096
  var validateInput = function validateInput(value) {
4101
- var isValid = w3wRegex.test(value);
4102
- setErrors(function (prev) {
4103
- return _extends({}, prev, {
4104
- w3wError: isValid ? '' : 'Please enter a valid input (word.word.word)'
4097
+ if (value.trim()) {
4098
+ var isValid = w3wRegex.test(value);
4099
+ setErrors(function (prev) {
4100
+ return _extends({}, prev, {
4101
+ w3wError: isValid ? '' : 'Please enter a valid input (word.word.word)'
4102
+ });
4105
4103
  });
4106
- });
4104
+ } else {
4105
+ setErrors(function (prev) {
4106
+ return _extends({}, prev, {
4107
+ w3wError: ''
4108
+ });
4109
+ });
4110
+ }
4107
4111
  };
4108
4112
  return React.createElement(Container$c, null, React.createElement(Label$h, {
4109
4113
  label: "What3Words Address",
@@ -4130,18 +4134,18 @@ var RightColumn$1 = /*#__PURE__*/styled.div(_templateObject$q || (_templateObjec
4130
4134
  var Right = /*#__PURE__*/styled.div(_templateObject2$k || (_templateObject2$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
4131
4135
  var Container$d = /*#__PURE__*/styled.div(_templateObject3$8 || (_templateObject3$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
4132
4136
 
4133
- var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5;
4134
- // import CallCustomer from './CallCustomer';
4137
+ var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5, _templateObject5$4;
4135
4138
  // 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+)?)$/;
4136
4139
  function ContactHome() {
4137
- var _orderRecipient$conta;
4140
+ var _useAtom = useAtom(errorAtom),
4141
+ errors = _useAtom[0],
4142
+ setErrors = _useAtom[1];
4138
4143
  // Show call icons only if number is valid
4139
4144
  // show copy icon if there is input value
4140
4145
  var _useOrderDetails = useOrderDetails(),
4141
4146
  orderDetails = _useOrderDetails[0],
4142
4147
  setOrderDetails = _useOrderDetails[1];
4143
4148
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4144
- 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;
4145
4149
  var onChange = function onChange(e) {
4146
4150
  var val = e.target.value;
4147
4151
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4154,37 +4158,63 @@ function ContactHome() {
4154
4158
  order_recipient: updatedOrderRecipient
4155
4159
  });
4156
4160
  });
4161
+ if (val) {
4162
+ if (val.length < 10) {
4163
+ setErrors(function (prevErrors) {
4164
+ return _extends({}, prevErrors, {
4165
+ homeContactError: 'Phone number must be at least 10 digits.'
4166
+ });
4167
+ });
4168
+ } else if (val.length > 11) {
4169
+ setErrors(function (prevErrors) {
4170
+ return _extends({}, prevErrors, {
4171
+ homeContactError: 'Phone number must not exceed 11 digits.'
4172
+ });
4173
+ });
4174
+ } else {
4175
+ setErrors(function (prevErrors) {
4176
+ return _extends({}, prevErrors, {
4177
+ homeContactError: ''
4178
+ });
4179
+ });
4180
+ }
4181
+ } else {
4182
+ setErrors(function (prevErrors) {
4183
+ return _extends({}, prevErrors, {
4184
+ homeContactError: ''
4185
+ });
4186
+ });
4187
+ }
4157
4188
  };
4158
4189
  return React.createElement(MainContainer$1, null, React.createElement(Wrapper$7, null, React.createElement(Label$h, {
4159
4190
  label: "Contact Home",
4160
4191
  htmlFor: "contact-home"
4161
- }), showCopyIcon && React.createElement(CopyText, {
4162
- text: orderRecipient == null ? void 0 : orderRecipient.contact_home
4163
4192
  })), React.createElement(InputContainer, null, React.createElement(CustomInput$3, {
4164
4193
  name: "contact-home",
4165
4194
  type: "text",
4166
4195
  placeholder: "Home Number",
4167
4196
  onKeyDown: handleKeyDown,
4197
+ minLength: 10,
4198
+ maxLength: 10,
4168
4199
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
4169
4200
  onChange: onChange
4170
- })));
4201
+ })), errors.homeContactError && React.createElement(ErrorText$1, null, errors.homeContactError));
4171
4202
  }
4172
4203
  var Wrapper$7 = /*#__PURE__*/styled.div(_templateObject$r || (_templateObject$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4173
- var CustomInput$3 = /*#__PURE__*/styled(Input$1)(_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"])));
4204
+ var CustomInput$3 = /*#__PURE__*/styled(Input$1)(_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"])));
4174
4205
  var InputContainer = /*#__PURE__*/styled.div(_templateObject3$9 || (_templateObject3$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4175
4206
  var MainContainer$1 = /*#__PURE__*/styled.div(_templateObject4$5 || (_templateObject4$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4207
+ var ErrorText$1 = /*#__PURE__*/styled.span(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4176
4208
 
4177
- var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6;
4178
- // import CallCustomer from './CallCustomer';
4209
+ var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6, _templateObject5$5;
4179
4210
  function ContactWork() {
4180
- var _orderRecipient$conta;
4181
- // Show call icons only if number is valid
4182
- // show copy icon if there is input value
4211
+ var _useAtom = useAtom(errorAtom),
4212
+ errors = _useAtom[0],
4213
+ setErrors = _useAtom[1];
4183
4214
  var _useOrderDetails = useOrderDetails(),
4184
4215
  orderDetails = _useOrderDetails[0],
4185
4216
  setOrderDetails = _useOrderDetails[1];
4186
4217
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4187
- 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;
4188
4218
  var onChange = function onChange(e) {
4189
4219
  var val = e.target.value;
4190
4220
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4197,25 +4227,54 @@ function ContactWork() {
4197
4227
  order_recipient: updatedOrderRecipient
4198
4228
  });
4199
4229
  });
4230
+ // Validate only if there is a value entered
4231
+ if (val) {
4232
+ if (val.length < 10) {
4233
+ setErrors(function (prevErrors) {
4234
+ return _extends({}, prevErrors, {
4235
+ workCOntanctError: 'Phone number must be at least 10 digits.'
4236
+ });
4237
+ });
4238
+ } else if (val.length > 10) {
4239
+ setErrors(function (prevErrors) {
4240
+ return _extends({}, prevErrors, {
4241
+ workCOntanctError: 'Phone number must not exceed 10 digits.'
4242
+ });
4243
+ });
4244
+ } else {
4245
+ setErrors(function (prevErrors) {
4246
+ return _extends({}, prevErrors, {
4247
+ workCOntanctError: ''
4248
+ });
4249
+ });
4250
+ }
4251
+ } else {
4252
+ setErrors(function (prevErrors) {
4253
+ return _extends({}, prevErrors, {
4254
+ workCOntanctError: ''
4255
+ });
4256
+ });
4257
+ }
4200
4258
  };
4201
4259
  return React.createElement(Container$e, null, React.createElement(Wrapper$8, null, React.createElement(Label$h, {
4202
4260
  label: "Contact Work",
4203
4261
  htmlFor: "contact-work"
4204
- }), showCopyIcon && React.createElement(CopyText, {
4205
- text: orderRecipient == null ? void 0 : orderRecipient.contact_work
4206
4262
  })), React.createElement(InputContainer$1, null, React.createElement(CustomInput$4, {
4207
4263
  name: "contact-work",
4208
4264
  type: "text",
4209
4265
  placeholder: "Work Number",
4210
4266
  onKeyDown: handleKeyDown,
4211
4267
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
4212
- onChange: onChange
4213
- })));
4268
+ onChange: onChange,
4269
+ minLength: 10,
4270
+ maxLength: 10
4271
+ })), errors.workCOntanctError && React.createElement(ErrorText$2, null, errors.workCOntanctError));
4214
4272
  }
4215
4273
  var InputContainer$1 = /*#__PURE__*/styled.div(_templateObject$s || (_templateObject$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4216
4274
  var Wrapper$8 = /*#__PURE__*/styled.div(_templateObject2$m || (_templateObject2$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4217
- var CustomInput$4 = /*#__PURE__*/styled(Input$1)(_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"])));
4275
+ var CustomInput$4 = /*#__PURE__*/styled(Input$1)(_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"])));
4218
4276
  var Container$e = /*#__PURE__*/styled.div(_templateObject4$6 || (_templateObject4$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4277
+ var ErrorText$2 = /*#__PURE__*/styled.span(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4219
4278
 
4220
4279
  var _templateObject$t;
4221
4280
  function CallCustomer() {
@@ -4223,10 +4282,13 @@ function CallCustomer() {
4223
4282
  }
4224
4283
  var Container$f = /*#__PURE__*/styled.div(_templateObject$t || (_templateObject$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n"])));
4225
4284
 
4226
- var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7;
4285
+ var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7, _templateObject5$6;
4227
4286
  // const MOBILE_REGEX = /^(\+44\s?7\d{3}|\(?07\d{3}\)?)\s?\d{3}\s?\d{3}$/;
4228
4287
  function ContactMobile() {
4229
4288
  var _orderRecipient$conta;
4289
+ var _useAtom = useAtom(errorAtom),
4290
+ errors = _useAtom[0],
4291
+ setErrors = _useAtom[1];
4230
4292
  // Show call icons only if number is valid
4231
4293
  // show copy icon if there is input value
4232
4294
  var _useOrderDetails = useOrderDetails(),
@@ -4246,6 +4308,33 @@ function ContactMobile() {
4246
4308
  order_recipient: updatedOrderRecipient
4247
4309
  });
4248
4310
  });
4311
+ if (val) {
4312
+ if (val.length < 10) {
4313
+ setErrors(function (prevErrors) {
4314
+ return _extends({}, prevErrors, {
4315
+ mobileError: 'Phone number must be at least 10 digits.'
4316
+ });
4317
+ });
4318
+ } else if (val.length > 11) {
4319
+ setErrors(function (prevErrors) {
4320
+ return _extends({}, prevErrors, {
4321
+ mobileError: 'Phone number must not exceed 11 digits.'
4322
+ });
4323
+ });
4324
+ } else {
4325
+ setErrors(function (prevErrors) {
4326
+ return _extends({}, prevErrors, {
4327
+ mobileError: ''
4328
+ });
4329
+ });
4330
+ }
4331
+ } else {
4332
+ setErrors(function (prevErrors) {
4333
+ return _extends({}, prevErrors, {
4334
+ mobileError: ''
4335
+ });
4336
+ });
4337
+ }
4249
4338
  };
4250
4339
  return React.createElement(Container$g, null, React.createElement(Wrapper$9, null, React.createElement(Label$h, {
4251
4340
  label: "Contact Mobile",
@@ -4254,21 +4343,23 @@ function ContactMobile() {
4254
4343
  text: orderRecipient == null ? void 0 : orderRecipient.contact_mobile
4255
4344
  })), React.createElement(InputContainer$2, null, React.createElement(CustomInput$5, {
4256
4345
  name: "contact-work",
4346
+ minLength: 10,
4347
+ maxLength: 10,
4257
4348
  type: "text",
4258
4349
  placeholder: "Mobile Number",
4259
4350
  onKeyDown: handleKeyDown,
4260
4351
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
4261
4352
  onChange: onChange
4262
- }), React.createElement(CallCustomer, null)));
4353
+ }), React.createElement(CallCustomer, null)), errors.mobileError && React.createElement(ErrorText$3, null, errors.mobileError));
4263
4354
  }
4264
4355
  var InputContainer$2 = /*#__PURE__*/styled.div(_templateObject$u || (_templateObject$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4265
4356
  var Wrapper$9 = /*#__PURE__*/styled.div(_templateObject2$n || (_templateObject2$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4266
- var CustomInput$5 = /*#__PURE__*/styled(Input$1)(_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"])));
4357
+ var CustomInput$5 = /*#__PURE__*/styled(Input$1)(_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"])));
4267
4358
  var Container$g = /*#__PURE__*/styled.div(_templateObject4$7 || (_templateObject4$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4359
+ var ErrorText$3 = /*#__PURE__*/styled.span(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4268
4360
 
4269
4361
  var _templateObject$v, _templateObject2$o, _templateObject3$c;
4270
4362
  function ContactEmail() {
4271
- var _orderRecipient$conta;
4272
4363
  var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
4273
4364
  var _useOrderDetails = useOrderDetails(),
4274
4365
  orderDetails = _useOrderDetails[0],
@@ -4277,7 +4368,6 @@ function ContactEmail() {
4277
4368
  errors = _useAtom[0],
4278
4369
  setErrors = _useAtom[1];
4279
4370
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4280
- 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;
4281
4371
  var onChange = function onChange(e) {
4282
4372
  var val = e.target.value;
4283
4373
  validateInput(val);
@@ -4296,29 +4386,24 @@ function ContactEmail() {
4296
4386
  var isValid = emailRegex.test(value);
4297
4387
  setErrors(function (prev) {
4298
4388
  return _extends({}, prev, {
4299
- emailError: isValid ? '' : 'Please enter a valid Email Address'
4389
+ emailError: value && !isValid ? 'Please enter a valid Email Address' : ''
4300
4390
  });
4301
4391
  });
4302
4392
  };
4303
4393
  return React.createElement(Container$h, null, React.createElement(Wrapper$a, null, React.createElement(Label$h, {
4304
4394
  label: "Email",
4305
4395
  htmlFor: "email-id"
4306
- }), showCopyIcon && React.createElement(CopyText, {
4307
- text: orderRecipient == null ? void 0 : orderRecipient.contact_email
4308
4396
  })), React.createElement(Input$1, {
4309
4397
  name: "email-id",
4310
4398
  type: "email",
4311
4399
  placeholder: "Email",
4312
4400
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
4313
- onChange: onChange,
4314
- style: {
4315
- borderRadius: '25px'
4316
- }
4317
- }), errors.emailError && React.createElement(ErrorText$1, null, errors.emailError));
4401
+ onChange: onChange
4402
+ }), errors.emailError && React.createElement(ErrorText$4, null, errors.emailError));
4318
4403
  }
4319
4404
  var Wrapper$a = /*#__PURE__*/styled.div(_templateObject$v || (_templateObject$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4320
4405
  var Container$h = /*#__PURE__*/styled.div(_templateObject2$o || (_templateObject2$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
4321
- var ErrorText$1 = /*#__PURE__*/styled.span(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4406
+ var ErrorText$4 = /*#__PURE__*/styled.span(_templateObject3$c || (_templateObject3$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
4322
4407
 
4323
4408
  var _templateObject$w, _templateObject2$p;
4324
4409
  function ContactDetails() {
@@ -4450,11 +4535,15 @@ var Container$l = /*#__PURE__*/styled.div(_templateObject2$t || (_templateObject
4450
4535
 
4451
4536
  var _templateObject$C;
4452
4537
  function DeliveryDate() {
4538
+ var _orderStatus$;
4453
4539
  var _useOrderDetails = useOrderDetails(),
4454
4540
  orderDetails = _useOrderDetails[0],
4455
4541
  setOrderDetails = _useOrderDetails[1];
4456
4542
  var _usePrevOrderDetails = usePrevOrderDetails(),
4457
4543
  prevOrderDetails = _usePrevOrderDetails[0];
4544
+ var _useStatusDetails = useStatusDetails(),
4545
+ orderStatus = _useStatusDetails[0];
4546
+ var routedStatus = orderStatus == null || (_orderStatus$ = orderStatus[0]) == null ? void 0 : _orderStatus$.routed;
4458
4547
  var actionDate = orderDetails != null && orderDetails.action_date ? new Date(orderDetails == null ? void 0 : orderDetails.action_date) : null;
4459
4548
  var onChange = function onChange(date, _dateString) {
4460
4549
  var selectedDate = date == null ? void 0 : date.format('YYYY-MM-DDTHH:mm:ss');
@@ -4489,7 +4578,8 @@ function DeliveryDate() {
4489
4578
  style: {
4490
4579
  borderRadius: '25px'
4491
4580
  },
4492
- allowClear: false
4581
+ allowClear: false,
4582
+ disabled: routedStatus
4493
4583
  }));
4494
4584
  }
4495
4585
  var MainContainer$2 = /*#__PURE__*/styled.div(_templateObject$C || (_templateObject$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n flex: 1;\n"])));
@@ -4758,6 +4848,13 @@ function TimedServiceDropdown() {
4758
4848
  label: "Timed Service",
4759
4849
  htmlFor: "timedServiceDropdown"
4760
4850
  }), React.createElement(StyledSelectDropdown, {
4851
+ styles: _extends({}, dropdownStyles, {
4852
+ control: function control(styles) {
4853
+ return _extends({}, styles, {
4854
+ width: 'max-content'
4855
+ });
4856
+ }
4857
+ }),
4761
4858
  placeholder: "Select Timed Service",
4762
4859
  options: timedServicesOptions || [],
4763
4860
  value: timedServicesOptions == null ? void 0 : timedServicesOptions.filter(function (f) {
@@ -5200,7 +5297,7 @@ var Container$x = /*#__PURE__*/styled.div(_templateObject$S || (_templateObject$
5200
5297
  return disabled && "\n pointer-events: none;\n\n > * {\n pointer-events: none;\n }\n ";
5201
5298
  });
5202
5299
 
5203
- var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$4;
5300
+ var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$7;
5204
5301
  function ServicesSection() {
5205
5302
  return React.createElement(CustomFormSection$3, null, React.createElement(Header, {
5206
5303
  label: "Services"
@@ -5210,7 +5307,7 @@ var Top = /*#__PURE__*/styled.div(_templateObject$T || (_templateObject$T = /*#_
5210
5307
  var DropDownContainer = /*#__PURE__*/styled.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"])));
5211
5308
  var RadioContainer = /*#__PURE__*/styled.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"])));
5212
5309
  var Bottom = /*#__PURE__*/styled.div(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
5213
- var CustomFormSection$3 = /*#__PURE__*/styled(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"])));
5310
+ var CustomFormSection$3 = /*#__PURE__*/styled(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"])));
5214
5311
 
5215
5312
  var _templateObject$U, _templateObject2$G, _templateObject3$h;
5216
5313
  function AllowTracking() {
@@ -5311,12 +5408,10 @@ function OrderDetailsFooter() {
5311
5408
  var updateOrder = useUpdateOrder();
5312
5409
  var _useAtom = useAtom(errorAtom),
5313
5410
  errorState = _useAtom[0];
5314
- // const [, setLogsCallAPi] = useLogsCallAPi();
5315
5411
  var _useUpdateApiCall = useUpdateApiCall(),
5316
5412
  setCallApi = _useUpdateApiCall[1]; //single detail
5317
- // const [, setNoteLoadingStore] = UseNotesLoading();
5318
5413
  var errorFound = function errorFound() {
5319
- 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;
5414
+ 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;
5320
5415
  return isError;
5321
5416
  };
5322
5417
  var isDifferent = function isDifferent() {
@@ -5383,7 +5478,7 @@ function OrderDetailsFooter() {
5383
5478
  disabled: !isDifferent() || errorFound()
5384
5479
  }, "Save Details"));
5385
5480
  }
5386
- var Container$z = /*#__PURE__*/styled.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"])));
5481
+ var Container$z = /*#__PURE__*/styled.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"])));
5387
5482
 
5388
5483
  var _templateObject$W, _templateObject2$H, _templateObject3$i;
5389
5484
  function ExpandedContent() {
@@ -5580,7 +5675,7 @@ var Th = /*#__PURE__*/styled.th(_templateObject3$k || (_templateObject3$k = /*#_
5580
5675
  var Td = /*#__PURE__*/styled.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"])));
5581
5676
  var IconCover = /*#__PURE__*/styled.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 8px;\n span {\n margin-top: 4px;\n }\n"])));
5582
5677
 
5583
- var _templateObject$Y, _templateObject2$K, _templateObject3$l, _templateObject4$a, _templateObject5$5, _templateObject6$2, _templateObject7$4, _templateObject8$2, _templateObject9$1;
5678
+ var _templateObject$Y, _templateObject2$K, _templateObject3$l, _templateObject4$a, _templateObject5$8, _templateObject6$2, _templateObject7$4, _templateObject8$2, _templateObject9$1;
5584
5679
  var GenericAuditLogsTable = function GenericAuditLogsTable() {
5585
5680
  var _getNotes$data, _getNotes$data2;
5586
5681
  var tableHeadData = NotesTableData[0].tableHead; // Assuming NotesTableData contains table header information
@@ -5613,14 +5708,13 @@ var AuditTableWrapper = /*#__PURE__*/styled.div(_templateObject$Y || (_templateO
5613
5708
  var DateTd = /*#__PURE__*/styled(Td)(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6d6d6d;\n"])));
5614
5709
  var NoDataFound = /*#__PURE__*/styled(Td)(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 16px;\n font-size: 16px;\n color: #999;\n"])));
5615
5710
  var StyledTable$2 = /*#__PURE__*/styled(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"])));
5616
- var StyledTr = /*#__PURE__*/styled.tr(_templateObject5$5 || (_templateObject5$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:nth-child(even) {\n background-color: #f3fbff;\n }\n"])));
5711
+ var StyledTr = /*#__PURE__*/styled.tr(_templateObject5$8 || (_templateObject5$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n &:nth-child(even) {\n background-color: #f3fbff;\n }\n"])));
5617
5712
  var StyledTd = /*#__PURE__*/styled(Td)(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 10px;\n"])));
5618
5713
  var CreatedBy$1 = /*#__PURE__*/styled.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
5619
5714
  var ScrollableTableWrapper = /*#__PURE__*/styled.div(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n overflow: auto;\n"])));
5620
5715
  var StickyHeaderWrapper = /*#__PURE__*/styled.div(_templateObject9$1 || (_templateObject9$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: #fff;\n"])));
5621
5716
 
5622
5717
  var _templateObject$Z;
5623
- // import CustomScrollBar from '../../../../common/scrollbar';
5624
5718
  function AuditLogs() {
5625
5719
  return React.createElement(Container$C, null, React.createElement(GenericAuditLogsTable, null));
5626
5720
  }
@@ -5686,11 +5780,16 @@ function Notes() {
5686
5780
  setShouldPerformAction(true);
5687
5781
  }
5688
5782
  if (!NotesLoading && NotesData != null && NotesData.data) {
5689
- var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
5690
- return item['ORDER-NOTE'] || item['ORDER'];
5783
+ // const updatedData = NotesData?.data
5784
+ // .filter((item: any) => item['ORDER-NOTE'] || item['ORDER'])
5785
+ // .map((item: any) => [item['ORDER-NOTE'], item['ORDER']])
5786
+ // .flat()
5787
+ // .filter(Boolean);
5788
+ var updatedData = NotesData.data.filter(function (item) {
5789
+ return item['ORDER-NOTE'] || item['ORDER'] || item['ORDER-RETURN'];
5691
5790
  }).map(function (item) {
5692
- return [item['ORDER-NOTE'], item['ORDER']];
5693
- }).flat().filter(Boolean);
5791
+ return [item['ORDER-NOTE'], item['ORDER'], item['ORDER-RETURN']];
5792
+ });
5694
5793
  // const orderData = NotesData?.data[0]?.ORDER || [];
5695
5794
  // const orderNotesData = NotesData?.data[1]?.['ORDER-NOTE'] || [];
5696
5795
  // const allNotes = [...orderData, ...orderNotesData];
@@ -5732,7 +5831,7 @@ function ChevronUp(props) {
5732
5831
  }));
5733
5832
  }
5734
5833
 
5735
- var _templateObject$10, _templateObject2$M, _templateObject3$n, _templateObject4$b, _templateObject5$6, _templateObject6$3, _templateObject7$5, _templateObject8$3;
5834
+ var _templateObject$10, _templateObject2$M, _templateObject3$n, _templateObject4$b, _templateObject5$9, _templateObject6$3, _templateObject7$5, _templateObject8$3;
5736
5835
  function CollapsableForm(props) {
5737
5836
  var _useState = useState(true),
5738
5837
  isExpanded = _useState[0],
@@ -5756,7 +5855,7 @@ var CustomizedFormSection$1 = /*#__PURE__*/styled.div(_templateObject$10 || (_te
5756
5855
  var CardHeader$1 = /*#__PURE__*/styled.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"])));
5757
5856
  var Text$3 = /*#__PURE__*/styled.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"])));
5758
5857
  var Container$E = /*#__PURE__*/styled.div(_templateObject4$b || (_templateObject4$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
5759
- var MainContainer$5 = /*#__PURE__*/styled.div(_templateObject5$6 || (_templateObject5$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
5858
+ var MainContainer$5 = /*#__PURE__*/styled.div(_templateObject5$9 || (_templateObject5$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0;\n"])));
5760
5859
  var IconContainer$1 = /*#__PURE__*/styled.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) {
5761
5860
  return props.isExpanded ? '360deg' : '180deg';
5762
5861
  });
@@ -5785,7 +5884,7 @@ var ThumbVertical = /*#__PURE__*/styled.div(_templateObject$11 || (_templateObje
5785
5884
  var View = /*#__PURE__*/styled.div(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
5786
5885
  var TrackHorizontal = /*#__PURE__*/styled.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
5787
5886
 
5788
- var _templateObject$12, _templateObject2$O, _templateObject3$p, _templateObject4$c, _templateObject5$7, _templateObject6$4, _templateObject7$6, _templateObject8$4, _templateObject9$2;
5887
+ var _templateObject$12, _templateObject2$O, _templateObject3$p, _templateObject4$c, _templateObject5$a, _templateObject6$4, _templateObject7$6, _templateObject8$4, _templateObject9$2;
5789
5888
  function DynamicTable(_ref) {
5790
5889
  var columns = _ref.columns,
5791
5890
  data = _ref.data;
@@ -5835,7 +5934,7 @@ var Container$F = /*#__PURE__*/styled.div(_templateObject$12 || (_templateObject
5835
5934
  var TableWrapper = /*#__PURE__*/styled.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"])));
5836
5935
  var TableHeadData = /*#__PURE__*/styled.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"])));
5837
5936
  var TableData = /*#__PURE__*/styled.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"])));
5838
- var TableRow = /*#__PURE__*/styled.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"])));
5937
+ var TableRow = /*#__PURE__*/styled.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"])));
5839
5938
  var TableBody = /*#__PURE__*/styled.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"])));
5840
5939
  var TableHead = /*#__PURE__*/styled.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"])));
5841
5940
  var Table$1 = /*#__PURE__*/styled.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"])));
@@ -6853,7 +6952,7 @@ function UploadIcon(props) {
6853
6952
  })));
6854
6953
  }
6855
6954
 
6856
- var _templateObject$1k, _templateObject2$$, _templateObject3$u, _templateObject4$g, _templateObject5$8, _templateObject6$5, _templateObject7$7;
6955
+ var _templateObject$1k, _templateObject2$$, _templateObject3$u, _templateObject4$g, _templateObject5$b, _templateObject6$5, _templateObject7$7;
6857
6956
  var Dragger = Upload.Dragger;
6858
6957
  var props = {
6859
6958
  name: 'file',
@@ -6884,7 +6983,7 @@ var MainContainer$8 = /*#__PURE__*/styled.div(_templateObject$1k || (_templateOb
6884
6983
  var Text2 = /*#__PURE__*/styled.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"])));
6885
6984
  var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject3$u || (_templateObject3$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
6886
6985
  var Text1 = /*#__PURE__*/styled.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"])));
6887
- var IconContainer$3 = /*#__PURE__*/styled.div(_templateObject5$8 || (_templateObject5$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465AC;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
6986
+ var IconContainer$3 = /*#__PURE__*/styled.div(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px dashed #0465AC;\n padding: 5px;\n display: flex;\n align-items: center;\n"])));
6888
6987
  var UploadButton = /*#__PURE__*/styled(Button)(_templateObject6$5 || (_templateObject6$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
6889
6988
  var Container$Q = /*#__PURE__*/styled.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"])));
6890
6989
 
@@ -7229,7 +7328,7 @@ var Input = /*#__PURE__*/styled.input(_templateObject2$12 || (_templateObject2$1
7229
7328
  });
7230
7329
  var RadioContainer$1 = /*#__PURE__*/styled.div(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
7231
7330
 
7232
- var _templateObject$1p, _templateObject2$13, _templateObject3$y, _templateObject4$i, _templateObject5$9, _templateObject6$6, _templateObject7$8;
7331
+ var _templateObject$1p, _templateObject2$13, _templateObject3$y, _templateObject4$i, _templateObject5$c, _templateObject6$6, _templateObject7$8;
7233
7332
  function RadioButtonGroup(props) {
7234
7333
  var heading = props.heading,
7235
7334
  _props$direction = props.direction,
@@ -7270,7 +7369,7 @@ var RequiredText = /*#__PURE__*/styled.span(_templateObject3$y || (_templateObje
7270
7369
  return !props.$required && 'visibility: hidden;';
7271
7370
  }, labelStyles);
7272
7371
  var LegendContainer = /*#__PURE__*/styled.div(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-bottom: 7px;\n"])));
7273
- var Legend = /*#__PURE__*/styled.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);
7372
+ var Legend = /*#__PURE__*/styled.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);
7274
7373
  var Fieldset = /*#__PURE__*/styled.fieldset(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
7275
7374
  var Wrapper$g = /*#__PURE__*/styled.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) {
7276
7375
  return props.$direction === 'horizontal' ? 'row' : 'column';
@@ -7309,7 +7408,7 @@ function DeliveryPoint() {
7309
7408
  }
7310
7409
  var Container$R = /*#__PURE__*/styled.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"])));
7311
7410
 
7312
- var _templateObject$1r, _templateObject2$14, _templateObject3$z, _templateObject4$j, _templateObject5$a, _templateObject6$7, _templateObject7$9, _templateObject8$5;
7411
+ var _templateObject$1r, _templateObject2$14, _templateObject3$z, _templateObject4$j, _templateObject5$d, _templateObject6$7, _templateObject7$9, _templateObject8$5;
7313
7412
  var _excluded$5 = ["imageSrc", "label", "checked"];
7314
7413
  function Checkbox(props) {
7315
7414
  var imageSrc = props.imageSrc,
@@ -7340,7 +7439,7 @@ var Circle = /*#__PURE__*/styled.span(_templateObject3$z || (_templateObject3$z
7340
7439
  var Text$6 = /*#__PURE__*/styled.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) {
7341
7440
  return props.$checked ? '#3a3630' : 'rgba(58, 54, 48, 0.50)';
7342
7441
  });
7343
- var InformationContainer = /*#__PURE__*/styled.div(_templateObject5$a || (_templateObject5$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: center;\n"])));
7442
+ var InformationContainer = /*#__PURE__*/styled.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: center;\n"])));
7344
7443
  var CheckboxContainer = /*#__PURE__*/styled.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
7345
7444
  var HiddenCheckbox = /*#__PURE__*/styled.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"])));
7346
7445
  var MainContainer$9 = /*#__PURE__*/styled.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) {
@@ -7459,7 +7558,7 @@ function ReturnReason() {
7459
7558
  });
7460
7559
  }
7461
7560
 
7462
- var _templateObject$1v, _templateObject2$17, _templateObject3$B, _templateObject4$k, _templateObject5$b, _templateObject6$8, _templateObject7$a;
7561
+ var _templateObject$1v, _templateObject2$17, _templateObject3$B, _templateObject4$k, _templateObject5$e, _templateObject6$8, _templateObject7$a;
7463
7562
  function CancelOrder() {
7464
7563
  var _orderStaticData$canc;
7465
7564
  var _useOrderId = useOrderId(),
@@ -7574,7 +7673,7 @@ var Label$5 = /*#__PURE__*/styled.label(_templateObject$1v || (_templateObject$1
7574
7673
  var Container$U = /*#__PURE__*/styled.div(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7575
7674
  var Wrapper$h = /*#__PURE__*/styled.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n width: 100%;\n > div {\n width: 50%;\n }\n"])));
7576
7675
  var TopLeft = /*#__PURE__*/styled.div(_templateObject4$k || (_templateObject4$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 15px;\n width: 50%;\n"])));
7577
- var TopRight = /*#__PURE__*/styled.div(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
7676
+ var TopRight = /*#__PURE__*/styled.div(_templateObject5$e || (_templateObject5$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 50%;\n"])));
7578
7677
  var Top$2 = /*#__PURE__*/styled.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 30px;\n width: 100%;\n"])));
7579
7678
  // const Bottom = styled.div``;
7580
7679
  var ContentContainer$3 = /*#__PURE__*/styled.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"])));
@@ -7618,11 +7717,11 @@ function EmailAddress() {
7618
7717
  type: "text",
7619
7718
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
7620
7719
  onChange: onChange
7621
- }), errors.emailError && React.createElement(ErrorText$2, null, errors.emailError));
7720
+ }), errors.emailError && React.createElement(ErrorText$5, null, errors.emailError));
7622
7721
  }
7623
7722
  var Label$6 = /*#__PURE__*/styled.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"])));
7624
7723
  var Container$V = /*#__PURE__*/styled.div(_templateObject2$18 || (_templateObject2$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7625
- var ErrorText$2 = /*#__PURE__*/styled.span(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7724
+ var ErrorText$5 = /*#__PURE__*/styled.span(_templateObject3$C || (_templateObject3$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7626
7725
 
7627
7726
  var _templateObject$1x, _templateObject2$19, _templateObject3$D;
7628
7727
  function ContactPhone() {
@@ -7683,11 +7782,11 @@ function ContactPhone() {
7683
7782
  },
7684
7783
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
7685
7784
  onChange: onChange
7686
- }), errors.homeContactError && React.createElement(ErrorText$3, null, errors.homeContactError));
7785
+ }), errors.homeContactError && React.createElement(ErrorText$6, null, errors.homeContactError));
7687
7786
  }
7688
7787
  var Label$7 = /*#__PURE__*/styled.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"])));
7689
7788
  var Container$W = /*#__PURE__*/styled.div(_templateObject2$19 || (_templateObject2$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7690
- var ErrorText$3 = /*#__PURE__*/styled.span(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7789
+ var ErrorText$6 = /*#__PURE__*/styled.span(_templateObject3$D || (_templateObject3$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7691
7790
 
7692
7791
  var _templateObject$1y, _templateObject2$1a, _templateObject3$E;
7693
7792
  function ContactWork$1() {
@@ -7748,11 +7847,11 @@ function ContactWork$1() {
7748
7847
  },
7749
7848
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
7750
7849
  onChange: onChange
7751
- }), errors.workContactError && React.createElement(ErrorText$4, null, errors.workContactError));
7850
+ }), errors.workContactError && React.createElement(ErrorText$7, null, errors.workContactError));
7752
7851
  }
7753
7852
  var Label$8 = /*#__PURE__*/styled.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"])));
7754
7853
  var Container$X = /*#__PURE__*/styled.div(_templateObject2$1a || (_templateObject2$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7755
- var ErrorText$4 = /*#__PURE__*/styled.span(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7854
+ var ErrorText$7 = /*#__PURE__*/styled.span(_templateObject3$E || (_templateObject3$E = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7756
7855
 
7757
7856
  var _templateObject$1z, _templateObject2$1b, _templateObject3$F;
7758
7857
  function ContactMobile$1() {
@@ -7813,11 +7912,11 @@ function ContactMobile$1() {
7813
7912
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
7814
7913
  onKeyDown: handleKeyDown,
7815
7914
  onChange: onChange
7816
- }), errors.mobileError && React.createElement(ErrorText$5, null, errors.mobileError));
7915
+ }), errors.mobileError && React.createElement(ErrorText$8, null, errors.mobileError));
7817
7916
  }
7818
7917
  var Label$9 = /*#__PURE__*/styled.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"])));
7819
7918
  var Container$Y = /*#__PURE__*/styled.div(_templateObject2$1b || (_templateObject2$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7820
- var ErrorText$5 = /*#__PURE__*/styled.span(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7919
+ var ErrorText$8 = /*#__PURE__*/styled.span(_templateObject3$F || (_templateObject3$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: red;\n font-size: 0.85rem;\n margin-top: 4px;\n"])));
7821
7920
 
7822
7921
  function ContactTypeDropdown() {
7823
7922
  var _useOrderStaticData = useOrderStaticData(),
@@ -8331,11 +8430,11 @@ function ConfirmOrder() {
8331
8430
  var Wrapper$j = /*#__PURE__*/styled.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
8332
8431
  var ContentContainer$4 = /*#__PURE__*/styled.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"])));
8333
8432
 
8334
- 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;
8433
+ 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;
8335
8434
  var StyledInput = /*#__PURE__*/styled(Input$1)(_templateObject2$1l || (_templateObject2$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 66px;\n min-width: 700px;\n"])));
8336
8435
  var StyledTextArea$1 = /*#__PURE__*/styled(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"])));
8337
8436
  var StyledTextAreas = /*#__PURE__*/styled(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"])));
8338
- var SplitLayout = /*#__PURE__*/styled.div(_templateObject5$c || (_templateObject5$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n"])));
8437
+ var SplitLayout = /*#__PURE__*/styled.div(_templateObject5$f || (_templateObject5$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n gap: 10px;\n"])));
8339
8438
  var SplitText = /*#__PURE__*/styled.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"])));
8340
8439
  var Row$4 = /*#__PURE__*/styled.div(_templateObject7$b || (_templateObject7$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1 0 0;\n display: grid;\n gap: 5px;\n justify-content: center;\n"])));
8341
8440
  var HoldRow = /*#__PURE__*/styled.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"])));
@@ -8424,6 +8523,9 @@ var optionsMenu = [{
8424
8523
  }, {
8425
8524
  label: 'Cancel',
8426
8525
  value: 'cancel-order'
8526
+ }, {
8527
+ label: 'Un Hold',
8528
+ value: 'unhold-order'
8427
8529
  }];
8428
8530
  var PrintMenu = [{
8429
8531
  label: 'Return Notes',
@@ -9342,7 +9444,7 @@ function useFetchReminders() {
9342
9444
  return perform;
9343
9445
  }
9344
9446
 
9345
- var _templateObject$1N, _templateObject2$1p, _templateObject3$L, _templateObject4$q, _templateObject5$d, _templateObject6$a, _templateObject7$c;
9447
+ var _templateObject$1N, _templateObject2$1p, _templateObject3$L, _templateObject4$q, _templateObject5$g, _templateObject6$a, _templateObject7$c;
9346
9448
  var ViewReminderModal = function ViewReminderModal() {
9347
9449
  var _reminderData$reminde, _reminderData$order_d, _reminderData$order_d2, _reminderData$reminde2, _reminderData$reminde3, _reminderData$reminde4, _reminderData$reminde5;
9348
9450
  var _useCurrentAction = useCurrentAction(),
@@ -9502,15 +9604,15 @@ var StyledWrapper = /*#__PURE__*/styled.div(_templateObject$1N || (_templateObje
9502
9604
  var StyledLabel$1 = /*#__PURE__*/styled.label(_templateObject2$1p || (_templateObject2$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
9503
9605
  var StyledSpan = /*#__PURE__*/styled.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"])));
9504
9606
  var StyledCheckbox = /*#__PURE__*/styled.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"])));
9505
- var OuterDiv = /*#__PURE__*/styled.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
9607
+ var OuterDiv = /*#__PURE__*/styled.div(_templateObject5$g || (_templateObject5$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-left: 33%;\n"])));
9506
9608
  var RoundCheckbox = /*#__PURE__*/styled.span(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9507
9609
  var LabelText = /*#__PURE__*/styled.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"])));
9508
9610
 
9509
- var _templateObject$1O, _templateObject3$M, _templateObject5$e, _templateObject7$d, _templateObject8$8, _templateObject9$4;
9611
+ var _templateObject$1O, _templateObject3$M, _templateObject5$h, _templateObject7$d, _templateObject8$8, _templateObject9$4;
9510
9612
  // Shared styles and components
9511
9613
  var Wrapper$k = /*#__PURE__*/styled.div(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
9512
9614
  var SplitContainer = /*#__PURE__*/styled.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"])));
9513
- var Label$f = /*#__PURE__*/styled.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"])));
9615
+ var Label$f = /*#__PURE__*/styled.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"])));
9514
9616
  var ContentContainer$6 = /*#__PURE__*/styled.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"])));
9515
9617
  var Row$6 = /*#__PURE__*/styled.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9516
9618
  var DoubleDropdownContainer = /*#__PURE__*/styled.div(_templateObject9$4 || (_templateObject9$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n width: 100%;\n"])));
@@ -9527,7 +9629,7 @@ var FormRow = function FormRow(_ref) {
9527
9629
  }, " * ")), children);
9528
9630
  };
9529
9631
 
9530
- var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$f;
9632
+ var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$i;
9531
9633
  dayjs.extend(utc);
9532
9634
  dayjs.extend(isValid);
9533
9635
  function CreateReminderModal() {
@@ -9754,7 +9856,7 @@ var StyleContainer = /*#__PURE__*/styled.div(_templateObject$1P || (_templateObj
9754
9856
  var Label$g = /*#__PURE__*/styled.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"])));
9755
9857
  var StyledAntSelect$4 = /*#__PURE__*/styled(Select)(_templateObject3$N || (_templateObject3$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .ant-select-selector {\n width: 20vw;\n border-radius: 22px;\n }\n"])));
9756
9858
  var StyledTextArea$2 = /*#__PURE__*/styled(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"])));
9757
- var StyledLink = /*#__PURE__*/styled.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"])));
9859
+ var StyledLink = /*#__PURE__*/styled.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"])));
9758
9860
 
9759
9861
  function useCreateReminder() {
9760
9862
  var ssoToken = getCookie('id_token');
@@ -10149,7 +10251,7 @@ function useUpdateFlag() {
10149
10251
  return create;
10150
10252
  }
10151
10253
 
10152
- var _templateObject$1S, _templateObject2$1s, _templateObject3$O, _templateObject4$s, _templateObject5$g, _templateObject6$b;
10254
+ var _templateObject$1S, _templateObject2$1s, _templateObject3$O, _templateObject4$s, _templateObject5$j, _templateObject6$b;
10153
10255
  function HeaderSection() {
10154
10256
  var _useSingleFlagData = useSingleFlagData(),
10155
10257
  dataArray = _useSingleFlagData[0];
@@ -10223,7 +10325,7 @@ var Header$1 = /*#__PURE__*/styled.div(_templateObject$1S || (_templateObject$1S
10223
10325
  var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1s || (_templateObject2$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
10224
10326
  var ResolveButton = /*#__PURE__*/styled.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"])));
10225
10327
  var Title$7 = /*#__PURE__*/styled.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"])));
10226
- var StyledOverlay = /*#__PURE__*/styled.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"])));
10328
+ var StyledOverlay = /*#__PURE__*/styled.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"])));
10227
10329
  var CrossWrapper = /*#__PURE__*/styled.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
10228
10330
 
10229
10331
  var _templateObject$1T, _templateObject2$1t;
@@ -10341,7 +10443,7 @@ function ButtonsSection() {
10341
10443
  var Buttons = /*#__PURE__*/styled.div(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10342
10444
  var Flex = /*#__PURE__*/styled.div(_templateObject2$1u || (_templateObject2$1u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10343
10445
 
10344
- var _templateObject$1V, _templateObject2$1v, _templateObject3$P, _templateObject4$t, _templateObject5$h, _templateObject6$c;
10446
+ var _templateObject$1V, _templateObject2$1v, _templateObject3$P, _templateObject4$t, _templateObject5$k, _templateObject6$c;
10345
10447
  function ActionSection() {
10346
10448
  var _useCurrentAction = useCurrentAction(),
10347
10449
  setCurrentAction = _useCurrentAction[1];
@@ -10431,10 +10533,10 @@ var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$1V || (_templateObje
10431
10533
  var SaveButton = /*#__PURE__*/styled(Button)(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10432
10534
  var CancelButton = /*#__PURE__*/styled(Button)(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10433
10535
  var DropDowns = /*#__PURE__*/styled.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10434
- var TooltipContent = /*#__PURE__*/styled.div(_templateObject5$h || (_templateObject5$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
10536
+ var TooltipContent = /*#__PURE__*/styled.div(_templateObject5$k || (_templateObject5$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: #333;\n color: #fff;\n padding: 5px 10px;\n border-radius: 5px;\n"])));
10435
10537
  var Wrapper$l = /*#__PURE__*/styled.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10436
10538
 
10437
- var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$i;
10539
+ var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$l;
10438
10540
  function DetailSection() {
10439
10541
  var _dataArray$order_data, _dataArray$order_data2;
10440
10542
  var _useSingleFlagData = useSingleFlagData(),
@@ -10450,7 +10552,7 @@ var Detail = /*#__PURE__*/styled.div(_templateObject$1W || (_templateObject$1W =
10450
10552
  var Flex$1 = /*#__PURE__*/styled.div(_templateObject2$1w || (_templateObject2$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10451
10553
  var Ref = /*#__PURE__*/styled.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
10452
10554
  var Order = /*#__PURE__*/styled.div(_templateObject4$u || (_templateObject4$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n text-decoration: underline;\n font-family: 'Lato', sans-serif;\n"])));
10453
- var StyledLabel$2 = /*#__PURE__*/styled(Label$h)(_templateObject5$i || (_templateObject5$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
10555
+ var StyledLabel$2 = /*#__PURE__*/styled(Label$h)(_templateObject5$l || (_templateObject5$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-right: 10px;\n font-weight: bold;\n"])));
10454
10556
 
10455
10557
  function useFetchSingleFlagsData() {
10456
10558
  var _useFlagRefId = useFlagRefId(),
@@ -11188,6 +11290,7 @@ function OrderView() {
11188
11290
  }
11189
11291
  } else {
11190
11292
  var paths = location.pathname.split('/');
11293
+ console.log(paths[paths.length - 1], 'paths');
11191
11294
  setOrderId(paths[paths.length - 1]);
11192
11295
  }
11193
11296
  }, [location.search, loadingExternal]);
@@ -11409,6 +11512,7 @@ function OrderView() {
11409
11512
  setGsitOrderId(undefined);
11410
11513
  };
11411
11514
  }, [gsitId]);
11515
+ console.log(orderId, 'orderId');
11412
11516
  return React.createElement(MainContainer$b, null, React.createElement(GeneralHeader, null), React.createElement(DetailsFilters, null), React.createElement(OrderDetails$1, null), React.createElement(ProductsInfo, null), React.createElement(SplitLayout$1, null, React.createElement(NotesContainer, null, React.createElement(Notes, null)), React.createElement(TablesContainer, null, React.createElement(SystemLogs, null))), React.createElement(OrderActions, null));
11413
11517
  }
11414
11518
  var MainContainer$b = /*#__PURE__*/styled.div(_templateObject$24 || (_templateObject$24 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n padding-bottom: 30px;\n"])));
@@ -11464,45 +11568,53 @@ var BulkFilter = function BulkFilter() {
11464
11568
  );
11465
11569
  };
11466
11570
 
11467
- var _excluded$6 = ["count"];
11571
+ // import { TableRowType } from '../shared/interface';
11572
+ // import { filtersReducerAtom } from '../header-filters/filterStore';
11573
+ // import { useApiHook } from '@bjsdistribution/dms-component-library';
11574
+ // import {
11575
+ // UsePaginationData,
11576
+ // useCountData,
11577
+ // useRoutesTable,
11578
+ // } from '../store/store';
11579
+ // import { notification } from 'antd';
11468
11580
  // import { useAtom } from 'jotai';
11469
11581
  var Filters = function Filters() {
11470
- var _useRoutesTable = useRoutesTable(),
11471
- setData = _useRoutesTable[1];
11582
+ // const [, setData] = useRoutesTable();
11472
11583
  // const [state] = useAtom(filtersReducerAtom);
11473
- var _UsePaginationData = UsePaginationData(),
11474
- setPaginationObject = _UsePaginationData[1];
11475
- var _useCountData = useCountData(),
11476
- setCount = _useCountData[1];
11584
+ // const [, setPaginationObject] = UsePaginationData();
11585
+ // const [, setCount] = useCountData();
11477
11586
  // Hooks
11478
11587
  // const { 'x-filters': filters, 'x-pagination': pagination } = state;
11479
- var _useApiHook = useApiHook({
11480
- endpoint: 'orders/',
11481
- method: 'GET'
11482
- }),
11483
- fetchedData = _useApiHook.data,
11484
- apiLoading = _useApiHook.loading,
11485
- paginationData = _useApiHook.paginationData;
11486
- useEffect(function () {
11487
- if (fetchedData && fetchedData.data) {
11488
- var data = fetchedData.data;
11489
- setData(data);
11490
- if (paginationData !== null) {
11491
- var _JSON$parse = JSON.parse(paginationData),
11492
- count = _JSON$parse.count,
11493
- rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$6);
11494
- setPaginationObject(rest);
11495
- setCount(count);
11496
- } else {
11497
- // console.error('Pagination data is null');
11498
- notification.error({
11499
- message: 'Error',
11500
- description: 'Pagination data is null'
11501
- });
11502
- }
11503
- }
11504
- }, [apiLoading]);
11505
- var _useState = useState(true);
11588
+ // const {
11589
+ // data: fetchedData,
11590
+ // loading: apiLoading,
11591
+ // paginationData,
11592
+ // } = useApiHook<{
11593
+ // data: TableRowType[];
11594
+ // }>({
11595
+ // endpoint: 'orders/',
11596
+ // method: 'GET',
11597
+ // // pagination: pagination,
11598
+ // // filters: filters,
11599
+ // });
11600
+ // useEffect(() => {
11601
+ // if (fetchedData && fetchedData.data) {
11602
+ // const data = fetchedData.data;
11603
+ // setData(data);
11604
+ // if (paginationData !== null) {
11605
+ // const { count, ...rest } = JSON.parse(paginationData);
11606
+ // setPaginationObject(rest);
11607
+ // setCount(count);
11608
+ // } else {
11609
+ // // console.error('Pagination data is null');
11610
+ // notification.error({
11611
+ // message: 'Error',
11612
+ // description: 'Pagination data is null',
11613
+ // });
11614
+ // }
11615
+ // }
11616
+ // }, [apiLoading]);
11617
+ // const [] = useState(true);
11506
11618
  // const ToggleView = () => {
11507
11619
  // setDataView(!DataView);
11508
11620
  // };
@@ -11775,7 +11887,7 @@ var overviewfiltersReducerAtom = /*#__PURE__*/atom(function (get) {
11775
11887
  });
11776
11888
 
11777
11889
  var _templateObject$26, _templateObject2$1C, _templateObject3$T;
11778
- var _excluded$7 = ["count"];
11890
+ var _excluded$6 = ["count"];
11779
11891
  function ReturnMainTable() {
11780
11892
  var _useAtom = useAtom(overviewfiltersReducerAtom),
11781
11893
  state = _useAtom[0];
@@ -11824,7 +11936,7 @@ function ReturnMainTable() {
11824
11936
  try {
11825
11937
  var _JSON$parse = JSON.parse(paginationData),
11826
11938
  count = _JSON$parse.count,
11827
- rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$7);
11939
+ rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$6);
11828
11940
  setPaginationObject(rest);
11829
11941
  } catch (error) {
11830
11942
  console.error('Error parsing paginationData:', error);