@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
@@ -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 = {};
@@ -1558,9 +1561,9 @@ var optionsForReturnPrint = [{
1558
1561
  var _templateObject$4, _templateObject2$2;
1559
1562
  var options = optionsForReturnPrint;
1560
1563
  var PrintDropDownReturn = function PrintDropDownReturn(_ref) {
1561
- var legacyProductId = _ref.legacyProductId;
1564
+ _objectDestructuringEmpty(_ref);
1562
1565
  var downloadFiles = function downloadFiles() {
1563
- var url = "https://us.toolbox.bjshomedelivery.com/offload/return_label?gsit_products_id=" + legacyProductId;
1566
+ var url = "";
1564
1567
  window.open(url, '_blank'); // Opens the URL in a new tab
1565
1568
  };
1566
1569
  return React.createElement(OptionsList, null, options == null ? void 0 : options.map(function (item, index) {
@@ -4024,10 +4027,11 @@ function Latitude() {
4024
4027
  placeholder: "Latitude",
4025
4028
  onKeyDown: handleKeyDown,
4026
4029
  value: (orderRecipient == null ? void 0 : orderRecipient.latitude) || '',
4027
- onChange: onChange
4030
+ onChange: onChange,
4031
+ readOnly: true
4028
4032
  }));
4029
4033
  }
4030
- 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"])));
4031
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"])));
4032
4036
 
4033
4037
  var _templateObject$o, _templateObject2$i;
@@ -4058,10 +4062,11 @@ function Longitude() {
4058
4062
  placeholder: "Longitude",
4059
4063
  onKeyDown: handleKeyDown,
4060
4064
  value: (orderRecipient == null ? void 0 : orderRecipient.longitude) || '',
4061
- onChange: onChange
4065
+ onChange: onChange,
4066
+ readOnly: true
4062
4067
  }));
4063
4068
  }
4064
- 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"])));
4065
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"])));
4066
4071
 
4067
4072
  var _templateObject$p, _templateObject2$j, _templateObject3$7, _templateObject4$4, _templateObject5$3;
@@ -4089,12 +4094,20 @@ function What3words() {
4089
4094
  });
4090
4095
  };
4091
4096
  var validateInput = function validateInput(value) {
4092
- var isValid = w3wRegex.test(value);
4093
- setErrors(function (prev) {
4094
- return _extends({}, prev, {
4095
- 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
+ });
4096
4103
  });
4097
- });
4104
+ } else {
4105
+ setErrors(function (prev) {
4106
+ return _extends({}, prev, {
4107
+ w3wError: ''
4108
+ });
4109
+ });
4110
+ }
4098
4111
  };
4099
4112
  return React.createElement(Container$c, null, React.createElement(Label$h, {
4100
4113
  label: "What3Words Address",
@@ -4121,18 +4134,18 @@ var RightColumn$1 = /*#__PURE__*/styled.div(_templateObject$q || (_templateObjec
4121
4134
  var Right = /*#__PURE__*/styled.div(_templateObject2$k || (_templateObject2$k = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
4122
4135
  var Container$d = /*#__PURE__*/styled.div(_templateObject3$8 || (_templateObject3$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
4123
4136
 
4124
- var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5;
4125
- // import CallCustomer from './CallCustomer';
4137
+ var _templateObject$r, _templateObject2$l, _templateObject3$9, _templateObject4$5, _templateObject5$4;
4126
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+)?)$/;
4127
4139
  function ContactHome() {
4128
- var _orderRecipient$conta;
4140
+ var _useAtom = useAtom(errorAtom),
4141
+ errors = _useAtom[0],
4142
+ setErrors = _useAtom[1];
4129
4143
  // Show call icons only if number is valid
4130
4144
  // show copy icon if there is input value
4131
4145
  var _useOrderDetails = useOrderDetails(),
4132
4146
  orderDetails = _useOrderDetails[0],
4133
4147
  setOrderDetails = _useOrderDetails[1];
4134
4148
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4135
- 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;
4136
4149
  var onChange = function onChange(e) {
4137
4150
  var val = e.target.value;
4138
4151
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4145,37 +4158,63 @@ function ContactHome() {
4145
4158
  order_recipient: updatedOrderRecipient
4146
4159
  });
4147
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
+ }
4148
4188
  };
4149
4189
  return React.createElement(MainContainer$1, null, React.createElement(Wrapper$7, null, React.createElement(Label$h, {
4150
4190
  label: "Contact Home",
4151
4191
  htmlFor: "contact-home"
4152
- }), showCopyIcon && React.createElement(CopyText, {
4153
- text: orderRecipient == null ? void 0 : orderRecipient.contact_home
4154
4192
  })), React.createElement(InputContainer, null, React.createElement(CustomInput$3, {
4155
4193
  name: "contact-home",
4156
4194
  type: "text",
4157
4195
  placeholder: "Home Number",
4158
4196
  onKeyDown: handleKeyDown,
4197
+ minLength: 10,
4198
+ maxLength: 10,
4159
4199
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
4160
4200
  onChange: onChange
4161
- })));
4201
+ })), errors.homeContactError && React.createElement(ErrorText$1, null, errors.homeContactError));
4162
4202
  }
4163
4203
  var Wrapper$7 = /*#__PURE__*/styled.div(_templateObject$r || (_templateObject$r = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4164
- 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"])));
4165
4205
  var InputContainer = /*#__PURE__*/styled.div(_templateObject3$9 || (_templateObject3$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4166
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"])));
4167
4208
 
4168
- var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6;
4169
- // import CallCustomer from './CallCustomer';
4209
+ var _templateObject$s, _templateObject2$m, _templateObject3$a, _templateObject4$6, _templateObject5$5;
4170
4210
  function ContactWork() {
4171
- var _orderRecipient$conta;
4172
- // Show call icons only if number is valid
4173
- // show copy icon if there is input value
4211
+ var _useAtom = useAtom(errorAtom),
4212
+ errors = _useAtom[0],
4213
+ setErrors = _useAtom[1];
4174
4214
  var _useOrderDetails = useOrderDetails(),
4175
4215
  orderDetails = _useOrderDetails[0],
4176
4216
  setOrderDetails = _useOrderDetails[1];
4177
4217
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4178
- 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;
4179
4218
  var onChange = function onChange(e) {
4180
4219
  var val = e.target.value;
4181
4220
  var updatedOrderRecipient = _extends({}, orderRecipient === null ? {
@@ -4188,25 +4227,54 @@ function ContactWork() {
4188
4227
  order_recipient: updatedOrderRecipient
4189
4228
  });
4190
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
+ }
4191
4258
  };
4192
4259
  return React.createElement(Container$e, null, React.createElement(Wrapper$8, null, React.createElement(Label$h, {
4193
4260
  label: "Contact Work",
4194
4261
  htmlFor: "contact-work"
4195
- }), showCopyIcon && React.createElement(CopyText, {
4196
- text: orderRecipient == null ? void 0 : orderRecipient.contact_work
4197
4262
  })), React.createElement(InputContainer$1, null, React.createElement(CustomInput$4, {
4198
4263
  name: "contact-work",
4199
4264
  type: "text",
4200
4265
  placeholder: "Work Number",
4201
4266
  onKeyDown: handleKeyDown,
4202
4267
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
4203
- onChange: onChange
4204
- })));
4268
+ onChange: onChange,
4269
+ minLength: 10,
4270
+ maxLength: 10
4271
+ })), errors.workCOntanctError && React.createElement(ErrorText$2, null, errors.workCOntanctError));
4205
4272
  }
4206
4273
  var InputContainer$1 = /*#__PURE__*/styled.div(_templateObject$s || (_templateObject$s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4207
4274
  var Wrapper$8 = /*#__PURE__*/styled.div(_templateObject2$m || (_templateObject2$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4208
- 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"])));
4209
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"])));
4210
4278
 
4211
4279
  var _templateObject$t;
4212
4280
  function CallCustomer() {
@@ -4214,10 +4282,13 @@ function CallCustomer() {
4214
4282
  }
4215
4283
  var Container$f = /*#__PURE__*/styled.div(_templateObject$t || (_templateObject$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n"])));
4216
4284
 
4217
- var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7;
4285
+ var _templateObject$u, _templateObject2$n, _templateObject3$b, _templateObject4$7, _templateObject5$6;
4218
4286
  // const MOBILE_REGEX = /^(\+44\s?7\d{3}|\(?07\d{3}\)?)\s?\d{3}\s?\d{3}$/;
4219
4287
  function ContactMobile() {
4220
4288
  var _orderRecipient$conta;
4289
+ var _useAtom = useAtom(errorAtom),
4290
+ errors = _useAtom[0],
4291
+ setErrors = _useAtom[1];
4221
4292
  // Show call icons only if number is valid
4222
4293
  // show copy icon if there is input value
4223
4294
  var _useOrderDetails = useOrderDetails(),
@@ -4237,6 +4308,33 @@ function ContactMobile() {
4237
4308
  order_recipient: updatedOrderRecipient
4238
4309
  });
4239
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
+ }
4240
4338
  };
4241
4339
  return React.createElement(Container$g, null, React.createElement(Wrapper$9, null, React.createElement(Label$h, {
4242
4340
  label: "Contact Mobile",
@@ -4245,21 +4343,23 @@ function ContactMobile() {
4245
4343
  text: orderRecipient == null ? void 0 : orderRecipient.contact_mobile
4246
4344
  })), React.createElement(InputContainer$2, null, React.createElement(CustomInput$5, {
4247
4345
  name: "contact-work",
4346
+ minLength: 10,
4347
+ maxLength: 10,
4248
4348
  type: "text",
4249
4349
  placeholder: "Mobile Number",
4250
4350
  onKeyDown: handleKeyDown,
4251
4351
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
4252
4352
  onChange: onChange
4253
- }), React.createElement(CallCustomer, null)));
4353
+ }), React.createElement(CallCustomer, null)), errors.mobileError && React.createElement(ErrorText$3, null, errors.mobileError));
4254
4354
  }
4255
4355
  var InputContainer$2 = /*#__PURE__*/styled.div(_templateObject$u || (_templateObject$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n align-items: center;\n"])));
4256
4356
  var Wrapper$9 = /*#__PURE__*/styled.div(_templateObject2$n || (_templateObject2$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4257
- 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"])));
4258
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"])));
4259
4360
 
4260
4361
  var _templateObject$v, _templateObject2$o, _templateObject3$c;
4261
4362
  function ContactEmail() {
4262
- var _orderRecipient$conta;
4263
4363
  var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i;
4264
4364
  var _useOrderDetails = useOrderDetails(),
4265
4365
  orderDetails = _useOrderDetails[0],
@@ -4268,7 +4368,6 @@ function ContactEmail() {
4268
4368
  errors = _useAtom[0],
4269
4369
  setErrors = _useAtom[1];
4270
4370
  var orderRecipient = orderDetails == null ? void 0 : orderDetails.order_recipient;
4271
- 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;
4272
4371
  var onChange = function onChange(e) {
4273
4372
  var val = e.target.value;
4274
4373
  validateInput(val);
@@ -4287,29 +4386,24 @@ function ContactEmail() {
4287
4386
  var isValid = emailRegex.test(value);
4288
4387
  setErrors(function (prev) {
4289
4388
  return _extends({}, prev, {
4290
- emailError: isValid ? '' : 'Please enter a valid Email Address'
4389
+ emailError: value && !isValid ? 'Please enter a valid Email Address' : ''
4291
4390
  });
4292
4391
  });
4293
4392
  };
4294
4393
  return React.createElement(Container$h, null, React.createElement(Wrapper$a, null, React.createElement(Label$h, {
4295
4394
  label: "Email",
4296
4395
  htmlFor: "email-id"
4297
- }), showCopyIcon && React.createElement(CopyText, {
4298
- text: orderRecipient == null ? void 0 : orderRecipient.contact_email
4299
4396
  })), React.createElement(Input$1, {
4300
4397
  name: "email-id",
4301
4398
  type: "email",
4302
4399
  placeholder: "Email",
4303
4400
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
4304
- onChange: onChange,
4305
- style: {
4306
- borderRadius: '25px'
4307
- }
4308
- }), errors.emailError && React.createElement(ErrorText$1, null, errors.emailError));
4401
+ onChange: onChange
4402
+ }), errors.emailError && React.createElement(ErrorText$4, null, errors.emailError));
4309
4403
  }
4310
4404
  var Wrapper$a = /*#__PURE__*/styled.div(_templateObject$v || (_templateObject$v = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 5px;\n"])));
4311
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"])));
4312
- 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"])));
4313
4407
 
4314
4408
  var _templateObject$w, _templateObject2$p;
4315
4409
  function ContactDetails() {
@@ -4441,11 +4535,15 @@ var Container$l = /*#__PURE__*/styled.div(_templateObject2$t || (_templateObject
4441
4535
 
4442
4536
  var _templateObject$C;
4443
4537
  function DeliveryDate() {
4538
+ var _orderStatus$;
4444
4539
  var _useOrderDetails = useOrderDetails(),
4445
4540
  orderDetails = _useOrderDetails[0],
4446
4541
  setOrderDetails = _useOrderDetails[1];
4447
4542
  var _usePrevOrderDetails = usePrevOrderDetails(),
4448
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;
4449
4547
  var actionDate = orderDetails != null && orderDetails.action_date ? new Date(orderDetails == null ? void 0 : orderDetails.action_date) : null;
4450
4548
  var onChange = function onChange(date, _dateString) {
4451
4549
  var selectedDate = date == null ? void 0 : date.format('YYYY-MM-DDTHH:mm:ss');
@@ -4480,7 +4578,8 @@ function DeliveryDate() {
4480
4578
  style: {
4481
4579
  borderRadius: '25px'
4482
4580
  },
4483
- allowClear: false
4581
+ allowClear: false,
4582
+ disabled: routedStatus
4484
4583
  }));
4485
4584
  }
4486
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"])));
@@ -4749,6 +4848,13 @@ function TimedServiceDropdown() {
4749
4848
  label: "Timed Service",
4750
4849
  htmlFor: "timedServiceDropdown"
4751
4850
  }), React.createElement(StyledSelectDropdown, {
4851
+ styles: _extends({}, dropdownStyles, {
4852
+ control: function control(styles) {
4853
+ return _extends({}, styles, {
4854
+ width: 'max-content'
4855
+ });
4856
+ }
4857
+ }),
4752
4858
  placeholder: "Select Timed Service",
4753
4859
  options: timedServicesOptions || [],
4754
4860
  value: timedServicesOptions == null ? void 0 : timedServicesOptions.filter(function (f) {
@@ -5191,7 +5297,7 @@ var Container$x = /*#__PURE__*/styled.div(_templateObject$S || (_templateObject$
5191
5297
  return disabled && "\n pointer-events: none;\n\n > * {\n pointer-events: none;\n }\n ";
5192
5298
  });
5193
5299
 
5194
- var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$4;
5300
+ var _templateObject$T, _templateObject2$F, _templateObject3$g, _templateObject4$8, _templateObject5$7;
5195
5301
  function ServicesSection() {
5196
5302
  return React.createElement(CustomFormSection$3, null, React.createElement(Header, {
5197
5303
  label: "Services"
@@ -5201,7 +5307,7 @@ var Top = /*#__PURE__*/styled.div(_templateObject$T || (_templateObject$T = /*#_
5201
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"])));
5202
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"])));
5203
5309
  var Bottom = /*#__PURE__*/styled.div(_templateObject4$8 || (_templateObject4$8 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
5204
- 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"])));
5205
5311
 
5206
5312
  var _templateObject$U, _templateObject2$G, _templateObject3$h;
5207
5313
  function AllowTracking() {
@@ -5302,12 +5408,10 @@ function OrderDetailsFooter() {
5302
5408
  var updateOrder = useUpdateOrder();
5303
5409
  var _useAtom = useAtom(errorAtom),
5304
5410
  errorState = _useAtom[0];
5305
- // const [, setLogsCallAPi] = useLogsCallAPi();
5306
5411
  var _useUpdateApiCall = useUpdateApiCall(),
5307
5412
  setCallApi = _useUpdateApiCall[1]; //single detail
5308
- // const [, setNoteLoadingStore] = UseNotesLoading();
5309
5413
  var errorFound = function errorFound() {
5310
- 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;
5311
5415
  return isError;
5312
5416
  };
5313
5417
  var isDifferent = function isDifferent() {
@@ -5374,7 +5478,7 @@ function OrderDetailsFooter() {
5374
5478
  disabled: !isDifferent() || errorFound()
5375
5479
  }, "Save Details"));
5376
5480
  }
5377
- 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"])));
5378
5482
 
5379
5483
  var _templateObject$W, _templateObject2$H, _templateObject3$i;
5380
5484
  function ExpandedContent() {
@@ -5571,7 +5675,7 @@ var Th = /*#__PURE__*/styled.th(_templateObject3$k || (_templateObject3$k = /*#_
5571
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"])));
5572
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"])));
5573
5677
 
5574
- 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;
5575
5679
  var GenericAuditLogsTable = function GenericAuditLogsTable() {
5576
5680
  var _getNotes$data, _getNotes$data2;
5577
5681
  var tableHeadData = NotesTableData[0].tableHead; // Assuming NotesTableData contains table header information
@@ -5604,14 +5708,13 @@ var AuditTableWrapper = /*#__PURE__*/styled.div(_templateObject$Y || (_templateO
5604
5708
  var DateTd = /*#__PURE__*/styled(Td)(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #6d6d6d;\n"])));
5605
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"])));
5606
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"])));
5607
- 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"])));
5608
5712
  var StyledTd = /*#__PURE__*/styled(Td)(_templateObject6$2 || (_templateObject6$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 10px;\n"])));
5609
5713
  var CreatedBy$1 = /*#__PURE__*/styled.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
5610
5714
  var ScrollableTableWrapper = /*#__PURE__*/styled.div(_templateObject8$2 || (_templateObject8$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 250px;\n min-height: 200px;\n overflow: auto;\n"])));
5611
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"])));
5612
5716
 
5613
5717
  var _templateObject$Z;
5614
- // import CustomScrollBar from '../../../../common/scrollbar';
5615
5718
  function AuditLogs() {
5616
5719
  return React.createElement(Container$C, null, React.createElement(GenericAuditLogsTable, null));
5617
5720
  }
@@ -5677,11 +5780,16 @@ function Notes() {
5677
5780
  setShouldPerformAction(true);
5678
5781
  }
5679
5782
  if (!NotesLoading && NotesData != null && NotesData.data) {
5680
- var updatedData = NotesData == null ? void 0 : NotesData.data.filter(function (item) {
5681
- 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'];
5682
5790
  }).map(function (item) {
5683
- return [item['ORDER-NOTE'], item['ORDER']];
5684
- }).flat().filter(Boolean);
5791
+ return [item['ORDER-NOTE'], item['ORDER'], item['ORDER-RETURN']];
5792
+ });
5685
5793
  // const orderData = NotesData?.data[0]?.ORDER || [];
5686
5794
  // const orderNotesData = NotesData?.data[1]?.['ORDER-NOTE'] || [];
5687
5795
  // const allNotes = [...orderData, ...orderNotesData];
@@ -5723,7 +5831,7 @@ function ChevronUp(props) {
5723
5831
  }));
5724
5832
  }
5725
5833
 
5726
- 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;
5727
5835
  function CollapsableForm(props) {
5728
5836
  var _useState = useState(true),
5729
5837
  isExpanded = _useState[0],
@@ -5747,7 +5855,7 @@ var CustomizedFormSection$1 = /*#__PURE__*/styled.div(_templateObject$10 || (_te
5747
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"])));
5748
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"])));
5749
5857
  var Container$E = /*#__PURE__*/styled.div(_templateObject4$b || (_templateObject4$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n align-items: center;\n"])));
5750
- 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"])));
5751
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) {
5752
5860
  return props.isExpanded ? '360deg' : '180deg';
5753
5861
  });
@@ -5776,7 +5884,7 @@ var ThumbVertical = /*#__PURE__*/styled.div(_templateObject$11 || (_templateObje
5776
5884
  var View = /*#__PURE__*/styled.div(_templateObject2$N || (_templateObject2$N = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-x: hidden;\n"])));
5777
5885
  var TrackHorizontal = /*#__PURE__*/styled.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: none;\n"])));
5778
5886
 
5779
- 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;
5780
5888
  function DynamicTable(_ref) {
5781
5889
  var columns = _ref.columns,
5782
5890
  data = _ref.data;
@@ -5826,7 +5934,7 @@ var Container$F = /*#__PURE__*/styled.div(_templateObject$12 || (_templateObject
5826
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"])));
5827
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"])));
5828
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"])));
5829
- 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"])));
5830
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"])));
5831
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"])));
5832
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"])));
@@ -6844,7 +6952,7 @@ function UploadIcon(props) {
6844
6952
  })));
6845
6953
  }
6846
6954
 
6847
- 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;
6848
6956
  var Dragger = Upload.Dragger;
6849
6957
  var props = {
6850
6958
  name: 'file',
@@ -6875,7 +6983,7 @@ var MainContainer$8 = /*#__PURE__*/styled.div(_templateObject$1k || (_templateOb
6875
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"])));
6876
6984
  var TextContainer$2 = /*#__PURE__*/styled.div(_templateObject3$u || (_templateObject3$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n\n"])));
6877
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"])));
6878
- 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"])));
6879
6987
  var UploadButton = /*#__PURE__*/styled(Button)(_templateObject6$5 || (_templateObject6$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 16px;\n font-size: 14px;\n padding: 7px 20px;\n"])));
6880
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"])));
6881
6989
 
@@ -7220,7 +7328,7 @@ var Input = /*#__PURE__*/styled.input(_templateObject2$12 || (_templateObject2$1
7220
7328
  });
7221
7329
  var RadioContainer$1 = /*#__PURE__*/styled.div(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 5px;\n align-items: center;\n"])));
7222
7330
 
7223
- 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;
7224
7332
  function RadioButtonGroup(props) {
7225
7333
  var heading = props.heading,
7226
7334
  _props$direction = props.direction,
@@ -7261,7 +7369,7 @@ var RequiredText = /*#__PURE__*/styled.span(_templateObject3$y || (_templateObje
7261
7369
  return !props.$required && 'visibility: hidden;';
7262
7370
  }, labelStyles);
7263
7371
  var LegendContainer = /*#__PURE__*/styled.div(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n margin-bottom: 7px;\n"])));
7264
- 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);
7265
7373
  var Fieldset = /*#__PURE__*/styled.fieldset(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: none;\n padding: 0px;\n"])));
7266
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) {
7267
7375
  return props.$direction === 'horizontal' ? 'row' : 'column';
@@ -7300,7 +7408,7 @@ function DeliveryPoint() {
7300
7408
  }
7301
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"])));
7302
7410
 
7303
- 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;
7304
7412
  var _excluded$5 = ["imageSrc", "label", "checked"];
7305
7413
  function Checkbox(props) {
7306
7414
  var imageSrc = props.imageSrc,
@@ -7331,7 +7439,7 @@ var Circle = /*#__PURE__*/styled.span(_templateObject3$z || (_templateObject3$z
7331
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) {
7332
7440
  return props.$checked ? '#3a3630' : 'rgba(58, 54, 48, 0.50)';
7333
7441
  });
7334
- 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"])));
7335
7443
  var CheckboxContainer = /*#__PURE__*/styled.div(_templateObject6$7 || (_templateObject6$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n"])));
7336
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"])));
7337
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) {
@@ -7450,7 +7558,7 @@ function ReturnReason() {
7450
7558
  });
7451
7559
  }
7452
7560
 
7453
- 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;
7454
7562
  function CancelOrder() {
7455
7563
  var _orderStaticData$canc;
7456
7564
  var _useOrderId = useOrderId(),
@@ -7565,7 +7673,7 @@ var Label$5 = /*#__PURE__*/styled.label(_templateObject$1v || (_templateObject$1
7565
7673
  var Container$U = /*#__PURE__*/styled.div(_templateObject2$17 || (_templateObject2$17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7566
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"])));
7567
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"])));
7568
- 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"])));
7569
7677
  var Top$2 = /*#__PURE__*/styled.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 30px;\n width: 100%;\n"])));
7570
7678
  // const Bottom = styled.div``;
7571
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"])));
@@ -7609,11 +7717,11 @@ function EmailAddress() {
7609
7717
  type: "text",
7610
7718
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_email) || '',
7611
7719
  onChange: onChange
7612
- }), errors.emailError && React.createElement(ErrorText$2, null, errors.emailError));
7720
+ }), errors.emailError && React.createElement(ErrorText$5, null, errors.emailError));
7613
7721
  }
7614
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"])));
7615
7723
  var Container$V = /*#__PURE__*/styled.div(_templateObject2$18 || (_templateObject2$18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7616
- 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"])));
7617
7725
 
7618
7726
  var _templateObject$1x, _templateObject2$19, _templateObject3$D;
7619
7727
  function ContactPhone() {
@@ -7674,11 +7782,11 @@ function ContactPhone() {
7674
7782
  },
7675
7783
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_home) || '',
7676
7784
  onChange: onChange
7677
- }), errors.homeContactError && React.createElement(ErrorText$3, null, errors.homeContactError));
7785
+ }), errors.homeContactError && React.createElement(ErrorText$6, null, errors.homeContactError));
7678
7786
  }
7679
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"])));
7680
7788
  var Container$W = /*#__PURE__*/styled.div(_templateObject2$19 || (_templateObject2$19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7681
- 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"])));
7682
7790
 
7683
7791
  var _templateObject$1y, _templateObject2$1a, _templateObject3$E;
7684
7792
  function ContactWork$1() {
@@ -7739,11 +7847,11 @@ function ContactWork$1() {
7739
7847
  },
7740
7848
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_work) || '',
7741
7849
  onChange: onChange
7742
- }), errors.workContactError && React.createElement(ErrorText$4, null, errors.workContactError));
7850
+ }), errors.workContactError && React.createElement(ErrorText$7, null, errors.workContactError));
7743
7851
  }
7744
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"])));
7745
7853
  var Container$X = /*#__PURE__*/styled.div(_templateObject2$1a || (_templateObject2$1a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7746
- 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"])));
7747
7855
 
7748
7856
  var _templateObject$1z, _templateObject2$1b, _templateObject3$F;
7749
7857
  function ContactMobile$1() {
@@ -7804,11 +7912,11 @@ function ContactMobile$1() {
7804
7912
  value: (orderRecipient == null ? void 0 : orderRecipient.contact_mobile) || '',
7805
7913
  onKeyDown: handleKeyDown,
7806
7914
  onChange: onChange
7807
- }), errors.mobileError && React.createElement(ErrorText$5, null, errors.mobileError));
7915
+ }), errors.mobileError && React.createElement(ErrorText$8, null, errors.mobileError));
7808
7916
  }
7809
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"])));
7810
7918
  var Container$Y = /*#__PURE__*/styled.div(_templateObject2$1b || (_templateObject2$1b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n"])));
7811
- 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"])));
7812
7920
 
7813
7921
  function ContactTypeDropdown() {
7814
7922
  var _useOrderStaticData = useOrderStaticData(),
@@ -8322,11 +8430,11 @@ function ConfirmOrder() {
8322
8430
  var Wrapper$j = /*#__PURE__*/styled.div(_templateObject$1I || (_templateObject$1I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n"])));
8323
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"])));
8324
8432
 
8325
- 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;
8326
8434
  var StyledInput = /*#__PURE__*/styled(Input$1)(_templateObject2$1l || (_templateObject2$1l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 66px;\n min-width: 700px;\n"])));
8327
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"])));
8328
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"])));
8329
- 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"])));
8330
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"])));
8331
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"])));
8332
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"])));
@@ -8415,6 +8523,9 @@ var optionsMenu = [{
8415
8523
  }, {
8416
8524
  label: 'Cancel',
8417
8525
  value: 'cancel-order'
8526
+ }, {
8527
+ label: 'Un Hold',
8528
+ value: 'unhold-order'
8418
8529
  }];
8419
8530
  var PrintMenu = [{
8420
8531
  label: 'Return Notes',
@@ -9333,7 +9444,7 @@ function useFetchReminders() {
9333
9444
  return perform;
9334
9445
  }
9335
9446
 
9336
- 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;
9337
9448
  var ViewReminderModal = function ViewReminderModal() {
9338
9449
  var _reminderData$reminde, _reminderData$order_d, _reminderData$order_d2, _reminderData$reminde2, _reminderData$reminde3, _reminderData$reminde4, _reminderData$reminde5;
9339
9450
  var _useCurrentAction = useCurrentAction(),
@@ -9493,15 +9604,15 @@ var StyledWrapper = /*#__PURE__*/styled.div(_templateObject$1N || (_templateObje
9493
9604
  var StyledLabel$1 = /*#__PURE__*/styled.label(_templateObject2$1p || (_templateObject2$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n"])));
9494
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"])));
9495
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"])));
9496
- 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"])));
9497
9608
  var RoundCheckbox = /*#__PURE__*/styled.span(_templateObject6$a || (_templateObject6$a = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
9498
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"])));
9499
9610
 
9500
- 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;
9501
9612
  // Shared styles and components
9502
9613
  var Wrapper$k = /*#__PURE__*/styled.div(_templateObject$1O || (_templateObject$1O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 15px;\n"])));
9503
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"])));
9504
- 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"])));
9505
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"])));
9506
9617
  var Row$6 = /*#__PURE__*/styled.div(_templateObject8$8 || (_templateObject8$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n"])));
9507
9618
  var DoubleDropdownContainer = /*#__PURE__*/styled.div(_templateObject9$4 || (_templateObject9$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 10px;\n width: 100%;\n"])));
@@ -9518,7 +9629,7 @@ var FormRow = function FormRow(_ref) {
9518
9629
  }, " * ")), children);
9519
9630
  };
9520
9631
 
9521
- var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$f;
9632
+ var _templateObject$1P, _templateObject2$1q, _templateObject3$N, _templateObject4$r, _templateObject5$i;
9522
9633
  dayjs.extend(utc);
9523
9634
  dayjs.extend(isValid);
9524
9635
  function CreateReminderModal() {
@@ -9745,7 +9856,7 @@ var StyleContainer = /*#__PURE__*/styled.div(_templateObject$1P || (_templateObj
9745
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"])));
9746
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"])));
9747
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"])));
9748
- 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"])));
9749
9860
 
9750
9861
  function useCreateReminder() {
9751
9862
  var ssoToken = getCookie('id_token');
@@ -10140,7 +10251,7 @@ function useUpdateFlag() {
10140
10251
  return create;
10141
10252
  }
10142
10253
 
10143
- 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;
10144
10255
  function HeaderSection() {
10145
10256
  var _useSingleFlagData = useSingleFlagData(),
10146
10257
  dataArray = _useSingleFlagData[0];
@@ -10214,7 +10325,7 @@ var Header$1 = /*#__PURE__*/styled.div(_templateObject$1S || (_templateObject$1S
10214
10325
  var CustomCancelAndCompleteAction$2 = /*#__PURE__*/styled(CancelAndCompleteAction)(_templateObject2$1s || (_templateObject2$1s = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
10215
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"])));
10216
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"])));
10217
- 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"])));
10218
10329
  var CrossWrapper = /*#__PURE__*/styled.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n"])));
10219
10330
 
10220
10331
  var _templateObject$1T, _templateObject2$1t;
@@ -10332,7 +10443,7 @@ function ButtonsSection() {
10332
10443
  var Buttons = /*#__PURE__*/styled.div(_templateObject$1U || (_templateObject$1U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10333
10444
  var Flex = /*#__PURE__*/styled.div(_templateObject2$1u || (_templateObject2$1u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10334
10445
 
10335
- 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;
10336
10447
  function ActionSection() {
10337
10448
  var _useCurrentAction = useCurrentAction(),
10338
10449
  setCurrentAction = _useCurrentAction[1];
@@ -10422,10 +10533,10 @@ var ButtonWrapper = /*#__PURE__*/styled.div(_templateObject$1V || (_templateObje
10422
10533
  var SaveButton = /*#__PURE__*/styled(Button)(_templateObject2$1v || (_templateObject2$1v = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10423
10534
  var CancelButton = /*#__PURE__*/styled(Button)(_templateObject3$P || (_templateObject3$P = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10424
10535
  var DropDowns = /*#__PURE__*/styled.div(_templateObject4$t || (_templateObject4$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 25px;\n"])));
10425
- 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"])));
10426
10537
  var Wrapper$l = /*#__PURE__*/styled.div(_templateObject6$c || (_templateObject6$c = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
10427
10538
 
10428
- var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$i;
10539
+ var _templateObject$1W, _templateObject2$1w, _templateObject3$Q, _templateObject4$u, _templateObject5$l;
10429
10540
  function DetailSection() {
10430
10541
  var _dataArray$order_data, _dataArray$order_data2;
10431
10542
  var _useSingleFlagData = useSingleFlagData(),
@@ -10441,7 +10552,7 @@ var Detail = /*#__PURE__*/styled.div(_templateObject$1W || (_templateObject$1W =
10441
10552
  var Flex$1 = /*#__PURE__*/styled.div(_templateObject2$1w || (_templateObject2$1w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
10442
10553
  var Ref = /*#__PURE__*/styled.div(_templateObject3$Q || (_templateObject3$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #7b7874;\n font-family: 'Lato', sans-serif;\n"])));
10443
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"])));
10444
- 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"])));
10445
10556
 
10446
10557
  function useFetchSingleFlagsData() {
10447
10558
  var _useFlagRefId = useFlagRefId(),
@@ -11179,6 +11290,7 @@ function OrderView() {
11179
11290
  }
11180
11291
  } else {
11181
11292
  var paths = location.pathname.split('/');
11293
+ console.log(paths[paths.length - 1], 'paths');
11182
11294
  setOrderId(paths[paths.length - 1]);
11183
11295
  }
11184
11296
  }, [location.search, loadingExternal]);
@@ -11400,6 +11512,7 @@ function OrderView() {
11400
11512
  setGsitOrderId(undefined);
11401
11513
  };
11402
11514
  }, [gsitId]);
11515
+ console.log(orderId, 'orderId');
11403
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));
11404
11517
  }
11405
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"])));