@capillarytech/creatives-library 7.17.35 → 7.17.37-alpha.0
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/containers/Templates/actions.js +0 -5
- package/index.js +6 -0
- package/package.json +1 -1
- package/routes.js +5 -0
- package/services/api.js +6 -1
- package/v2Components/WhatsappStatusContainer/_whatsappStatusContainer.scss +2 -1
- package/v2Containers/App/constants.js +1 -0
- package/v2Containers/CreativesContainer/SlideBoxContent.js +13 -0
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +9 -6
- package/v2Containers/CreativesContainer/constants.js +1 -0
- package/v2Containers/CreativesContainer/index.scss +3 -0
- package/v2Containers/CreativesContainer/messages.js +8 -0
- package/v2Containers/CreativesContainer/tests/SlideBoxHeader.test.js +6 -1
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxHeader.test.js.snap +58 -0
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +18114 -88
- package/v2Containers/Templates/_templates.scss +20 -2
- package/v2Containers/Templates/actions.js +4 -3
- package/v2Containers/Templates/constants.js +2 -1
- package/v2Containers/Templates/index.js +326 -120
- package/v2Containers/Templates/messages.js +32 -8
- package/v2Containers/Templates/reducer.js +3 -1
- package/v2Containers/Templates/sagas.js +2 -2
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +623 -43
- package/v2Containers/Templates/tests/actions.test.js +18 -0
- package/v2Containers/Templates/tests/index.test.js +52 -1
- package/v2Containers/Templates/tests/mockData.js +41 -1
- package/v2Containers/Templates/tests/reducer.test.js +50 -0
- package/v2Containers/Templates/tests/sagas.test.js +40 -2
- package/v2Containers/Templates/tests/selector.test.js +17 -0
- package/v2Containers/TemplatesV2/index.js +2 -2
- package/v2Containers/TemplatesV2/messages.js +4 -0
- package/v2Containers/Zalo/actions.js +17 -0
- package/v2Containers/Zalo/constants.js +56 -0
- package/v2Containers/Zalo/index.js +390 -0
- package/v2Containers/Zalo/index.scss +76 -0
- package/v2Containers/Zalo/messages.js +74 -0
- package/v2Containers/Zalo/reducer.js +57 -0
- package/v2Containers/Zalo/saga.js +35 -0
- package/v2Containers/Zalo/selectors.js +14 -0
- package/v2Containers/Zalo/tests/actions.test.js +20 -0
- package/v2Containers/Zalo/tests/index.test.js +127 -0
- package/v2Containers/Zalo/tests/mockData.js +11470 -0
- package/v2Containers/Zalo/tests/reducer.test.js +85 -0
- package/v2Containers/Zalo/tests/saga.test.js +115 -0
- package/v2Containers/Zalo/tests/selectors.test.js +52 -0
- package/v2Containers/mockdata.js +817 -680
|
@@ -12,6 +12,41 @@ exports[`Test Templates container Should render correct component for whatsapp c
|
|
|
12
12
|
</CapSpin>
|
|
13
13
|
`;
|
|
14
14
|
|
|
15
|
+
exports[`Test Templates container Should render correct component for zalo channel 1`] = `
|
|
16
|
+
<CapSpin
|
|
17
|
+
spinning={false}
|
|
18
|
+
>
|
|
19
|
+
<div
|
|
20
|
+
style={
|
|
21
|
+
Object {
|
|
22
|
+
"overflowX": "auto",
|
|
23
|
+
"paddingBottom": "1.142rem",
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
<CapHeader
|
|
28
|
+
className="select-account-header"
|
|
29
|
+
description="Choose the account to send content"
|
|
30
|
+
descriptionClass=""
|
|
31
|
+
inline={false}
|
|
32
|
+
size="regular"
|
|
33
|
+
title="Zalo account"
|
|
34
|
+
titleClass=""
|
|
35
|
+
/>
|
|
36
|
+
<CapRadioCard
|
|
37
|
+
cardHeight="48px"
|
|
38
|
+
cardWidth="276px"
|
|
39
|
+
className="select-account"
|
|
40
|
+
defaultValue=""
|
|
41
|
+
onChange={[Function]}
|
|
42
|
+
panes={Array []}
|
|
43
|
+
selected=""
|
|
44
|
+
size="small"
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
</CapSpin>
|
|
48
|
+
`;
|
|
49
|
+
|
|
15
50
|
exports[`Test Templates container Should render illustration when no templates are passed 1`] = `
|
|
16
51
|
<CapSpin
|
|
17
52
|
spinning={false}
|
|
@@ -24,6 +59,382 @@ exports[`Test Templates container Should render illustration when no templates a
|
|
|
24
59
|
</CapSpin>
|
|
25
60
|
`;
|
|
26
61
|
|
|
62
|
+
exports[`Test Templates container Should render illustration when no templates are passed 2`] = `
|
|
63
|
+
<CapSpin
|
|
64
|
+
spinning={false}
|
|
65
|
+
>
|
|
66
|
+
<FormattedMessage
|
|
67
|
+
defaultMessage="Zalo accounts are not setup for your brand"
|
|
68
|
+
id="creatives.containersV2.Templates.noAccountsPresentZalo"
|
|
69
|
+
values={Object {}}
|
|
70
|
+
/>
|
|
71
|
+
</CapSpin>
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
exports[`Test Templates container Should render temlates when Zalo templates are passed in full mode 1`] = `
|
|
75
|
+
<Fragment>
|
|
76
|
+
<div
|
|
77
|
+
className="creatives-templates-list full-mode"
|
|
78
|
+
>
|
|
79
|
+
<input
|
|
80
|
+
accept=".zip, .html, .htm"
|
|
81
|
+
id="filename"
|
|
82
|
+
onChange={[Function]}
|
|
83
|
+
style={
|
|
84
|
+
Object {
|
|
85
|
+
"display": "none",
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
type="file"
|
|
89
|
+
/>
|
|
90
|
+
<CapRow>
|
|
91
|
+
<Pagination
|
|
92
|
+
onPageChange={[Function]}
|
|
93
|
+
paginationContainer="pagination-container"
|
|
94
|
+
paginationSelector="pagination-container"
|
|
95
|
+
>
|
|
96
|
+
<div>
|
|
97
|
+
<div
|
|
98
|
+
className="action-container"
|
|
99
|
+
>
|
|
100
|
+
<_class
|
|
101
|
+
className="search-text"
|
|
102
|
+
disabled={false}
|
|
103
|
+
labelPosition="top"
|
|
104
|
+
onChange={[Function]}
|
|
105
|
+
onClear={[Function]}
|
|
106
|
+
onScroll={[Function]}
|
|
107
|
+
placeholder="Search"
|
|
108
|
+
style={
|
|
109
|
+
Object {
|
|
110
|
+
"width": "210px",
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
value=""
|
|
114
|
+
/>
|
|
115
|
+
<div
|
|
116
|
+
className="zalo-filters"
|
|
117
|
+
>
|
|
118
|
+
<CapSelectFilter
|
|
119
|
+
data={
|
|
120
|
+
Array [
|
|
121
|
+
Object {
|
|
122
|
+
"key": "enable",
|
|
123
|
+
"label": <FormattedMessage
|
|
124
|
+
defaultMessage="Enable"
|
|
125
|
+
id="creatives.containersV2.zalo.ENABLE_STATUS"
|
|
126
|
+
values={Object {}}
|
|
127
|
+
/>,
|
|
128
|
+
"value": "ENABLE",
|
|
129
|
+
},
|
|
130
|
+
Object {
|
|
131
|
+
"key": "reject",
|
|
132
|
+
"label": <FormattedMessage
|
|
133
|
+
defaultMessage="Reject"
|
|
134
|
+
id="creatives.containersV2.zalo.REJECT_STATUS"
|
|
135
|
+
values={Object {}}
|
|
136
|
+
/>,
|
|
137
|
+
"value": "REJECT",
|
|
138
|
+
},
|
|
139
|
+
Object {
|
|
140
|
+
"key": "disable",
|
|
141
|
+
"label": <FormattedMessage
|
|
142
|
+
defaultMessage="Disable"
|
|
143
|
+
id="creatives.containersV2.zalo.DISABLE_STATUS"
|
|
144
|
+
values={Object {}}
|
|
145
|
+
/>,
|
|
146
|
+
"value": "DISABLE",
|
|
147
|
+
},
|
|
148
|
+
Object {
|
|
149
|
+
"key": "reviewPending",
|
|
150
|
+
"label": <FormattedMessage
|
|
151
|
+
defaultMessage="Review Pending"
|
|
152
|
+
id="creatives.containersV2.zalo.PENDING_REVIEW_STATUS"
|
|
153
|
+
values={Object {}}
|
|
154
|
+
/>,
|
|
155
|
+
"value": "PENDING_REVIEW",
|
|
156
|
+
},
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
dropdownMaxHeight="320px"
|
|
160
|
+
dropdownWidth="228px"
|
|
161
|
+
onSelect={[Function]}
|
|
162
|
+
placeholder="Status"
|
|
163
|
+
placement="bottomLeft"
|
|
164
|
+
selectedValue=""
|
|
165
|
+
width="90px"
|
|
166
|
+
/>
|
|
167
|
+
</div>
|
|
168
|
+
<Component />
|
|
169
|
+
<Component />
|
|
170
|
+
<div
|
|
171
|
+
style={
|
|
172
|
+
Object {
|
|
173
|
+
"alignItems": "center",
|
|
174
|
+
"display": "flex",
|
|
175
|
+
"justifyContent": "space-between",
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/>
|
|
179
|
+
</div>
|
|
180
|
+
<CapRow
|
|
181
|
+
align="middle"
|
|
182
|
+
className="selected-whatsapp-filters"
|
|
183
|
+
type="flex"
|
|
184
|
+
/>
|
|
185
|
+
<CapSpin
|
|
186
|
+
spinning={false}
|
|
187
|
+
style={
|
|
188
|
+
Object {
|
|
189
|
+
"width": "100%",
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
tip="Getting all templates..."
|
|
193
|
+
>
|
|
194
|
+
<div>
|
|
195
|
+
<div
|
|
196
|
+
className="pagination-container"
|
|
197
|
+
>
|
|
198
|
+
<CapCustomCardList
|
|
199
|
+
cardList={
|
|
200
|
+
Array [
|
|
201
|
+
Object {
|
|
202
|
+
"content": <CapLabel
|
|
203
|
+
className="zalo-listing-content desc"
|
|
204
|
+
type="label19"
|
|
205
|
+
>
|
|
206
|
+
Test1
|
|
207
|
+
</CapLabel>,
|
|
208
|
+
"extra": Array [
|
|
209
|
+
<CapTooltip
|
|
210
|
+
title="Open preview in new tab"
|
|
211
|
+
>
|
|
212
|
+
<CapIcon
|
|
213
|
+
className="view-zalo"
|
|
214
|
+
onClick={[Function]}
|
|
215
|
+
style={
|
|
216
|
+
Object {
|
|
217
|
+
"marginRight": "16px",
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
type="eye"
|
|
221
|
+
/>
|
|
222
|
+
</CapTooltip>,
|
|
223
|
+
<CapDropdown
|
|
224
|
+
overlay={
|
|
225
|
+
<CapMenu>
|
|
226
|
+
<withItemHOC
|
|
227
|
+
className="duplicate-zalo"
|
|
228
|
+
onClick={[Function]}
|
|
229
|
+
>
|
|
230
|
+
<FormattedMessage
|
|
231
|
+
defaultMessage="Duplicate"
|
|
232
|
+
id="creatives.containersV2.Templates.duplicateButton"
|
|
233
|
+
values={Object {}}
|
|
234
|
+
/>
|
|
235
|
+
</withItemHOC>
|
|
236
|
+
<withItemHOC
|
|
237
|
+
className="delete-zalo"
|
|
238
|
+
onClick={[Function]}
|
|
239
|
+
>
|
|
240
|
+
<FormattedMessage
|
|
241
|
+
defaultMessage="Delete"
|
|
242
|
+
id="creatives.containersV2.Templates.deleteButton"
|
|
243
|
+
values={Object {}}
|
|
244
|
+
/>
|
|
245
|
+
</withItemHOC>
|
|
246
|
+
</CapMenu>
|
|
247
|
+
}
|
|
248
|
+
>
|
|
249
|
+
<React.Fragment />
|
|
250
|
+
</CapDropdown>,
|
|
251
|
+
],
|
|
252
|
+
"hoverOption": <CapButton
|
|
253
|
+
className="edit-zalo"
|
|
254
|
+
isAddBtn={false}
|
|
255
|
+
onClick={[Function]}
|
|
256
|
+
type="primary"
|
|
257
|
+
>
|
|
258
|
+
Overview
|
|
259
|
+
</CapButton>,
|
|
260
|
+
"key": "ZALO-card-Test1",
|
|
261
|
+
"title": <CapRow>
|
|
262
|
+
<CapLabel
|
|
263
|
+
className="zalo-template-name"
|
|
264
|
+
type="label1"
|
|
265
|
+
>
|
|
266
|
+
|
|
267
|
+
</CapLabel>
|
|
268
|
+
<CapRow
|
|
269
|
+
align="middle"
|
|
270
|
+
className="zalo-status-container"
|
|
271
|
+
type="flex"
|
|
272
|
+
>
|
|
273
|
+
<CapStatus
|
|
274
|
+
color=""
|
|
275
|
+
height="0.571rem"
|
|
276
|
+
labelType="label3"
|
|
277
|
+
text=""
|
|
278
|
+
type="pending"
|
|
279
|
+
width="0.571rem"
|
|
280
|
+
/>
|
|
281
|
+
</CapRow>
|
|
282
|
+
</CapRow>,
|
|
283
|
+
},
|
|
284
|
+
Object {
|
|
285
|
+
"content": <CapLabel
|
|
286
|
+
className="zalo-listing-content desc"
|
|
287
|
+
type="label19"
|
|
288
|
+
>
|
|
289
|
+
Test2
|
|
290
|
+
</CapLabel>,
|
|
291
|
+
"extra": Array [
|
|
292
|
+
<CapTooltip
|
|
293
|
+
title="Open preview in new tab"
|
|
294
|
+
>
|
|
295
|
+
<CapIcon
|
|
296
|
+
className="view-zalo"
|
|
297
|
+
onClick={[Function]}
|
|
298
|
+
style={
|
|
299
|
+
Object {
|
|
300
|
+
"marginRight": "16px",
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
type="eye"
|
|
304
|
+
/>
|
|
305
|
+
</CapTooltip>,
|
|
306
|
+
<CapDropdown
|
|
307
|
+
overlay={
|
|
308
|
+
<CapMenu>
|
|
309
|
+
<withItemHOC
|
|
310
|
+
className="duplicate-zalo"
|
|
311
|
+
onClick={[Function]}
|
|
312
|
+
>
|
|
313
|
+
<FormattedMessage
|
|
314
|
+
defaultMessage="Duplicate"
|
|
315
|
+
id="creatives.containersV2.Templates.duplicateButton"
|
|
316
|
+
values={Object {}}
|
|
317
|
+
/>
|
|
318
|
+
</withItemHOC>
|
|
319
|
+
<withItemHOC
|
|
320
|
+
className="delete-zalo"
|
|
321
|
+
onClick={[Function]}
|
|
322
|
+
>
|
|
323
|
+
<FormattedMessage
|
|
324
|
+
defaultMessage="Delete"
|
|
325
|
+
id="creatives.containersV2.Templates.deleteButton"
|
|
326
|
+
values={Object {}}
|
|
327
|
+
/>
|
|
328
|
+
</withItemHOC>
|
|
329
|
+
</CapMenu>
|
|
330
|
+
}
|
|
331
|
+
>
|
|
332
|
+
<React.Fragment />
|
|
333
|
+
</CapDropdown>,
|
|
334
|
+
],
|
|
335
|
+
"hoverOption": <CapButton
|
|
336
|
+
className="edit-zalo"
|
|
337
|
+
isAddBtn={false}
|
|
338
|
+
onClick={[Function]}
|
|
339
|
+
type="primary"
|
|
340
|
+
>
|
|
341
|
+
Overview
|
|
342
|
+
</CapButton>,
|
|
343
|
+
"key": "ZALO-card-Test2",
|
|
344
|
+
"title": <CapRow>
|
|
345
|
+
<CapLabel
|
|
346
|
+
className="zalo-template-name"
|
|
347
|
+
type="label1"
|
|
348
|
+
>
|
|
349
|
+
|
|
350
|
+
</CapLabel>
|
|
351
|
+
<CapRow
|
|
352
|
+
align="middle"
|
|
353
|
+
className="zalo-status-container"
|
|
354
|
+
type="flex"
|
|
355
|
+
>
|
|
356
|
+
<CapStatus
|
|
357
|
+
color=""
|
|
358
|
+
height="0.571rem"
|
|
359
|
+
labelType="label3"
|
|
360
|
+
text=""
|
|
361
|
+
type="pending"
|
|
362
|
+
width="0.571rem"
|
|
363
|
+
/>
|
|
364
|
+
</CapRow>
|
|
365
|
+
</CapRow>,
|
|
366
|
+
},
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
fbType="list"
|
|
370
|
+
key="ZALO-card-list"
|
|
371
|
+
style={
|
|
372
|
+
Object {
|
|
373
|
+
"marginLeft": "16px",
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
type="ZALO"
|
|
377
|
+
/>
|
|
378
|
+
</div>
|
|
379
|
+
<div
|
|
380
|
+
style={
|
|
381
|
+
Object {
|
|
382
|
+
"height": "calc(100vh - 325px)",
|
|
383
|
+
"overflow": "auto",
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
/>
|
|
387
|
+
</div>
|
|
388
|
+
</CapSpin>
|
|
389
|
+
</div>
|
|
390
|
+
</Pagination>
|
|
391
|
+
</CapRow>
|
|
392
|
+
<CapRow />
|
|
393
|
+
<CapRow>
|
|
394
|
+
<CapSlideBox
|
|
395
|
+
closeIconPosition="right"
|
|
396
|
+
closeIconSize="m"
|
|
397
|
+
closeIconType="close"
|
|
398
|
+
content={
|
|
399
|
+
<CardGrid
|
|
400
|
+
className=""
|
|
401
|
+
colNumber={2}
|
|
402
|
+
gutterSize={16}
|
|
403
|
+
isLoading={false}
|
|
404
|
+
listItem={Array []}
|
|
405
|
+
onHoverItem={[Function]}
|
|
406
|
+
onItemClick={[Function]}
|
|
407
|
+
/>
|
|
408
|
+
}
|
|
409
|
+
handleClose={[Function]}
|
|
410
|
+
header={
|
|
411
|
+
<h3>
|
|
412
|
+
Select layout
|
|
413
|
+
</h3>
|
|
414
|
+
}
|
|
415
|
+
loadingText="Loading EDM Templates"
|
|
416
|
+
position="right"
|
|
417
|
+
show={false}
|
|
418
|
+
size="size-r"
|
|
419
|
+
width={60}
|
|
420
|
+
/>
|
|
421
|
+
<InjectIntl(Wrapper)
|
|
422
|
+
centered={true}
|
|
423
|
+
className="delete-template-confirm"
|
|
424
|
+
closeText="Cancel"
|
|
425
|
+
okText="Yes, delete"
|
|
426
|
+
onCancel={[Function]}
|
|
427
|
+
onOk={[Function]}
|
|
428
|
+
title="Confirm delete template"
|
|
429
|
+
visible={false}
|
|
430
|
+
>
|
|
431
|
+
Are you sure you wish to delete this template?
|
|
432
|
+
</InjectIntl(Wrapper)>
|
|
433
|
+
</CapRow>
|
|
434
|
+
</div>
|
|
435
|
+
</Fragment>
|
|
436
|
+
`;
|
|
437
|
+
|
|
27
438
|
exports[`Test Templates container Should render temlates when whatsapp templates are passed 1`] = `
|
|
28
439
|
<Fragment>
|
|
29
440
|
<div
|
|
@@ -245,7 +656,7 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
245
656
|
size="size-r"
|
|
246
657
|
width={60}
|
|
247
658
|
/>
|
|
248
|
-
<Wrapper
|
|
659
|
+
<InjectIntl(Wrapper)
|
|
249
660
|
centered={true}
|
|
250
661
|
className="delete-template-confirm"
|
|
251
662
|
closeText="Cancel"
|
|
@@ -256,7 +667,7 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
256
667
|
visible={false}
|
|
257
668
|
>
|
|
258
669
|
Are you sure you wish to delete this template?
|
|
259
|
-
</Wrapper>
|
|
670
|
+
</InjectIntl(Wrapper)>
|
|
260
671
|
</CapRow>
|
|
261
672
|
</div>
|
|
262
673
|
</Fragment>
|
|
@@ -539,7 +950,164 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
539
950
|
size="size-r"
|
|
540
951
|
width={60}
|
|
541
952
|
/>
|
|
542
|
-
<Wrapper
|
|
953
|
+
<InjectIntl(Wrapper)
|
|
954
|
+
centered={true}
|
|
955
|
+
className="delete-template-confirm"
|
|
956
|
+
closeText="Cancel"
|
|
957
|
+
okText="Yes, delete"
|
|
958
|
+
onCancel={[Function]}
|
|
959
|
+
onOk={[Function]}
|
|
960
|
+
title="Confirm delete template"
|
|
961
|
+
visible={false}
|
|
962
|
+
>
|
|
963
|
+
Are you sure you wish to delete this template?
|
|
964
|
+
</InjectIntl(Wrapper)>
|
|
965
|
+
</CapRow>
|
|
966
|
+
</div>
|
|
967
|
+
</Fragment>
|
|
968
|
+
`;
|
|
969
|
+
|
|
970
|
+
exports[`Test Templates container Should render temlates when zalo templates are passed 1`] = `
|
|
971
|
+
<Fragment>
|
|
972
|
+
<div
|
|
973
|
+
className="creatives-templates-list library-mode"
|
|
974
|
+
>
|
|
975
|
+
<input
|
|
976
|
+
accept=".zip, .html, .htm"
|
|
977
|
+
id="filename"
|
|
978
|
+
onChange={[Function]}
|
|
979
|
+
style={
|
|
980
|
+
Object {
|
|
981
|
+
"display": "none",
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
type="file"
|
|
985
|
+
/>
|
|
986
|
+
<CapRow>
|
|
987
|
+
<Pagination
|
|
988
|
+
onPageChange={[Function]}
|
|
989
|
+
paginationContainer="pagination-container"
|
|
990
|
+
paginationSelector="pagination-container"
|
|
991
|
+
>
|
|
992
|
+
<div>
|
|
993
|
+
<div
|
|
994
|
+
className="action-container"
|
|
995
|
+
>
|
|
996
|
+
<_class
|
|
997
|
+
className="search-text"
|
|
998
|
+
disabled={false}
|
|
999
|
+
labelPosition="top"
|
|
1000
|
+
onChange={[Function]}
|
|
1001
|
+
onClear={[Function]}
|
|
1002
|
+
onScroll={[Function]}
|
|
1003
|
+
placeholder="Search"
|
|
1004
|
+
style={
|
|
1005
|
+
Object {
|
|
1006
|
+
"width": "210px",
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
value=""
|
|
1010
|
+
/>
|
|
1011
|
+
<div
|
|
1012
|
+
className="zalo-filters"
|
|
1013
|
+
/>
|
|
1014
|
+
<Component />
|
|
1015
|
+
<Component />
|
|
1016
|
+
<div
|
|
1017
|
+
style={
|
|
1018
|
+
Object {
|
|
1019
|
+
"alignItems": "center",
|
|
1020
|
+
"display": "flex",
|
|
1021
|
+
"justifyContent": "space-between",
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
/>
|
|
1025
|
+
</div>
|
|
1026
|
+
<CapRow
|
|
1027
|
+
align="middle"
|
|
1028
|
+
className="selected-whatsapp-filters"
|
|
1029
|
+
type="flex"
|
|
1030
|
+
/>
|
|
1031
|
+
<CapSpin
|
|
1032
|
+
spinning={false}
|
|
1033
|
+
style={
|
|
1034
|
+
Object {
|
|
1035
|
+
"width": "100%",
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
tip="Getting all templates..."
|
|
1039
|
+
>
|
|
1040
|
+
<div>
|
|
1041
|
+
<div
|
|
1042
|
+
style={
|
|
1043
|
+
Object {
|
|
1044
|
+
"height": "calc(100vh - 325px)",
|
|
1045
|
+
"overflow": "auto",
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
>
|
|
1049
|
+
<CapHeader
|
|
1050
|
+
description={
|
|
1051
|
+
<CapLabel
|
|
1052
|
+
style={
|
|
1053
|
+
Object {
|
|
1054
|
+
"textAlign": "center",
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
type="label1"
|
|
1058
|
+
>
|
|
1059
|
+
Please try searching with another term or apply different filter
|
|
1060
|
+
</CapLabel>
|
|
1061
|
+
}
|
|
1062
|
+
descriptionClass=""
|
|
1063
|
+
inline={false}
|
|
1064
|
+
size="large"
|
|
1065
|
+
title={
|
|
1066
|
+
<CapHeading
|
|
1067
|
+
className="channel-specific-illustration-text"
|
|
1068
|
+
type="h3"
|
|
1069
|
+
>
|
|
1070
|
+
Sorry, we couldn’t find any matches
|
|
1071
|
+
</CapHeading>
|
|
1072
|
+
}
|
|
1073
|
+
titleClass=""
|
|
1074
|
+
/>
|
|
1075
|
+
</div>
|
|
1076
|
+
</div>
|
|
1077
|
+
</CapSpin>
|
|
1078
|
+
</div>
|
|
1079
|
+
</Pagination>
|
|
1080
|
+
</CapRow>
|
|
1081
|
+
<CapRow />
|
|
1082
|
+
<CapRow>
|
|
1083
|
+
<CapSlideBox
|
|
1084
|
+
closeIconPosition="right"
|
|
1085
|
+
closeIconSize="m"
|
|
1086
|
+
closeIconType="close"
|
|
1087
|
+
content={
|
|
1088
|
+
<CardGrid
|
|
1089
|
+
className=""
|
|
1090
|
+
colNumber={2}
|
|
1091
|
+
gutterSize={16}
|
|
1092
|
+
isLoading={false}
|
|
1093
|
+
listItem={Array []}
|
|
1094
|
+
onHoverItem={[Function]}
|
|
1095
|
+
onItemClick={[Function]}
|
|
1096
|
+
/>
|
|
1097
|
+
}
|
|
1098
|
+
handleClose={[Function]}
|
|
1099
|
+
header={
|
|
1100
|
+
<h3>
|
|
1101
|
+
Select layout
|
|
1102
|
+
</h3>
|
|
1103
|
+
}
|
|
1104
|
+
loadingText="Loading EDM Templates"
|
|
1105
|
+
position="right"
|
|
1106
|
+
show={false}
|
|
1107
|
+
size="size-r"
|
|
1108
|
+
width={60}
|
|
1109
|
+
/>
|
|
1110
|
+
<InjectIntl(Wrapper)
|
|
543
1111
|
centered={true}
|
|
544
1112
|
className="delete-template-confirm"
|
|
545
1113
|
closeText="Cancel"
|
|
@@ -550,7 +1118,7 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
550
1118
|
visible={false}
|
|
551
1119
|
>
|
|
552
1120
|
Are you sure you wish to delete this template?
|
|
553
|
-
</Wrapper>
|
|
1121
|
+
</InjectIntl(Wrapper)>
|
|
554
1122
|
</CapRow>
|
|
555
1123
|
</div>
|
|
556
1124
|
</Fragment>
|
|
@@ -847,16 +1415,20 @@ Click {{unsubscribe}} to unsubscribe
|
|
|
847
1415
|
</CapLabel>
|
|
848
1416
|
</React.Fragment>,
|
|
849
1417
|
"extra": Array [
|
|
850
|
-
<
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
1418
|
+
<CapTooltip
|
|
1419
|
+
title=""
|
|
1420
|
+
>
|
|
1421
|
+
<CapIcon
|
|
1422
|
+
className="view-whatsapp"
|
|
1423
|
+
onClick={[Function]}
|
|
1424
|
+
style={
|
|
1425
|
+
Object {
|
|
1426
|
+
"marginRight": "16px",
|
|
1427
|
+
}
|
|
856
1428
|
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
1429
|
+
type="eye"
|
|
1430
|
+
/>
|
|
1431
|
+
</CapTooltip>,
|
|
860
1432
|
<CapDropdown
|
|
861
1433
|
overlay={
|
|
862
1434
|
<CapMenu>
|
|
@@ -1008,7 +1580,7 @@ Click {{3}} to unsubscribe",
|
|
|
1008
1580
|
size="size-r"
|
|
1009
1581
|
width={60}
|
|
1010
1582
|
/>
|
|
1011
|
-
<Wrapper
|
|
1583
|
+
<InjectIntl(Wrapper)
|
|
1012
1584
|
centered={true}
|
|
1013
1585
|
className="delete-template-confirm"
|
|
1014
1586
|
closeText="Cancel"
|
|
@@ -1019,7 +1591,7 @@ Click {{3}} to unsubscribe",
|
|
|
1019
1591
|
visible={false}
|
|
1020
1592
|
>
|
|
1021
1593
|
Are you sure you wish to delete this template?
|
|
1022
|
-
</Wrapper>
|
|
1594
|
+
</InjectIntl(Wrapper)>
|
|
1023
1595
|
</CapRow>
|
|
1024
1596
|
</div>
|
|
1025
1597
|
</Fragment>
|
|
@@ -1284,16 +1856,20 @@ Click {{unsubscribe}} to unsubscribe
|
|
|
1284
1856
|
</CapLabel>
|
|
1285
1857
|
</React.Fragment>,
|
|
1286
1858
|
"extra": Array [
|
|
1287
|
-
<
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1859
|
+
<CapTooltip
|
|
1860
|
+
title=""
|
|
1861
|
+
>
|
|
1862
|
+
<CapIcon
|
|
1863
|
+
className="view-whatsapp"
|
|
1864
|
+
onClick={[Function]}
|
|
1865
|
+
style={
|
|
1866
|
+
Object {
|
|
1867
|
+
"marginRight": "16px",
|
|
1868
|
+
}
|
|
1293
1869
|
}
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1870
|
+
type="eye"
|
|
1871
|
+
/>
|
|
1872
|
+
</CapTooltip>,
|
|
1297
1873
|
<CapDropdown
|
|
1298
1874
|
overlay={
|
|
1299
1875
|
<CapMenu>
|
|
@@ -1445,7 +2021,7 @@ Click {{3}} to unsubscribe",
|
|
|
1445
2021
|
size="size-r"
|
|
1446
2022
|
width={60}
|
|
1447
2023
|
/>
|
|
1448
|
-
<Wrapper
|
|
2024
|
+
<InjectIntl(Wrapper)
|
|
1449
2025
|
centered={true}
|
|
1450
2026
|
className="delete-template-confirm"
|
|
1451
2027
|
closeText="Cancel"
|
|
@@ -1456,7 +2032,7 @@ Click {{3}} to unsubscribe",
|
|
|
1456
2032
|
visible={false}
|
|
1457
2033
|
>
|
|
1458
2034
|
Are you sure you wish to delete this template?
|
|
1459
|
-
</Wrapper>
|
|
2035
|
+
</InjectIntl(Wrapper)>
|
|
1460
2036
|
</CapRow>
|
|
1461
2037
|
</div>
|
|
1462
2038
|
</Fragment>
|
|
@@ -1721,16 +2297,20 @@ Click {{unsubscribe}} to unsubscribe
|
|
|
1721
2297
|
</CapLabel>
|
|
1722
2298
|
</React.Fragment>,
|
|
1723
2299
|
"extra": Array [
|
|
1724
|
-
<
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
2300
|
+
<CapTooltip
|
|
2301
|
+
title=""
|
|
2302
|
+
>
|
|
2303
|
+
<CapIcon
|
|
2304
|
+
className="view-whatsapp"
|
|
2305
|
+
onClick={[Function]}
|
|
2306
|
+
style={
|
|
2307
|
+
Object {
|
|
2308
|
+
"marginRight": "16px",
|
|
2309
|
+
}
|
|
1730
2310
|
}
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
2311
|
+
type="eye"
|
|
2312
|
+
/>
|
|
2313
|
+
</CapTooltip>,
|
|
1734
2314
|
<CapDropdown
|
|
1735
2315
|
overlay={
|
|
1736
2316
|
<CapMenu>
|
|
@@ -1882,7 +2462,7 @@ Click {{3}} to unsubscribe",
|
|
|
1882
2462
|
size="size-r"
|
|
1883
2463
|
width={60}
|
|
1884
2464
|
/>
|
|
1885
|
-
<Wrapper
|
|
2465
|
+
<InjectIntl(Wrapper)
|
|
1886
2466
|
centered={true}
|
|
1887
2467
|
className="delete-template-confirm"
|
|
1888
2468
|
closeText="Cancel"
|
|
@@ -1893,7 +2473,7 @@ Click {{3}} to unsubscribe",
|
|
|
1893
2473
|
visible={false}
|
|
1894
2474
|
>
|
|
1895
2475
|
Are you sure you wish to delete this template?
|
|
1896
|
-
</Wrapper>
|
|
2476
|
+
</InjectIntl(Wrapper)>
|
|
1897
2477
|
</CapRow>
|
|
1898
2478
|
</div>
|
|
1899
2479
|
</Fragment>
|
|
@@ -2146,7 +2726,7 @@ exports[`Test Templates container Test removing all whatsapp filterss 1`] = `
|
|
|
2146
2726
|
size="size-r"
|
|
2147
2727
|
width={60}
|
|
2148
2728
|
/>
|
|
2149
|
-
<Wrapper
|
|
2729
|
+
<InjectIntl(Wrapper)
|
|
2150
2730
|
centered={true}
|
|
2151
2731
|
className="delete-template-confirm"
|
|
2152
2732
|
closeText="Cancel"
|
|
@@ -2157,7 +2737,7 @@ exports[`Test Templates container Test removing all whatsapp filterss 1`] = `
|
|
|
2157
2737
|
visible={false}
|
|
2158
2738
|
>
|
|
2159
2739
|
Are you sure you wish to delete this template?
|
|
2160
|
-
</Wrapper>
|
|
2740
|
+
</InjectIntl(Wrapper)>
|
|
2161
2741
|
</CapRow>
|
|
2162
2742
|
</div>
|
|
2163
2743
|
</Fragment>
|
|
@@ -2384,7 +2964,7 @@ exports[`Test Templates container Test removing all whatsapp filterss 2`] = `
|
|
|
2384
2964
|
size="size-r"
|
|
2385
2965
|
width={60}
|
|
2386
2966
|
/>
|
|
2387
|
-
<Wrapper
|
|
2967
|
+
<InjectIntl(Wrapper)
|
|
2388
2968
|
centered={true}
|
|
2389
2969
|
className="delete-template-confirm"
|
|
2390
2970
|
closeText="Cancel"
|
|
@@ -2395,7 +2975,7 @@ exports[`Test Templates container Test removing all whatsapp filterss 2`] = `
|
|
|
2395
2975
|
visible={false}
|
|
2396
2976
|
>
|
|
2397
2977
|
Are you sure you wish to delete this template?
|
|
2398
|
-
</Wrapper>
|
|
2978
|
+
</InjectIntl(Wrapper)>
|
|
2399
2979
|
</CapRow>
|
|
2400
2980
|
</div>
|
|
2401
2981
|
</Fragment>
|
|
@@ -2622,7 +3202,7 @@ exports[`Test Templates container Test removing single filter 1`] = `
|
|
|
2622
3202
|
size="size-r"
|
|
2623
3203
|
width={60}
|
|
2624
3204
|
/>
|
|
2625
|
-
<Wrapper
|
|
3205
|
+
<InjectIntl(Wrapper)
|
|
2626
3206
|
centered={true}
|
|
2627
3207
|
className="delete-template-confirm"
|
|
2628
3208
|
closeText="Cancel"
|
|
@@ -2633,7 +3213,7 @@ exports[`Test Templates container Test removing single filter 1`] = `
|
|
|
2633
3213
|
visible={false}
|
|
2634
3214
|
>
|
|
2635
3215
|
Are you sure you wish to delete this template?
|
|
2636
|
-
</Wrapper>
|
|
3216
|
+
</InjectIntl(Wrapper)>
|
|
2637
3217
|
</CapRow>
|
|
2638
3218
|
</div>
|
|
2639
3219
|
</Fragment>
|