sag_components 1.0.445 → 1.0.446

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.
@@ -48,35 +48,35 @@ const TitleDescription = props => {
48
48
  }, [viewCreativeRetailersData]);
49
49
  const getRetailerIcon = retailerName => {
50
50
  switch (retailerName) {
51
- case "Food Lion":
51
+ case 'Food Lion':
52
52
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
53
53
  id: "RetailerIconContainer"
54
54
  }, /*#__PURE__*/_react.default.createElement(_FoodLionIcon.FoodLionIcon, {
55
55
  width: "90",
56
56
  height: "20"
57
57
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
58
- case "Hannaford":
58
+ case 'Hannaford':
59
59
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
60
60
  id: "RetailerIconContainer"
61
61
  }, /*#__PURE__*/_react.default.createElement(_HannafordIcon.HannafordIcon, {
62
62
  width: "90",
63
63
  height: "20"
64
64
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
65
- case "Giant Food":
65
+ case 'Giant Food':
66
66
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
67
67
  id: "RetailerIconContainer"
68
68
  }, /*#__PURE__*/_react.default.createElement(_GiantFoodIcon.GiantFoodIcon, {
69
69
  width: "60",
70
70
  height: "20"
71
71
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
72
- case "The Giant Company":
72
+ case 'The Giant Company':
73
73
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
74
74
  id: "RetailerIconContainer"
75
75
  }, /*#__PURE__*/_react.default.createElement(_TheGiantCompanyIcon.TheGiantCompanyIcon, {
76
76
  width: "60",
77
77
  height: "20"
78
78
  }), /*#__PURE__*/_react.default.createElement(_TitleDescription.Space, null, " "));
79
- case "Stop&Shop":
79
+ case 'Stop&Shop':
80
80
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.RetailerIconContainer, {
81
81
  id: "RetailerIconContainer"
82
82
  }, /*#__PURE__*/_react.default.createElement(_StopAndShopIcon.StopAndShopIcon, {
@@ -116,13 +116,13 @@ const TitleDescription = props => {
116
116
  const {
117
117
  offsetLeft
118
118
  } = viewCreativeContainerRef.current;
119
- return offsetLeft.toString().concat("", "px");
119
+ return offsetLeft.toString().concat('', 'px');
120
120
  };
121
121
  const getViewCreativeContainerTop = () => {
122
122
  const {
123
123
  offsetTop
124
124
  } = viewCreativeContainerRef.current;
125
- return (offsetTop + 33).toString().concat("", "px");
125
+ return (offsetTop + 33).toString().concat('', 'px');
126
126
  };
127
127
  return /*#__PURE__*/_react.default.createElement(_TitleDescription.MainContainer, {
128
128
  id: "MainContainer",
@@ -211,7 +211,7 @@ const TitleDescription = props => {
211
211
  id: "ObjectivesDescription"
212
212
  }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectivesTitle, {
213
213
  id: "ObjectivesTitle"
214
- }, (data === null || data === void 0 ? void 0 : (_data$eventDescriptio = data.eventDescription) === null || _data$eventDescriptio === void 0 ? void 0 : _data$eventDescriptio.length) > 0 ? "Event Description: " : ""), data.eventDescription)), showPeriodIcon && /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodsContainer, {
214
+ }, (data === null || data === void 0 ? void 0 : (_data$eventDescriptio = data.eventDescription) === null || _data$eventDescriptio === void 0 ? void 0 : _data$eventDescriptio.length) > 0 ? 'Event Description: ' : ''), data.eventDescription)), showPeriodIcon && /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodsContainer, {
215
215
  id: "PeriodsContainer"
216
216
  }, /*#__PURE__*/_react.default.createElement(_TitleDescription.SubLineContainer, {
217
217
  id: "SubLineContainer"
@@ -219,9 +219,9 @@ const TitleDescription = props => {
219
219
  id: "SubLineContainer"
220
220
  }, (data === null || data === void 0 ? void 0 : (_data$eventDatesValue = data.eventDatesValue) === null || _data$eventDatesValue === void 0 ? void 0 : _data$eventDatesValue.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodLabel, {
221
221
  id: "PeriodLabel"
222
- }, "Event Dates: ") : "", (data === null || data === void 0 ? void 0 : (_data$eventDatesValue2 = data.eventDatesValue) === null || _data$eventDatesValue2 === void 0 ? void 0 : _data$eventDatesValue2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodValue, {
222
+ }, "Event Dates: ") : '', (data === null || data === void 0 ? void 0 : (_data$eventDatesValue2 = data.eventDatesValue) === null || _data$eventDatesValue2 === void 0 ? void 0 : _data$eventDatesValue2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescription.PeriodValue, {
223
223
  id: "PeriodValue"
224
- }, data.eventDatesValue) : ""))), /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectiesAndPeriodsContainer, {
224
+ }, data.eventDatesValue) : ''))), /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectiesAndPeriodsContainer, {
225
225
  id: "ObjectiesAndPeriodsContainer"
226
226
  }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectiesContainer, {
227
227
  id: "ObjectiesContainer",
@@ -230,7 +230,7 @@ const TitleDescription = props => {
230
230
  id: "ObjectivesDescription"
231
231
  }, /*#__PURE__*/_react.default.createElement(_TitleDescription.ObjectivesTitle, {
232
232
  id: "ObjectivesTitle"
233
- }, (data === null || data === void 0 ? void 0 : (_data$objectivesDescr = data.objectivesDescription) === null || _data$objectivesDescr === void 0 ? void 0 : _data$objectivesDescr.length) > 0 ? "Objectives: " : ""), data.objectivesDescription)))));
233
+ }, (data === null || data === void 0 ? void 0 : (_data$objectivesDescr = data.objectivesDescription) === null || _data$objectivesDescr === void 0 ? void 0 : _data$objectivesDescr.length) > 0 ? 'Objectives: ' : ''), data.objectivesDescription)))));
234
234
  };
235
235
  exports.TitleDescription = TitleDescription;
236
236
  var _default = exports.default = TitleDescription;
@@ -238,33 +238,33 @@ TitleDescription.defaultProps = {
238
238
  showRetailerIcon: true,
239
239
  showPeriodIcon: true,
240
240
  viewCreativeRetailersData: [{
241
- label: "Food Lion"
241
+ label: 'Food Lion'
242
242
  }, {
243
- label: "Stop&Shop"
243
+ label: 'Stop&Shop'
244
244
  }, {
245
- label: "Giant Food"
245
+ label: 'Giant Food'
246
246
  }, {
247
- label: "The Giant Company"
247
+ label: 'The Giant Company'
248
248
  }, {
249
- label: "Hannaford"
249
+ label: 'Hannaford'
250
250
  }],
251
251
  data: {
252
- eventName: "Large Selling Event P2 2023",
253
- eventType: "Large Selling Event",
254
- retailer: "The Giant Company",
255
- eventDescription: "Large Selling Event Description",
256
- objectivesDescription: "Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. Adipiscing quam sodales vestibulum pretium sit adipiscing ultricies viverra. Sollicitudin penatibus fermentum fermentum faucibus viverra augue viverra. Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. ",
257
- eventDatesValue: "Feb 1, 2023 - Feb 28, 2023",
258
- externalEventDescription: "Large Selling Event P2 Description",
259
- externalEventID: "LSE2_23",
260
- storeType: "Total",
261
- category: "",
262
- supplier: "",
263
- brand: ""
252
+ eventName: 'Large Selling Event P2 2023',
253
+ eventType: 'Large Selling Event',
254
+ retailer: 'The Giant Company',
255
+ eventDescription: 'Large Selling Event Description',
256
+ objectivesDescription: 'Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. Adipiscing quam sodales vestibulum pretium sit adipiscing ultricies viverra. Sollicitudin penatibus fermentum fermentum faucibus viverra augue viverra. Lorem ipsum dolor sit amet consectetur. Viverra urna condimentum donec ipsum vitae volutpat phasellus. ',
257
+ eventDatesValue: 'Feb 1, 2023 - Feb 28, 2023',
258
+ externalEventDescription: 'Large Selling Event P2 Description',
259
+ externalEventID: 'LSE2_23',
260
+ storeType: 'Total',
261
+ category: '',
262
+ supplier: '',
263
+ brand: ''
264
264
  },
265
265
  viewCreativeOnClick: () => {},
266
- width: "100%",
267
- height: "100%",
268
- textcolor: "#212121",
266
+ width: '100%',
267
+ height: '100%',
268
+ textcolor: '#212121',
269
269
  disabled: false
270
270
  };