@mseva/upyog-ui-module-ads 1.1.60 → 1.1.62

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.
@@ -664,11 +664,7 @@ const ADSSearchApplication = ({
664
664
  columns: columns,
665
665
  getCellProps: cellInfo => {
666
666
  return {
667
- style: {
668
- minWidth: cellInfo.column.Header === t("ADS_INBOX_APPLICATION_NO") ? "240px" : "",
669
- padding: "20px 18px",
670
- fontSize: "16px"
671
- }
667
+ className: cellInfo.column.Header === t("ADS_INBOX_APPLICATION_NO") ? "ads-inbox-cell" : "ads-default-cell"
672
668
  };
673
669
  },
674
670
  onPageSizeChange: onPageSizeChange,
@@ -18987,11 +18983,7 @@ const SearchApplication = ({
18987
18983
  return /*#__PURE__*/React.createElement("form", {
18988
18984
  onSubmit: handleSubmit(onSubmitInput)
18989
18985
  }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
18990
- className: "search-container",
18991
- style: {
18992
- width: "auto",
18993
- marginLeft: isInboxPage ? "24px" : "revert"
18994
- }
18986
+ className: `search-container ads-search-container ${isInboxPage ? "ads-search-container--inbox" : "ads-search-container--revert"}`
18995
18987
  }, /*#__PURE__*/React.createElement("div", {
18996
18988
  className: "search-complaint-container"
18997
18989
  }, (type === "mobile" || mobileView) && /*#__PURE__*/React.createElement("div", {
@@ -19035,28 +19027,12 @@ const SearchApplication = ({
19035
19027
  control: control,
19036
19028
  defaultValue: ""
19037
19029
  })), formState !== null && formState !== void 0 && (_formState$dirtyField = formState.dirtyFields) !== null && _formState$dirtyField !== void 0 && _formState$dirtyField[input.name] ? /*#__PURE__*/React.createElement("span", {
19038
- style: {
19039
- fontWeight: "700",
19040
- color: "rgba(212, 53, 28)",
19041
- paddingLeft: "8px",
19042
- marginTop: "-20px",
19043
- fontSize: "12px"
19044
- },
19045
- className: "inbox-search-form-error"
19030
+ className: "inbox-search-form-error ads-search-error"
19046
19031
  }, formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : (_formState$errors$inp = _formState$errors[input.name]) === null || _formState$errors$inp === void 0 ? void 0 : _formState$errors$inp.message) : null);
19047
19032
  }), isInboxPage && /*#__PURE__*/React.createElement("div", {
19048
- style: {
19049
- gridColumn: "2/3",
19050
- textAlign: "right",
19051
- paddingTop: "10px"
19052
- },
19053
- className: "input-fields"
19033
+ className: "input-fields ads-search-inbox-clear"
19054
19034
  }, /*#__PURE__*/React.createElement("div", null, clearAll())), type === "desktop" && !mobileView && /*#__PURE__*/React.createElement("div", {
19055
- style: {
19056
- maxWidth: "unset",
19057
- marginLeft: "unset"
19058
- },
19059
- className: "search-submit-wrapper"
19035
+ className: "search-submit-wrapper ads-search-submit-wrapper"
19060
19036
  }, /*#__PURE__*/React.createElement(SubmitBar, {
19061
19037
  className: "submit-bar-search",
19062
19038
  label: t("ES_COMMON_SEARCH"),
@@ -19654,15 +19630,7 @@ const EmployeeApp = ({
19654
19630
  return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
19655
19631
  className: "ground-container"
19656
19632
  }, !isRes ? /*#__PURE__*/React.createElement("div", {
19657
- style: isNewRegistration ? {
19658
- marginLeft: "12px",
19659
- display: "flex",
19660
- alignItems: "center"
19661
- } : {
19662
- marginLeft: "-4px",
19663
- display: "flex",
19664
- alignItems: "center"
19665
- }
19633
+ className: `ads-registration-row ${isNewRegistration ? "ads-registration-row--new" : "ads-registration-row--existing"}`
19666
19634
  }, /*#__PURE__*/React.createElement(BackButton, {
19667
19635
  location: location
19668
19636
  })) : null, /*#__PURE__*/React.createElement(PrivateRoute, {
@@ -19733,11 +19701,7 @@ const ReservationTimer = ({
19733
19701
  if (!expiry) return null;
19734
19702
  if (remaining !== null && remaining <= 0) {
19735
19703
  return /*#__PURE__*/React.createElement("span", {
19736
- style: {
19737
- fontSize: "16px",
19738
- color: "red",
19739
- fontWeight: 800
19740
- }
19704
+ className: "ads-timer-expired"
19741
19705
  }, t("ADS_SLOTS_EXPIRED"));
19742
19706
  }
19743
19707
  if (remaining === null) return null;
@@ -19745,19 +19709,9 @@ const ReservationTimer = ({
19745
19709
  const seconds = Math === null || Math === void 0 ? void 0 : Math.floor(remaining % 60000 / 1000).toString().padStart(2, "0");
19746
19710
  const isCritical = remaining <= 60 * 1000;
19747
19711
  return /*#__PURE__*/React.createElement("span", {
19748
- style: {
19749
- color: isCritical ? "red" : "#2947a3",
19750
- fontWeight: 600,
19751
- fontSize: "14px",
19752
- marginLeft: "8px"
19753
- }
19712
+ className: `ads-timer ${isCritical ? "ads-timer--critical" : ""}`
19754
19713
  }, t("ADS_PAYMENT_TIMER"), /*#__PURE__*/React.createElement("span", {
19755
- style: {
19756
- fontSize: "16px",
19757
- fontWeight: 900,
19758
- color: "red",
19759
- marginLeft: "4px"
19760
- }
19714
+ className: "ads-timer-countdown"
19761
19715
  }, minutes, ":", seconds));
19762
19716
  };
19763
19717
 
@@ -19912,33 +19866,6 @@ const ADSMyApplications = () => {
19912
19866
  const indexOfFirstItem = indexOfLastItem - itemsPerPage;
19913
19867
  const currentItems = (applications === null || applications === void 0 ? void 0 : applications.slice(indexOfFirstItem, indexOfLastItem)) || [];
19914
19868
  const totalPages = Math.ceil(((applications === null || applications === void 0 ? void 0 : applications.length) || 0) / itemsPerPage);
19915
- const styles = {
19916
- paginationControls: {
19917
- display: "flex",
19918
- justifyContent: "center",
19919
- alignItems: "center",
19920
- gap: "12px",
19921
- margin: "20px 0"
19922
- },
19923
- paginationBtn: {
19924
- backgroundColor: "#2947a3",
19925
- color: "#fff",
19926
- border: "none",
19927
- padding: "8px 12px",
19928
- borderRadius: "50%",
19929
- fontSize: "18px",
19930
- cursor: "pointer",
19931
- transition: "background-color 0.2s ease"
19932
- },
19933
- disabledBtn: {
19934
- backgroundColor: "#ccc",
19935
- cursor: "not-allowed"
19936
- },
19937
- paginationInfo: {
19938
- fontWeight: 500,
19939
- color: "#333"
19940
- }
19941
- };
19942
19869
  if (isLoading) return /*#__PURE__*/React.createElement(Loader$2, null);
19943
19870
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, null, `${t("ADS_MY_BOOKINGS_HEADER")} ${applications ? `(${applications.length})` : ""}`), /*#__PURE__*/React.createElement("div", null, (currentItems === null || currentItems === void 0 ? void 0 : currentItems.length) > 0 && currentItems.map((application, index) => /*#__PURE__*/React.createElement("div", {
19944
19871
  key: index
@@ -19948,17 +19875,11 @@ const ADSMyApplications = () => {
19948
19875
  buttonLabel: t("ADS_SUMMARY"),
19949
19876
  refetchBookings: refetch
19950
19877
  }))), !(applications !== null && applications !== void 0 && applications.length) > 0 && /*#__PURE__*/React.createElement("p", {
19951
- style: {
19952
- marginLeft: "16px",
19953
- marginTop: "16px"
19954
- }
19878
+ className: "ads-applications-empty"
19955
19879
  }, t("ADS_NO_APPLICATION_FOUND_MSG")), (applications === null || applications === void 0 ? void 0 : applications.length) > itemsPerPage && /*#__PURE__*/React.createElement("div", {
19956
- style: styles.paginationControls
19880
+ className: "ads-pagination-controls"
19957
19881
  }, /*#__PURE__*/React.createElement("button", {
19958
- style: {
19959
- ...styles.paginationBtn,
19960
- ...(currentPage === 1 ? styles.disabledBtn : {})
19961
- },
19882
+ className: `ads-pagination-btn ${currentPage === 1 ? "ads-pagination-btn--disabled" : ""}`,
19962
19883
  disabled: currentPage === 1,
19963
19884
  onClick: () => {
19964
19885
  setLoadingPage(true);
@@ -19968,12 +19889,9 @@ const ADSMyApplications = () => {
19968
19889
  }, 500);
19969
19890
  }
19970
19891
  }, "\u2190"), /*#__PURE__*/React.createElement("span", {
19971
- style: styles.paginationInfo
19892
+ className: "ads-pagination-info"
19972
19893
  }, `${indexOfFirstItem + 1}-${Math.min(indexOfLastItem, applications.length)} of ${applications.length}`), /*#__PURE__*/React.createElement("button", {
19973
- style: {
19974
- ...styles.paginationBtn,
19975
- ...(currentPage === totalPages ? styles.disabledBtn : {})
19976
- },
19894
+ className: `ads-pagination-btn ${currentPage === totalPages ? "ads-pagination-btn--disabled" : ""}`,
19977
19895
  disabled: currentPage === totalPages,
19978
19896
  onClick: () => {
19979
19897
  setLoadingPage(true);
@@ -19983,18 +19901,11 @@ const ADSMyApplications = () => {
19983
19901
  }, 500);
19984
19902
  }
19985
19903
  }, "\u2192"))), /*#__PURE__*/React.createElement("div", {
19986
- style: {
19987
- marginLeft: "16px",
19988
- marginTop: "16px"
19989
- }
19904
+ className: "ads-new-booking"
19990
19905
  }, t("PTR_TEXT_NOT_ABLE_TO_FIND_THE_APPLICATION"), " ", /*#__PURE__*/React.createElement(Link, {
19991
19906
  to: "/digit-ui/citizen/ads/bookad/searchads"
19992
19907
  }, /*#__PURE__*/React.createElement("button", {
19993
- style: {
19994
- padding: "8px opx",
19995
- fontWeight: "700",
19996
- display: "block"
19997
- }
19908
+ className: "ads-new-booking-btn"
19998
19909
  }, t("ADS_NEW_BOOKING") + " +"))));
19999
19910
  };
20000
19911
 
@@ -22250,47 +22161,23 @@ const ADSCartDetails$1 = ({
22250
22161
  accessor: row => row.nightLight ? t("ADS_YES") : t("ADS_NO")
22251
22162
  }];
22252
22163
  return /*#__PURE__*/React.createElement("div", {
22253
- style: {
22254
- marginTop: "1rem"
22255
- }
22164
+ className: "ads-cart-details"
22256
22165
  }, (cartDetails === null || cartDetails === void 0 ? void 0 : cartDetails.length) === 0 ? /*#__PURE__*/React.createElement("p", {
22257
- style: {
22258
- padding: "12px",
22259
- color: "#666"
22260
- }
22166
+ className: "ads-cart-empty"
22261
22167
  }, t("ADS_NO_ADVERTISMENT_DETAILS")) : cartDetails === null || cartDetails === void 0 ? void 0 : cartDetails.map((item, idx) => {
22262
22168
  var _item$ad, _item$ad2, _item$ad3, _item$ad4, _item$slots;
22263
22169
  const key = getKey(item === null || item === void 0 ? void 0 : item.ad);
22264
22170
  const isOpen = expanded === null || expanded === void 0 ? void 0 : expanded.includes(key);
22265
22171
  return /*#__PURE__*/React.createElement("div", {
22266
22172
  key: idx,
22267
- style: {
22268
- marginBottom: "16px",
22269
- border: "1px solid #ddd",
22270
- borderRadius: "8px",
22271
- overflow: "hidden"
22272
- }
22173
+ className: "ads-cart-item"
22273
22174
  }, /*#__PURE__*/React.createElement("div", {
22274
22175
  onClick: () => toggleExpand(key),
22275
- style: {
22276
- background: "#f9f9f9",
22277
- padding: "10px 14px",
22278
- fontWeight: 600,
22279
- fontSize: "14px",
22280
- borderBottom: "1px solid #ddd",
22281
- cursor: "pointer",
22282
- display: "flex",
22283
- justifyContent: "space-between",
22284
- alignItems: "center"
22285
- }
22176
+ className: "ads-cart-item-header ads-cart-item-header--clickable"
22286
22177
  }, /*#__PURE__*/React.createElement("span", null, t((item === null || item === void 0 ? void 0 : (_item$ad = item.ad) === null || _item$ad === void 0 ? void 0 : _item$ad.name) ?? (item === null || item === void 0 ? void 0 : (_item$ad2 = item.ad) === null || _item$ad2 === void 0 ? void 0 : _item$ad2.location)), item !== null && item !== void 0 && (_item$ad3 = item.ad) !== null && _item$ad3 !== void 0 && _item$ad3.amount ? ` — ₹${((item === null || item === void 0 ? void 0 : (_item$ad4 = item.ad) === null || _item$ad4 === void 0 ? void 0 : _item$ad4.amount) * 1.18 * (item === null || item === void 0 ? void 0 : (_item$slots = item.slots) === null || _item$slots === void 0 ? void 0 : _item$slots.length)).toFixed(2)}` : ""), /*#__PURE__*/React.createElement("span", {
22287
- style: {
22288
- fontSize: "18px"
22289
- }
22178
+ className: "ads-cart-item-toggle"
22290
22179
  }, isOpen ? "▾" : "▸")), isOpen && /*#__PURE__*/React.createElement("div", {
22291
- style: {
22292
- overflowX: "auto"
22293
- }
22180
+ className: "ads-cart-table"
22294
22181
  }, /*#__PURE__*/React.createElement(Table, {
22295
22182
  t: t,
22296
22183
  data: item.slots,
@@ -22298,13 +22185,7 @@ const ADSCartDetails$1 = ({
22298
22185
  disableSort: true,
22299
22186
  isPaginationRequired: false,
22300
22187
  getCellProps: cell => ({
22301
- style: {
22302
- padding: "12px 14px",
22303
- fontSize: "14px",
22304
- borderBottom: "1px solid #f0f0f0",
22305
- textAlign: "left",
22306
- whiteSpace: "nowrap"
22307
- }
22188
+ className: "ads-cart-table-cell"
22308
22189
  })
22309
22190
  })));
22310
22191
  }));
@@ -23482,60 +23363,59 @@ const StepWrapper = ({
23482
23363
  const {
23483
23364
  t
23484
23365
  } = useTranslation();
23485
- const stepStyle = isActive => ({
23366
+ const stepStyle = (isActive, isLast) => ({
23486
23367
  display: "flex",
23487
23368
  alignItems: "center",
23488
23369
  justifyContent: "flex-end",
23489
- flex: 1,
23490
- color: isActive ? "#3f51b5" : "#ccc",
23491
- padding: "10px 10px",
23492
- width: "260px"
23370
+ flex: "0 0 auto",
23371
+ color: isActive ? "#0D43A7" : "#9CA3AF",
23372
+ padding: "14px 12px",
23373
+ width: "260px",
23374
+ marginBottom: isLast ? "6px" : "18px"
23493
23375
  });
23494
23376
  const circleStyle = stepNumber => {
23495
- let backgroundColor;
23496
- if (stepNumber <= _currentStep) {
23497
- backgroundColor = "#0D43A7";
23498
- } else {
23499
- backgroundColor = "#FFFFFF";
23500
- }
23377
+ const completed = stepNumber <= _currentStep;
23501
23378
  return {
23502
- width: "60px",
23503
- height: "60px",
23379
+ width: "56px",
23380
+ height: "56px",
23504
23381
  borderRadius: "50%",
23505
- backgroundColor,
23506
- color: stepNumber <= _currentStep ? "white" : "black",
23382
+ background: completed ? "linear-gradient(135deg,#2563eb,#7c3aed)" : "#ffffff",
23383
+ color: completed ? "#ffffff" : "#0f172a",
23507
23384
  display: "flex",
23508
23385
  alignItems: "center",
23509
23386
  justifyContent: "center",
23510
- marginBottom: "10px",
23511
- fontWeight: "normal",
23387
+ marginBottom: "8px",
23388
+ fontWeight: 600,
23512
23389
  fontSize: "18px",
23513
- border: stepNumber > _currentStep ? "1px solid black" : "",
23390
+ border: completed ? "none" : "1px solid rgba(15,23,42,0.08)",
23391
+ boxShadow: completed ? "0 6px 18px rgba(37,99,235,0.18)" : "0 2px 6px rgba(2,6,23,0.04)",
23514
23392
  position: "relative"
23515
23393
  };
23516
23394
  };
23517
23395
  const labelStyle = {
23518
- fontSize: "18px",
23519
- color: "#1E1E1E",
23520
- fontWeight: "500",
23521
- fontFamily: "Noto Sans,sans-serif",
23522
- marginRight: "6px"
23396
+ fontSize: "16px",
23397
+ color: "#0f172a",
23398
+ fontWeight: 600,
23399
+ fontFamily: "Noto Sans, sans-serif",
23400
+ marginRight: "8px",
23401
+ textAlign: "right"
23523
23402
  };
23524
23403
  const stepNumberStyle = {
23525
- fontSize: "18px",
23526
- color: "#263238",
23527
- fontWeight: "400",
23528
- fontFamily: "Noto Sans,sans-serif",
23529
- margin: "0px 6px 0px 0px"
23404
+ fontSize: "14px",
23405
+ color: "#6b7280",
23406
+ fontWeight: 500,
23407
+ fontFamily: "Noto Sans, sans-serif",
23408
+ margin: "0 6px 0 0"
23530
23409
  };
23531
23410
  const lineStyle = {
23532
23411
  position: "absolute",
23533
- width: "2px",
23534
- height: "50px",
23535
- backgroundColor: "grey",
23412
+ width: "3px",
23413
+ height: "56px",
23414
+ backgroundColor: "rgba(15,23,42,0.06)",
23536
23415
  left: "50%",
23537
23416
  top: "100%",
23538
- transform: "translateX(-50%)"
23417
+ transform: "translateX(-50%)",
23418
+ borderRadius: "2px"
23539
23419
  };
23540
23420
  const isMobile = window.Digit.Utils.browser.isMobile();
23541
23421
  const totalSteps = _stepsList.length;
@@ -23545,22 +23425,25 @@ const StepWrapper = ({
23545
23425
  width: "100%",
23546
23426
  display: "flex",
23547
23427
  flexDirection: "row",
23548
- alignItems: "top",
23549
- justifyContent: "flex-start"
23428
+ alignItems: "flex-start",
23429
+ justifyContent: "flex-start",
23430
+ gap: "24px"
23550
23431
  }
23551
23432
  }, /*#__PURE__*/React.createElement("div", {
23552
23433
  className: "stepper-navigation-bar",
23553
23434
  style: {
23554
23435
  display: "flex",
23555
23436
  flexDirection: "column",
23556
- justifyContent: "space-between",
23557
- height: "50%",
23437
+ alignItems: "center",
23438
+ padding: "18px",
23439
+ minWidth: "120px",
23440
+ maxWidth: "320px",
23558
23441
  marginBottom: "20px"
23559
23442
  }
23560
23443
  }, [...Array(totalSteps)].map((_, index) => /*#__PURE__*/React.createElement("div", {
23561
23444
  className: "step-content",
23562
23445
  key: index,
23563
- style: stepStyle(index + 1 <= _currentStep)
23446
+ style: stepStyle(index + 1 <= _currentStep, index === totalSteps - 1)
23564
23447
  }, /*#__PURE__*/React.createElement("div", {
23565
23448
  className: "step-sub-content",
23566
23449
  style: {
@@ -23584,7 +23467,8 @@ const StepWrapper = ({
23584
23467
  className: "stepper-body",
23585
23468
  style: {
23586
23469
  width: "100%",
23587
- marginBottom: "20px"
23470
+ marginBottom: "20px",
23471
+ background: "transparent"
23588
23472
  }
23589
23473
  }, children));
23590
23474
  };
@@ -23893,11 +23777,7 @@ const NewADSStepperForm = ({
23893
23777
  return /*#__PURE__*/React.createElement("div", {
23894
23778
  className: "pageCard"
23895
23779
  }, /*#__PURE__*/React.createElement(CardHeader$1, {
23896
- styles: {
23897
- fontSize: "28px",
23898
- fontWeight: "500",
23899
- color: "#1C1D1F"
23900
- },
23780
+ className: "ads-heading-large",
23901
23781
  divider: true
23902
23782
  }, t("ADS_REGISTRATION_APPLICATION"), createTime && /*#__PURE__*/React.createElement(ReservationTimer, {
23903
23783
  t: t,
@@ -24299,12 +24179,7 @@ const ADSCitizenDetailsNew = ({
24299
24179
  })), errors.pincode && /*#__PURE__*/React.createElement(CardLabelError$1, {
24300
24180
  style: errorStyle
24301
24181
  }, errors === null || errors === void 0 ? void 0 : (_errors$pincode = errors.pincode) === null || _errors$pincode === void 0 ? void 0 : _errors$pincode.message)), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
24302
- style: {
24303
- background: " white",
24304
- color: "#2947a3",
24305
- border: "1px solid",
24306
- marginRight: "10px"
24307
- },
24182
+ className: "submit-bar-back",
24308
24183
  label: "Back",
24309
24184
  onSubmit: onGoBack
24310
24185
  }), /*#__PURE__*/React.createElement(SubmitBar, {
@@ -24458,12 +24333,7 @@ const AvailabilityModal = ({
24458
24333
  checked: selectAll,
24459
24334
  disabled: allBooked,
24460
24335
  onChange: e => handleSelectAll(e.target.checked),
24461
- style: {
24462
- cursor: allBooked ? "not-allowed" : "pointer",
24463
- width: "18px",
24464
- height: "18px",
24465
- accentColor: "#0b74de"
24466
- }
24336
+ className: `ads-checkbox ${allBooked ? "ads-checkbox--disabled" : "ads-checkbox--active"}`
24467
24337
  }),
24468
24338
  accessor: "select",
24469
24339
  Cell: ({
@@ -24475,12 +24345,7 @@ const AvailabilityModal = ({
24475
24345
  type: "checkbox",
24476
24346
  checked: isChecked,
24477
24347
  disabled: true,
24478
- style: {
24479
- cursor: "not-allowed",
24480
- width: "18px",
24481
- height: "18px",
24482
- accentColor: "#0b74de"
24483
- }
24348
+ className: "ads-checkbox ads-checkbox--disabled"
24484
24349
  });
24485
24350
  }
24486
24351
  }, {
@@ -24514,54 +24379,16 @@ const AvailabilityModal = ({
24514
24379
  const status = row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slotStaus;
24515
24380
  const isAvailable = status === "AVAILABLE";
24516
24381
  return /*#__PURE__*/React.createElement("span", {
24517
- style: {
24518
- display: "inline-block",
24519
- padding: "5px 14px",
24520
- borderRadius: "20px",
24521
- fontSize: "12px",
24522
- fontWeight: 600,
24523
- color: isAvailable ? "#155724" : "#721c24",
24524
- backgroundColor: isAvailable ? "#d4edda" : "#f8d7da",
24525
- border: `1px solid ${isAvailable ? "#c3e6cb" : "#f5c6cb"}`,
24526
- textTransform: "capitalize"
24527
- }
24382
+ className: `ads-status ${isAvailable ? "ads-status--available" : "ads-status--unavailable"}`
24528
24383
  }, status);
24529
24384
  }
24530
24385
  }];
24531
24386
  return /*#__PURE__*/React.createElement("div", {
24532
- style: {
24533
- position: "fixed",
24534
- top: "70px",
24535
- left: 0,
24536
- width: "100vw",
24537
- height: "calc(100vh - 70px)",
24538
- background: "rgba(0,0,0,0.5)",
24539
- display: "flex",
24540
- justifyContent: "center",
24541
- alignItems: "center",
24542
- zIndex: 2000
24543
- }
24387
+ className: "ads-cart-overlay"
24544
24388
  }, /*#__PURE__*/React.createElement("div", {
24545
- style: {
24546
- width: "90%",
24547
- maxWidth: "1100px",
24548
- height: "70vh",
24549
- background: "#fff",
24550
- borderRadius: "12px",
24551
- padding: "20px",
24552
- display: "flex",
24553
- flexDirection: "column",
24554
- boxShadow: "0 8px 24px rgba(0,0,0,0.25)"
24555
- }
24389
+ className: "ads-cart-modal"
24556
24390
  }, /*#__PURE__*/React.createElement("div", {
24557
- style: {
24558
- display: "flex",
24559
- justifyContent: "space-between",
24560
- alignItems: "center",
24561
- marginBottom: "16px",
24562
- borderBottom: "1px solid #eee",
24563
- paddingBottom: "8px"
24564
- }
24391
+ className: "ads-cart-header"
24565
24392
  }, /*#__PURE__*/React.createElement("h2", {
24566
24393
  style: {
24567
24394
  margin: 0,
@@ -24570,39 +24397,16 @@ const AvailabilityModal = ({
24570
24397
  color: "#333"
24571
24398
  }
24572
24399
  }, t("ADS_AVAILIBILITY_FOR"), " ", ad === null || ad === void 0 ? void 0 : ad.name, " ", allBooked && /*#__PURE__*/React.createElement("span", {
24573
- style: {
24574
- color: "#c62828",
24575
- fontSize: "14px",
24576
- marginLeft: "8px"
24577
- }
24400
+ className: "ads-header-note"
24578
24401
  }, t("ADS_ALL_SLOTS_BOOKED"))), /*#__PURE__*/React.createElement("button", {
24579
24402
  onClick: onClose,
24580
- style: {
24581
- border: "none",
24582
- background: "transparent",
24583
- fontSize: "22px",
24584
- cursor: "pointer",
24585
- color: "#666"
24586
- }
24403
+ className: "ads-cart-close"
24587
24404
  }, "\u2716")), /*#__PURE__*/React.createElement("div", {
24588
- style: {
24589
- flex: 1,
24590
- overflowY: "auto",
24591
- border: "1px solid #ddd",
24592
- borderRadius: "8px"
24593
- }
24405
+ className: "ads-cart-table-wrapper"
24594
24406
  }, isLoading ? /*#__PURE__*/React.createElement("div", {
24595
- style: {
24596
- fontSize: "24px",
24597
- color: "#555",
24598
- textAlign: "center"
24599
- }
24407
+ className: "ads-cart-table-message "
24600
24408
  }, t("ADS_LOADING_SLOTS")) : (slots === null || slots === void 0 ? void 0 : slots.length) === 0 ? /*#__PURE__*/React.createElement("div", {
24601
- style: {
24602
- fontSize: "24px",
24603
- color: "#555",
24604
- textAlign: "center"
24605
- }
24409
+ className: "ads-cart-table-message "
24606
24410
  }, t("ADS_NO_SLOTS_AVAILABLE")) : /*#__PURE__*/React.createElement(Table, {
24607
24411
  t: t,
24608
24412
  data: slots,
@@ -24610,43 +24414,20 @@ const AvailabilityModal = ({
24610
24414
  disableSort: true,
24611
24415
  isPaginationRequired: false,
24612
24416
  getCellProps: cell => ({
24613
- style: {
24614
- padding: "12px 14px",
24615
- fontSize: "14px",
24616
- borderBottom: "1px solid #f0f0f0",
24617
- textAlign: "left",
24618
- backgroundColor: cell.row.index % 2 === 0 ? "#fafafa" : "#fff"
24619
- }
24417
+ className: "ads-cart-table-cell"
24418
+ }),
24419
+ getRowProps: row => ({
24420
+ className: row.index % 2 === 0 ? "ads-table-row--even" : "ads-table-row--odd"
24620
24421
  })
24621
24422
  })), /*#__PURE__*/React.createElement("div", {
24622
- style: {
24623
- marginTop: "12px",
24624
- display: "flex",
24625
- justifyContent: "flex-end",
24626
- gap: "10px"
24627
- }
24423
+ className: "ads-modal-footer"
24628
24424
  }, /*#__PURE__*/React.createElement("button", {
24629
24425
  onClick: onClose,
24630
- style: {
24631
- padding: "10px 18px",
24632
- borderRadius: "6px",
24633
- border: "1px solid #ccc",
24634
- background: "#f5f5f5",
24635
- cursor: "pointer"
24636
- }
24426
+ className: "ads-btn-cancel"
24637
24427
  }, t ? t("Cancel") : "Cancel"), /*#__PURE__*/React.createElement("button", {
24638
24428
  onClick: handleAddToCart,
24639
24429
  disabled: !hasChanges,
24640
- style: {
24641
- padding: "10px 18px",
24642
- borderRadius: "6px",
24643
- border: "none",
24644
- background: hasChanges ? "#2947a3" : "#ccc",
24645
- color: "#fff",
24646
- fontWeight: 600,
24647
- cursor: hasChanges ? "pointer" : "not-allowed",
24648
- transition: "background 0.2s"
24649
- }
24430
+ className: `ads-btn-cart ${!hasChanges ? "ads-btn-cart--disabled" : ""}`
24650
24431
  }, "\uD83D\uDED2 ", (existingForAd === null || existingForAd === void 0 ? void 0 : existingForAd.length) > 0 ? t("COMMON_REMOVE_LABEL") : t("ADS_ADD_TO_CART")))));
24651
24432
  };
24652
24433
 
@@ -24692,54 +24473,16 @@ const CartModal = ({
24692
24473
  const status = row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slotStaus;
24693
24474
  const isAvailable = status === "AVAILABLE";
24694
24475
  return /*#__PURE__*/React.createElement("span", {
24695
- style: {
24696
- display: "inline-block",
24697
- padding: "5px 14px",
24698
- borderRadius: "20px",
24699
- fontSize: "12px",
24700
- fontWeight: 600,
24701
- color: isAvailable ? "#155724" : "#721c24",
24702
- backgroundColor: isAvailable ? "#d4edda" : "#f8d7da",
24703
- border: `1px solid ${isAvailable ? "#c3e6cb" : "#f5c6cb"}`,
24704
- textTransform: "capitalize"
24705
- }
24476
+ className: `ads-status ${isAvailable ? "ads-status--available" : "ads-status--unavailable"}`
24706
24477
  }, status);
24707
24478
  }
24708
24479
  }];
24709
24480
  return /*#__PURE__*/React.createElement("div", {
24710
- style: {
24711
- position: "fixed",
24712
- top: "70px",
24713
- left: 0,
24714
- width: "100vw",
24715
- height: "calc(100vh - 70px)",
24716
- background: "rgba(0,0,0,0.5)",
24717
- display: "flex",
24718
- justifyContent: "center",
24719
- alignItems: "center",
24720
- zIndex: 2000
24721
- }
24481
+ className: "ads-cart-overlay"
24722
24482
  }, /*#__PURE__*/React.createElement("div", {
24723
- style: {
24724
- width: "90%",
24725
- maxWidth: "1100px",
24726
- height: "70vh",
24727
- background: "#fff",
24728
- borderRadius: "12px",
24729
- padding: "20px",
24730
- display: "flex",
24731
- flexDirection: "column",
24732
- boxShadow: "0 8px 24px rgba(0,0,0,0.25)"
24733
- }
24483
+ className: "ads-cart-modal"
24734
24484
  }, /*#__PURE__*/React.createElement("div", {
24735
- style: {
24736
- display: "flex",
24737
- justifyContent: "space-between",
24738
- alignItems: "center",
24739
- marginBottom: "16px",
24740
- borderBottom: "1px solid #eee",
24741
- paddingBottom: "8px"
24742
- }
24485
+ className: "ads-cart-header"
24743
24486
  }, /*#__PURE__*/React.createElement("h2", {
24744
24487
  style: {
24745
24488
  margin: 0,
@@ -24749,13 +24492,7 @@ const CartModal = ({
24749
24492
  }
24750
24493
  }, t("ADS_YOUR_CART")), /*#__PURE__*/React.createElement("button", {
24751
24494
  onClick: onClose,
24752
- style: {
24753
- border: "none",
24754
- background: "transparent",
24755
- fontSize: "22px",
24756
- cursor: "pointer",
24757
- color: "#666"
24758
- }
24495
+ className: "ads-cart-close"
24759
24496
  }, "\u2716")), /*#__PURE__*/React.createElement("div", {
24760
24497
  style: {
24761
24498
  flex: 1,
@@ -24772,23 +24509,9 @@ const CartModal = ({
24772
24509
  const isOpen = expanded === null || expanded === void 0 ? void 0 : expanded.includes(key);
24773
24510
  return /*#__PURE__*/React.createElement("div", {
24774
24511
  key: key,
24775
- style: {
24776
- marginBottom: "16px",
24777
- border: "1px solid #ddd",
24778
- borderRadius: "8px",
24779
- overflow: "hidden"
24780
- }
24512
+ className: "ads-cart-item"
24781
24513
  }, /*#__PURE__*/React.createElement("div", {
24782
- style: {
24783
- background: "#f9f9f9",
24784
- padding: "10px 14px",
24785
- fontWeight: 600,
24786
- fontSize: "14px",
24787
- borderBottom: "1px solid #ddd",
24788
- display: "flex",
24789
- justifyContent: "space-between",
24790
- alignItems: "center"
24791
- }
24514
+ className: "ads-cart-item-header"
24792
24515
  }, /*#__PURE__*/React.createElement("div", {
24793
24516
  onClick: () => toggleExpand(key),
24794
24517
  style: {
@@ -24808,20 +24531,9 @@ const CartModal = ({
24808
24531
  endDate: item === null || item === void 0 ? void 0 : (_item$ad5 = item.ad) === null || _item$ad5 === void 0 ? void 0 : _item$ad5.bookingEndDate
24809
24532
  });
24810
24533
  },
24811
- style: {
24812
- padding: "6px 12px",
24813
- borderRadius: "6px",
24814
- border: "none",
24815
- background: "#dc3545",
24816
- color: "#fff",
24817
- cursor: "pointer",
24818
- fontSize: "12px",
24819
- marginLeft: "10px"
24820
- }
24534
+ className: "ads-cart-remove"
24821
24535
  }, t("ADS_REMOVE"))), isOpen && /*#__PURE__*/React.createElement("div", {
24822
- style: {
24823
- overflowX: "auto"
24824
- }
24536
+ className: "ads-cart-table"
24825
24537
  }, /*#__PURE__*/React.createElement(Table, {
24826
24538
  t: t,
24827
24539
  data: item === null || item === void 0 ? void 0 : item.slots,
@@ -24829,13 +24541,7 @@ const CartModal = ({
24829
24541
  disableSort: true,
24830
24542
  isPaginationRequired: false,
24831
24543
  getCellProps: cell => ({
24832
- style: {
24833
- padding: "12px 14px",
24834
- fontSize: "14px",
24835
- borderBottom: "1px solid #f0f0f0",
24836
- textAlign: "left",
24837
- whiteSpace: "nowrap"
24838
- }
24544
+ className: "ads-cart-table-cell"
24839
24545
  })
24840
24546
  })));
24841
24547
  }))));
@@ -24859,24 +24565,9 @@ const AdCard = ({
24859
24565
  return (item === null || item === void 0 ? void 0 : (_item$ad = item.ad) === null || _item$ad === void 0 ? void 0 : _item$ad.id) === (ad === null || ad === void 0 ? void 0 : ad.id) && (item === null || item === void 0 ? void 0 : (_item$slots = item.slots) === null || _item$slots === void 0 ? void 0 : _item$slots.length) > 0;
24860
24566
  });
24861
24567
  return /*#__PURE__*/React.createElement("div", {
24862
- style: {
24863
- width: 280,
24864
- borderRadius: 8,
24865
- padding: 9,
24866
- background: "#fff",
24867
- boxShadow: "0 4px 10px rgba(0,0,0,0.08)",
24868
- display: "flex",
24869
- flexDirection: "column",
24870
- gap: 8
24871
- }
24568
+ className: "ads-card"
24872
24569
  }, /*#__PURE__*/React.createElement("div", {
24873
- style: {
24874
- width: "100%",
24875
- height: 120,
24876
- borderRadius: 8,
24877
- overflow: "hidden",
24878
- background: "#f5f5f5"
24879
- }
24570
+ className: "ads-card-image"
24880
24571
  }, ad.imageSrc || ad.photoURL ? /*#__PURE__*/React.createElement("img", {
24881
24572
  src: (ad === null || ad === void 0 ? void 0 : ad.imageSrc) || (ad === null || ad === void 0 ? void 0 : ad.photoURL),
24882
24573
  alt: (ad === null || ad === void 0 ? void 0 : ad.name) || `Ad ${ad === null || ad === void 0 ? void 0 : ad.id}`,
@@ -24887,14 +24578,7 @@ const AdCard = ({
24887
24578
  objectFit: "cover"
24888
24579
  }
24889
24580
  }) : /*#__PURE__*/React.createElement("div", {
24890
- style: {
24891
- width: "100%",
24892
- height: "100%",
24893
- display: "flex",
24894
- alignItems: "center",
24895
- justifyContent: "center",
24896
- color: "#aaa"
24897
- }
24581
+ className: "ads-card-noimage"
24898
24582
  }, t("ADS_NO_IMAGE"))), /*#__PURE__*/React.createElement("div", {
24899
24583
  style: {
24900
24584
  display: "flex",
@@ -24947,13 +24631,7 @@ const AdCard = ({
24947
24631
  min: minDate,
24948
24632
  value: props.value || "",
24949
24633
  onChange: e => props.onChange(e.target.value),
24950
- style: {
24951
- flex: 1,
24952
- padding: "6px 8px",
24953
- fontSize: 13,
24954
- borderRadius: 6,
24955
- border: "1px solid #ccc"
24956
- }
24634
+ className: "ads-card-input"
24957
24635
  })
24958
24636
  }), /*#__PURE__*/React.createElement(Controller, {
24959
24637
  control: control,
@@ -24962,13 +24640,7 @@ const AdCard = ({
24962
24640
  type: "time",
24963
24641
  value: props.value || "",
24964
24642
  onChange: e => props.onChange(e.target.value),
24965
- style: {
24966
- width: 110,
24967
- padding: "6px 8px",
24968
- fontSize: 13,
24969
- borderRadius: 6,
24970
- border: "1px solid #ccc"
24971
- }
24643
+ className: "ads-input-time"
24972
24644
  })
24973
24645
  })), /*#__PURE__*/React.createElement("div", {
24974
24646
  style: {
@@ -24989,13 +24661,7 @@ const AdCard = ({
24989
24661
  min: startDateVal || minDate,
24990
24662
  value: props.value || "",
24991
24663
  onChange: e => props.onChange(e.target.value),
24992
- style: {
24993
- flex: 1,
24994
- padding: "6px 8px",
24995
- fontSize: 13,
24996
- borderRadius: 6,
24997
- border: "1px solid #ccc"
24998
- }
24664
+ className: "ads-card-input"
24999
24665
  })
25000
24666
  }), /*#__PURE__*/React.createElement(Controller, {
25001
24667
  control: control,
@@ -25004,13 +24670,7 @@ const AdCard = ({
25004
24670
  type: "time",
25005
24671
  value: props.value || "",
25006
24672
  onChange: e => props.onChange(e.target.value),
25007
- style: {
25008
- width: 110,
25009
- padding: "6px 8px",
25010
- fontSize: 13,
25011
- borderRadius: 6,
25012
- border: "1px solid #ccc"
25013
- }
24673
+ className: "ads-input-time"
25014
24674
  })
25015
24675
  })), /*#__PURE__*/React.createElement("div", {
25016
24676
  style: {
@@ -25026,32 +24686,11 @@ const AdCard = ({
25026
24686
  startTime: watch(`ads.${idx}.startTime`),
25027
24687
  endTime: watch(`ads.${idx}.endTime`)
25028
24688
  }),
25029
- style: {
25030
- flex: 1,
25031
- padding: "6px 12px",
25032
- borderRadius: 6,
25033
- background: "#2947a3",
25034
- color: "#fff",
25035
- border: "none",
25036
- cursor: "pointer",
25037
- fontSize: 14
25038
- }
24689
+ className: "ads-btn-primary"
25039
24690
  }, t("ADS_VIEW_AVAILABILITY"), "\uD83D\uDC41\uFE0F"), isAdded && /*#__PURE__*/React.createElement("button", {
25040
24691
  type: "button",
25041
24692
  onClick: openCart,
25042
- style: {
25043
- width: 110,
25044
- padding: "6px 12px",
25045
- borderRadius: 6,
25046
- background: "#28a745",
25047
- color: "#fff",
25048
- fontSize: 14,
25049
- fontWeight: 600,
25050
- display: "flex",
25051
- alignItems: "center",
25052
- justifyContent: "center",
25053
- cursor: "pointer"
25054
- }
24693
+ className: "ads-btn-success"
25055
24694
  }, /*#__PURE__*/React.createElement("span", {
25056
24695
  style: {
25057
24696
  color: "black"
@@ -25288,15 +24927,7 @@ const ADSCitizenSecond = ({
25288
24927
  justifyContent: "end"
25289
24928
  }
25290
24929
  }, /*#__PURE__*/React.createElement("button", {
25291
- style: {
25292
- marginLeft: "12px",
25293
- padding: "8px 16px",
25294
- background: "#2947a3",
25295
- color: "#fff",
25296
- border: "none",
25297
- borderRadius: "6px",
25298
- cursor: "pointer"
25299
- },
24930
+ className: "ads-view-cart",
25300
24931
  onClick: () => setShowCart(true)
25301
24932
  }, /*#__PURE__*/React.createElement("span", {
25302
24933
  style: {
@@ -25307,33 +24938,15 @@ const ADSCitizenSecond = ({
25307
24938
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("ADS_SITE_NAME_LABEL"), " ", /*#__PURE__*/React.createElement("span", {
25308
24939
  style: mandatoryStyle
25309
24940
  }, "*")), /*#__PURE__*/React.createElement("div", {
25310
- style: {
25311
- width: "100%"
25312
- }
25313
- }, isCitizen && /*#__PURE__*/React.createElement("style", null, `
25314
- .form-field {
25315
- width: 100% !important;
25316
- }
25317
- .select-wrap {
25318
- width: 100% !important;
25319
- }
25320
- .select {
25321
- border: 1px solid #b4b4b4 !important;
25322
- border-radius: 8px !important;
25323
- height: 2.9rem !important;
25324
- }
25325
- .select-active {
25326
- border: 1px solid #2947a3 !important;
25327
- border-radius: 8px !important;
25328
- }
25329
- `), /*#__PURE__*/React.createElement(Controller, {
24941
+ className: "ads-form-field"
24942
+ }, /*#__PURE__*/React.createElement(Controller, {
25330
24943
  control: control,
25331
24944
  name: "siteId",
25332
24945
  rules: {
25333
24946
  required: t("ADS_SITE_NAME_REQUIRED")
25334
24947
  },
25335
24948
  render: props => /*#__PURE__*/React.createElement(Dropdown, {
25336
- className: "form-field",
24949
+ className: "ads-form-field",
25337
24950
  option: locationOptions,
25338
24951
  optionKey: "name",
25339
24952
  selected: props.value,
@@ -25345,17 +24958,7 @@ const ADSCitizenSecond = ({
25345
24958
  })), errors.siteId && /*#__PURE__*/React.createElement(CardLabelError$1, {
25346
24959
  style: errorStyle
25347
24960
  }, errors.siteId.message), guidance && (adsForLocation === null || adsForLocation === void 0 ? void 0 : adsForLocation.length) > 0 && /*#__PURE__*/React.createElement("div", {
25348
- style: {
25349
- background: "#fff3cd",
25350
- border: "1px solid #ffeeba",
25351
- color: "#856404",
25352
- padding: "6px 10px",
25353
- borderRadius: "6px",
25354
- fontSize: "14px",
25355
- marginBottom: "8px",
25356
- width: "100%",
25357
- maxWidth: "545px"
25358
- }
24961
+ className: "ads-guidance-box"
25359
24962
  }, "\u26A0\uFE0F ", guidance), (adsForLocation === null || adsForLocation === void 0 ? void 0 : adsForLocation.length) > 0 && /*#__PURE__*/React.createElement("div", {
25360
24963
  style: {
25361
24964
  display: "flex",
@@ -25380,23 +24983,11 @@ const ADSCitizenSecond = ({
25380
24983
  }
25381
24984
  }, visibleCount < adsForLocation.length ? /*#__PURE__*/React.createElement("button", {
25382
24985
  type: "button",
25383
- style: {
25384
- padding: "8px 12px",
25385
- borderRadius: 6,
25386
- border: "1px solid #ccc",
25387
- background: "#fff",
25388
- cursor: "pointer"
25389
- },
24986
+ className: "ads-btn",
25390
24987
  onClick: () => setVisibleCount(v => v + 6)
25391
24988
  }, t("ADS_SHOW_MORE")) : /*#__PURE__*/React.createElement("button", {
25392
24989
  type: "button",
25393
- style: {
25394
- padding: "8px 12px",
25395
- borderRadius: 6,
25396
- border: "1px solid #ccc",
25397
- background: "#fff",
25398
- cursor: "pointer"
25399
- },
24990
+ className: "ads-btn",
25400
24991
  onClick: () => setVisibleCount(6)
25401
24992
  }, t("SHOW_LESS"))), /*#__PURE__*/React.createElement(CardLabel, null, t("CS_COMPLAINT_DETAILS_GEO_LOCATION")), /*#__PURE__*/React.createElement(Controller, {
25402
24993
  control: control,
@@ -25989,11 +25580,7 @@ const NewADSStepFormFive = ({
25989
25580
  }), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
25990
25581
  label: t("CS_COMMON_BACK"),
25991
25582
  onSubmit: onGoBack,
25992
- style: {
25993
- background: " white",
25994
- color: "#2947a3",
25995
- border: "1px solid"
25996
- }
25583
+ className: "ads-btn-back"
25997
25584
  }), displayMenu && /*#__PURE__*/React.createElement(Menu, {
25998
25585
  localeKeyPrefix: "",
25999
25586
  options: filteredActions,
@@ -26990,11 +26577,7 @@ const ADSSiteInspection = ({
26990
26577
  handleSubmit: handleSubmit
26991
26578
  });
26992
26579
  }), error && /*#__PURE__*/React.createElement("div", {
26993
- style: {
26994
- display: "flex",
26995
- alignItems: "center",
26996
- gap: "8px"
26997
- }
26580
+ className: "ads-error-container"
26998
26581
  }, /*#__PURE__*/React.createElement(Toast, {
26999
26582
  label: error,
27000
26583
  onClose: () => setError(null),
@@ -27003,13 +26586,7 @@ const ADSSiteInspection = ({
27003
26586
  type: "button",
27004
26587
  "aria-label": "Dismiss",
27005
26588
  onClick: () => setError(null),
27006
- style: {
27007
- background: "transparent",
27008
- border: "none",
27009
- fontSize: "18px",
27010
- cursor: "pointer",
27011
- lineHeight: 1
27012
- },
26589
+ className: "ads-error-dismiss",
27013
26590
  title: t("CS_ACTION_CLOSE") || "Close"
27014
26591
  }, "\xD7"))) : /*#__PURE__*/React.createElement(Loader$2, null));
27015
26592
  };
@@ -27403,12 +26980,6 @@ function ADSSelectDocument$1({
27403
26980
  setFormErrors(errors);
27404
26981
  }
27405
26982
  };
27406
- const errorStyle = {
27407
- color: "#d4351c",
27408
- fontSize: "12px",
27409
- marginTop: "4px",
27410
- marginBottom: "10px"
27411
- };
27412
26983
  return /*#__PURE__*/React.createElement("div", {
27413
26984
  style: {
27414
26985
  marginBottom: "24px"
@@ -27442,7 +27013,7 @@ function ADSSelectDocument$1({
27442
27013
  buttonType: "button",
27443
27014
  error: Boolean(fieldError)
27444
27015
  }), fieldError && /*#__PURE__*/React.createElement("div", {
27445
- style: errorStyle
27016
+ className: "ads-error-message"
27446
27017
  }, fieldError))));
27447
27018
  }
27448
27019
 
@@ -27460,104 +27031,39 @@ function ADSSummary({
27460
27031
  const applicant = (formData === null || formData === void 0 ? void 0 : (_formData$CreatedResp = formData.CreatedResponse) === null || _formData$CreatedResp === void 0 ? void 0 : _formData$CreatedResp.applicantDetail) || {};
27461
27032
  const address = (formData === null || formData === void 0 ? void 0 : (_formData$ownerDetail = formData.ownerDetails) === null || _formData$ownerDetail === void 0 ? void 0 : _formData$ownerDetail.address) || (formData === null || formData === void 0 ? void 0 : (_formData$CreatedResp2 = formData.CreatedResponse) === null || _formData$CreatedResp2 === void 0 ? void 0 : _formData$CreatedResp2.address) || {};
27462
27033
  const docs = Array.isArray(formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : (_formData$documents$d = _formData$documents.documents) === null || _formData$documents$d === void 0 ? void 0 : _formData$documents$d.documents) ? formData === null || formData === void 0 ? void 0 : (_formData$documents2 = formData.documents) === null || _formData$documents2 === void 0 ? void 0 : (_formData$documents2$ = _formData$documents2.documents) === null || _formData$documents2$ === void 0 ? void 0 : _formData$documents2$.documents : Array.isArray((_formData$documents3 = formData.documents) === null || _formData$documents3 === void 0 ? void 0 : _formData$documents3.documents) ? formData.documents.documents : Array.isArray(formData.documents) ? formData.documents : [];
27463
- const sectionStyle = {
27464
- backgroundColor: "#ffffff",
27465
- padding: "1rem 0",
27466
- borderRadius: "8px",
27467
- marginBottom: "1.5rem",
27468
- boxShadow: "0 2px 6px rgba(18,38,63,0.04)"
27469
- };
27470
- const headerRow = {
27471
- display: "flex",
27472
- justifyContent: "space-between",
27473
- alignItems: "center",
27474
- marginBottom: "0.75rem",
27475
- padding: "0 1.5rem"
27476
- };
27477
- const headerRow1 = {
27478
- display: "flex",
27479
- justifyContent: "space-between",
27480
- alignItems: "center",
27481
- marginBottom: "0.75rem"
27482
- };
27483
- const headingStyle = {
27484
- fontSize: "1.25rem",
27485
- color: "#0d43a7",
27486
- fontWeight: "600",
27487
- margin: 0
27488
- };
27489
- const editLabelStyle = {
27490
- cursor: "pointer",
27491
- color: "#2e86de",
27492
- fontWeight: 600,
27493
- fontSize: "0.9rem"
27494
- };
27495
- const labelFieldPairStyle = {
27496
- display: "flex",
27497
- justifyContent: "space-between",
27498
- borderBottom: "1px dashed #e9eef2",
27499
- padding: "0.6rem 1.5rem",
27500
- alignItems: "center"
27501
- };
27502
- const documentsContainerStyle = {
27503
- display: "flex",
27504
- flexWrap: "wrap",
27505
- gap: "1rem",
27506
- marginTop: "0.5rem"
27507
- };
27508
- const documentCardStyle = {
27509
- flex: "1 1 220px",
27510
- minWidth: "180px",
27511
- maxWidth: "260px",
27512
- backgroundColor: "#fbfcfe",
27513
- padding: "0.6rem",
27514
- border: "1px solid #eef3f7",
27515
- borderRadius: "6px"
27516
- };
27517
- const boldLabelStyle = {
27518
- fontWeight: "500",
27519
- color: "#333"
27520
- };
27521
27034
  const cartDetails = formData === null || formData === void 0 ? void 0 : formData.ads;
27522
27035
  const renderRow = (label, value) => /*#__PURE__*/React.createElement("div", {
27523
- style: labelFieldPairStyle
27036
+ className: "ads-summary-row"
27524
27037
  }, /*#__PURE__*/React.createElement("div", {
27525
- style: {
27526
- display: "flex",
27527
- gap: "0.5rem",
27528
- alignItems: "center"
27529
- }
27038
+ className: "ads-summary-row-label"
27530
27039
  }, /*#__PURE__*/React.createElement(CardLabel, {
27531
- style: boldLabelStyle
27040
+ className: "ads-summary-bold"
27532
27041
  }, label)), /*#__PURE__*/React.createElement("div", {
27533
- style: {
27534
- textAlign: "right",
27535
- minWidth: "120px"
27536
- }
27042
+ className: "ads-summary-row-value"
27537
27043
  }, value || "NA"));
27538
27044
  return /*#__PURE__*/React.createElement("div", {
27539
27045
  className: "application-summary"
27540
27046
  }, /*#__PURE__*/React.createElement(Card$1, {
27541
27047
  className: "summary-section"
27542
27048
  }, /*#__PURE__*/React.createElement("div", {
27543
- style: sectionStyle
27049
+ className: "ads-summary-section"
27544
27050
  }, /*#__PURE__*/React.createElement("div", {
27545
- style: headerRow
27051
+ className: "ads-summary-header"
27546
27052
  }, /*#__PURE__*/React.createElement("h3", {
27547
- style: headingStyle
27053
+ className: "ads-summary-heading"
27548
27054
  }, TT("ADS_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement("span", {
27549
- style: editLabelStyle,
27055
+ className: "ads-summary-edit",
27550
27056
  onClick: () => dispatch(SET_ADSNewApplication_STEP(2))
27551
27057
  }, TT("TL_SUMMARY_EDIT"))), renderRow(TT("NOC_APPLICANT_NAME_LABEL"), applicant === null || applicant === void 0 ? void 0 : applicant.applicantName), renderRow(TT("CORE_Mobile_Number"), applicant === null || applicant === void 0 ? void 0 : applicant.applicantMobileNo), renderRow(TT("CORE_EMAIL_ID"), applicant === null || applicant === void 0 ? void 0 : applicant.applicantEmailId), renderRow(TT("CORE_COMMON_PINCODE"), address === null || address === void 0 ? void 0 : address.pincode), renderRow(TT("ES_CREATECOMPLAINT_ADDRESS"), address === null || address === void 0 ? void 0 : address.addressLine1))), /*#__PURE__*/React.createElement(Card$1, {
27552
27058
  className: "summary-section"
27553
27059
  }, /*#__PURE__*/React.createElement("div", {
27554
- style: sectionStyle
27060
+ className: "ads-summary-section"
27555
27061
  }, /*#__PURE__*/React.createElement("div", {
27556
- style: headerRow1
27062
+ className: "ads-summary-header--compact"
27557
27063
  }, /*#__PURE__*/React.createElement("h3", {
27558
- style: headingStyle
27064
+ className: "ads-summary-heading"
27559
27065
  }, TT("ADS_DETAILS")), /*#__PURE__*/React.createElement("span", {
27560
- style: editLabelStyle,
27066
+ className: "ads-summary-edit",
27561
27067
  onClick: () => dispatch(SET_ADSNewApplication_STEP(1))
27562
27068
  }, TT("TL_SUMMARY_EDIT"))), /*#__PURE__*/React.createElement(ADSCartDetails$1, {
27563
27069
  cartDetails: cartDetails,
@@ -27565,27 +27071,25 @@ function ADSSummary({
27565
27071
  }))), /*#__PURE__*/React.createElement(Card$1, {
27566
27072
  className: "summary-section"
27567
27073
  }, /*#__PURE__*/React.createElement("div", {
27568
- style: sectionStyle
27074
+ className: "ads-summary-section"
27569
27075
  }, /*#__PURE__*/React.createElement("div", {
27570
- style: headerRow
27076
+ className: "ads-summary-header"
27571
27077
  }, /*#__PURE__*/React.createElement("h3", {
27572
- style: headingStyle
27078
+ className: "ads-summary-heading"
27573
27079
  }, TT("ADS_DOCUMENTS_DETAILS")), /*#__PURE__*/React.createElement("span", {
27574
- style: editLabelStyle,
27080
+ className: "ads-summary-edit",
27575
27081
  onClick: () => dispatch(SET_ADSNewApplication_STEP(3))
27576
27082
  }, TT("TL_SUMMARY_EDIT"))), (docs === null || docs === void 0 ? void 0 : docs.length) > 0 ? /*#__PURE__*/React.createElement("div", {
27577
- style: documentsContainerStyle
27083
+ className: "ads-summary-docs"
27578
27084
  }, docs.map((doc, idx) => /*#__PURE__*/React.createElement("div", {
27579
27085
  key: idx,
27580
- style: documentCardStyle
27086
+ className: "ads-summary-doc-card"
27581
27087
  }, /*#__PURE__*/React.createElement(ADSDocument, {
27582
27088
  value: docs,
27583
27089
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
27584
27090
  index: idx
27585
27091
  }), TT(doc === null || doc === void 0 ? void 0 : doc.documentType)))) : /*#__PURE__*/React.createElement("div", {
27586
- style: {
27587
- padding: "0 1.5rem"
27588
- }
27092
+ className: "ads-summary-no-docs"
27589
27093
  }, t("TL_NO_DOCUMENTS_MSG")))));
27590
27094
  }
27591
27095