@mseva/upyog-ui-module-ads 1.1.63 → 1.1.64

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.
@@ -20390,6 +20390,208 @@ function get(object, path, defaultValue) {
20390
20390
  }
20391
20391
  var get_1 = get;
20392
20392
 
20393
+ const PDFSvg$1 = React.memo(({
20394
+ width: _width = 20,
20395
+ height: _height = 20,
20396
+ style
20397
+ }) => /*#__PURE__*/React.createElement("svg", {
20398
+ style: style,
20399
+ xmlns: "http://www.w3.org/2000/svg",
20400
+ width: _width,
20401
+ height: _height,
20402
+ viewBox: "0 0 20 20",
20403
+ fill: "gray"
20404
+ }, /*#__PURE__*/React.createElement("path", {
20405
+ d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"
20406
+ })));
20407
+ const pdfDownloadLink$2 = (documents, fileStoreId) => {
20408
+ var _downloadLink$split;
20409
+ const downloadLink = (documents === null || documents === void 0 ? void 0 : documents[fileStoreId]) || "";
20410
+ const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
20411
+ return (formats === null || formats === void 0 ? void 0 : formats.find(link => !(link !== null && link !== void 0 && link.includes("large")) && !(link !== null && link !== void 0 && link.includes("medium")) && !(link !== null && link !== void 0 && link.includes("small")))) || (formats === null || formats === void 0 ? void 0 : formats[0]) || "";
20412
+ };
20413
+ const TimelineDocument$1 = React.memo(({
20414
+ value,
20415
+ Code,
20416
+ index
20417
+ }) => {
20418
+ const {
20419
+ isLoading,
20420
+ data
20421
+ } = Digit.Hooks.ads.useADSDocumentSearch({
20422
+ value
20423
+ }, {
20424
+ value
20425
+ }, Code, index);
20426
+ const documents = useMemo(() => {
20427
+ var _value$documents;
20428
+ const docs = value !== null && value !== void 0 && value.documents ? value === null || value === void 0 ? void 0 : (_value$documents = value.documents) === null || _value$documents === void 0 ? void 0 : _value$documents.documents : value;
20429
+ return (docs === null || docs === void 0 ? void 0 : docs.filter(doc => (doc === null || doc === void 0 ? void 0 : doc.documentType) === Code)) || [];
20430
+ }, [value, Code]);
20431
+ if (isLoading) return /*#__PURE__*/React.createElement(Loader$2, null);
20432
+ return /*#__PURE__*/React.createElement("div", {
20433
+ className: "custom-doc-container"
20434
+ }, documents === null || documents === void 0 ? void 0 : documents.map((document, idx) => {
20435
+ const documentLink = pdfDownloadLink$2(data === null || data === void 0 ? void 0 : data.pdfFiles, document === null || document === void 0 ? void 0 : document.fileStoreId);
20436
+ if (!documentLink) return null;
20437
+ return /*#__PURE__*/React.createElement("a", {
20438
+ key: idx,
20439
+ target: "_blank",
20440
+ rel: "noopener noreferrer",
20441
+ href: documentLink,
20442
+ className: "custom-doc-link"
20443
+ }, /*#__PURE__*/React.createElement(PDFSvg$1, null), /*#__PURE__*/React.createElement("span", null, (document === null || document === void 0 ? void 0 : document.fileName) || "Document"));
20444
+ }));
20445
+ });
20446
+ function NewApplicationTimeline({
20447
+ workflowDetails,
20448
+ t
20449
+ }) {
20450
+ const parseActionDateTime = auditDetails => {
20451
+ if (!(auditDetails !== null && auditDetails !== void 0 && auditDetails.created) || !(auditDetails !== null && auditDetails !== void 0 && auditDetails.timing)) return null;
20452
+ const [day, month, year] = auditDetails.created.split("/");
20453
+ return new Date(`${year}-${month}-${day} ${auditDetails.timing}`);
20454
+ };
20455
+ const calculateSLA = (currentDate, previousDate) => {
20456
+ if (!currentDate || !previousDate) return null;
20457
+ const diffMs = currentDate - previousDate;
20458
+ const totalMinutes = Math.floor(diffMs / (1000 * 60));
20459
+ const hours = Math.floor(totalMinutes / 60);
20460
+ const days = Math.floor(hours / 24);
20461
+ if (days > 0) return `${days} day(s)`;
20462
+ if (hours > 0) return `${hours} hour(s)`;
20463
+ return `${totalMinutes} minute(s)`;
20464
+ };
20465
+ const normalizeTimeline = workflowDetails => {
20466
+ const details = (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data) || workflowDetails;
20467
+ const rawTimeline = details === null || details === void 0 ? void 0 : details.timeline;
20468
+ if (!Array.isArray(rawTimeline)) return [];
20469
+ const orderedTimeline = [...rawTimeline].reverse();
20470
+ const normalized = orderedTimeline.map((item, index) => {
20471
+ var _orderedTimeline;
20472
+ const currentDate = parseActionDateTime(item.auditDetails);
20473
+ const previousDate = index > 0 ? parseActionDateTime((_orderedTimeline = orderedTimeline[index - 1]) === null || _orderedTimeline === void 0 ? void 0 : _orderedTimeline.auditDetails) : null;
20474
+ return {
20475
+ ...item,
20476
+ status: (item === null || item === void 0 ? void 0 : item.state) || (item === null || item === void 0 ? void 0 : item.status),
20477
+ assigner: (item === null || item === void 0 ? void 0 : item.assigner) || null,
20478
+ assignes: Array.isArray(item === null || item === void 0 ? void 0 : item.assignes) ? item.assignes : [],
20479
+ wfComment: Array.isArray(item === null || item === void 0 ? void 0 : item.wfComment) ? item.wfComment : item !== null && item !== void 0 && item.comment ? [item.comment] : [],
20480
+ wfDocuments: Array.isArray(item === null || item === void 0 ? void 0 : item.wfDocuments) ? item.wfDocuments : [],
20481
+ actionDateTime: currentDate,
20482
+ sla: calculateSLA(currentDate, previousDate)
20483
+ };
20484
+ });
20485
+ return normalized.reverse();
20486
+ };
20487
+ const data = useMemo(() => normalizeTimeline(workflowDetails), [workflowDetails]);
20488
+ const sortedData = data || [];
20489
+ console.log("sortedData", sortedData);
20490
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
20491
+ className: "custom-timeline-container"
20492
+ }, /*#__PURE__*/React.createElement("div", {
20493
+ className: "custom-timeline-header"
20494
+ }, /*#__PURE__*/React.createElement("div", {
20495
+ className: "custom-tracking-status-header"
20496
+ }, /*#__PURE__*/React.createElement("div", {
20497
+ className: "custom-tracking-line"
20498
+ }), /*#__PURE__*/React.createElement("span", {
20499
+ className: "custom-tracking-status-text"
20500
+ }, t("TRACKING STATUS")), /*#__PURE__*/React.createElement("div", {
20501
+ className: "custom-tracking-line"
20502
+ })), /*#__PURE__*/React.createElement("div", {
20503
+ className: "custom-title-bar-row"
20504
+ }, /*#__PURE__*/React.createElement("h2", {
20505
+ className: "custom-timeline-title"
20506
+ }, t("Application History")), /*#__PURE__*/React.createElement("div", {
20507
+ className: "custom-blue-bar"
20508
+ }))), /*#__PURE__*/React.createElement("div", {
20509
+ className: "custom-timeline-entries"
20510
+ }, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
20511
+ var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$wfDocuments, _item$wfDocuments2;
20512
+ return /*#__PURE__*/React.createElement("div", {
20513
+ key: index,
20514
+ className: "custom-timeline-entry"
20515
+ }, /*#__PURE__*/React.createElement("div", {
20516
+ className: "custom-vertical-line"
20517
+ }), /*#__PURE__*/React.createElement("div", {
20518
+ className: "custom-date-badge"
20519
+ }, item === null || item === void 0 ? void 0 : (_item$auditDetails = item.auditDetails) === null || _item$auditDetails === void 0 ? void 0 : _item$auditDetails.created, " ", item === null || item === void 0 ? void 0 : (_item$auditDetails2 = item.auditDetails) === null || _item$auditDetails2 === void 0 ? void 0 : _item$auditDetails2.timing), /*#__PURE__*/React.createElement("div", {
20520
+ className: "custom-entry-content"
20521
+ }, /*#__PURE__*/React.createElement("div", {
20522
+ className: "custom-icon-container"
20523
+ }, /*#__PURE__*/React.createElement("div", {
20524
+ className: "custom-circular-icon"
20525
+ }, /*#__PURE__*/React.createElement("svg", {
20526
+ className: "custom-mail-icon",
20527
+ viewBox: "0 0 24 24"
20528
+ }, /*#__PURE__*/React.createElement("rect", {
20529
+ x: "3",
20530
+ y: "5",
20531
+ width: "18",
20532
+ height: "14",
20533
+ rx: "2"
20534
+ }), /*#__PURE__*/React.createElement("path", {
20535
+ d: "M3 7l9 6 9-6"
20536
+ })))), /*#__PURE__*/React.createElement("div", {
20537
+ className: "custom-content-card"
20538
+ }, /*#__PURE__*/React.createElement("div", {
20539
+ className: "custom-card-top"
20540
+ }, /*#__PURE__*/React.createElement("div", {
20541
+ className: "custom-card-left"
20542
+ }, /*#__PURE__*/React.createElement("h3", {
20543
+ className: "custom-action-title"
20544
+ }, t("Action taken by")), (item === null || item === void 0 ? void 0 : item.assigner) && /*#__PURE__*/React.createElement("div", {
20545
+ className: "custom-officer-info"
20546
+ }, /*#__PURE__*/React.createElement("div", {
20547
+ className: "custom-officer-name"
20548
+ }, (item === null || item === void 0 ? void 0 : (_item$assigner = item.assigner) === null || _item$assigner === void 0 ? void 0 : _item$assigner.name) || t("CS_COMMON_NA")), (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.emailId) && /*#__PURE__*/React.createElement("div", {
20549
+ className: "custom-officer-email"
20550
+ }, /*#__PURE__*/React.createElement("span", {
20551
+ className: "custom-email-label"
20552
+ }, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.emailId))), (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement("div", {
20553
+ className: "custom-card-left"
20554
+ }, /*#__PURE__*/React.createElement("h3", {
20555
+ className: "custom-action-title"
20556
+ }, t("Time Taken")), /*#__PURE__*/React.createElement("div", {
20557
+ className: "custom-officer-email"
20558
+ }, /*#__PURE__*/React.createElement("span", {
20559
+ className: "custom-email-label"
20560
+ }, item === null || item === void 0 ? void 0 : item.sla))), /*#__PURE__*/React.createElement("div", {
20561
+ className: "custom-card-right"
20562
+ }, /*#__PURE__*/React.createElement("h3", {
20563
+ className: "custom-action-title"
20564
+ }, t("Action")), /*#__PURE__*/React.createElement("div", {
20565
+ className: "custom-status-text"
20566
+ }, t((item === null || item === void 0 ? void 0 : item.performedAction) || "CS_COMMON_NA")))), (item === null || item === void 0 ? void 0 : item.wfComment) && (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment.length) > 0 && (item === null || item === void 0 ? void 0 : (_item$wfComment2 = item.wfComment) === null || _item$wfComment2 === void 0 ? void 0 : _item$wfComment2.some(c => c === null || c === void 0 ? void 0 : c.trim())) && /*#__PURE__*/React.createElement("div", {
20567
+ className: "custom-comments-section"
20568
+ }, /*#__PURE__*/React.createElement("div", {
20569
+ className: "custom-comment-text"
20570
+ }, /*#__PURE__*/React.createElement("h4", {
20571
+ className: "custom-comments-title"
20572
+ }, t("Officer Comments")), item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => /*#__PURE__*/React.createElement("p", {
20573
+ key: idx
20574
+ }, comment))), (item === null || item === void 0 ? void 0 : (_item$assignes = item.assignes) === null || _item$assignes === void 0 ? void 0 : _item$assignes.length) > 0 && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", {
20575
+ className: "custom-comments-title"
20576
+ }, t("Assigned To")), /*#__PURE__*/React.createElement("div", {
20577
+ className: "custom-officer-info"
20578
+ }, /*#__PURE__*/React.createElement("div", {
20579
+ className: "custom-officer-name"
20580
+ }, (_item$assignes$ = item.assignes[0]) === null || _item$assignes$ === void 0 ? void 0 : _item$assignes$.name)))), (item === null || item === void 0 ? void 0 : item.wfDocuments) && (item === null || item === void 0 ? void 0 : (_item$wfDocuments = item.wfDocuments) === null || _item$wfDocuments === void 0 ? void 0 : _item$wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", {
20581
+ className: "custom-comments-section-no-border"
20582
+ }, /*#__PURE__*/React.createElement("h4", {
20583
+ className: "custom-comments-title"
20584
+ }, "Document Attached:"), /*#__PURE__*/React.createElement("div", {
20585
+ className: "custom-comment-text"
20586
+ }, item === null || item === void 0 ? void 0 : (_item$wfDocuments2 = item.wfDocuments) === null || _item$wfDocuments2 === void 0 ? void 0 : _item$wfDocuments2.map((doc, index) => /*#__PURE__*/React.createElement(TimelineDocument$1, {
20587
+ key: `${doc === null || doc === void 0 ? void 0 : doc.documentType}-${index}`,
20588
+ value: item === null || item === void 0 ? void 0 : item.wfDocuments,
20589
+ Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
20590
+ index: index
20591
+ })))))));
20592
+ }))));
20593
+ }
20594
+
20393
20595
  var canPromise = function () {
20394
20596
  return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then;
20395
20597
  };
@@ -22224,7 +22426,7 @@ const ADSApplicationDetails = () => {
22224
22426
  }
22225
22427
  });
22226
22428
  const new_data = transformBookingResponseToBookingData(adsData);
22227
- console.log('new_data my here', new_data);
22429
+ console.log("new_data my here", new_data);
22228
22430
  const mutation = Digit.Hooks.ads.useADSCreateAPI(tenantId, false);
22229
22431
  useEffect(() => {
22230
22432
  refetch();
@@ -22453,10 +22655,9 @@ const ADSApplicationDetails = () => {
22453
22655
  style: {
22454
22656
  padding: "0 1.5rem"
22455
22657
  }
22456
- }, t("TL_NO_DOCUMENTS_MSG"))), /*#__PURE__*/React.createElement(ADSWFApplicationTimeline, {
22457
- application: application,
22458
- id: ads_details === null || ads_details === void 0 ? void 0 : ads_details.bookingNo,
22459
- userType: "citizen"
22658
+ }, t("TL_NO_DOCUMENTS_MSG"))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
22659
+ workflowDetails: workflowDetails,
22660
+ t: t
22460
22661
  })), showToast && /*#__PURE__*/React.createElement(Toast, {
22461
22662
  error: showToast.key === "error",
22462
22663
  label: actionError || error,
@@ -22838,7 +23039,7 @@ if (_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag || _Ma
22838
23039
  }
22839
23040
 
22840
23041
  const ApplicationDetails = () => {
22841
- var _applicationDetails$b, _Digit$Hooks$ads, _Digit$Hooks$ads$useA, _displayData$applican, _displayData$applican2, _workflowDetails$data, _workflowDetails$data2, _reciept_data$Payment, _displayData$applican4, _displayData$applican5, _displayData$applican6, _displayData$applican7, _displayData$applican8, _application$document, _displayData$applican9, _displayData$applican0, _workflowDetails$data4, _workflowDetails$data5;
23042
+ var _applicationDetails$b, _Digit$Hooks$ads, _Digit$Hooks$ads$useA, _displayData$applican, _displayData$applican2, _workflowDetails$data, _workflowDetails$data2, _reciept_data$Payment, _displayData$applican4, _displayData$applican5, _displayData$applican6, _displayData$applican7, _displayData$applican8, _application$document, _displayData$applican9, _workflowDetails$data4, _workflowDetails$data5;
22842
23043
  const {
22843
23044
  id
22844
23045
  } = useParams();
@@ -23258,10 +23459,9 @@ const ApplicationDetails = () => {
23258
23459
  style: {
23259
23460
  padding: "0 1.5rem"
23260
23461
  }
23261
- }, t("TL_NO_DOCUMENTS_MSG"))), /*#__PURE__*/React.createElement(ADSWFApplicationTimeline, {
23262
- application: application,
23263
- id: (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican9 = displayData.applicantData) === null || _displayData$applican9 === void 0 ? void 0 : _displayData$applican9.applicationNo) || id,
23264
- userType: "employee"
23462
+ }, t("TL_NO_DOCUMENTS_MSG"))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
23463
+ workflowDetails: workflowDetails,
23464
+ t: t
23265
23465
  })), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && Array.isArray(wfActions) && (wfActions === null || wfActions === void 0 ? void 0 : wfActions.length) > 0 && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && /*#__PURE__*/React.createElement(Menu, {
23266
23466
  localeKeyPrefix: `WF_EMPLOYEE_${"ADS"}`,
23267
23467
  options: wfActions,
@@ -23275,7 +23475,7 @@ const ApplicationDetails = () => {
23275
23475
  ref: menuRef,
23276
23476
  label: t("WF_TAKE_ACTION"),
23277
23477
  onSubmit: () => setDisplayMenu(!displayMenu),
23278
- disabled: expired || (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican0 = displayData.applicantData) === null || _displayData$applican0 === void 0 ? void 0 : _displayData$applican0.bookingStatus) === "BOOKING_CREATED"
23478
+ disabled: expired || (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican9 = displayData.applicantData) === null || _displayData$applican9 === void 0 ? void 0 : _displayData$applican9.bookingStatus) === "BOOKING_CREATED"
23279
23479
  })), showModal ? /*#__PURE__*/React.createElement(ADSModal, {
23280
23480
  t: t,
23281
23481
  action: selectedAction,
@@ -23366,7 +23566,7 @@ const StepWrapper = ({
23366
23566
  const stepStyle = (isActive, isLast) => ({
23367
23567
  display: "flex",
23368
23568
  alignItems: "center",
23369
- justifyContent: "flex-end",
23569
+ justifyContent: "flex-start",
23370
23570
  flex: "0 0 auto",
23371
23571
  color: isActive ? "#0D43A7" : "#9CA3AF",
23372
23572
  padding: "14px 12px",
@@ -23419,14 +23619,36 @@ const StepWrapper = ({
23419
23619
  };
23420
23620
  const isMobile = window.Digit.Utils.browser.isMobile();
23421
23621
  const totalSteps = _stepsList.length;
23622
+ const mobileNavBarStyle = isMobile ? {
23623
+ flexDirection: "row",
23624
+ overflowX: "auto",
23625
+ whiteSpace: "nowrap",
23626
+ minWidth: "100%",
23627
+ maxWidth: "100%",
23628
+ gap: "8px",
23629
+ padding: "10px"
23630
+ } : {};
23631
+ const mobileCircleStyle = isMobile ? {
23632
+ width: "32px",
23633
+ height: "32px",
23634
+ fontSize: "12px"
23635
+ } : {};
23636
+ const mobileLabelStyle = isMobile ? {
23637
+ fontSize: "10px"
23638
+ } : {};
23639
+ const mobileStepStyle = isMobile ? {
23640
+ width: "auto",
23641
+ padding: "6px",
23642
+ marginBottom: "0",
23643
+ flexDirection: "column",
23644
+ alignItems: "center"
23645
+ } : {};
23422
23646
  return /*#__PURE__*/React.createElement("div", {
23423
23647
  className: "stepper",
23424
23648
  style: {
23425
23649
  width: "100%",
23426
23650
  display: "flex",
23427
- flexDirection: "row",
23428
- alignItems: "flex-start",
23429
- justifyContent: "flex-start",
23651
+ flexDirection: isMobile ? "column" : "row",
23430
23652
  gap: "24px"
23431
23653
  }
23432
23654
  }, /*#__PURE__*/React.createElement("div", {
@@ -23438,32 +23660,45 @@ const StepWrapper = ({
23438
23660
  padding: "18px",
23439
23661
  minWidth: "120px",
23440
23662
  maxWidth: "320px",
23441
- marginBottom: "20px"
23663
+ marginBottom: "20px",
23664
+ marginTop: isMobile ? "20px" : "0",
23665
+ height: isMobile ? "106px" : "",
23666
+ ...mobileNavBarStyle
23442
23667
  }
23443
23668
  }, [...Array(totalSteps)].map((_, index) => /*#__PURE__*/React.createElement("div", {
23444
23669
  className: "step-content",
23445
23670
  key: index,
23446
- style: stepStyle(index + 1 <= _currentStep, index === totalSteps - 1)
23671
+ style: {
23672
+ ...stepStyle(index + 1 <= _currentStep, index === totalSteps - 1),
23673
+ ...mobileStepStyle
23674
+ }
23447
23675
  }, /*#__PURE__*/React.createElement("div", {
23676
+ className: "step-circle",
23677
+ style: {
23678
+ ...circleStyle(index + 1),
23679
+ ...mobileCircleStyle
23680
+ }
23681
+ }, index + 1, index < totalSteps - 1 && !isMobile && /*#__PURE__*/React.createElement("div", {
23682
+ style: lineStyle
23683
+ })), /*#__PURE__*/React.createElement("div", {
23448
23684
  className: "step-sub-content",
23449
23685
  style: {
23450
23686
  display: "flex",
23451
23687
  flexDirection: "column",
23452
- alignItems: "flex-end",
23453
- margin: "10px"
23688
+ alignItems: isMobile ? "center" : "flex-end",
23689
+ margin: isMobile ? "4px" : "10px"
23454
23690
  }
23455
23691
  }, index + 1 === totalSteps ? null : /*#__PURE__*/React.createElement("div", {
23456
23692
  className: "step-number",
23457
23693
  style: stepNumberStyle
23458
23694
  }), /*#__PURE__*/React.createElement("div", {
23459
23695
  className: "step-label",
23460
- style: labelStyle
23461
- }, t(_stepsList[index].stepLabel))), /*#__PURE__*/React.createElement("div", {
23462
- className: "step-circle",
23463
- style: circleStyle(index + 1)
23464
- }, index + 1, index < totalSteps - 1 && /*#__PURE__*/React.createElement("div", {
23465
- style: lineStyle
23466
- }))))), /*#__PURE__*/React.createElement("div", {
23696
+ style: {
23697
+ ...labelStyle,
23698
+ ...mobileLabelStyle,
23699
+ textAlign: isMobile ? "center" : "right"
23700
+ }
23701
+ }, t(_stepsList[index].stepLabel)))))), /*#__PURE__*/React.createElement("div", {
23467
23702
  className: "stepper-body",
23468
23703
  style: {
23469
23704
  width: "100%",
@@ -23775,7 +24010,7 @@ const NewADSStepperForm = ({
23775
24010
  const handleSubmit = dataGet => {};
23776
24011
  const createTime = formData === null || formData === void 0 ? void 0 : formData.reservationExpiry;
23777
24012
  return /*#__PURE__*/React.createElement("div", {
23778
- className: "pageCard"
24013
+ className: "card"
23779
24014
  }, /*#__PURE__*/React.createElement(CardHeader$1, {
23780
24015
  className: "ads-heading-large",
23781
24016
  divider: true
@@ -25655,7 +25890,7 @@ const NewSiteMasterStepperForm = ({
25655
25890
  }, []);
25656
25891
  const handleSubmit = dataGet => {};
25657
25892
  return /*#__PURE__*/React.createElement("div", {
25658
- className: "pageCard"
25893
+ className: "card"
25659
25894
  }, /*#__PURE__*/React.createElement(CardHeader$1, {
25660
25895
  styles: {
25661
25896
  fontSize: "28px",
@@ -26416,7 +26651,7 @@ const NewSiteInspectionStepperFormOne = ({
26416
26651
  }, []);
26417
26652
  const handleSubmit = dataGet => {};
26418
26653
  return /*#__PURE__*/React.createElement("div", {
26419
- className: "pageCard"
26654
+ className: "card"
26420
26655
  }, /*#__PURE__*/React.createElement(CardHeader$1, {
26421
26656
  styles: {
26422
26657
  fontSize: "28px",