@mseva/upyog-ui-module-ads 1.0.96 → 1.0.98

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.
@@ -23080,25 +23080,7 @@ const ApplicationDetails = () => {
23080
23080
  styles: {
23081
23081
  fontSize: "32px"
23082
23082
  }
23083
- }, t("ADS_APP_OVER_VIEW_HEADER")), /*#__PURE__*/React.createElement("div", {
23084
- style: {
23085
- display: "flex",
23086
- alignItems: "center",
23087
- gap: "12px"
23088
- }
23089
- }, downloadOptions && (downloadOptions === null || downloadOptions === void 0 ? void 0 : downloadOptions.length) > 0 && /*#__PURE__*/React.createElement("div", {
23090
- style: {
23091
- position: "relative",
23092
- zIndex: 10
23093
- }
23094
- }, /*#__PURE__*/React.createElement(MultiLink, {
23095
- className: "multilinkWrapper",
23096
- onHeadClick: () => setShowOptions(!showOptions),
23097
- displayOptions: showOptions,
23098
- options: downloadOptions,
23099
- downloadBtnClassName: "employee-download-btn-className",
23100
- optionsClassName: "employee-options-btn-className"
23101
- }))))), /*#__PURE__*/React.createElement(Card$1, null, (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican4 = displayData.applicantData) === null || _displayData$applican4 === void 0 ? void 0 : (_displayData$applican5 = _displayData$applican4.auditDetails) === null || _displayData$applican5 === void 0 ? void 0 : _displayData$applican5.createdTime) && (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican6 = displayData.applicantData) === null || _displayData$applican6 === void 0 ? void 0 : _displayData$applican6.bookingStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("div", {
23083
+ }, t("ADS_APP_OVER_VIEW_HEADER")))), /*#__PURE__*/React.createElement(Card$1, null, (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican4 = displayData.applicantData) === null || _displayData$applican4 === void 0 ? void 0 : (_displayData$applican5 = _displayData$applican4.auditDetails) === null || _displayData$applican5 === void 0 ? void 0 : _displayData$applican5.createdTime) && (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican6 = displayData.applicantData) === null || _displayData$applican6 === void 0 ? void 0 : _displayData$applican6.bookingStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("div", {
23102
23084
  style: {
23103
23085
  display: "flex",
23104
23086
  justifyContent: "flex-end"
@@ -24178,14 +24160,14 @@ const AvailabilityModal = ({
24178
24160
  }, [allInCart]);
24179
24161
  const hasChanges = !areSlotsEqual(selectedSlots, existingForAd);
24180
24162
  useEffect(() => {
24181
- if ((existingForAd === null || existingForAd === void 0 ? void 0 : existingForAd.length) > 0) {
24163
+ if (ad !== null && ad !== void 0 && ad.id && (existingForAd === null || existingForAd === void 0 ? void 0 : existingForAd.length) > 0) {
24182
24164
  setSelectAll(true);
24183
24165
  setSelectedSlots(existingForAd);
24184
24166
  } else {
24185
24167
  setSelectAll(false);
24186
24168
  setSelectedSlots([]);
24187
24169
  }
24188
- }, [ad === null || ad === void 0 ? void 0 : ad.id]);
24170
+ }, [ad]);
24189
24171
  const columns = [{
24190
24172
  Header: () => /*#__PURE__*/React.createElement("input", {
24191
24173
  type: "checkbox",