@bjsdistribution/dms-client-return 0.0.74 → 0.0.76

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 (23) 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 +205 -92
  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 +205 -92
  7. package/dist/dms-client-return.esm.js.map +1 -1
  8. package/package.json +2 -2
  9. package/src/components/order-view/details-filters/left-side-filters/dropdowns/PrintDropDownReturn.tsx +5 -4
  10. package/src/components/order-view/fakedata.ts +2 -0
  11. package/src/components/order-view/index.tsx +3 -0
  12. package/src/components/order-view/notes/index.tsx +25 -16
  13. package/src/components/order-view/notes/logs/index.tsx +0 -3
  14. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactEmail.tsx +5 -15
  15. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.tsx +45 -16
  16. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.tsx +42 -8
  17. package/src/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactWork.tsx +41 -19
  18. package/src/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.tsx +5 -1
  19. package/src/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.tsx +5 -1
  20. package/src/components/order-view/order-details/expanded-content/customer-section/location-info/What3words.tsx +12 -5
  21. package/src/components/order-view/order-details/expanded-content/footer/index.tsx +8 -14
  22. package/src/components/order-view/order-details/expanded-content/orders-section/DeliveryDate.tsx +9 -1
  23. 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 = {};
@@ -1566,9 +1569,9 @@ var optionsForReturnPrint = [{
1566
1569
  var _templateObject$4, _templateObject2$2;
1567
1570
  var options = optionsForReturnPrint;
1568
1571
  var PrintDropDownReturn = function PrintDropDownReturn(_ref) {
1569
- var legacyProductId = _ref.legacyProductId;
1572
+ _objectDestructuringEmpty(_ref);
1570
1573
  var downloadFiles = function downloadFiles() {
1571
- var url = "https://us.toolbox.bjshomedelivery.com/offload/return_label?gsit_products_id=" + legacyProductId;
1574
+ var url = "";
1572
1575
  window.open(url, '_blank'); // Opens the URL in a new tab
1573
1576
  };
1574
1577
  return React__default.createElement(OptionsList, null, options == null ? void 0 : options.map(function (item, index) {
@@ -4032,10 +4035,11 @@ function Latitude() {
4032
4035
  placeholder: "Latitude",
4033
4036
  onKeyDown: handleKeyDown,
4034
4037
  value: (orderRecipient == null ? void 0 : orderRecipient.latitude) || '',
4035
- onChange: onChange
4038
+ onChange: onChange,
4039
+ readOnly: true
4036
4040
  }));
4037
4041
  }
4038
- 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"])));
4039
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"])));
4040
4044
 
4041
4045
  var _templateObject$o, _templateObject2$i;
@@ -4066,10 +4070,11 @@ function Longitude() {
4066
4070
  placeholder: "Longitude",
4067
4071
  onKeyDown: handleKeyDown,
4068
4072
  value: (orderRecipient == null ? void 0 : orderRecipient.longitude) || '',
4069
- onChange: onChange
4073
+ onChange: onChange,
4074
+ readOnly: true
4070
4075
  }));
4071
4076
  }
4072
- 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"])));
4073
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"])));
4074
4079
 
4075
4080
  var _templateObject$p, _templateObject2$j, _templateObject3$7, _templateObject4$4, _templateObject5$3;
@@ -4097,12 +4102,20 @@ function What3words() {
4097
4102
  });
4098
4103
  };
4099
4104
  var validateInput = function validateInput(value) {
4100
- var isValid = w3wRegex.test(value);
4101
- setErrors(function (prev) {
4102
- return _extends({}, prev, {
4103
- 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
+ });
4104
4111
  });
4105
- });
4112
+ } else {
4113
+ setErrors(function (prev) {
4114
+ return _extends({}, prev, {
4115
+ w3wError: ''
4116
+ });
4117
+ });
4118
+ }
4106
4119
  };
4107
4120
  return React__default.createElement(Container$c, null, React__default.createElement(dmsComponentLibrary.Label, {
4108
4121
  label: "What3Words Address",
@@ -4129,18 +4142,18 @@ var RightColumn$1 = /*#__PURE__*/styled__default.div(_templateObject$q || (_temp
4129
4142
  var Right = /*#__PURE__*/styled__default.div(_templateObject2$k || (_templateObject2$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
4130
4143
  var Container$d = /*#__PURE__*/styled__default.div(_templateObject3$8 || (_templateObject3$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
4131
4144
 
4132
- var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5;
4133
- // import CallCustomer from './CallCustomer';
4145
+ var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5, _templateObject5$4;
4134
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+)?)$/;
4135
4147
  function ContactHome() {
4136
- var _orderRecipient$conta;
4148
+ var _useAtom = jotai.useAtom(errorAtom),
4149
+ errors = _useAtom[0],
4150
+ setErrors = _useAtom[1];
4137
4151
  // Show call icons only if number is valid
4138
4152
  // show copy icon if there is input value
4139
4153
  var _useOrderDetails = useOrderDetails(),
4140
4154
  orderDetails = _useOrderDetails[0],
4141
4155
  setOrderDetails = _useOrderDetails[1];
4142
4156
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4143
- 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;
4144
4157
  var onChange = function onChange(e) {
4145
4158
  var val = e.target.value;
4146
4159
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4153,37 +4166,63 @@ function ContactHome() {
4153
4166
  order_recipient: updatedOrderRecipient
4154
4167
  });
4155
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
+ }
4156
4196
  };
4157
4197
  return React__default.createElement(MainContainer$1, null, React__default.createElement(Wrapper$7, null, React__default.createElement(dmsComponentLibrary.Label, {
4158
4198
  label: "Contact Home",
4159
4199
  htmlFor: "contact-home"
4160
- }), showCopyIcon && React__default.createElement(CopyText, {
4161
- text: orderRecipient == null ? void 0 : orderRecipient.contact_home
4162
4200
  })), React__default.createElement(InputContainer, null, React__default.createElement(CustomInput$3, {
4163
4201
  name: "contact-home",
4164
4202
  type: "text",
4165
4203
  placeholder: "Home Number",
4166
4204
  onKeyDown: handleKeyDown,
4205
+ minLength: 10,
4206
+ maxLength: 10,
4167
4207
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
4168
4208
  onChange: onChange
4169
- })));
4209
+ })), errors.homeContactError && React__default.createElement(ErrorText$1, null, errors.homeContactError));
4170
4210
  }
4171
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"])));
4172
- 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"])));
4173
4213
  var InputContainer = /*#__PURE__*/styled__default.div(_templateObject3$9 || (_templateObject3$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4174
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"])));
4175
4216
 
4176
- var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6;
4177
- // import CallCustomer from './CallCustomer';
4217
+ var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6, _templateObject5$5;
4178
4218
  function ContactWork() {
4179
- var _orderRecipient$conta;
4180
- // Show call icons only if number is valid
4181
- // show copy icon if there is input value
4219
+ var _useAtom = jotai.useAtom(errorAtom),
4220
+ errors = _useAtom[0],
4221
+ setErrors = _useAtom[1];
4182
4222
  var _useOrderDetails = useOrderDetails(),
4183
4223
  orderDetails = _useOrderDetails[0],
4184
4224
  setOrderDetails = _useOrderDetails[1];
4185
4225
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4186
- 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;
4187
4226
  var onChange = function onChange(e) {
4188
4227
  var val = e.target.value;
4189
4228
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4196,25 +4235,54 @@ function ContactWork() {
4196
4235
  order_recipient: updatedOrderRecipient
4197
4236
  });
4198
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
+ }
4199
4266
  };
4200
4267
  return React__default.createElement(Container$e, null, React__default.createElement(Wrapper$8, null, React__default.createElement(dmsComponentLibrary.Label, {
4201
4268
  label: "Contact Work",
4202
4269
  htmlFor: "contact-work"
4203
- }), showCopyIcon && React__default.createElement(CopyText, {
4204
- text: orderRecipient == null ? void 0 : orderRecipient.contact_work
4205
4270
  })), React__default.createElement(InputContainer$1, null, React__default.createElement(CustomInput$4, {
4206
4271
  name: "contact-work",
4207
4272
  type: "text",
4208
4273
  placeholder: "Work Number",
4209
4274
  onKeyDown: handleKeyDown,
4210
4275
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
4211
- onChange: onChange
4212
- })));
4276
+ onChange: onChange,
4277
+ minLength: 10,
4278
+ maxLength: 10
4279
+ })), errors.workCOntanctError && React__default.createElement(ErrorText$2, null, errors.workCOntanctError));
4213
4280
  }
4214
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"])));
4215
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"])));
4216
- 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"])));
4217
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"])));
4218
4286
 
4219
4287
  var _templateObject$t;
4220
4288
  function CallCustomer() {
@@ -4222,10 +4290,13 @@ function CallCustomer() {
4222
4290
  }
4223
4291
  var Container$f = /*#__PURE__*/styled__default.div(_templateObject$t || (_templateObject$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n"])));
4224
4292
 
4225
- var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7;
4293
+ var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7, _templateObject5$6;
4226
4294
  // const MOBILE_REGEX = /^(\+44\s?7\d{3}|\(?07\d{3}\)?)\s?\d{3}\s?\d{3}$/;
4227
4295
  function ContactMobile() {
4228
4296
  var _orderRecipient$conta;
4297
+ var _useAtom = jotai.useAtom(errorAtom),
4298
+ errors = _useAtom[0],
4299
+ setErrors = _useAtom[1];
4229
4300
  // Show call icons only if number is valid
4230
4301
  // show copy icon if there is input value
4231
4302
  var _useOrderDetails = useOrderDetails(),
@@ -4245,6 +4316,33 @@ function ContactMobile() {
4245
4316
  order_recipient: updatedOrderRecipient
4246
4317
  });
4247
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
+ }
4248
4346
  };
4249
4347
  return React__default.createElement(Container$g, null, React__default.createElement(Wrapper$9, null, React__default.createElement(dmsComponentLibrary.Label, {
4250
4348
  label: "Contact Mobile",
@@ -4253,21 +4351,23 @@ function ContactMobile() {
4253
4351
  text: orderRecipient == null ? void 0 : orderRecipient.contact_mobile
4254
4352
  })), React__default.createElement(InputContainer$2, null, React__default.createElement(CustomInput$5, {
4255
4353
  name: "contact-work",
4354
+ minLength: 10,
4355
+ maxLength: 10,
4256
4356
  type: "text",
4257
4357
  placeholder: "Mobile Number",
4258
4358
  onKeyDown: handleKeyDown,
4259
4359
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
4260
4360
  onChange: onChange
4261
- }), React__default.createElement(CallCustomer, null)));
4361
+ }), React__default.createElement(CallCustomer, null)), errors.mobileError && React__default.createElement(ErrorText$3, null, errors.mobileError));
4262
4362
  }
4263
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"])));
4264
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"])));
4265
- 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"])));
4266
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"])));
4267
4368
 
4268
4369
  var _templateObject$v, _templateObject2$o, _templateObject3$c;
4269
4370
  function ContactEmail() {
4270
- var _orderRecipient$conta;
4271
4371
  var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
4272
4372
  var _useOrderDetails = useOrderDetails(),
4273
4373
  orderDetails = _useOrderDetails[0],
@@ -4276,7 +4376,6 @@ function ContactEmail() {
4276
4376
  errors = _useAtom[0],
4277
4377
  setErrors = _useAtom[1];
4278
4378
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4279
- 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;
4280
4379
  var onChange = function onChange(e) {
4281
4380
  var val = e.target.value;
4282
4381
  validateInput(val);
@@ -4295,29 +4394,24 @@ function ContactEmail() {
4295
4394
  var isValid = emailRegex.test(value);
4296
4395
  setErrors(function (prev) {
4297
4396
  return _extends({}, prev, {
4298
- emailError: isValid ? '' : 'Please enter a valid Email Address'
4397
+ emailError: value && !isValid ? 'Please enter a valid Email Address' : ''
4299
4398
  });
4300
4399
  });
4301
4400
  };
4302
4401
  return React__default.createElement(Container$h, null, React__default.createElement(Wrapper$a, null, React__default.createElement(dmsComponentLibrary.Label, {
4303
4402
  label: "Email",
4304
4403
  htmlFor: "email-id"
4305
- }), showCopyIcon && React__default.createElement(CopyText, {
4306
- text: orderRecipient == null ? void 0 : orderRecipient.contact_email
4307
4404
  })), React__default.createElement(dmsComponentLibrary.Input, {
4308
4405
  name: "email-id",
4309
4406
  type: "email",
4310
4407
  placeholder: "Email",
4311
4408
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
4312
- onChange: onChange,
4313
- style: {
4314
- borderRadius: '25px'
4315
- }
4316
- }), errors.emailError && React__default.createElement(ErrorText$1, null, errors.emailError));
4409
+ onChange: onChange
4410
+ }), errors.emailError && React__default.createElement(ErrorText$4, null, errors.emailError));
4317
4411
  }
4318
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"])));
4319
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"])));
4320
- 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"])));
4321
4415
 
4322
4416
  var _templateObject$w, _templateObject2$p;
4323
4417
  function ContactDetails() {
@@ -4449,11 +4543,15 @@ var Container$l = /*#__PURE__*/styled__default.div(_templateObject2$t || (_templ
4449
4543
 
4450
4544
  var _templateObject$C;
4451
4545
  function DeliveryDate() {
4546
+ var _orderStatus$;
4452
4547
  var _useOrderDetails = useOrderDetails(),
4453
4548
  orderDetails = _useOrderDetails[0],
4454
4549
  setOrderDetails = _useOrderDetails[1];
4455
4550
  var _usePrevOrderDetails = usePrevOrderDetails(),
4456
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;
4457
4555
  var actionDate = orderDetails != null && orderDetails.action_date ? new Date(orderDetails == null ? void 0 : orderDetails.action_date) : null;
4458
4556
  var onChange = function onChange(date, _dateString) {
4459
4557
  var selectedDate = date == null ? void 0 : date.format('YYYY-MM-DDTHH:mm:ss');
@@ -4488,7 +4586,8 @@ function DeliveryDate() {
4488
4586
  style: {
4489
4587
  borderRadius: '25px'
4490
4588
  },
4491
- allowClear: false
4589
+ allowClear: false,
4590
+ disabled: routedStatus
4492
4591
  }));
4493
4592
  }
4494
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"])));
@@ -4757,6 +4856,13 @@ function TimedServiceDropdown() {
4757
4856
  label: "Timed Service",
4758
4857
  htmlFor: "timedServiceDropdown"
4759
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
+ }),
4760
4866
  placeholder: "Select Timed Service",
4761
4867
  options: timedServicesOptions || [],
4762
4868
  value: timedServicesOptions == null ? void 0 : timedServicesOptions.filter(function (f) {
@@ -5199,7 +5305,7 @@ var Container$x = /*#__PURE__*/styled__default.div(_templateObject$S || (_templa
5199
5305
  return disabled && "\n pointer-events: none;\n\n > * {\n pointer-events: none;\n }\n ";
5200
5306
  });
5201
5307
 
5202
- var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$4;
5308
+ var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$7;
5203
5309
  function ServicesSection() {
5204
5310
  return React__default.createElement(CustomFormSection$3, null, React__default.createElement(Header, {
5205
5311
  label: "Services"
@@ -5209,7 +5315,7 @@ var Top = /*#__PURE__*/styled__default.div(_templateObject$T || (_templateObject
5209
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"])));
5210
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"])));
5211
5317
  var Bottom = /*#__PURE__*/styled__default.div(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
5212
- 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"])));
5213
5319
 
5214
5320
  var _templateObject$U, _templateObject2$G, _templateObject3$h;
5215
5321
  function AllowTracking() {
@@ -5310,12 +5416,10 @@ function OrderDetailsFooter() {
5310
5416
  var updateOrder = useUpdateOrder();
5311
5417
  var _useAtom = jotai.useAtom(errorAtom),
5312
5418
  errorState = _useAtom[0];
5313
- // const [, setLogsCallAPi] = useLogsCallAPi();
5314
5419
  var _useUpdateApiCall = useUpdateApiCall(),
5315
5420
  setCallApi = _useUpdateApiCall[1]; //single detail
5316
- // const [, setNoteLoadingStore] = UseNotesLoading();
5317
5421
  var errorFound = function errorFound() {
5318
- 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;
5319
5423
  return isError;
5320
5424
  };
5321
5425
  var isDifferent = function isDifferent() {
@@ -5382,7 +5486,7 @@ function OrderDetailsFooter() {
5382
5486
  disabled: !isDifferent() || errorFound()
5383
5487
  }, "Save Details"));
5384
5488
  }
5385
- 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"])));
5386
5490
 
5387
5491
  var _templateObject$W, _templateObject2$H, _templateObject3$i;
5388
5492
  function ExpandedContent() {
@@ -5579,7 +5683,7 @@ var Th = /*#__PURE__*/styled__default.th(_templateObject3$k || (_templateObject3
5579
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"])));
5580
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"])));
5581
5685
 
5582
- 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;
5583
5687
  var GenericAuditLogsTable = function GenericAuditLogsTable() {
5584
5688
  var _getNotes$data, _getNotes$data2;
5585
5689
  var tableHeadData = NotesTableData[0].tableHead; // Assuming NotesTableData contains table header information
@@ -5612,14 +5716,13 @@ var AuditTableWrapper = /*#__PURE__*/styled__default.div(_templateObject$Y || (_
5612
5716
  var DateTd = /*#__PURE__*/styled__default(Td)(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6d6d6d;\n"])));
5613
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"])));
5614
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"])));
5615
- 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"])));
5616
5720
  var StyledTd = /*#__PURE__*/styled__default(Td)(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 10px;\n"])));
5617
5721
  var CreatedBy$1 = /*#__PURE__*/styled__default.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
5618
5722
  var ScrollableTableWrapper = /*#__PURE__*/styled__default.div(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n overflow: auto;\n"])));
5619
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"])));
5620
5724
 
5621
5725
  var _templateObject$Z;
5622
- // import CustomScrollBar from '../../../../common/scrollbar';
5623
5726
  function AuditLogs() {
5624
5727
  return React__default.createElement(Container$C, null, React__default.createElement(GenericAuditLogsTable, null));
5625
5728
  }
@@ -5685,11 +5788,16 @@ function Notes() {
5685
5788
  setShouldPerformAction(true);
5686
5789
  }
5687
5790
  if (!NotesLoading && NotesData != null && NotesData.data) {
5688
- var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
5689
- 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'];
5690
5798
  }).map(function (item) {
5691
- return [item['ORDER-NOTE'], item['ORDER']];
5692
- }).flat().filter(Boolean);
5799
+ return [item['ORDER-NOTE'], item['ORDER'], item['ORDER-RETURN']];
5800
+ });
5693
5801
  // const orderData = NotesData?.data[0]?.ORDER || [];
5694
5802
  // const orderNotesData = NotesData?.data[1]?.['ORDER-NOTE'] || [];
5695
5803
  // const allNotes = [...orderData, ...orderNotesData];
@@ -5731,7 +5839,7 @@ function ChevronUp(props) {
5731
5839
  }));
5732
5840
  }
5733
5841
 
5734
- 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;
5735
5843
  function CollapsableForm(props) {
5736
5844
  var _useState = React.useState(true),
5737
5845
  isExpanded = _useState[0],
@@ -5755,7 +5863,7 @@ var CustomizedFormSection$1 = /*#__PURE__*/styled__default.div(_templateObject$1
5755
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"])));
5756
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"])));
5757
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"])));
5758
- 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"])));
5759
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) {
5760
5868
  return props.isExpanded ? '360deg' : '180deg';
5761
5869
  });
@@ -5784,7 +5892,7 @@ var ThumbVertical = /*#__PURE__*/styled__default.div(_templateObject$11 || (_tem
5784
5892
  var View = /*#__PURE__*/styled__default.div(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
5785
5893
  var TrackHorizontal = /*#__PURE__*/styled__default.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
5786
5894
 
5787
- 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;
5788
5896
  function DynamicTable(_ref) {
5789
5897
  var columns = _ref.columns,
5790
5898
  data = _ref.data;
@@ -5834,7 +5942,7 @@ var Container$F = /*#__PURE__*/styled__default.div(_templateObject$12 || (_templ
5834
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"])));
5835
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"])));
5836
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"])));
5837
- 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"])));
5838
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"])));
5839
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"])));
5840
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"])));
@@ -6852,7 +6960,7 @@ function UploadIcon(props) {
6852
6960
  })));
6853
6961
  }
6854
6962
 
6855
- 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;
6856
6964
  var Dragger = antd.Upload.Dragger;
6857
6965
  var props = {
6858
6966
  name: 'file',
@@ -6883,7 +6991,7 @@ var MainContainer$8 = /*#__PURE__*/styled__default.div(_templateObject$1k || (_t
6883
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"])));
6884
6992
  var TextContainer$2 = /*#__PURE__*/styled__default.div(_templateObject3$u || (_templateObject3$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
6885
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"])));
6886
- 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"])));
6887
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"])));
6888
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"])));
6889
6997
 
@@ -7228,7 +7336,7 @@ var Input = /*#__PURE__*/styled__default.input(_templateObject2$12 || (_template
7228
7336
  });
7229
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"])));
7230
7338
 
7231
- 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;
7232
7340
  function RadioButtonGroup(props) {
7233
7341
  var heading = props.heading,
7234
7342
  _props$direction = props.direction,
@@ -7269,7 +7377,7 @@ var RequiredText = /*#__PURE__*/styled__default.span(_templateObject3$y || (_tem
7269
7377
  return !props.$required && 'visibility: hidden;';
7270
7378
  }, labelStyles);
7271
7379
  var LegendContainer = /*#__PURE__*/styled__default.div(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-bottom: 7px;\n"])));
7272
- 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);
7273
7381
  var Fieldset = /*#__PURE__*/styled__default.fieldset(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
7274
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) {
7275
7383
  return props.$direction === 'horizontal' ? 'row' : 'column';
@@ -7308,7 +7416,7 @@ function DeliveryPoint() {
7308
7416
  }
7309
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"])));
7310
7418
 
7311
- 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;
7312
7420
  var _excluded$5 = ["imageSrc", "label", "checked"];
7313
7421
  function Checkbox(props) {
7314
7422
  var imageSrc = props.imageSrc,
@@ -7339,7 +7447,7 @@ var Circle = /*#__PURE__*/styled__default.span(_templateObject3$z || (_templateO
7339
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) {
7340
7448
  return props.$checked ? '#3a3630' : 'rgba(58, 54, 48, 0.50)';
7341
7449
  });
7342
- 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"])));
7343
7451
  var CheckboxContainer = /*#__PURE__*/styled__default.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
7344
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"])));
7345
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) {
@@ -7458,7 +7566,7 @@ function ReturnReason() {
7458
7566
  });
7459
7567
  }
7460
7568
 
7461
- 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;
7462
7570
  function CancelOrder() {
7463
7571
  var _orderStaticData$canc;
7464
7572
  var _useOrderId = useOrderId(),
@@ -7573,7 +7681,7 @@ var Label$5 = /*#__PURE__*/styled__default.label(_templateObject$1v || (_templat
7573
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"])));
7574
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"])));
7575
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"])));
7576
- 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"])));
7577
7685
  var Top$2 = /*#__PURE__*/styled__default.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 30px;\n width: 100%;\n"])));
7578
7686
  // const Bottom = styled.div``;
7579
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"])));
@@ -7617,11 +7725,11 @@ function EmailAddress() {
7617
7725
  type: "text",
7618
7726
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
7619
7727
  onChange: onChange
7620
- }), errors.emailError && React__default.createElement(ErrorText$2, null, errors.emailError));
7728
+ }), errors.emailError && React__default.createElement(ErrorText$5, null, errors.emailError));
7621
7729
  }
7622
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"])));
7623
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"])));
7624
- 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"])));
7625
7733
 
7626
7734
  var _templateObject$1x, _templateObject2$19, _templateObject3$D;
7627
7735
  function ContactPhone() {
@@ -7682,11 +7790,11 @@ function ContactPhone() {
7682
7790
  },
7683
7791
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
7684
7792
  onChange: onChange
7685
- }), errors.homeContactError && React__default.createElement(ErrorText$3, null, errors.homeContactError));
7793
+ }), errors.homeContactError && React__default.createElement(ErrorText$6, null, errors.homeContactError));
7686
7794
  }
7687
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"])));
7688
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"])));
7689
- 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"])));
7690
7798
 
7691
7799
  var _templateObject$1y, _templateObject2$1a, _templateObject3$E;
7692
7800
  function ContactWork$1() {
@@ -7747,11 +7855,11 @@ function ContactWork$1() {
7747
7855
  },
7748
7856
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
7749
7857
  onChange: onChange
7750
- }), errors.workContactError && React__default.createElement(ErrorText$4, null, errors.workContactError));
7858
+ }), errors.workContactError && React__default.createElement(ErrorText$7, null, errors.workContactError));
7751
7859
  }
7752
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"])));
7753
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"])));
7754
- 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"])));
7755
7863
 
7756
7864
  var _templateObject$1z, _templateObject2$1b, _templateObject3$F;
7757
7865
  function ContactMobile$1() {
@@ -7812,11 +7920,11 @@ function ContactMobile$1() {
7812
7920
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
7813
7921
  onKeyDown: handleKeyDown,
7814
7922
  onChange: onChange
7815
- }), errors.mobileError && React__default.createElement(ErrorText$5, null, errors.mobileError));
7923
+ }), errors.mobileError && React__default.createElement(ErrorText$8, null, errors.mobileError));
7816
7924
  }
7817
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"])));
7818
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"])));
7819
- 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"])));
7820
7928
 
7821
7929
  function ContactTypeDropdown() {
7822
7930
  var _useOrderStaticData = useOrderStaticData(),
@@ -8330,11 +8438,11 @@ function ConfirmOrder() {
8330
8438
  var Wrapper$j = /*#__PURE__*/styled__default.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
8331
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"])));
8332
8440
 
8333
- 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;
8334
8442
  var StyledInput = /*#__PURE__*/styled__default(dmsComponentLibrary.Input)(_templateObject2$1l || (_templateObject2$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 66px;\n min-width: 700px;\n"])));
8335
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"])));
8336
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"])));
8337
- 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"])));
8338
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"])));
8339
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"])));
8340
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"])));
@@ -8423,6 +8531,9 @@ var optionsMenu = [{
8423
8531
  }, {
8424
8532
  label: 'Cancel',
8425
8533
  value: 'cancel-order'
8534
+ }, {
8535
+ label: 'Un Hold',
8536
+ value: 'unhold-order'
8426
8537
  }];
8427
8538
  var PrintMenu = [{
8428
8539
  label: 'Return Notes',
@@ -9341,7 +9452,7 @@ function useFetchReminders() {
9341
9452
  return perform;
9342
9453
  }
9343
9454
 
9344
- 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;
9345
9456
  var ViewReminderModal = function ViewReminderModal() {
9346
9457
  var _reminderData$reminde, _reminderData$order_d, _reminderData$order_d2, _reminderData$reminde2, _reminderData$reminde3, _reminderData$reminde4, _reminderData$reminde5;
9347
9458
  var _useCurrentAction = useCurrentAction(),
@@ -9501,15 +9612,15 @@ var StyledWrapper = /*#__PURE__*/styled__default.div(_templateObject$1N || (_tem
9501
9612
  var StyledLabel$1 = /*#__PURE__*/styled__default.label(_templateObject2$1p || (_templateObject2$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
9502
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"])));
9503
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"])));
9504
- 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"])));
9505
9616
  var RoundCheckbox = /*#__PURE__*/styled__default.span(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9506
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"])));
9507
9618
 
9508
- 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;
9509
9620
  // Shared styles and components
9510
9621
  var Wrapper$k = /*#__PURE__*/styled__default.div(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
9511
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"])));
9512
- 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"])));
9513
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"])));
9514
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"])));
9515
9626
  var DoubleDropdownContainer = /*#__PURE__*/styled__default.div(_templateObject9$4 || (_templateObject9$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n width: 100%;\n"])));
@@ -9526,7 +9637,7 @@ var FormRow = function FormRow(_ref) {
9526
9637
  }, " * ")), children);
9527
9638
  };
9528
9639
 
9529
- var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$f;
9640
+ var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$i;
9530
9641
  dayjs.extend(utc);
9531
9642
  dayjs.extend(dateFns.isValid);
9532
9643
  function CreateReminderModal() {
@@ -9753,7 +9864,7 @@ var StyleContainer = /*#__PURE__*/styled__default.div(_templateObject$1P || (_te
9753
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"])));
9754
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"])));
9755
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"])));
9756
- 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"])));
9757
9868
 
9758
9869
  function useCreateReminder() {
9759
9870
  var ssoToken = getCookie('id_token');
@@ -10148,7 +10259,7 @@ function useUpdateFlag() {
10148
10259
  return create;
10149
10260
  }
10150
10261
 
10151
- 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;
10152
10263
  function HeaderSection() {
10153
10264
  var _useSingleFlagData = useSingleFlagData(),
10154
10265
  dataArray = _useSingleFlagData[0];
@@ -10222,7 +10333,7 @@ var Header$1 = /*#__PURE__*/styled__default.div(_templateObject$1S || (_template
10222
10333
  var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled__default(dmsComponentLibrary.CancelAndCompleteAction)(_templateObject2$1s || (_templateObject2$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
10223
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"])));
10224
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"])));
10225
- 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"])));
10226
10337
  var CrossWrapper = /*#__PURE__*/styled__default.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
10227
10338
 
10228
10339
  var _templateObject$1T, _templateObject2$1t;
@@ -10340,7 +10451,7 @@ function ButtonsSection() {
10340
10451
  var Buttons = /*#__PURE__*/styled__default.div(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10341
10452
  var Flex = /*#__PURE__*/styled__default.div(_templateObject2$1u || (_templateObject2$1u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10342
10453
 
10343
- 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;
10344
10455
  function ActionSection() {
10345
10456
  var _useCurrentAction = useCurrentAction(),
10346
10457
  setCurrentAction = _useCurrentAction[1];
@@ -10430,10 +10541,10 @@ var ButtonWrapper = /*#__PURE__*/styled__default.div(_templateObject$1V || (_tem
10430
10541
  var SaveButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10431
10542
  var CancelButton = /*#__PURE__*/styled__default(dmsComponentLibrary.Button)(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10432
10543
  var DropDowns = /*#__PURE__*/styled__default.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10433
- 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"])));
10434
10545
  var Wrapper$l = /*#__PURE__*/styled__default.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10435
10546
 
10436
- var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$i;
10547
+ var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$l;
10437
10548
  function DetailSection() {
10438
10549
  var _dataArray$order_data, _dataArray$order_data2;
10439
10550
  var _useSingleFlagData = useSingleFlagData(),
@@ -10449,7 +10560,7 @@ var Detail = /*#__PURE__*/styled__default.div(_templateObject$1W || (_templateOb
10449
10560
  var Flex$1 = /*#__PURE__*/styled__default.div(_templateObject2$1w || (_templateObject2$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10450
10561
  var Ref = /*#__PURE__*/styled__default.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
10451
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"])));
10452
- 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"])));
10453
10564
 
10454
10565
  function useFetchSingleFlagsData() {
10455
10566
  var _useFlagRefId = useFlagRefId(),
@@ -11187,6 +11298,7 @@ function OrderView() {
11187
11298
  }
11188
11299
  } else {
11189
11300
  var paths = location.pathname.split('/');
11301
+ console.log(paths[paths.length - 1], 'paths');
11190
11302
  setOrderId(paths[paths.length - 1]);
11191
11303
  }
11192
11304
  }, [location.search, loadingExternal]);
@@ -11408,6 +11520,7 @@ function OrderView() {
11408
11520
  setGsitOrderId(undefined);
11409
11521
  };
11410
11522
  }, [gsitId]);
11523
+ console.log(orderId, 'orderId');
11411
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));
11412
11525
  }
11413
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"])));