@textback/notification-widget 2.0.1-84986 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/.eslintrc.js +291 -291
  2. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  3. package/.idea/misc.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/notificationwidget.iml +9 -0
  6. package/.idea/vcs.xml +6 -0
  7. package/build/index.js +3 -3
  8. package/build/sdk.js +2 -2
  9. package/package.json +70 -70
  10. package/promote_tag.sh +1 -1
  11. package/readme.md +569 -569
  12. package/server.js +1 -1
  13. package/src/libraries/ai.1.0.11.js +4088 -4088
  14. package/src/libraries/localization/locales/index.js +8 -8
  15. package/src/libraries/localization/text.js +9 -9
  16. package/src/libraries/t.js +82 -82
  17. package/src/sdk/channels/channel.js +30 -30
  18. package/src/sdk/channels/facebook.js +13 -13
  19. package/src/sdk/channels/skype.js +12 -12
  20. package/src/sdk/channels/telegram.js +18 -18
  21. package/src/sdk/channels/viber.js +12 -12
  22. package/src/sdk/channels/vk-modal/vk-modal.html +17 -17
  23. package/src/sdk/channels/vk-modal/vk-modal.js +25 -25
  24. package/src/sdk/channels/vk-modal/vk-modal.scss +116 -116
  25. package/src/sdk/channels/vk.js +195 -195
  26. package/src/sdk/events/observer.js +46 -46
  27. package/src/sdk/index.js +5 -5
  28. package/src/sdk/sdk.js +67 -67
  29. package/src/sdk/utils/apiErrorHandler.js +11 -11
  30. package/src/sdk/utils/appInsights.js +88 -88
  31. package/src/sdk/utils/browserInfo.js +8 -8
  32. package/src/sdk/utils/constants.js +17 -17
  33. package/src/sdk/utils/cookies.js +67 -67
  34. package/src/sdk/utils/find.js +7 -7
  35. package/src/sdk/utils/loadConfig.js +20 -20
  36. package/src/sdk/utils/loadDeepLink.js +48 -48
  37. package/src/sdk/utils/loadScript.js +25 -25
  38. package/src/sdk/utils/loadSubscriptions.js +6 -6
  39. package/src/sdk/utils/parseQueryString.js +33 -33
  40. package/src/sdk/utils/windowHelper.js +25 -25
  41. package/src/sdk/widget/widget.js +192 -192
  42. package/src/widget/components/tb-notification-button/index.js +34 -34
  43. package/src/widget/components/tb-notification-button/styles.scss +657 -657
  44. package/src/widget/components/tb-notification-widget/normalize.scss +395 -395
  45. package/src/widget/components/tb-nw-wahunter/styles.scss +471 -471
  46. package/src/widget/config.js +5 -5
  47. package/src/widget/icons/icon_chat_window.svg +1 -1
  48. package/src/widget/icons/icon_close.svg +1 -1
  49. package/src/widget/icons/icon_facebook.svg +7 -7
  50. package/src/widget/icons/icon_facebook_circle.svg +7 -7
  51. package/src/widget/icons/icon_instagram_circle.svg +95 -95
  52. package/src/widget/icons/icon_skype.svg +44 -44
  53. package/src/widget/icons/icon_skype_circle.svg +46 -46
  54. package/src/widget/icons/icon_skype_new.svg +113 -113
  55. package/src/widget/icons/icon_tg.svg +25 -25
  56. package/src/widget/icons/icon_tg_circle.svg +17 -17
  57. package/src/widget/icons/icon_viber.svg +75 -75
  58. package/src/widget/icons/icon_viber_circle.svg +67 -67
  59. package/src/widget/icons/icon_viber_new.svg +102 -102
  60. package/src/widget/icons/icon_vk.svg +14 -14
  61. package/src/widget/icons/icon_vk_circle.svg +16 -16
  62. package/src/widget/icons/icon_whatsapp.svg +147 -147
  63. package/src/widget/icons/icon_whatsapp_circle.svg +3 -3
  64. package/src/widget/icons/icon_whatsapp_new.svg +127 -127
  65. package/src/widget/icons/icon_whatsappb.svg +147 -147
  66. package/src/widget/icons/icon_whatsappb_circle.svg +3 -3
  67. package/src/widget/icons/icon_whatsappb_new.svg +127 -127
  68. package/src/widget/icons/paper-plane-arrow.svg +3 -3
  69. package/src/widget/icons/tb-logo.svg +21 -21
  70. package/src/widget/index.js +28 -28
  71. package/src/widget/locales/cs.js +42 -42
  72. package/src/widget/locales/en.js +42 -42
  73. package/src/widget/locales/ro.js +41 -41
  74. package/src/widget/utils/cookiesEx.js +41 -41
  75. package/src/widget/utils/stringifyAttributes.js +19 -19
  76. package/src/widget/utils/widgetsStorage.js +28 -28
  77. package/src/widget/widget.entry.js +3 -3
  78. package/tests/gf.html +35 -35
  79. package/tests/gf.js +21 -21
  80. package/tests/index.js +61 -61
  81. package/views/examples.ejs +3 -3
  82. package/views/sdk.html +274 -274
  83. package/webpack.common.js +72 -72
  84. package/webpack.dev.js +15 -15
  85. package/webpack.prod.js +10 -10
@@ -1,471 +1,471 @@
1
- $base-class-name: tb-nw-wahunter;
2
- $font-family: 'Montserrat',
3
- 'Open Sans',
4
- 'Droid Sans',
5
- Arial,
6
- sans-serif;
7
-
8
- $color-green: #25D366;
9
- $color-light-gray: #F2F2F2;
10
- $color-dark-gray: darken($color-light-gray, 5%);
11
-
12
- tb-notification-widget #tb-notification-widget-inner.tb-notification-widget-inner tb-nw-wahunter {
13
- font-size: 12px;
14
- font-family: $font-family;
15
-
16
- * {
17
- box-sizing: border-box;
18
- }
19
-
20
- // TODO: Move reset to level of entire widget. Now I’m not sure that this will not break anything in normal notif widget
21
- a,
22
- label,
23
- button,
24
- input {
25
- margin: 0;
26
- padding: 0;
27
- border: none;
28
- box-shadow: none;
29
- outline: none;
30
- font-family: inherit;
31
- font-size: inherit;
32
- color: inherit;
33
- background: transparent;
34
- }
35
-
36
- button,
37
- label {
38
- cursor: pointer;
39
- }
40
- }
41
-
42
-
43
- tb-notification-widget #tb-notification-widget-inner.tb-notification-widget-inner .tb-nw-wahunter {
44
-
45
- /**** All modes ****/
46
- &__headline {
47
- font-weight: 600;
48
- line-height: 1.3;
49
- }
50
-
51
- &__text-content {
52
- margin-bottom: 1.4em;
53
- }
54
-
55
-
56
-
57
- /**** Popup mode only ****/
58
- &__top-img {
59
- padding: 20% 0;
60
- background-size: cover;
61
- background-position: center;
62
- background-repeat: no-repeat;
63
- border-radius: 4px 4px 0px 0px;
64
- }
65
-
66
- &__img {
67
- display: none;
68
- align-items: center;
69
- width: 280px;
70
- flex-shrink: 0;
71
-
72
- img {
73
- width: 100%;
74
- }
75
- }
76
-
77
- &__main-content {
78
- padding: 1.4em 10%;
79
- padding-bottom: 4em;
80
- }
81
-
82
- &__description {
83
- font-size: 1.3em;
84
- line-height: 1.5;
85
- }
86
-
87
- &_without-image {
88
-
89
- .#{$base-class-name}__top-img,
90
- .#{$base-class-name}__img {
91
- display: none;
92
- }
93
-
94
- .#{$base-class-name}__main-content {
95
- padding-top: 3em;
96
- }
97
- }
98
-
99
- &_mode_popup {
100
- .#{$base-class-name}__headline {
101
- font-size: 1.9em;
102
- margin-bottom: 0.4em;
103
- }
104
- }
105
-
106
-
107
-
108
- /**** Inline mode only ****/
109
- &_mode_inline {
110
- display: flex;
111
-
112
- .#{$base-class-name}__submit-form {
113
- margin: 0;
114
- }
115
-
116
- #tb-notification-brand-badge {
117
- display: none;
118
- font-size: 9px;
119
- margin-top: 1.2em;
120
- }
121
- }
122
-
123
- &_inline-mode-align_left {
124
- justify-content: flex-start;
125
- }
126
-
127
- &_inline-mode-align_right {
128
- justify-content: flex-end;
129
- }
130
-
131
- &_inline-mode-align_center {
132
- justify-content: center;
133
- }
134
-
135
-
136
-
137
- /**** Corner-popup mode only ****/
138
- &_mode_corner-popup {
139
- .#{$base-class-name}__headline {
140
- font-size: 1.7em;
141
- margin-bottom: 0.4em;
142
- }
143
- }
144
-
145
-
146
-
147
- /**** Submit-form ****/
148
- &__submit-form {
149
- padding: 0;
150
- width: 100%;
151
- max-width: 100%;
152
- margin: auto;
153
- }
154
-
155
- &__phone-input,
156
- &__submit-button {
157
- height: 44px;
158
- width: 100%;
159
- border-radius: 22px;
160
- padding: 0 40px !important;
161
- }
162
-
163
- &__phone-input {
164
- font-size: 14px;
165
- margin-bottom: 12px;
166
- background: #F2F2F2;
167
- border: 1px solid $color-dark-gray;
168
- letter-spacing: 1px;
169
- color: #333;
170
-
171
- &:invalid {
172
- letter-spacing: 0px;
173
- }
174
- }
175
-
176
- &__submit-button {
177
- position: relative;
178
- background: $color-green;
179
- color: #fff;
180
- font-size: 9px;
181
- font-weight: bold;
182
- letter-spacing: 1px;
183
- text-transform: uppercase;
184
- transition: background ease 0.25s;
185
- }
186
-
187
- &__submit-button-icon {
188
- position: absolute;
189
- right: 13px;
190
- top: 0;
191
- height: 100%;
192
- width: 20px;
193
-
194
- svg {
195
- position: absolute;
196
- top: 0;
197
- left: 0;
198
- right: 0;
199
- bottom: 0;
200
- margin: auto;
201
- }
202
- }
203
-
204
- &__submit-form-footer {
205
- display: flex;
206
- justify-content: space-between;
207
- padding: 0 5px;
208
- font-size: 12px;
209
- margin-top: 10px;
210
- }
211
-
212
- &__agreement {
213
- display: flex;
214
- align-items: center;
215
- }
216
-
217
- &__agreement input[type="checkbox"] {
218
- -webkit-appearance: none;
219
- -moz-appearance: none;
220
- -o-appearance: none;
221
- appearance: none;
222
- position: relative;
223
- height: 14px;
224
- width: 14px;
225
- border: 1px solid rgb(207, 207, 207);
226
- border-radius: 4px;
227
- outline: none;
228
- cursor: pointer;
229
-
230
- &:checked {
231
- background: $color-green;
232
- border: none;
233
- }
234
-
235
- &:checked::before {
236
- content: '\2714';
237
- display: block;
238
- text-align: center;
239
- color: #fff;
240
- position: absolute;
241
- left: 3.5px;
242
- top: 2px;
243
- font-size: 9px;
244
- }
245
- }
246
-
247
- &__agreement-text {
248
- margin-left: 5px;
249
- }
250
-
251
- &__agreement-wa-icon {
252
- display: inline-block;
253
- position: relative;
254
- width: 18px;
255
- height: 14px;
256
- vertical-align: middle;
257
-
258
- svg {
259
- position: absolute;
260
- top: -7px;
261
- left: -3px;
262
- width: 25px;
263
- }
264
- }
265
-
266
- &__state-report {
267
- display: none;
268
- flex-direction: column;
269
- align-items: center;
270
- line-height: 1.5;
271
- }
272
-
273
- &__state-report-emoji {
274
- font-size: 40px;
275
- margin-bottom: 10px;
276
- }
277
-
278
- &__state-report-message-container {
279
- text-align: center;
280
- }
281
-
282
- &__state-report-message {
283
- font-size: 18px;
284
- font-weight: bold;
285
- }
286
-
287
- &__try-again-button {
288
- display: none;
289
- padding: 0;
290
- margin: 0;
291
- margin-top: 20px;
292
- font-size: 16px;
293
- }
294
-
295
- &__try-again-button {
296
- font-weight: bold;
297
- text-decoration: underline;
298
- }
299
-
300
-
301
-
302
- /**** Submit-form state management ****/
303
- &__submit-form:not([data-state="initial"]) {
304
- .#{$base-class-name}__submit-form-controls {
305
- display: none;
306
- }
307
-
308
- .#{$base-class-name}__state-report {
309
- display: flex;
310
- }
311
- }
312
-
313
- &__submit-form[data-state="success"] {
314
- #tb-notification-brand-badge {
315
- display: inline-flex;
316
- }
317
- }
318
-
319
- &__submit-form[data-state="error"],
320
- &__submit-form[data-state="notFound"] {
321
-
322
- .#{$base-class-name}__state-report-message {
323
- font-weight: normal;
324
- }
325
-
326
- .#{$base-class-name}__try-again-button {
327
- display: inline-block;
328
- }
329
- }
330
-
331
-
332
-
333
- @media only screen and (min-device-width: 481px) {
334
- font-size: 13px;
335
-
336
- &:not(.tb-nw-wahunter_mode_corner-popup) {
337
- .#{$base-class-name}__phone-input-container {
338
- padding: 5px;
339
- background: #F2F2F2;
340
- border-radius: 22px;
341
- display: flex;
342
- justify-content: space-between;
343
- align-items: center;
344
- }
345
-
346
- .#{$base-class-name}__phone-input,
347
- .#{$base-class-name}__submit-button {
348
- height: auto;
349
- width: auto;
350
- flex-grow: 1;
351
- }
352
-
353
- .#{$base-class-name}__phone-input {
354
- background: transparent;
355
- border-radius: 0;
356
- padding-left: 15px !important;
357
- padding-right: 10px !important;
358
- min-width: 150px;
359
- margin: 0;
360
- border: none;
361
- }
362
-
363
- .#{$base-class-name}__submit-button {
364
- padding-top: 15px !important;
365
- padding-bottom: 15px !important;
366
- min-width: 49%;
367
- }
368
-
369
- .#{$base-class-name}__submit-form-footer {
370
- margin-top: 6px;
371
- }
372
- }
373
-
374
- &_mode_popup,
375
- &_mode_inline {
376
- .#{$base-class-name}__submit-form {
377
- width: max-content;
378
- }
379
- }
380
-
381
- &_mode_popup {
382
- .#{$base-class-name}__submit-form {
383
- min-width: 370px;
384
- }
385
- }
386
-
387
- &_mode_inline {
388
- .#{$base-class-name}__submit-form {
389
- min-width: 420px;
390
- }
391
- }
392
- }
393
-
394
-
395
-
396
- @media only screen and (min-device-width: 768px) {
397
- font-size: 14px;
398
-
399
- &_image-align_right,
400
- &_image-align_left {
401
- display: flex;
402
- justify-content: space-between;
403
- align-items: center;
404
- text-align: left;
405
- padding: 7em 2.5em;
406
-
407
- .#{$base-class-name}__submit-form {
408
- min-width: unset;
409
- width: 100%;
410
- }
411
-
412
- .#{$base-class-name}__top-img {
413
- display: none;
414
- }
415
-
416
- .#{$base-class-name}__img {
417
- display: flex;
418
- }
419
-
420
- .#{$base-class-name}__main-content {
421
- padding: 0;
422
- }
423
-
424
- .#{$base-class-name}__state-report {
425
- flex-direction: row;
426
- }
427
-
428
- .#{$base-class-name}__state-report-message-container {
429
- text-align: left;
430
- }
431
-
432
- .#{$base-class-name}__state-report-emoji {
433
- margin-bottom: 0;
434
- margin-right: 10px;
435
- }
436
-
437
- .#{$base-class-name}__submit-form[data-state="notFound"],
438
- .#{$base-class-name}__submit-form[data-state="error"] {
439
- .#{$base-class-name}__state-report {
440
- align-items: flex-start;
441
- }
442
- }
443
- }
444
-
445
- &_image-align_top,
446
- &_without-image {
447
- .#{$base-class-name}__submit-form {
448
- min-width: 420px;
449
- }
450
- }
451
-
452
- &_image-align_top {
453
- .#{$base-class-name}__main-content {
454
- padding-bottom: 6em;
455
- }
456
- }
457
-
458
- &_image-align_right {
459
- .#{$base-class-name}__img {
460
- margin-left: 3em;
461
- order: 1;
462
- }
463
- }
464
-
465
- &_image-align_left {
466
- .#{$base-class-name}__img {
467
- margin-right: 3em;
468
- }
469
- }
470
- }
471
- }
1
+ $base-class-name: tb-nw-wahunter;
2
+ $font-family: 'Montserrat',
3
+ 'Open Sans',
4
+ 'Droid Sans',
5
+ Arial,
6
+ sans-serif;
7
+
8
+ $color-green: #25D366;
9
+ $color-light-gray: #F2F2F2;
10
+ $color-dark-gray: darken($color-light-gray, 5%);
11
+
12
+ tb-notification-widget #tb-notification-widget-inner.tb-notification-widget-inner tb-nw-wahunter {
13
+ font-size: 12px;
14
+ font-family: $font-family;
15
+
16
+ * {
17
+ box-sizing: border-box;
18
+ }
19
+
20
+ // TODO: Move reset to level of entire widget. Now I’m not sure that this will not break anything in normal notif widget
21
+ a,
22
+ label,
23
+ button,
24
+ input {
25
+ margin: 0;
26
+ padding: 0;
27
+ border: none;
28
+ box-shadow: none;
29
+ outline: none;
30
+ font-family: inherit;
31
+ font-size: inherit;
32
+ color: inherit;
33
+ background: transparent;
34
+ }
35
+
36
+ button,
37
+ label {
38
+ cursor: pointer;
39
+ }
40
+ }
41
+
42
+
43
+ tb-notification-widget #tb-notification-widget-inner.tb-notification-widget-inner .tb-nw-wahunter {
44
+
45
+ /**** All modes ****/
46
+ &__headline {
47
+ font-weight: 600;
48
+ line-height: 1.3;
49
+ }
50
+
51
+ &__text-content {
52
+ margin-bottom: 1.4em;
53
+ }
54
+
55
+
56
+
57
+ /**** Popup mode only ****/
58
+ &__top-img {
59
+ padding: 20% 0;
60
+ background-size: cover;
61
+ background-position: center;
62
+ background-repeat: no-repeat;
63
+ border-radius: 4px 4px 0px 0px;
64
+ }
65
+
66
+ &__img {
67
+ display: none;
68
+ align-items: center;
69
+ width: 280px;
70
+ flex-shrink: 0;
71
+
72
+ img {
73
+ width: 100%;
74
+ }
75
+ }
76
+
77
+ &__main-content {
78
+ padding: 1.4em 10%;
79
+ padding-bottom: 4em;
80
+ }
81
+
82
+ &__description {
83
+ font-size: 1.3em;
84
+ line-height: 1.5;
85
+ }
86
+
87
+ &_without-image {
88
+
89
+ .#{$base-class-name}__top-img,
90
+ .#{$base-class-name}__img {
91
+ display: none;
92
+ }
93
+
94
+ .#{$base-class-name}__main-content {
95
+ padding-top: 3em;
96
+ }
97
+ }
98
+
99
+ &_mode_popup {
100
+ .#{$base-class-name}__headline {
101
+ font-size: 1.9em;
102
+ margin-bottom: 0.4em;
103
+ }
104
+ }
105
+
106
+
107
+
108
+ /**** Inline mode only ****/
109
+ &_mode_inline {
110
+ display: flex;
111
+
112
+ .#{$base-class-name}__submit-form {
113
+ margin: 0;
114
+ }
115
+
116
+ #tb-notification-brand-badge {
117
+ display: none;
118
+ font-size: 9px;
119
+ margin-top: 1.2em;
120
+ }
121
+ }
122
+
123
+ &_inline-mode-align_left {
124
+ justify-content: flex-start;
125
+ }
126
+
127
+ &_inline-mode-align_right {
128
+ justify-content: flex-end;
129
+ }
130
+
131
+ &_inline-mode-align_center {
132
+ justify-content: center;
133
+ }
134
+
135
+
136
+
137
+ /**** Corner-popup mode only ****/
138
+ &_mode_corner-popup {
139
+ .#{$base-class-name}__headline {
140
+ font-size: 1.7em;
141
+ margin-bottom: 0.4em;
142
+ }
143
+ }
144
+
145
+
146
+
147
+ /**** Submit-form ****/
148
+ &__submit-form {
149
+ padding: 0;
150
+ width: 100%;
151
+ max-width: 100%;
152
+ margin: auto;
153
+ }
154
+
155
+ &__phone-input,
156
+ &__submit-button {
157
+ height: 44px;
158
+ width: 100%;
159
+ border-radius: 22px;
160
+ padding: 0 40px !important;
161
+ }
162
+
163
+ &__phone-input {
164
+ font-size: 14px;
165
+ margin-bottom: 12px;
166
+ background: #F2F2F2;
167
+ border: 1px solid $color-dark-gray;
168
+ letter-spacing: 1px;
169
+ color: #333;
170
+
171
+ &:invalid {
172
+ letter-spacing: 0px;
173
+ }
174
+ }
175
+
176
+ &__submit-button {
177
+ position: relative;
178
+ background: $color-green;
179
+ color: #fff;
180
+ font-size: 9px;
181
+ font-weight: bold;
182
+ letter-spacing: 1px;
183
+ text-transform: uppercase;
184
+ transition: background ease 0.25s;
185
+ }
186
+
187
+ &__submit-button-icon {
188
+ position: absolute;
189
+ right: 13px;
190
+ top: 0;
191
+ height: 100%;
192
+ width: 20px;
193
+
194
+ svg {
195
+ position: absolute;
196
+ top: 0;
197
+ left: 0;
198
+ right: 0;
199
+ bottom: 0;
200
+ margin: auto;
201
+ }
202
+ }
203
+
204
+ &__submit-form-footer {
205
+ display: flex;
206
+ justify-content: space-between;
207
+ padding: 0 5px;
208
+ font-size: 12px;
209
+ margin-top: 10px;
210
+ }
211
+
212
+ &__agreement {
213
+ display: flex;
214
+ align-items: center;
215
+ }
216
+
217
+ &__agreement input[type="checkbox"] {
218
+ -webkit-appearance: none;
219
+ -moz-appearance: none;
220
+ -o-appearance: none;
221
+ appearance: none;
222
+ position: relative;
223
+ height: 14px;
224
+ width: 14px;
225
+ border: 1px solid rgb(207, 207, 207);
226
+ border-radius: 4px;
227
+ outline: none;
228
+ cursor: pointer;
229
+
230
+ &:checked {
231
+ background: $color-green;
232
+ border: none;
233
+ }
234
+
235
+ &:checked::before {
236
+ content: '\2714';
237
+ display: block;
238
+ text-align: center;
239
+ color: #fff;
240
+ position: absolute;
241
+ left: 3.5px;
242
+ top: 2px;
243
+ font-size: 9px;
244
+ }
245
+ }
246
+
247
+ &__agreement-text {
248
+ margin-left: 5px;
249
+ }
250
+
251
+ &__agreement-wa-icon {
252
+ display: inline-block;
253
+ position: relative;
254
+ width: 18px;
255
+ height: 14px;
256
+ vertical-align: middle;
257
+
258
+ svg {
259
+ position: absolute;
260
+ top: -7px;
261
+ left: -3px;
262
+ width: 25px;
263
+ }
264
+ }
265
+
266
+ &__state-report {
267
+ display: none;
268
+ flex-direction: column;
269
+ align-items: center;
270
+ line-height: 1.5;
271
+ }
272
+
273
+ &__state-report-emoji {
274
+ font-size: 40px;
275
+ margin-bottom: 10px;
276
+ }
277
+
278
+ &__state-report-message-container {
279
+ text-align: center;
280
+ }
281
+
282
+ &__state-report-message {
283
+ font-size: 18px;
284
+ font-weight: bold;
285
+ }
286
+
287
+ &__try-again-button {
288
+ display: none;
289
+ padding: 0;
290
+ margin: 0;
291
+ margin-top: 20px;
292
+ font-size: 16px;
293
+ }
294
+
295
+ &__try-again-button {
296
+ font-weight: bold;
297
+ text-decoration: underline;
298
+ }
299
+
300
+
301
+
302
+ /**** Submit-form state management ****/
303
+ &__submit-form:not([data-state="initial"]) {
304
+ .#{$base-class-name}__submit-form-controls {
305
+ display: none;
306
+ }
307
+
308
+ .#{$base-class-name}__state-report {
309
+ display: flex;
310
+ }
311
+ }
312
+
313
+ &__submit-form[data-state="success"] {
314
+ #tb-notification-brand-badge {
315
+ display: inline-flex;
316
+ }
317
+ }
318
+
319
+ &__submit-form[data-state="error"],
320
+ &__submit-form[data-state="notFound"] {
321
+
322
+ .#{$base-class-name}__state-report-message {
323
+ font-weight: normal;
324
+ }
325
+
326
+ .#{$base-class-name}__try-again-button {
327
+ display: inline-block;
328
+ }
329
+ }
330
+
331
+
332
+
333
+ @media only screen and (min-device-width: 481px) {
334
+ font-size: 13px;
335
+
336
+ &:not(.tb-nw-wahunter_mode_corner-popup) {
337
+ .#{$base-class-name}__phone-input-container {
338
+ padding: 5px;
339
+ background: #F2F2F2;
340
+ border-radius: 22px;
341
+ display: flex;
342
+ justify-content: space-between;
343
+ align-items: center;
344
+ }
345
+
346
+ .#{$base-class-name}__phone-input,
347
+ .#{$base-class-name}__submit-button {
348
+ height: auto;
349
+ width: auto;
350
+ flex-grow: 1;
351
+ }
352
+
353
+ .#{$base-class-name}__phone-input {
354
+ background: transparent;
355
+ border-radius: 0;
356
+ padding-left: 15px !important;
357
+ padding-right: 10px !important;
358
+ min-width: 150px;
359
+ margin: 0;
360
+ border: none;
361
+ }
362
+
363
+ .#{$base-class-name}__submit-button {
364
+ padding-top: 15px !important;
365
+ padding-bottom: 15px !important;
366
+ min-width: 49%;
367
+ }
368
+
369
+ .#{$base-class-name}__submit-form-footer {
370
+ margin-top: 6px;
371
+ }
372
+ }
373
+
374
+ &_mode_popup,
375
+ &_mode_inline {
376
+ .#{$base-class-name}__submit-form {
377
+ width: max-content;
378
+ }
379
+ }
380
+
381
+ &_mode_popup {
382
+ .#{$base-class-name}__submit-form {
383
+ min-width: 370px;
384
+ }
385
+ }
386
+
387
+ &_mode_inline {
388
+ .#{$base-class-name}__submit-form {
389
+ min-width: 420px;
390
+ }
391
+ }
392
+ }
393
+
394
+
395
+
396
+ @media only screen and (min-device-width: 768px) {
397
+ font-size: 14px;
398
+
399
+ &_image-align_right,
400
+ &_image-align_left {
401
+ display: flex;
402
+ justify-content: space-between;
403
+ align-items: center;
404
+ text-align: left;
405
+ padding: 7em 2.5em;
406
+
407
+ .#{$base-class-name}__submit-form {
408
+ min-width: unset;
409
+ width: 100%;
410
+ }
411
+
412
+ .#{$base-class-name}__top-img {
413
+ display: none;
414
+ }
415
+
416
+ .#{$base-class-name}__img {
417
+ display: flex;
418
+ }
419
+
420
+ .#{$base-class-name}__main-content {
421
+ padding: 0;
422
+ }
423
+
424
+ .#{$base-class-name}__state-report {
425
+ flex-direction: row;
426
+ }
427
+
428
+ .#{$base-class-name}__state-report-message-container {
429
+ text-align: left;
430
+ }
431
+
432
+ .#{$base-class-name}__state-report-emoji {
433
+ margin-bottom: 0;
434
+ margin-right: 10px;
435
+ }
436
+
437
+ .#{$base-class-name}__submit-form[data-state="notFound"],
438
+ .#{$base-class-name}__submit-form[data-state="error"] {
439
+ .#{$base-class-name}__state-report {
440
+ align-items: flex-start;
441
+ }
442
+ }
443
+ }
444
+
445
+ &_image-align_top,
446
+ &_without-image {
447
+ .#{$base-class-name}__submit-form {
448
+ min-width: 420px;
449
+ }
450
+ }
451
+
452
+ &_image-align_top {
453
+ .#{$base-class-name}__main-content {
454
+ padding-bottom: 6em;
455
+ }
456
+ }
457
+
458
+ &_image-align_right {
459
+ .#{$base-class-name}__img {
460
+ margin-left: 3em;
461
+ order: 1;
462
+ }
463
+ }
464
+
465
+ &_image-align_left {
466
+ .#{$base-class-name}__img {
467
+ margin-right: 3em;
468
+ }
469
+ }
470
+ }
471
+ }