@imposium-hub/components 1.60.0 → 1.60.1
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.
- package/dist/cjs/components/assets/AssetsTableSelectCell.js +8 -2
- package/dist/cjs/components/assets/AssetsTableSelectCell.js.map +1 -1
- package/dist/esm/components/assets/AssetsTableSelectCell.js +8 -2
- package/dist/esm/components/assets/AssetsTableSelectCell.js.map +1 -1
- package/package.json +1 -1
- package/src/components/assets/AssetsTableSelectCell.tsx +19 -9
- package/dist/cjs/components/publish-wizard/EmailWorkflow.d.ts +0 -2
- package/dist/cjs/components/publish-wizard/EmailWorkflow.js +0 -491
- package/dist/cjs/components/publish-wizard/EmailWorkflow.js.map +0 -1
- package/dist/cjs/components/publish-wizard/copy.d.ts +0 -186
- package/dist/cjs/components/publish-wizard/copy.js +0 -199
- package/dist/cjs/components/publish-wizard/copy.js.map +0 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer_BACKUP_64741.d.ts +0 -2
- package/dist/cjs/components/story-previewer/StoryPreviewer_BACKUP_64741.js +0 -670
- package/dist/cjs/components/story-previewer/StoryPreviewer_BACKUP_64741.js.map +0 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer_BASE_64741.d.ts +0 -2
- package/dist/cjs/components/story-previewer/StoryPreviewer_BASE_64741.js +0 -553
- package/dist/cjs/components/story-previewer/StoryPreviewer_BASE_64741.js.map +0 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer_LOCAL_64741.d.ts +0 -2
- package/dist/cjs/components/story-previewer/StoryPreviewer_LOCAL_64741.js +0 -650
- package/dist/cjs/components/story-previewer/StoryPreviewer_LOCAL_64741.js.map +0 -1
- package/dist/cjs/components/story-previewer/StoryPreviewer_REMOTE_64741.d.ts +0 -2
- package/dist/cjs/components/story-previewer/StoryPreviewer_REMOTE_64741.js +0 -639
- package/dist/cjs/components/story-previewer/StoryPreviewer_REMOTE_64741.js.map +0 -1
- package/dist/cjs/constants/assets_BACKUP_14924.d.ts +0 -20
- package/dist/cjs/constants/assets_BACKUP_14924.js +0 -30
- package/dist/cjs/constants/assets_BACKUP_14924.js.map +0 -1
- package/dist/cjs/constants/assets_BASE_14924.d.ts +0 -21
- package/dist/cjs/constants/assets_BASE_14924.js +0 -32
- package/dist/cjs/constants/assets_BASE_14924.js.map +0 -1
- package/dist/cjs/constants/assets_LOCAL_14924.d.ts +0 -20
- package/dist/cjs/constants/assets_LOCAL_14924.js +0 -30
- package/dist/cjs/constants/assets_LOCAL_14924.js.map +0 -1
- package/dist/cjs/constants/assets_REMOTE_14924.d.ts +0 -21
- package/dist/cjs/constants/assets_REMOTE_14924.js +0 -32
- package/dist/cjs/constants/assets_REMOTE_14924.js.map +0 -1
- package/dist/esm/components/publish-wizard/EmailWorkflow.d.ts +0 -2
- package/dist/esm/components/publish-wizard/EmailWorkflow.js +0 -398
- package/dist/esm/components/publish-wizard/EmailWorkflow.js.map +0 -1
- package/dist/esm/components/publish-wizard/copy.d.ts +0 -186
- package/dist/esm/components/publish-wizard/copy.js +0 -196
- package/dist/esm/components/publish-wizard/copy.js.map +0 -1
- package/dist/esm/components/story-previewer/StoryPreviewer_BACKUP_64741.d.ts +0 -2
- package/dist/esm/components/story-previewer/StoryPreviewer_BACKUP_64741.js +0 -554
- package/dist/esm/components/story-previewer/StoryPreviewer_BACKUP_64741.js.map +0 -1
- package/dist/esm/components/story-previewer/StoryPreviewer_BASE_64741.d.ts +0 -2
- package/dist/esm/components/story-previewer/StoryPreviewer_BASE_64741.js +0 -489
- package/dist/esm/components/story-previewer/StoryPreviewer_BASE_64741.js.map +0 -1
- package/dist/esm/components/story-previewer/StoryPreviewer_LOCAL_64741.d.ts +0 -2
- package/dist/esm/components/story-previewer/StoryPreviewer_LOCAL_64741.js +0 -537
- package/dist/esm/components/story-previewer/StoryPreviewer_LOCAL_64741.js.map +0 -1
- package/dist/esm/components/story-previewer/StoryPreviewer_REMOTE_64741.d.ts +0 -2
- package/dist/esm/components/story-previewer/StoryPreviewer_REMOTE_64741.js +0 -526
- package/dist/esm/components/story-previewer/StoryPreviewer_REMOTE_64741.js.map +0 -1
- package/dist/esm/constants/assets_BACKUP_14924.d.ts +0 -20
- package/dist/esm/constants/assets_BACKUP_14924.js +0 -26
- package/dist/esm/constants/assets_BACKUP_14924.js.map +0 -1
- package/dist/esm/constants/assets_BASE_14924.d.ts +0 -21
- package/dist/esm/constants/assets_BASE_14924.js +0 -28
- package/dist/esm/constants/assets_BASE_14924.js.map +0 -1
- package/dist/esm/constants/assets_LOCAL_14924.d.ts +0 -20
- package/dist/esm/constants/assets_LOCAL_14924.js +0 -26
- package/dist/esm/constants/assets_LOCAL_14924.js.map +0 -1
- package/dist/esm/constants/assets_REMOTE_14924.d.ts +0 -21
- package/dist/esm/constants/assets_REMOTE_14924.js +0 -28
- package/dist/esm/constants/assets_REMOTE_14924.js.map +0 -1
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import HRule from '../../h-rule/HRule';
|
|
3
|
-
import Spinner from '../../spinner/Spinner';
|
|
4
|
-
import * as copy from '../../../constants/copy';
|
|
5
|
-
import { BigButton } from '../PublishWizard';
|
|
6
|
-
import { ExportToCsv } from 'export-to-csv';
|
|
7
|
-
import { ICON_DOWNLOAD, ICON_UPLOAD } from '../../../constants/icons';
|
|
8
|
-
import moment from 'moment';
|
|
9
|
-
import { bindActionCreators } from 'redux';
|
|
10
|
-
import { connect } from 'react-redux';
|
|
11
|
-
import SelectField from '../../select-field/SelectField';
|
|
12
|
-
import { updateAssociation, getBatch, setPage } from '../../../redux/actions/active-batch';
|
|
13
|
-
import TextField from '../../text-field/TextField';
|
|
14
|
-
class EmailWorkflow extends React.PureComponent {
|
|
15
|
-
hiddenFileInputRef;
|
|
16
|
-
static PROGRESS_MAX_VALUE = 100;
|
|
17
|
-
static CSV_EXPORT_CONFIG = {
|
|
18
|
-
fieldSeparator: ',',
|
|
19
|
-
quoteStrings: '"',
|
|
20
|
-
decimalSeparator: '.',
|
|
21
|
-
showLabels: false,
|
|
22
|
-
showTitle: false,
|
|
23
|
-
useTextFile: false,
|
|
24
|
-
useBom: false,
|
|
25
|
-
useKeysAsHeaders: true
|
|
26
|
-
};
|
|
27
|
-
constructor(props) {
|
|
28
|
-
super(props);
|
|
29
|
-
this.state = {
|
|
30
|
-
uploadComplete: false,
|
|
31
|
-
uploading: false,
|
|
32
|
-
downloading: false,
|
|
33
|
-
selectedBatchId: '',
|
|
34
|
-
renderedBatch: false,
|
|
35
|
-
inventory: [],
|
|
36
|
-
inventoryKeys: [],
|
|
37
|
-
missingColumns: '',
|
|
38
|
-
isMissing: false,
|
|
39
|
-
creativeManagerOverrides: {
|
|
40
|
-
creativeId: '',
|
|
41
|
-
versionListId: '',
|
|
42
|
-
creativeLibraryId: '',
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
this.hiddenFileInputRef = React.createRef();
|
|
46
|
-
}
|
|
47
|
-
componentDidMount() {
|
|
48
|
-
this.getInventory();
|
|
49
|
-
}
|
|
50
|
-
componentDidUpdate() {
|
|
51
|
-
const { activeBatch: { data: { columns } }, batchJobs: { missing } } = this.props;
|
|
52
|
-
if (missing.length >= 0 && columns) {
|
|
53
|
-
const varArray = this.getVarArray();
|
|
54
|
-
const colArray = this.getColArray();
|
|
55
|
-
this.checkOnNext(varArray, colArray);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
getVarArray() {
|
|
59
|
-
const { variables } = this.props;
|
|
60
|
-
return Object.keys(variables).map((key) => {
|
|
61
|
-
const opt = { ...variables[key] };
|
|
62
|
-
return opt;
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
getColArray() {
|
|
66
|
-
const { activeBatch: { data: { columns } } } = this.props;
|
|
67
|
-
return Object.keys(columns).map((i) => {
|
|
68
|
-
return columns[i];
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
checkOnNext(varArray, colArray) {
|
|
72
|
-
let required = 0;
|
|
73
|
-
let filled = 0;
|
|
74
|
-
for (const v of varArray) {
|
|
75
|
-
if (!v.optional) {
|
|
76
|
-
required++;
|
|
77
|
-
colArray.findIndex((c) => {
|
|
78
|
-
if (c.type === 'UGC' && c.detail === v.id) {
|
|
79
|
-
filled++;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
this.props.onNext(filled === required);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
getInventory() {
|
|
87
|
-
const { acts } = this.props.story;
|
|
88
|
-
const actsKeys = Object.keys(acts);
|
|
89
|
-
let inventory = {};
|
|
90
|
-
actsKeys.forEach((actKey) => {
|
|
91
|
-
inventory = { ...inventory, ...acts[actKey].inventory };
|
|
92
|
-
});
|
|
93
|
-
const inventoryKeys = Object.keys(inventory).sort();
|
|
94
|
-
this.setState({ inventory });
|
|
95
|
-
this.setState({ inventoryKeys });
|
|
96
|
-
}
|
|
97
|
-
downloadSampleCsv() {
|
|
98
|
-
const { name } = this.props.story;
|
|
99
|
-
const { inventory, inventoryKeys } = this.state;
|
|
100
|
-
const maskConfig = inventoryKeys.map((currKey) => ({
|
|
101
|
-
id: currKey,
|
|
102
|
-
name: inventory[currKey].name,
|
|
103
|
-
show: true
|
|
104
|
-
}));
|
|
105
|
-
const emptyRow = maskConfig
|
|
106
|
-
.map((m) => m.id)
|
|
107
|
-
.reduce((prevState, currId) => ({ ...prevState, [currId]: '' }), {});
|
|
108
|
-
const filename = `${alphaNumeric(name)}-batch-template`;
|
|
109
|
-
const exporter = new ExportToCsv({
|
|
110
|
-
...EmailWorkflow.CSV_EXPORT_CONFIG,
|
|
111
|
-
filename
|
|
112
|
-
});
|
|
113
|
-
exporter.generateCsv([emptyRow]);
|
|
114
|
-
}
|
|
115
|
-
selectCsv = () => {
|
|
116
|
-
if (this.hiddenFileInputRef.current) {
|
|
117
|
-
this.hiddenFileInputRef.current.click();
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
getBatchName() {
|
|
121
|
-
const { story: { name }, compositionName } = this.props;
|
|
122
|
-
const date = Date.now();
|
|
123
|
-
const dateStr = moment(date).format('MMDDYY-HHmm');
|
|
124
|
-
const batchName = `${alphaNumeric(name)}-${alphaNumeric(compositionName)}-${dateStr}`;
|
|
125
|
-
return batchName;
|
|
126
|
-
}
|
|
127
|
-
doUploadCsv = (uploadEvt) => {
|
|
128
|
-
uploadEvt.persist();
|
|
129
|
-
const { handleError } = this.props;
|
|
130
|
-
this.setState({
|
|
131
|
-
uploading: true,
|
|
132
|
-
renderedBatch: false
|
|
133
|
-
});
|
|
134
|
-
this.props
|
|
135
|
-
.createFreshBatch(this.getBatchName())
|
|
136
|
-
.then((res) => {
|
|
137
|
-
const { id, name, story_id } = res;
|
|
138
|
-
this.setState({ selectedBatchId: id });
|
|
139
|
-
this.importBatch({ story_id, id, name, uploadEvt });
|
|
140
|
-
})
|
|
141
|
-
.catch((e) => {
|
|
142
|
-
handleError(e);
|
|
143
|
-
this.setState({ uploadComplete: false, uploading: false });
|
|
144
|
-
throw e;
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
getBatch = () => {
|
|
148
|
-
const { api } = this.props;
|
|
149
|
-
this.props.setPage(1);
|
|
150
|
-
this.props.getBatch(api);
|
|
151
|
-
};
|
|
152
|
-
proceedWithExport() {
|
|
153
|
-
const { renderBatch, activeBatch: { data: { id, name } } } = this.props;
|
|
154
|
-
renderBatch(id, name)
|
|
155
|
-
.then(() => {
|
|
156
|
-
this.setState({ renderedBatch: true });
|
|
157
|
-
})
|
|
158
|
-
.catch((e) => {
|
|
159
|
-
this.props.handleError(copy.publish.renderBatchFailed);
|
|
160
|
-
this.setState({ renderedBatch: false });
|
|
161
|
-
throw e;
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
importBatch({ story_id, id, name, uploadEvt }) {
|
|
165
|
-
const { accessKey, compositionId, isExport, onError } = this.props;
|
|
166
|
-
this.props
|
|
167
|
-
.importBatchFromCsv(story_id, id, name, uploadEvt.target.files[0], accessKey, compositionId, !isExport, isExport)
|
|
168
|
-
.then(() => {
|
|
169
|
-
if (this.props.batchJobs.missing.length > 0) {
|
|
170
|
-
onError();
|
|
171
|
-
}
|
|
172
|
-
this.setState({ uploadComplete: true, uploading: false });
|
|
173
|
-
this.getBatch();
|
|
174
|
-
if (isExport && Object.keys(this.props.batchJobs.missing).length === 0) {
|
|
175
|
-
this.renderBatch({ id, name });
|
|
176
|
-
}
|
|
177
|
-
})
|
|
178
|
-
.catch((e) => {
|
|
179
|
-
this.setState({ uploadComplete: false, uploading: false });
|
|
180
|
-
throw e;
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
renderBatch({ id, name }) {
|
|
184
|
-
this.props
|
|
185
|
-
.renderBatch(id, name)
|
|
186
|
-
.then(() => {
|
|
187
|
-
this.setState({ renderedBatch: true });
|
|
188
|
-
})
|
|
189
|
-
.catch((e) => {
|
|
190
|
-
this.props.handleError(copy.publish.renderBatchFailed);
|
|
191
|
-
this.setState({ renderedBatch: false });
|
|
192
|
-
throw e;
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
downloadCsv() {
|
|
196
|
-
this.setState({
|
|
197
|
-
downloading: true
|
|
198
|
-
}, () => {
|
|
199
|
-
const { status, handleError } = this.props;
|
|
200
|
-
const { selectedBatchId } = this.state;
|
|
201
|
-
if (status === copy.header.publishing) {
|
|
202
|
-
handleError(copy.publish.downloadError);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
this.props.getBatchExport(selectedBatchId).then(() => {
|
|
206
|
-
this.props.onDone();
|
|
207
|
-
this.setState({
|
|
208
|
-
downloading: false
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
renderLabel() {
|
|
214
|
-
const { isExport, batchJobs } = this.props;
|
|
215
|
-
const { renderedBatch, selectedBatchId, uploading, uploadComplete } = this.state;
|
|
216
|
-
if (isExport &&
|
|
217
|
-
uploadComplete &&
|
|
218
|
-
!renderedBatch &&
|
|
219
|
-
Object.keys(this.props.batchJobs.missing).length === 0) {
|
|
220
|
-
return (React.createElement("div", { className: 'progress-bar' },
|
|
221
|
-
React.createElement("progress", { max: EmailWorkflow.PROGRESS_MAX_VALUE, value: batchJobs.renders[selectedBatchId] })));
|
|
222
|
-
}
|
|
223
|
-
if (uploading) {
|
|
224
|
-
const uploadingCopy = isExport
|
|
225
|
-
? copy.publish.importingData
|
|
226
|
-
: copy.publish.creatingLinks;
|
|
227
|
-
return (React.createElement("span", null,
|
|
228
|
-
React.createElement(Spinner, null),
|
|
229
|
-
"\u00A0",
|
|
230
|
-
uploadingCopy));
|
|
231
|
-
}
|
|
232
|
-
return (React.createElement("span", null,
|
|
233
|
-
ICON_UPLOAD,
|
|
234
|
-
"\u00A0",
|
|
235
|
-
copy.publish.uploadCsv));
|
|
236
|
-
}
|
|
237
|
-
onAssociationChange(colIndex, e) {
|
|
238
|
-
const { activeBatch: { data: { columns } } } = this.props;
|
|
239
|
-
// Change the previous association back to static
|
|
240
|
-
const previousColumn = columns.findIndex((col) => {
|
|
241
|
-
return col.detail === e;
|
|
242
|
-
});
|
|
243
|
-
if (previousColumn !== -1) {
|
|
244
|
-
this.props.updateAssociation(this.props.api, previousColumn, 'Static', null);
|
|
245
|
-
}
|
|
246
|
-
// Set the new association
|
|
247
|
-
this.props.updateAssociation(this.props.api, parseInt(colIndex, 10), 'UGC', e);
|
|
248
|
-
}
|
|
249
|
-
renderColumnMap() {
|
|
250
|
-
const { activeBatch: { data: { columns } }, batchJobs: { missing }, error } = this.props;
|
|
251
|
-
if (missing.length > 0 && columns && error) {
|
|
252
|
-
const varArray = this.getVarArray();
|
|
253
|
-
const colArray = this.getColArray();
|
|
254
|
-
const colOpts = colArray
|
|
255
|
-
.filter((c) => {
|
|
256
|
-
if (c.from_import === 0) {
|
|
257
|
-
return false;
|
|
258
|
-
}
|
|
259
|
-
return true;
|
|
260
|
-
})
|
|
261
|
-
.map((c, i) => {
|
|
262
|
-
const opt = {
|
|
263
|
-
value: i,
|
|
264
|
-
label: c.name
|
|
265
|
-
};
|
|
266
|
-
const alignedColIdx = varArray.findIndex((v) => {
|
|
267
|
-
return c.detail === v.id;
|
|
268
|
-
});
|
|
269
|
-
if (alignedColIdx !== -1) {
|
|
270
|
-
opt.disabled = true;
|
|
271
|
-
}
|
|
272
|
-
return opt;
|
|
273
|
-
});
|
|
274
|
-
// add an empty option to the columns
|
|
275
|
-
colOpts.unshift('');
|
|
276
|
-
const missingColumn = Object.keys(missing).map((m) => missing[m]);
|
|
277
|
-
const showMissing = missingColumn.join();
|
|
278
|
-
if (colOpts.length < varArray.length) {
|
|
279
|
-
return (React.createElement(React.Fragment, null,
|
|
280
|
-
React.createElement("h2", null, copy.publish.titleMissingColumns),
|
|
281
|
-
React.createElement(HRule, null),
|
|
282
|
-
React.createElement("p", { className: 'missingColumns' }, `${copy.publish.csvMissingColumns} ${showMissing}`)));
|
|
283
|
-
}
|
|
284
|
-
else {
|
|
285
|
-
return (React.createElement("div", { className: 'align-columns' },
|
|
286
|
-
React.createElement("h2", { className: 'match-columns' }, `${copy.publish.csvMatchColumns}`),
|
|
287
|
-
React.createElement(HRule, null),
|
|
288
|
-
React.createElement("table", null,
|
|
289
|
-
React.createElement("thead", null,
|
|
290
|
-
React.createElement("tr", null,
|
|
291
|
-
React.createElement("th", null, "Variable"),
|
|
292
|
-
React.createElement("th", null, "CSV Column"))),
|
|
293
|
-
React.createElement("tbody", null, varArray.map((v, i) => {
|
|
294
|
-
const selectedCol = colArray.findIndex((c) => {
|
|
295
|
-
return c.detail === v.id;
|
|
296
|
-
});
|
|
297
|
-
const selectedVal = selectedCol !== undefined && selectedCol !== null
|
|
298
|
-
? selectedCol
|
|
299
|
-
: '';
|
|
300
|
-
const rClass = !v.optional ? 'required' : '';
|
|
301
|
-
return (React.createElement("tr", { key: `var-${v.id}`, className: `${rClass}` },
|
|
302
|
-
React.createElement("td", { className: 'variable' },
|
|
303
|
-
React.createElement("p", null,
|
|
304
|
-
v.name,
|
|
305
|
-
' ',
|
|
306
|
-
!v.optional ? (React.createElement("span", { style: { color: 'red' } }, " * ")) : null)),
|
|
307
|
-
React.createElement("td", null,
|
|
308
|
-
React.createElement(SelectField, { options: colOpts, value: selectedVal, onChange: (c) => this.onAssociationChange(c, v.id) }))));
|
|
309
|
-
})))));
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
render() {
|
|
314
|
-
const { uploadComplete, uploading, downloading, renderedBatch, selectedBatchId, creativeManagerOverrides } = this.state;
|
|
315
|
-
const { isExport, batchJobs: { missing, renders }, isCrM } = this.props;
|
|
316
|
-
const emailOptions = [
|
|
317
|
-
{
|
|
318
|
-
label: (React.createElement("span", null,
|
|
319
|
-
ICON_DOWNLOAD,
|
|
320
|
-
"\u00A0",
|
|
321
|
-
copy.publish.downloadSampleCsvLink)),
|
|
322
|
-
onClick: () => this.downloadSampleCsv(),
|
|
323
|
-
key: 'download-sample'
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
label: this.renderLabel(),
|
|
327
|
-
onClick: () => this.selectCsv(),
|
|
328
|
-
key: 'upload',
|
|
329
|
-
disabled: isExport ? uploadComplete || uploading : uploading
|
|
330
|
-
}
|
|
331
|
-
];
|
|
332
|
-
const downloadCsvLabel = downloading ? (React.createElement("span", null,
|
|
333
|
-
React.createElement(Spinner, null),
|
|
334
|
-
"\u00A0",
|
|
335
|
-
copy.publish.exporting)) : (React.createElement("span", null,
|
|
336
|
-
ICON_DOWNLOAD,
|
|
337
|
-
"\u00A0",
|
|
338
|
-
copy.publish.btnDownload));
|
|
339
|
-
const reRenderLabel = (React.createElement("div", { className: 'progress-bar' },
|
|
340
|
-
React.createElement("progress", { max: EmailWorkflow.PROGRESS_MAX_VALUE, value: renders[selectedBatchId] })));
|
|
341
|
-
const downloadCSVDiv = (React.createElement("div", null,
|
|
342
|
-
React.createElement("h2", null, uploadComplete ? copy.publish.downloadLink : copy.publish.generatingLink),
|
|
343
|
-
React.createElement(HRule, null),
|
|
344
|
-
React.createElement("p", null, uploadComplete ? copy.publish.downloadDesc : copy.publish.generatingLinkDesc),
|
|
345
|
-
isExport && uploadComplete && !renderedBatch ? (React.createElement(BigButton, { label: reRenderLabel, disabled: isExport })) : (React.createElement(BigButton, { label: downloadCsvLabel, disabled: downloading, onClick: () => this.downloadCsv() }))));
|
|
346
|
-
const downloadCSV = (React.createElement(React.Fragment, null,
|
|
347
|
-
this.props.error ? (this.props.next ? downloadCSVDiv : '') : downloadCSVDiv,
|
|
348
|
-
this.renderColumnMap()));
|
|
349
|
-
const uploadCSV = (React.createElement("div", null,
|
|
350
|
-
React.createElement("h2", null, copy.publish.emailTitle),
|
|
351
|
-
React.createElement(HRule, null),
|
|
352
|
-
React.createElement("p", null, copy.publish.emailDesc),
|
|
353
|
-
React.createElement("input", { type: 'file', style: { display: 'none' }, accept: 'text/csv', ref: this.hiddenFileInputRef, onChange: this.doUploadCsv }),
|
|
354
|
-
isCrM && React.createElement(CrMOptions, { options: creativeManagerOverrides, onChange: (c) => this.setState({ creativeManagerOverrides: c }) }),
|
|
355
|
-
React.createElement("div", { className: 'link-wrapper' }, emailOptions?.map((option, index) => {
|
|
356
|
-
return (React.createElement(BigButton, { label: React.createElement("span", null, option.label), onClick: option.onClick, disabled: option?.disabled, key: option.key }));
|
|
357
|
-
}))));
|
|
358
|
-
return (isExport && Object.keys(missing).length === 0 ? renderedBatch : uploadComplete)
|
|
359
|
-
? downloadCSV
|
|
360
|
-
: uploadCSV;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
const alphaNumeric = (str) => {
|
|
364
|
-
return str.replace(/\W/g, '');
|
|
365
|
-
};
|
|
366
|
-
const mapDispatchToProps = (dispatch) => {
|
|
367
|
-
return bindActionCreators({
|
|
368
|
-
updateAssociation,
|
|
369
|
-
getBatch,
|
|
370
|
-
setPage
|
|
371
|
-
}, dispatch);
|
|
372
|
-
};
|
|
373
|
-
const mapStateToProps = (state) => {
|
|
374
|
-
return {
|
|
375
|
-
activeBatch: state.activeBatch,
|
|
376
|
-
batchesList: state.batchesList
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
const CrMOptions = ({ options, onChange }) => {
|
|
380
|
-
const onInputChange = (key, val) => {
|
|
381
|
-
const newOpts = { ...options };
|
|
382
|
-
newOpts[key] = val;
|
|
383
|
-
onChange(newOpts);
|
|
384
|
-
};
|
|
385
|
-
return React.createElement(React.Fragment, null,
|
|
386
|
-
React.createElement(HRule, null),
|
|
387
|
-
React.createElement("br", null),
|
|
388
|
-
React.createElement("h2", null, "Creative Manager Placement Variables"),
|
|
389
|
-
React.createElement("p", null, "If your CSV batch data doesn't contain the required Creative Manager placement variables, or you would like to override them, enter the values below before you upload the batch data"),
|
|
390
|
-
React.createElement("br", null),
|
|
391
|
-
React.createElement(TextField, { width: '33%', labelPosition: 'top', label: 'Creative Library ID', value: options.creativeLibraryId, onChange: (v) => onInputChange('creativeLibraryId', v) }),
|
|
392
|
-
React.createElement(TextField, { width: '33%', labelPosition: 'top', label: 'Creative ID', value: options.creativeId, onChange: (v) => onInputChange('creativeId', v) }),
|
|
393
|
-
React.createElement(TextField, { width: '33%', labelPosition: 'top', label: 'Version List ID', value: options.versionListId, onChange: (v) => onInputChange('versionListId', v) }),
|
|
394
|
-
React.createElement("br", null),
|
|
395
|
-
React.createElement(HRule, null));
|
|
396
|
-
};
|
|
397
|
-
export default connect(mapStateToProps, mapDispatchToProps, null, { withRef: true })(EmailWorkflow);
|
|
398
|
-
//# sourceMappingURL=EmailWorkflow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmailWorkflow.js","sourceRoot":"","sources":["../../../../src/components/publish-wizard/EmailWorkflow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5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Aa,EAAG,KAAK,EAAC,KAAK,EAAI,aAAa,EAAE,KAAK,EAAI,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAI,CAAC,CAAC,EAAC,EAAE,CAAA,aAAa,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG;QACxJ,oBAAC,SAAS,IAAC,KAAK,EAAI,KAAK,EAAE,aAAa,EAAG,KAAK,EAAC,KAAK,EAAI,iBAAiB,EAAE,KAAK,EAAI,OAAO,CAAC,aAAa,EAAE,QAAQ,EAAI,CAAC,CAAC,EAAC,EAAE,CAAA,aAAa,CAAC,eAAe,EAAE,CAAC,CAAC,GAAG;QAClK,+BAAK;QACL,oBAAC,KAAK,OAAE,CACT,CAAA;AAEP,CAAC,CAAA;AAED,eAAe,OAAO,CAAC,eAAe,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
export declare const assets: {
|
|
2
|
-
tooltipFilter: string;
|
|
3
|
-
previewNotAvailable: string;
|
|
4
|
-
iconTypes: {
|
|
5
|
-
filter: string;
|
|
6
|
-
lut: string;
|
|
7
|
-
all: string;
|
|
8
|
-
video: string;
|
|
9
|
-
audio: string;
|
|
10
|
-
video_composition: string;
|
|
11
|
-
image: string;
|
|
12
|
-
image_sequence: string;
|
|
13
|
-
template: string;
|
|
14
|
-
static_composition: string;
|
|
15
|
-
font: string;
|
|
16
|
-
after_effects: string;
|
|
17
|
-
};
|
|
18
|
-
uploads: {
|
|
19
|
-
noUploads: string;
|
|
20
|
-
preparePhase: string;
|
|
21
|
-
autoTagInput: string;
|
|
22
|
-
assignToStoryInput: string;
|
|
23
|
-
assignToStoryInfo: string;
|
|
24
|
-
uploadButton: string;
|
|
25
|
-
cancelButton: string;
|
|
26
|
-
};
|
|
27
|
-
tags: {
|
|
28
|
-
add: string;
|
|
29
|
-
duplicated: string;
|
|
30
|
-
};
|
|
31
|
-
field: {
|
|
32
|
-
fieldMismatchError: string;
|
|
33
|
-
dragPrompt: string;
|
|
34
|
-
tooltipClear: string;
|
|
35
|
-
tooltipFilter: string;
|
|
36
|
-
tooltipFilterAsset: string;
|
|
37
|
-
};
|
|
38
|
-
details: string;
|
|
39
|
-
newDetails: string;
|
|
40
|
-
name: string;
|
|
41
|
-
date: string;
|
|
42
|
-
addTag: string;
|
|
43
|
-
assetTag: string;
|
|
44
|
-
sessionExpired: string;
|
|
45
|
-
};
|
|
46
|
-
export declare const previewer: {
|
|
47
|
-
previewVars: string;
|
|
48
|
-
time: string;
|
|
49
|
-
expRunning: string;
|
|
50
|
-
runExpStart: string;
|
|
51
|
-
runExpError: string;
|
|
52
|
-
triggerExpError: string;
|
|
53
|
-
expId: string;
|
|
54
|
-
createExpError: string;
|
|
55
|
-
logDownloadError: string;
|
|
56
|
-
logURLError: string;
|
|
57
|
-
btnLog: string;
|
|
58
|
-
btnRender: string;
|
|
59
|
-
btnReRender: string;
|
|
60
|
-
expIdField: string;
|
|
61
|
-
runExpErrorDes: string;
|
|
62
|
-
};
|
|
63
|
-
export declare const compositions: {
|
|
64
|
-
name: string;
|
|
65
|
-
width: string;
|
|
66
|
-
height: string;
|
|
67
|
-
rotation: string;
|
|
68
|
-
color: string;
|
|
69
|
-
x: string;
|
|
70
|
-
y: string;
|
|
71
|
-
wrap: string;
|
|
72
|
-
fit: string;
|
|
73
|
-
fillMode: string;
|
|
74
|
-
hAlign: string;
|
|
75
|
-
vAlign: string;
|
|
76
|
-
backgroundColor: string;
|
|
77
|
-
layers: string;
|
|
78
|
-
layerText: string;
|
|
79
|
-
fontType: string;
|
|
80
|
-
layerImage: string;
|
|
81
|
-
fontSize: string;
|
|
82
|
-
lineHeight: string;
|
|
83
|
-
font: string;
|
|
84
|
-
letterSpacing: string;
|
|
85
|
-
wordSpacing: string;
|
|
86
|
-
tooltipName: string;
|
|
87
|
-
tooltipBackgroundColor: string;
|
|
88
|
-
tooltipWidth: string;
|
|
89
|
-
tooltipHeight: string;
|
|
90
|
-
tooltipAddLayer: string;
|
|
91
|
-
tooltipLayerRotation: string;
|
|
92
|
-
tooltipLayerX: string;
|
|
93
|
-
tooltipLayerY: string;
|
|
94
|
-
tooltipLayerWidth: string;
|
|
95
|
-
tooltipLayerHeight: string;
|
|
96
|
-
textOptions: string;
|
|
97
|
-
textLayerContent: string;
|
|
98
|
-
tooltipTextLayerContent: string;
|
|
99
|
-
};
|
|
100
|
-
export declare const publish: {
|
|
101
|
-
accessKey: string;
|
|
102
|
-
tooltipAccessKey: string;
|
|
103
|
-
publishTitle: string;
|
|
104
|
-
publishStepTitle: string;
|
|
105
|
-
publishStepDesc: string;
|
|
106
|
-
distributeStepTitle: string;
|
|
107
|
-
distributeStepDesc: string;
|
|
108
|
-
compositionError: string;
|
|
109
|
-
btnWebsite: string;
|
|
110
|
-
webpageTitle: string;
|
|
111
|
-
webPageHosted: string;
|
|
112
|
-
webpageDesc: string;
|
|
113
|
-
sampleWebpage: string;
|
|
114
|
-
btnEmail: string;
|
|
115
|
-
exporting: string;
|
|
116
|
-
emailTitle: string;
|
|
117
|
-
emailDesc: string;
|
|
118
|
-
downloadSampleCsvLink: string;
|
|
119
|
-
uploadCsv: string;
|
|
120
|
-
generatingLink: string;
|
|
121
|
-
downloadLink: string;
|
|
122
|
-
btnDownload: string;
|
|
123
|
-
generatingLinkDesc: string;
|
|
124
|
-
missingColumns: string;
|
|
125
|
-
renderBatchFailed: string;
|
|
126
|
-
createBatchFailed: string;
|
|
127
|
-
downloadError: string;
|
|
128
|
-
embeddedCodeCopyError: string;
|
|
129
|
-
creatingLinks: string;
|
|
130
|
-
importingData: string;
|
|
131
|
-
downloadDesc: string;
|
|
132
|
-
titleMissingColumns: string;
|
|
133
|
-
csvMissingColumns: string;
|
|
134
|
-
csvMatchColumns: string;
|
|
135
|
-
exportBatchOfVideo: string;
|
|
136
|
-
btnHubspot: string;
|
|
137
|
-
hubspotTitle: string;
|
|
138
|
-
hubspotDesc: string;
|
|
139
|
-
saveChanges: string;
|
|
140
|
-
embeddedCode: string;
|
|
141
|
-
btnAPI: string;
|
|
142
|
-
btnExport: string;
|
|
143
|
-
btnCRM: string;
|
|
144
|
-
btnPublish: string;
|
|
145
|
-
btnSkip: string;
|
|
146
|
-
btnBack: string;
|
|
147
|
-
btnFinished: string;
|
|
148
|
-
btnCancel: string;
|
|
149
|
-
btnNext: string;
|
|
150
|
-
noCompErrorTitle: string;
|
|
151
|
-
noCompErrorDesc: string;
|
|
152
|
-
};
|
|
153
|
-
export declare const integration: {
|
|
154
|
-
errorPullingComps: string;
|
|
155
|
-
errorPullingAEs: string;
|
|
156
|
-
errorCreatingCreds: string;
|
|
157
|
-
errorGettingCreds: string;
|
|
158
|
-
documentation: string;
|
|
159
|
-
docParagraph: string;
|
|
160
|
-
js: string;
|
|
161
|
-
jsSdkLink: string;
|
|
162
|
-
restLink: string;
|
|
163
|
-
rest: string;
|
|
164
|
-
sdkArchiveSuffix: string;
|
|
165
|
-
};
|
|
166
|
-
export declare const header: {
|
|
167
|
-
publishing: string;
|
|
168
|
-
working: string;
|
|
169
|
-
statusError: string;
|
|
170
|
-
publishJobError: string;
|
|
171
|
-
publishPollError: string;
|
|
172
|
-
};
|
|
173
|
-
export declare const project: {
|
|
174
|
-
compName: string;
|
|
175
|
-
tooltipCompId: string;
|
|
176
|
-
};
|
|
177
|
-
export declare const BATCHES_COPY: {
|
|
178
|
-
progress: {
|
|
179
|
-
notRendered: string;
|
|
180
|
-
rendering: string;
|
|
181
|
-
rendered: string;
|
|
182
|
-
cancelled: string;
|
|
183
|
-
queued: string;
|
|
184
|
-
malformed: string;
|
|
185
|
-
};
|
|
186
|
-
};
|