@djb25/digit-ui-module-wt 1.0.6 → 1.0.7

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.
@@ -182,7 +182,7 @@ const VerticalTimeline = ({
182
182
  };
183
183
 
184
184
  const WTCreate = () => {
185
- var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _params$serviceType2, _params$serviceType2$, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi;
185
+ var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi;
186
186
  const queryClient = useQueryClient();
187
187
  const match = useRouteMatch();
188
188
  const {
@@ -196,66 +196,133 @@ const WTCreate = () => {
196
196
  const [params, setParams, clearParams] = Digit.Hooks.useSessionStorage("WT_Create", {});
197
197
  if ((!params.serviceType || Object.keys(params.serviceType).length === 0) && pathname.includes("employee")) {
198
198
  if (pathname.includes("mt")) {
199
+ console.log("MT Create");
199
200
  setParams({
200
- "serviceType": {
201
- "serviceType": {
202
- "code": "MobileToilet",
203
- "i18nKey": "Mobile Toilet",
204
- "value": "Mobile Toilet"
201
+ serviceType: {
202
+ serviceType: {
203
+ code: "MobileToilet",
204
+ i18nKey: "Mobile Toilet",
205
+ value: "Mobile Toilet"
205
206
  }
206
207
  }
207
208
  });
208
209
  } else if (pathname.includes("tp")) {
209
210
  setParams({
210
- "serviceType": {
211
- "serviceType": {
212
- "code": "TREE_PRUNING",
213
- "i18nKey": "Tree Pruning",
214
- "value": "Tree Pruning"
211
+ serviceType: {
212
+ serviceType: {
213
+ code: "TREE_PRUNING",
214
+ i18nKey: "Tree Pruning",
215
+ value: "Tree Pruning"
215
216
  }
216
217
  }
217
218
  });
218
219
  } else {
219
220
  setParams({
220
- "serviceType": {
221
- "serviceType": {
222
- "code": "WT",
223
- "i18nKey": "Water Tanker",
224
- "value": "Water Tanker"
221
+ serviceType: {
222
+ serviceType: {
223
+ code: "WT",
224
+ i18nKey: "Water Tanker",
225
+ value: "Water Tanker"
225
226
  }
226
227
  }
227
228
  });
228
229
  }
229
230
  }
230
- if (pathname.includes("employee") && pathname.endsWith("/info")) {
231
- history.replace(`${match.path}/form`);
232
- }
231
+ const goNext = (skipStep, index, isAddMultiple, key) => {
232
+ let currentPath = pathname.split("/").pop(),
233
+ lastchar = currentPath.charAt(currentPath.length - 1),
234
+ isMultiple = false,
235
+ nextPage;
236
+ if (Number(parseInt(currentPath)) || currentPath == "0" || currentPath == "-1") {
237
+ if (currentPath == "-1" || currentPath == "-2") {
238
+ currentPath = pathname.slice(0, -3);
239
+ currentPath = currentPath.split("/").pop();
240
+ isMultiple = true;
241
+ } else {
242
+ currentPath = pathname.slice(0, -2);
243
+ currentPath = currentPath.split("/").pop();
244
+ isMultiple = true;
245
+ }
246
+ } else {
247
+ isMultiple = false;
248
+ }
249
+ if (!isNaN(lastchar)) {
250
+ isMultiple = true;
251
+ }
252
+ let {
253
+ nextStep = {}
254
+ } = config.find(routeObj => routeObj.route === currentPath);
255
+ let redirectWithHistory = history.push;
256
+ if (skipStep) {
257
+ redirectWithHistory = history.replace;
258
+ }
259
+ if (isAddMultiple) {
260
+ nextStep = key;
261
+ }
262
+ if (nextStep === "request-details") {
263
+ var _params$serviceType, _params$serviceType$s;
264
+ const code = params === null || params === void 0 ? void 0 : (_params$serviceType = params.serviceType) === null || _params$serviceType === void 0 ? void 0 : (_params$serviceType$s = _params$serviceType.serviceType) === null || _params$serviceType$s === void 0 ? void 0 : _params$serviceType$s.code;
265
+ if (code === "MobileToilet") {
266
+ nextStep = "toiletRequest-details";
267
+ } else if (code === "TREE_PRUNING") {
268
+ nextStep = "treePruningRequest-details";
269
+ }
270
+ }
271
+ if (nextStep === null) {
272
+ return redirectWithHistory(`${match.path}/check`);
273
+ }
274
+ if (!isNaN(nextStep.split("/").pop())) {
275
+ nextPage = `${match.path}/${nextStep}`;
276
+ } else {
277
+ nextPage = isMultiple && nextStep !== "map" ? `${match.path}/${nextStep}/${index}` : `${match.path}/${nextStep}`;
278
+ }
279
+ redirectWithHistory(nextPage);
280
+ };
233
281
  if (params && Object.keys(params).length > 0 && window.location.href.includes("/service-type") && sessionStorage.getItem("docReqScreenByBack") !== "true") {
234
282
  clearParams();
235
283
  queryClient.invalidateQueries("WT_Create");
236
284
  }
237
285
  const wt_create = async () => {
238
- var _params$serviceType, _params$serviceType$s;
239
- const code = params === null || params === void 0 ? void 0 : (_params$serviceType = params.serviceType) === null || _params$serviceType === void 0 ? void 0 : (_params$serviceType$s = _params$serviceType.serviceType) === null || _params$serviceType$s === void 0 ? void 0 : _params$serviceType$s.code;
240
- if (code === "WT") history.push(`${match.path}/wt-acknowledgement`);
241
- if (code === "MobileToilet") history.push(`${match.path}/mt-acknowledgement`);
242
- if (code === "TREE_PRUNING") history.push(`${match.path}/tp-acknowledgement`);
286
+ var _params$serviceType2, _params$serviceType2$, _params$serviceType3, _params$serviceType3$, _params$serviceType4, _params$serviceType4$;
287
+ if ((params === null || params === void 0 ? void 0 : (_params$serviceType2 = params.serviceType) === null || _params$serviceType2 === void 0 ? void 0 : (_params$serviceType2$ = _params$serviceType2.serviceType) === null || _params$serviceType2$ === void 0 ? void 0 : _params$serviceType2$.code) === "WT") {
288
+ history.push(`${match.path}/wt-acknowledgement`);
289
+ }
290
+ if ((params === null || params === void 0 ? void 0 : (_params$serviceType3 = params.serviceType) === null || _params$serviceType3 === void 0 ? void 0 : (_params$serviceType3$ = _params$serviceType3.serviceType) === null || _params$serviceType3$ === void 0 ? void 0 : _params$serviceType3$.code) === "MobileToilet") {
291
+ history.push(`${match.path}/mt-acknowledgement`);
292
+ }
293
+ if ((params === null || params === void 0 ? void 0 : (_params$serviceType4 = params.serviceType) === null || _params$serviceType4 === void 0 ? void 0 : (_params$serviceType4$ = _params$serviceType4.serviceType) === null || _params$serviceType4$ === void 0 ? void 0 : _params$serviceType4$.code) === "TREE_PRUNING") {
294
+ history.push(`${match.path}/tp-acknowledgement`);
295
+ }
243
296
  };
244
- function handleSelect(key, data) {
245
- if (key === "owners") ; else if (key === "units") {
297
+ function handleSelect(key, data, skipStep, index, isAddMultiple = false) {
298
+ if (key === "owners") {
299
+ let owners = params.owners || [];
300
+ owners[index] = data;
301
+ setParams({
302
+ ...params,
303
+ ...{
304
+ [key]: [...owners]
305
+ }
306
+ });
307
+ } else if (key === "units") {
308
+ let units = params.units || [];
309
+ units = data;
246
310
  setParams({
247
311
  ...params,
248
- units: data
312
+ units
249
313
  });
250
314
  } else {
251
315
  setParams({
252
316
  ...params,
253
- [key]: {
254
- ...params[key],
255
- ...data
317
+ ...{
318
+ [key]: {
319
+ ...params[key],
320
+ ...data
321
+ }
256
322
  }
257
323
  });
258
324
  }
325
+ goNext(skipStep, index, isAddMultiple, key);
259
326
  }
260
327
  const onSuccess = () => {
261
328
  clearParams();
@@ -265,115 +332,11 @@ const WTCreate = () => {
265
332
  commonFields.forEach(obj => {
266
333
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
267
334
  });
268
- config.indexRoute = pathname.includes("citizen") ? "service-type" : "form";
335
+ config.indexRoute = pathname.includes("citizen") ? "service-type" : "info";
269
336
  const CheckPage = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WTCheckPage");
270
337
  const WTAcknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WTAcknowledgement");
271
338
  const MTAcknowledgement = (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ComponentRegi = _Digit3.ComponentRegistryService) === null || _Digit3$ComponentRegi === void 0 ? void 0 : _Digit3$ComponentRegi.getComponent("MTAcknowledgement");
272
339
  const TPAcknowledgement = (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$ComponentRegi = _Digit4.ComponentRegistryService) === null || _Digit4$ComponentRegi === void 0 ? void 0 : _Digit4$ComponentRegi.getComponent("TPAcknowledgement");
273
- const serviceCode = params === null || params === void 0 ? void 0 : (_params$serviceType2 = params.serviceType) === null || _params$serviceType2 === void 0 ? void 0 : (_params$serviceType2$ = _params$serviceType2.serviceType) === null || _params$serviceType2$ === void 0 ? void 0 : _params$serviceType2$.code;
274
- const ApplicantDetails = (_Digit5 = Digit) === null || _Digit5 === void 0 ? void 0 : (_Digit5$ComponentRegi = _Digit5.ComponentRegistryService) === null || _Digit5$ComponentRegi === void 0 ? void 0 : _Digit5$ComponentRegi.getComponent("ApplicantDetails");
275
- const AddressDetails = (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$ComponentRegi = _Digit6.ComponentRegistryService) === null || _Digit6$ComponentRegi === void 0 ? void 0 : _Digit6$ComponentRegi.getComponent("AddressDetails");
276
- const RequestDetails = (_Digit7 = Digit) === null || _Digit7 === void 0 ? void 0 : (_Digit7$ComponentRegi = _Digit7.ComponentRegistryService) === null || _Digit7$ComponentRegi === void 0 ? void 0 : _Digit7$ComponentRegi.getComponent("RequestDetails");
277
- const ToiletRequestDetails = (_Digit8 = Digit) === null || _Digit8 === void 0 ? void 0 : (_Digit8$ComponentRegi = _Digit8.ComponentRegistryService) === null || _Digit8$ComponentRegi === void 0 ? void 0 : _Digit8$ComponentRegi.getComponent("ToiletRequestDetails");
278
- const TreePruningRequestDetails = (_Digit9 = Digit) === null || _Digit9 === void 0 ? void 0 : (_Digit9$ComponentRegi = _Digit9.ComponentRegistryService) === null || _Digit9$ComponentRegi === void 0 ? void 0 : _Digit9$ComponentRegi.getComponent("TreePruningRequestDetails");
279
- const SinglePageForm = () => {
280
- return /*#__PURE__*/React.createElement("div", {
281
- style: {
282
- display: "flex",
283
- flexDirection: "column",
284
- gap: "24px"
285
- }
286
- }, /*#__PURE__*/React.createElement("div", {
287
- style: sectionStyle
288
- }, /*#__PURE__*/React.createElement("div", {
289
- style: sectionHeaderStyle
290
- }, t("ES_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement(ApplicantDetails, {
291
- config: {
292
- texts: {
293
- submitBarLabel: "COMMON_SAVE_NEXT",
294
- header: "ES_APPLICANT_DETAILS"
295
- },
296
- key: "owner"
297
- },
298
- onSelect: (key, data) => handleSelect(key, data),
299
- t: t,
300
- formData: params,
301
- hideSubmitBar: true
302
- })), /*#__PURE__*/React.createElement("div", {
303
- style: sectionStyle
304
- }, /*#__PURE__*/React.createElement("div", {
305
- style: sectionHeaderStyle
306
- }, t("ES_ADDRESS_DETAILS")), /*#__PURE__*/React.createElement(AddressDetails, {
307
- config: {
308
- texts: {
309
- submitBarLabel: "COMMON_SAVE_NEXT",
310
- header: "ES_ADDRESS_DETAILS"
311
- },
312
- key: "address"
313
- },
314
- onSelect: (key, data) => handleSelect(key, data),
315
- t: t,
316
- formData: params,
317
- hideSubmitBar: true
318
- })), (!serviceCode || serviceCode === "WT") && /*#__PURE__*/React.createElement("div", {
319
- style: sectionStyle
320
- }, /*#__PURE__*/React.createElement("div", {
321
- style: sectionHeaderStyle
322
- }, t("WT_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(RequestDetails, {
323
- config: {
324
- texts: {
325
- submitBarLabel: "COMMON_SAVE_NEXT",
326
- header: "WT_REQUEST_DETAILS"
327
- },
328
- key: "requestDetails"
329
- },
330
- onSelect: (key, data) => handleSelect(key, data),
331
- t: t,
332
- formData: params,
333
- hideSubmitBar: true
334
- })), serviceCode === "MobileToilet" && /*#__PURE__*/React.createElement("div", {
335
- style: sectionStyle
336
- }, /*#__PURE__*/React.createElement("div", {
337
- style: sectionHeaderStyle
338
- }, t("MT_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(ToiletRequestDetails, {
339
- config: {
340
- texts: {
341
- submitBarLabel: "COMMON_SAVE_NEXT",
342
- header: "MT_REQUEST_DETAILS"
343
- },
344
- key: "toiletRequestDetails"
345
- },
346
- onSelect: (key, data) => handleSelect(key, data),
347
- t: t,
348
- formData: params,
349
- hideSubmitBar: true
350
- })), serviceCode === "TREE_PRUNING" && /*#__PURE__*/React.createElement("div", {
351
- style: sectionStyle
352
- }, /*#__PURE__*/React.createElement("div", {
353
- style: sectionHeaderStyle
354
- }, t("TP_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(TreePruningRequestDetails, {
355
- config: {
356
- texts: {
357
- submitBarLabel: "COMMON_SAVE_NEXT",
358
- header: "TP_REQUEST_DETAILS"
359
- },
360
- key: "treePruningRequestDetails"
361
- },
362
- onSelect: (key, data) => handleSelect(key, data),
363
- t: t,
364
- formData: params,
365
- hideSubmitBar: true
366
- })), /*#__PURE__*/React.createElement("div", {
367
- style: {
368
- display: "flex",
369
- justifyContent: "flex-end",
370
- padding: "16px 0"
371
- }
372
- }, /*#__PURE__*/React.createElement("button", {
373
- style: submitButtonStyle,
374
- onClick: () => history.push(`${match.path}/check`)
375
- }, t("COMMON_SAVE_NEXT"))));
376
- };
377
340
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
378
341
  style: {
379
342
  display: "flex",
@@ -395,48 +358,30 @@ const WTCreate = () => {
395
358
  flex: "1",
396
359
  overflowY: "auto"
397
360
  }
398
- }, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
399
- path: `${match.path}/service-type`
400
- }, (() => {
401
- const routeObj = config.find(r => r.route === "service-type");
402
- if (!routeObj) return null;
403
- const Component = typeof routeObj.component === "string" ? Digit.ComponentRegistryService.getComponent(routeObj.component) : routeObj.component;
404
- return /*#__PURE__*/React.createElement(Component, {
405
- config: {
406
- texts: routeObj.texts,
407
- inputs: routeObj.inputs,
408
- key: routeObj.key,
409
- additionaFields: routeObj.additionaFields
410
- },
411
- onSelect: (k, data) => {
412
- handleSelect(k, data);
413
- history.push(`${match.path}/info`);
414
- },
415
- t: t,
416
- formData: params
417
- });
418
- })()), /*#__PURE__*/React.createElement(Route, {
419
- path: `${match.path}/info`
420
- }, (() => {
421
- const routeObj = config.find(r => r.route === "info");
422
- if (!routeObj) return null;
423
- const Component = typeof routeObj.component === "string" ? Digit.ComponentRegistryService.getComponent(routeObj.component) : routeObj.component;
424
- return /*#__PURE__*/React.createElement(Component, {
361
+ }, /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
362
+ const {
363
+ component,
364
+ texts,
365
+ inputs,
366
+ key,
367
+ additionaFields
368
+ } = routeObj;
369
+ const Component = typeof component === "string" ? Digit.ComponentRegistryService.getComponent(component) : component;
370
+ return /*#__PURE__*/React.createElement(Route, {
371
+ path: `${match.path}/${routeObj.route}`,
372
+ key: index
373
+ }, /*#__PURE__*/React.createElement(Component, {
425
374
  config: {
426
- texts: routeObj.texts,
427
- inputs: routeObj.inputs,
428
- key: routeObj.key,
429
- additionaFields: routeObj.additionaFields
430
- },
431
- onSelect: () => {
432
- history.push(`${match.path}/form`);
375
+ texts,
376
+ inputs,
377
+ key,
378
+ additionaFields
433
379
  },
380
+ onSelect: handleSelect,
434
381
  t: t,
435
382
  formData: params
436
- });
437
- })()), /*#__PURE__*/React.createElement(Route, {
438
- path: `${match.path}/form`
439
- }, /*#__PURE__*/React.createElement(SinglePageForm, null)), /*#__PURE__*/React.createElement(Route, {
383
+ }));
384
+ }), /*#__PURE__*/React.createElement(Route, {
440
385
  path: `${match.path}/check`
441
386
  }, /*#__PURE__*/React.createElement(CheckPage, {
442
387
  onSubmit: wt_create,
@@ -460,31 +405,6 @@ const WTCreate = () => {
460
405
  to: `${match.path}/${config.indexRoute}`
461
406
  }))))));
462
407
  };
463
- const sectionStyle = {
464
- background: "#fff",
465
- borderRadius: "4px",
466
- boxShadow: "0 2px 4px rgba(0,0,0,0.08)",
467
- padding: "24px",
468
- border: "1px solid #E0E0E0"
469
- };
470
- const sectionHeaderStyle = {
471
- fontSize: "18px",
472
- fontWeight: "700",
473
- color: "#0B0C0C",
474
- marginBottom: "20px",
475
- paddingBottom: "12px",
476
- borderBottom: "2px solid #F47738"
477
- };
478
- const submitButtonStyle = {
479
- background: "#F47738",
480
- color: "#fff",
481
- border: "none",
482
- borderRadius: "4px",
483
- padding: "12px 32px",
484
- fontSize: "16px",
485
- fontWeight: "600",
486
- cursor: "pointer"
487
- };
488
408
 
489
409
  const checkForNotNull = (value = "") => {
490
410
  return value && value != null && value != undefined && value != "" ? true : false;
@@ -3122,14 +3042,18 @@ const EmployeeApp = ({
3122
3042
  const ApplicationDetails = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("ApplicationDetails");
3123
3043
  const WTCreate = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WTCreate");
3124
3044
  return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
3125
- className: "form-container"
3045
+ className: "ground-container employee-app-container form-container"
3126
3046
  }, /*#__PURE__*/React.createElement(ModuleHeader, {
3127
3047
  leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
3128
3048
  className: "icon"
3129
3049
  }), "Back"),
3130
3050
  onLeftClick: () => window.history.back(),
3131
3051
  breadcrumbs: getDynamicBreadcrumbs()
3132
- }), /*#__PURE__*/React.createElement(PrivateRoute, {
3052
+ }), /*#__PURE__*/React.createElement("div", {
3053
+ className: "employee-form"
3054
+ }, /*#__PURE__*/React.createElement("div", {
3055
+ className: "employee-form-content"
3056
+ }, /*#__PURE__*/React.createElement(PrivateRoute, {
3133
3057
  path: `${path}/inbox`,
3134
3058
  component: () => /*#__PURE__*/React.createElement(Inbox, {
3135
3059
  useNewInboxAPI: true,
@@ -3199,7 +3123,7 @@ const EmployeeApp = ({
3199
3123
  parentRoute: path,
3200
3124
  moduleCode: "TP"
3201
3125
  }))
3202
- }))));
3126
+ }))))));
3203
3127
  };
3204
3128
 
3205
3129
  const WTApplication = ({
@@ -15838,8 +15762,9 @@ const TLCaption = ({
15838
15762
  }), /*#__PURE__*/React.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement(Reason, {
15839
15763
  otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
15840
15764
  headComment: data === null || data === void 0 ? void 0 : data.comment
15841
- }), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map(e => /*#__PURE__*/React.createElement("div", {
15842
- className: "TLComments"
15765
+ }), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map((e, index) => /*#__PURE__*/React.createElement("div", {
15766
+ className: "TLComments",
15767
+ key: index
15843
15768
  }, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
15844
15769
  style: {
15845
15770
  overflowX: "scroll"
@@ -17048,7 +16973,7 @@ function ApplicationDetailsContent({
17048
16973
  oldValue,
17049
16974
  isInfoLabel = false
17050
16975
  }) {
17051
- var _applicationDetails$a, _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
16976
+ var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
17052
16977
  const {
17053
16978
  t
17054
16979
  } = useTranslation();
@@ -17060,8 +16985,6 @@ function ApplicationDetailsContent({
17060
16985
  let {
17061
16986
  id: applicationNo
17062
16987
  } = useParams();
17063
- const ownersSequences = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.owners;
17064
- console.log("ownersSequences:- ", ownersSequences);
17065
16988
  function OpenImage(imageSource, index, thumbnailsToShow) {
17066
16989
  var _thumbnailsToShow$ful;
17067
16990
  window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
@@ -17291,6 +17214,7 @@ function ApplicationDetailsContent({
17291
17214
  setSelectedData(data);
17292
17215
  setShowPopup(true);
17293
17216
  };
17217
+ console.log("===========================");
17294
17218
  return /*#__PURE__*/React.createElement(Card, {
17295
17219
  style: {
17296
17220
  position: "relative"
@@ -18293,38 +18217,11 @@ const ApplicationDetails$1 = () => {
18293
18217
  }
18294
18218
  }, [workflowDetails.data]);
18295
18219
  const [showTimeline, setShowTimeline] = useState(true);
18296
- let dowloadOptions = [];
18297
18220
  return /*#__PURE__*/React.createElement("div", {
18298
18221
  style: {
18299
18222
  padding: (user === null || user === void 0 ? void 0 : user.type) === "CITIZEN" ? "0 15px" : ""
18300
18223
  }
18301
18224
  }, /*#__PURE__*/React.createElement("div", {
18302
- className: "employee-application-details",
18303
- style: {
18304
- marginBottom: "15px"
18305
- }
18306
- }, /*#__PURE__*/React.createElement(Header, {
18307
- styles: {
18308
- marginLeft: "0px",
18309
- paddingTop: "10px",
18310
- fontSize: "32px"
18311
- }
18312
- }, t("BOOKING_DETAILS")), /*#__PURE__*/React.createElement("div", {
18313
- style: {
18314
- zIndex: "10",
18315
- display: "flex",
18316
- flexDirection: "row-reverse",
18317
- alignItems: "center",
18318
- marginTop: "-25px"
18319
- }
18320
- }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
18321
- className: "multilinkWrapper employee-mulitlink-main-div",
18322
- onHeadClick: () => setShowOptions(!showOptions),
18323
- displayOptions: showOptions,
18324
- options: dowloadOptions,
18325
- downloadBtnClassName: "employee-download-btn-className",
18326
- optionsClassName: "employee-options-btn-className"
18327
- }))), /*#__PURE__*/React.createElement("div", {
18328
18225
  style: {
18329
18226
  display: "flex",
18330
18227
  flexDirection: "row",