ilibras-widget 1.5.0 → 1.5.3
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/CHANGELOG.md +82 -0
- package/dist/ilibras-widget.cjs +133 -128
- package/dist/ilibras-widget.js +133 -128
- package/dist/ilibras-widget.mjs +133 -128
- package/package.json +1 -1
package/dist/ilibras-widget.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iLibras Widget v1.5.
|
|
2
|
+
* iLibras Widget v1.5.3
|
|
3
3
|
* https://github.com/Dimendes-Solucoes/Ilibras_widget
|
|
4
4
|
* Licença MIT
|
|
5
5
|
*
|
|
@@ -53,28 +53,28 @@ var CSS = `/**
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/* Posicionamento */
|
|
56
|
-
.ilibras-widget-bottom-right {
|
|
56
|
+
#ilibras-widget-container.ilibras-widget-bottom-right {
|
|
57
57
|
bottom: 30px;
|
|
58
58
|
right: 30px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.ilibras-widget-bottom-left {
|
|
61
|
+
#ilibras-widget-container.ilibras-widget-bottom-left {
|
|
62
62
|
bottom: 30px;
|
|
63
63
|
left: 30px;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.ilibras-widget-top-right {
|
|
66
|
+
#ilibras-widget-container.ilibras-widget-top-right {
|
|
67
67
|
top: 30px;
|
|
68
68
|
right: 30px;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.ilibras-widget-top-left {
|
|
71
|
+
#ilibras-widget-container.ilibras-widget-top-left {
|
|
72
72
|
top: 30px;
|
|
73
73
|
left: 30px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/* Botão flutuante (apenas ícone) */
|
|
77
|
-
.ilibras-widget-button {
|
|
77
|
+
#ilibras-widget-container .ilibras-widget-button {
|
|
78
78
|
position: relative;
|
|
79
79
|
border: none;
|
|
80
80
|
font: inherit;
|
|
@@ -96,23 +96,23 @@ var CSS = `/**
|
|
|
96
96
|
z-index: 10001;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.ilibras-widget-button img {
|
|
99
|
+
#ilibras-widget-container .ilibras-widget-button img {
|
|
100
100
|
width: 64px;
|
|
101
101
|
height: 64px;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.ilibras-widget-button:hover,
|
|
105
|
-
.ilibras-widget-button:active {
|
|
104
|
+
#ilibras-widget-container .ilibras-widget-button:hover,
|
|
105
|
+
#ilibras-widget-container .ilibras-widget-button:active {
|
|
106
106
|
transform: none;
|
|
107
107
|
box-shadow: none;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.ilibras-widget-button svg {
|
|
110
|
+
#ilibras-widget-container .ilibras-widget-button svg {
|
|
111
111
|
filter: none;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/* Badge de notificação */
|
|
115
|
-
.ilibras-widget-badge {
|
|
115
|
+
#ilibras-widget-container .ilibras-widget-badge {
|
|
116
116
|
position: absolute;
|
|
117
117
|
top: -2px;
|
|
118
118
|
right: -2px;
|
|
@@ -131,7 +131,8 @@ var CSS = `/**
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
@keyframes ilibras-pulse {
|
|
134
|
-
0%,
|
|
134
|
+
0%,
|
|
135
|
+
100% {
|
|
135
136
|
transform: scale(1);
|
|
136
137
|
}
|
|
137
138
|
50% {
|
|
@@ -140,7 +141,7 @@ var CSS = `/**
|
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
/* Modal */
|
|
143
|
-
.ilibras-widget-modal {
|
|
144
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
144
145
|
position: fixed;
|
|
145
146
|
/* responsivo ao tamanho do monitor */
|
|
146
147
|
width: clamp(320px, 26vw, 480px);
|
|
@@ -157,34 +158,34 @@ var CSS = `/**
|
|
|
157
158
|
overflow: hidden;
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
.ilibras-widget-modal-open {
|
|
161
|
+
#ilibras-widget-container .ilibras-widget-modal-open {
|
|
161
162
|
opacity: 1;
|
|
162
163
|
visibility: visible;
|
|
163
164
|
transform: translateY(0) scale(1);
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
/* Posicionamento do modal baseado na posição do botão */
|
|
167
|
-
.ilibras-widget-bottom-right .ilibras-widget-modal,
|
|
168
|
-
.ilibras-widget-bottom-left .ilibras-widget-modal {
|
|
168
|
+
#ilibras-widget-container.ilibras-widget-bottom-right .ilibras-widget-modal,
|
|
169
|
+
#ilibras-widget-container.ilibras-widget-bottom-left .ilibras-widget-modal {
|
|
169
170
|
bottom: 105px;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
.ilibras-widget-top-right .ilibras-widget-modal,
|
|
173
|
-
.ilibras-widget-top-left .ilibras-widget-modal {
|
|
173
|
+
#ilibras-widget-container.ilibras-widget-top-right .ilibras-widget-modal,
|
|
174
|
+
#ilibras-widget-container.ilibras-widget-top-left .ilibras-widget-modal {
|
|
174
175
|
top: 105px;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
.ilibras-widget-bottom-right .ilibras-widget-modal,
|
|
178
|
-
.ilibras-widget-top-right .ilibras-widget-modal {
|
|
178
|
+
#ilibras-widget-container.ilibras-widget-bottom-right .ilibras-widget-modal,
|
|
179
|
+
#ilibras-widget-container.ilibras-widget-top-right .ilibras-widget-modal {
|
|
179
180
|
right: 0;
|
|
180
181
|
}
|
|
181
182
|
|
|
182
|
-
.ilibras-widget-bottom-left .ilibras-widget-modal,
|
|
183
|
-
.ilibras-widget-top-left .ilibras-widget-modal {
|
|
183
|
+
#ilibras-widget-container.ilibras-widget-bottom-left .ilibras-widget-modal,
|
|
184
|
+
#ilibras-widget-container.ilibras-widget-top-left .ilibras-widget-modal {
|
|
184
185
|
left: 0;
|
|
185
186
|
}
|
|
186
187
|
|
|
187
|
-
.ilibras-widget-header {
|
|
188
|
+
#ilibras-widget-container .ilibras-widget-header {
|
|
188
189
|
background: white;
|
|
189
190
|
padding: 14px 24px;
|
|
190
191
|
display: flex;
|
|
@@ -195,18 +196,18 @@ var CSS = `/**
|
|
|
195
196
|
border-bottom: 2px solid rgba(53,122,189,0.06);
|
|
196
197
|
}
|
|
197
198
|
|
|
198
|
-
.ilibras-widget-header-content {
|
|
199
|
+
#ilibras-widget-container .ilibras-widget-header-content {
|
|
199
200
|
display: flex;
|
|
200
201
|
align-items: center;
|
|
201
202
|
gap: 16px;
|
|
202
203
|
flex: 1;
|
|
203
204
|
}
|
|
204
205
|
|
|
205
|
-
.ilibras-widget-logo {
|
|
206
|
+
#ilibras-widget-container .ilibras-widget-logo {
|
|
206
207
|
display: none !important;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
|
-
.ilibras-widget-title {
|
|
210
|
+
#ilibras-widget-container .ilibras-widget-title {
|
|
210
211
|
padding-left: 0;
|
|
211
212
|
font-size: 17px;
|
|
212
213
|
font-weight: 700;
|
|
@@ -214,7 +215,7 @@ var CSS = `/**
|
|
|
214
215
|
color: #1f4f7a;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
|
-
.ilibras-widget-close {
|
|
218
|
+
#ilibras-widget-container .ilibras-widget-close {
|
|
218
219
|
background: transparent;
|
|
219
220
|
border: none;
|
|
220
221
|
cursor: pointer;
|
|
@@ -229,22 +230,22 @@ var CSS = `/**
|
|
|
229
230
|
flex-shrink: 0;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
|
-
.ilibras-widget-close:hover {
|
|
233
|
+
#ilibras-widget-container .ilibras-widget-close:hover {
|
|
233
234
|
background: rgba(53,122,189,0.08);
|
|
234
235
|
transform: translateY(-1px);
|
|
235
236
|
}
|
|
236
237
|
|
|
237
|
-
.ilibras-widget-close:active {
|
|
238
|
+
#ilibras-widget-container .ilibras-widget-close:active {
|
|
238
239
|
background: rgba(53,122,189,0.12);
|
|
239
240
|
}
|
|
240
241
|
|
|
241
242
|
/* Body do modal */
|
|
242
|
-
.ilibras-widget-body {
|
|
243
|
+
#ilibras-widget-container .ilibras-widget-body {
|
|
243
244
|
padding: 20px !important;
|
|
244
245
|
background: white; /* fundo branco do widget */
|
|
245
246
|
}
|
|
246
247
|
|
|
247
|
-
.ilibras-widget-message {
|
|
248
|
+
#ilibras-widget-container .ilibras-widget-message {
|
|
248
249
|
background: rgba(74,144,226,0.06); /* leve tom da cor da logo */
|
|
249
250
|
border-radius: 14px;
|
|
250
251
|
border: 1px solid rgba(74,144,226,0.08);
|
|
@@ -255,27 +256,27 @@ var CSS = `/**
|
|
|
255
256
|
}
|
|
256
257
|
|
|
257
258
|
/* Formulário */
|
|
258
|
-
.ilibras-widget-form {
|
|
259
|
+
#ilibras-widget-container .ilibras-widget-form {
|
|
259
260
|
display: flex;
|
|
260
261
|
flex-direction: column;
|
|
261
262
|
gap: 20px;
|
|
262
263
|
}
|
|
263
264
|
|
|
264
|
-
.ilibras-widget-form-group {
|
|
265
|
+
#ilibras-widget-container .ilibras-widget-form-group {
|
|
265
266
|
display: flex;
|
|
266
267
|
flex-direction: column;
|
|
267
268
|
gap: 8px;
|
|
268
269
|
}
|
|
269
270
|
|
|
270
|
-
.ilibras-widget-form-group label {
|
|
271
|
+
#ilibras-widget-container .ilibras-widget-form-group label {
|
|
271
272
|
font-size: 13px;
|
|
272
273
|
font-weight: 500;
|
|
273
274
|
color: #495057;
|
|
274
275
|
padding-left: 4px;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
|
-
.ilibras-widget-form-group input[type="text"],
|
|
278
|
-
.ilibras-widget-form-group input[type="tel"] {
|
|
278
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="text"],
|
|
279
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"] {
|
|
279
280
|
background: #ffffff;
|
|
280
281
|
border: 1px solid rgba(20,30,45,0.06);
|
|
281
282
|
padding: 12px 14px !important;
|
|
@@ -283,21 +284,21 @@ var CSS = `/**
|
|
|
283
284
|
border-radius: 8px;
|
|
284
285
|
}
|
|
285
286
|
|
|
286
|
-
.ilibras-widget-form-group input[type="text"]:focus,
|
|
287
|
-
.ilibras-widget-form-group input[type="tel"]:focus {
|
|
287
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="text"]:focus,
|
|
288
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"]:focus {
|
|
288
289
|
background: white;
|
|
289
290
|
border-color: #357ABD;
|
|
290
291
|
box-shadow: 0 6px 18px rgba(53,122,189,0.08);
|
|
291
292
|
outline: none;
|
|
292
293
|
}
|
|
293
294
|
|
|
294
|
-
.ilibras-widget-form-group input[type="text"]::placeholder,
|
|
295
|
-
.ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
295
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="text"]::placeholder,
|
|
296
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
296
297
|
color: #6c757d;
|
|
297
298
|
}
|
|
298
299
|
|
|
299
300
|
/* Checkbox customizado */
|
|
300
|
-
.ilibras-widget-checkbox-label {
|
|
301
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label {
|
|
301
302
|
display: flex;
|
|
302
303
|
align-items: flex-start;
|
|
303
304
|
gap: 10px;
|
|
@@ -309,7 +310,7 @@ var CSS = `/**
|
|
|
309
310
|
line-height: 1.4;
|
|
310
311
|
}
|
|
311
312
|
|
|
312
|
-
.ilibras-widget-checkbox-label input[type="checkbox"] {
|
|
313
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label input[type="checkbox"] {
|
|
313
314
|
margin-top: 2px;
|
|
314
315
|
width: 18px;
|
|
315
316
|
height: 18px;
|
|
@@ -317,13 +318,13 @@ var CSS = `/**
|
|
|
317
318
|
accent-color: #357ABD;
|
|
318
319
|
}
|
|
319
320
|
|
|
320
|
-
.ilibras-widget-checkbox-label span {
|
|
321
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label span {
|
|
321
322
|
flex: 1;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
/* Botão de submit */
|
|
325
326
|
|
|
326
|
-
.ilibras-widget-submit {
|
|
327
|
+
#ilibras-widget-container .ilibras-widget-submit {
|
|
327
328
|
padding: 12px 14px !important;
|
|
328
329
|
border-radius: 10px;
|
|
329
330
|
font-size: 15px;
|
|
@@ -336,17 +337,17 @@ var CSS = `/**
|
|
|
336
337
|
transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.12s;
|
|
337
338
|
}
|
|
338
339
|
|
|
339
|
-
.ilibras-widget-submit:hover {
|
|
340
|
+
#ilibras-widget-container .ilibras-widget-submit:hover {
|
|
340
341
|
transform: translateY(-2px);
|
|
341
342
|
box-shadow: 0 8px 22px rgba(53,122,189,0.18);
|
|
342
343
|
}
|
|
343
344
|
|
|
344
|
-
.ilibras-widget-submit:active {
|
|
345
|
+
#ilibras-widget-container .ilibras-widget-submit:active {
|
|
345
346
|
transform: translateY(0);
|
|
346
347
|
box-shadow: 0 4px 10px rgba(53,122,189,0.12);
|
|
347
348
|
}
|
|
348
349
|
|
|
349
|
-
.ilibras-widget-submit:disabled {
|
|
350
|
+
#ilibras-widget-container .ilibras-widget-submit:disabled {
|
|
350
351
|
opacity: 0.6;
|
|
351
352
|
cursor: not-allowed;
|
|
352
353
|
transform: none;
|
|
@@ -355,7 +356,7 @@ var CSS = `/**
|
|
|
355
356
|
/* Agendar é a segunda escolha, não a concorrente: contorno em vez de preenchido,
|
|
356
357
|
para a hierarquia entre "agora" e "depois" ficar visível antes da leitura. O
|
|
357
358
|
form tem gap de 20px; as margens negativas colam o botão na dica que o explica. */
|
|
358
|
-
.ilibras-widget-agendar {
|
|
359
|
+
#ilibras-widget-container .ilibras-widget-agendar {
|
|
359
360
|
padding: 11px 14px !important;
|
|
360
361
|
border-radius: 10px;
|
|
361
362
|
font-size: 15px;
|
|
@@ -369,73 +370,73 @@ var CSS = `/**
|
|
|
369
370
|
margin-top: -8px;
|
|
370
371
|
}
|
|
371
372
|
|
|
372
|
-
.ilibras-widget-agendar:hover:not(:disabled) {
|
|
373
|
+
#ilibras-widget-container .ilibras-widget-agendar:hover:not(:disabled) {
|
|
373
374
|
background: #F2F7FD;
|
|
374
375
|
border-color: #357ABD;
|
|
375
376
|
}
|
|
376
377
|
|
|
377
|
-
.ilibras-widget-agendar:disabled {
|
|
378
|
+
#ilibras-widget-container .ilibras-widget-agendar:disabled {
|
|
378
379
|
opacity: 0.6;
|
|
379
380
|
cursor: not-allowed;
|
|
380
381
|
}
|
|
381
382
|
|
|
382
|
-
.ilibras-widget-dica-agendar {
|
|
383
|
+
#ilibras-widget-container .ilibras-widget-dica-agendar {
|
|
383
384
|
margin-top: -14px;
|
|
384
385
|
text-align: center;
|
|
385
386
|
}
|
|
386
387
|
|
|
387
388
|
/* Responsividade */
|
|
388
389
|
@media (max-width: 480px) {
|
|
389
|
-
.ilibras-widget-modal {
|
|
390
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
390
391
|
width: calc(100vw - 40px);
|
|
391
392
|
max-width: 100%;
|
|
392
393
|
}
|
|
393
394
|
|
|
394
|
-
.ilibras-widget-bottom-right,
|
|
395
|
-
.ilibras-widget-bottom-left {
|
|
395
|
+
#ilibras-widget-container.ilibras-widget-bottom-right,
|
|
396
|
+
#ilibras-widget-container.ilibras-widget-bottom-left {
|
|
396
397
|
bottom: 20px;
|
|
397
398
|
left: 20px !important;
|
|
398
399
|
right: 20px !important;
|
|
399
400
|
}
|
|
400
401
|
|
|
401
|
-
.ilibras-widget-top-right,
|
|
402
|
-
.ilibras-widget-top-left {
|
|
402
|
+
#ilibras-widget-container.ilibras-widget-top-right,
|
|
403
|
+
#ilibras-widget-container.ilibras-widget-top-left {
|
|
403
404
|
top: 20px;
|
|
404
405
|
left: 20px !important;
|
|
405
406
|
right: 20px !important;
|
|
406
407
|
}
|
|
407
408
|
|
|
408
|
-
.ilibras-widget-button {
|
|
409
|
+
#ilibras-widget-container .ilibras-widget-button {
|
|
409
410
|
width: 64px;
|
|
410
411
|
height: 64px;
|
|
411
412
|
}
|
|
412
413
|
|
|
413
|
-
.ilibras-widget-button svg {
|
|
414
|
+
#ilibras-widget-container .ilibras-widget-button svg {
|
|
414
415
|
width: 32px;
|
|
415
416
|
height: 32px;
|
|
416
417
|
}
|
|
417
418
|
|
|
418
|
-
.ilibras-widget-modal {
|
|
419
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
419
420
|
bottom: 94px !important;
|
|
420
421
|
right: 0 !important;
|
|
421
422
|
left: 0 !important;
|
|
422
423
|
margin: 0 20px;
|
|
423
424
|
}
|
|
424
425
|
|
|
425
|
-
.ilibras-widget-body {
|
|
426
|
+
#ilibras-widget-container .ilibras-widget-body {
|
|
426
427
|
padding: 18px 16px;
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
430
|
|
|
430
431
|
@media (min-width: 1600px) {
|
|
431
|
-
.ilibras-widget-modal {
|
|
432
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
432
433
|
width: clamp(360px, 20vw, 560px);
|
|
433
434
|
}
|
|
434
435
|
}
|
|
435
436
|
|
|
436
|
-
.ilibras-widget-button:focus-visible,
|
|
437
|
-
.ilibras-widget-close:focus-visible,
|
|
438
|
-
.ilibras-widget-submit:focus-visible {
|
|
437
|
+
#ilibras-widget-container .ilibras-widget-button:focus-visible,
|
|
438
|
+
#ilibras-widget-container .ilibras-widget-close:focus-visible,
|
|
439
|
+
#ilibras-widget-container .ilibras-widget-submit:focus-visible {
|
|
439
440
|
outline: 3px solid rgba(53,122,189,0.18);
|
|
440
441
|
outline-offset: 3px;
|
|
441
442
|
}
|
|
@@ -459,45 +460,45 @@ var CSS = `/**
|
|
|
459
460
|
/* Estados de erro: ver o bloco de acessibilidade no fim do arquivo. */
|
|
460
461
|
|
|
461
462
|
/* Accessibilidade */
|
|
462
|
-
.ilibras-widget-button:focus-visible,
|
|
463
|
-
.ilibras-widget-close:focus-visible,
|
|
464
|
-
.ilibras-widget-submit:focus-visible {
|
|
463
|
+
#ilibras-widget-container .ilibras-widget-button:focus-visible,
|
|
464
|
+
#ilibras-widget-container .ilibras-widget-close:focus-visible,
|
|
465
|
+
#ilibras-widget-container .ilibras-widget-submit:focus-visible {
|
|
465
466
|
outline: 3px solid #4A90E2;
|
|
466
467
|
outline-offset: 2px;
|
|
467
468
|
}
|
|
468
469
|
|
|
469
470
|
/* Tema escuro (opcional) */
|
|
470
471
|
@media (prefers-color-scheme: dark) {
|
|
471
|
-
.ilibras-widget-modal {
|
|
472
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
472
473
|
background: #1e1e1e;
|
|
473
474
|
}
|
|
474
475
|
|
|
475
|
-
.ilibras-widget-body {
|
|
476
|
+
#ilibras-widget-container .ilibras-widget-body {
|
|
476
477
|
background: #2d2d2d;
|
|
477
478
|
}
|
|
478
479
|
|
|
479
|
-
.ilibras-widget-message {
|
|
480
|
+
#ilibras-widget-container .ilibras-widget-message {
|
|
480
481
|
background: #363636;
|
|
481
482
|
color: #e0e0e0;
|
|
482
483
|
}
|
|
483
484
|
|
|
484
|
-
.ilibras-widget-form-group label {
|
|
485
|
+
#ilibras-widget-container .ilibras-widget-form-group label {
|
|
485
486
|
color: #b0b0b0;
|
|
486
487
|
}
|
|
487
488
|
|
|
488
|
-
.ilibras-widget-form-group input[type="text"],
|
|
489
|
-
.ilibras-widget-form-group input[type="tel"] {
|
|
489
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="text"],
|
|
490
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"] {
|
|
490
491
|
background: #363636;
|
|
491
492
|
border-color: #4a4a4a;
|
|
492
493
|
color: #e0e0e0;
|
|
493
494
|
}
|
|
494
495
|
|
|
495
|
-
.ilibras-widget-form-group input[type="text"]::placeholder,
|
|
496
|
-
.ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
496
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="text"]::placeholder,
|
|
497
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
497
498
|
color: #6c6c6c;
|
|
498
499
|
}
|
|
499
500
|
|
|
500
|
-
.ilibras-widget-checkbox-label {
|
|
501
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label {
|
|
501
502
|
color: #b0b0b0;
|
|
502
503
|
}
|
|
503
504
|
}
|
|
@@ -511,7 +512,7 @@ var CSS = `/**
|
|
|
511
512
|
|
|
512
513
|
/* Visível só para leitor de tela. Não usa display:none — o que some da tela
|
|
513
514
|
dessa forma some também da leitura. */
|
|
514
|
-
.ilibras-widget-sr-only {
|
|
515
|
+
#ilibras-widget-container .ilibras-widget-sr-only {
|
|
515
516
|
position: absolute !important;
|
|
516
517
|
width: 1px;
|
|
517
518
|
height: 1px;
|
|
@@ -525,7 +526,7 @@ var CSS = `/**
|
|
|
525
526
|
|
|
526
527
|
/* Armadilha do anti-robô: fora da tela e fora da leitura, mas presente no DOM
|
|
527
528
|
(bot que ignora display:none continua encontrando e preenchendo). */
|
|
528
|
-
.ilibras-widget-hp {
|
|
529
|
+
#ilibras-widget-container .ilibras-widget-hp {
|
|
529
530
|
position: absolute !important;
|
|
530
531
|
left: -9999px;
|
|
531
532
|
top: auto;
|
|
@@ -536,23 +537,23 @@ var CSS = `/**
|
|
|
536
537
|
|
|
537
538
|
/* O diálogo fechado não pode receber foco: com hidden, nada dentro dele entra
|
|
538
539
|
na ordem de tabulação. */
|
|
539
|
-
.ilibras-widget-modal[hidden] {
|
|
540
|
+
#ilibras-widget-container .ilibras-widget-modal[hidden] {
|
|
540
541
|
display: none !important;
|
|
541
542
|
}
|
|
542
543
|
|
|
543
|
-
.ilibras-widget-legenda {
|
|
544
|
+
#ilibras-widget-container .ilibras-widget-legenda {
|
|
544
545
|
font-size: 12px;
|
|
545
546
|
color: #495057;
|
|
546
547
|
margin: 0 0 -8px 4px;
|
|
547
548
|
}
|
|
548
549
|
|
|
549
|
-
.ilibras-widget-dica {
|
|
550
|
+
#ilibras-widget-container .ilibras-widget-dica {
|
|
550
551
|
font-size: 12px;
|
|
551
552
|
color: #495057;
|
|
552
553
|
padding-left: 4px;
|
|
553
554
|
}
|
|
554
555
|
|
|
555
|
-
.ilibras-widget-erro {
|
|
556
|
+
#ilibras-widget-container .ilibras-widget-erro {
|
|
556
557
|
font-size: 13px;
|
|
557
558
|
font-weight: 500;
|
|
558
559
|
color: #b02a37;
|
|
@@ -564,23 +565,23 @@ var CSS = `/**
|
|
|
564
565
|
|
|
565
566
|
/* A cor não pode ser o único sinal de erro: quem não distingue vermelho
|
|
566
567
|
precisa do símbolo e do texto. */
|
|
567
|
-
.ilibras-widget-erro::before {
|
|
568
|
+
#ilibras-widget-container .ilibras-widget-erro::before {
|
|
568
569
|
content: "\\26A0";
|
|
569
570
|
font-size: 13px;
|
|
570
571
|
line-height: 1.3;
|
|
571
572
|
}
|
|
572
573
|
|
|
573
|
-
.ilibras-widget-erro[hidden] {
|
|
574
|
+
#ilibras-widget-container .ilibras-widget-erro[hidden] {
|
|
574
575
|
display: none;
|
|
575
576
|
}
|
|
576
577
|
|
|
577
|
-
.ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
578
|
+
#ilibras-widget-container .ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
578
579
|
border-color: #b02a37;
|
|
579
580
|
border-width: 2px;
|
|
580
581
|
}
|
|
581
582
|
|
|
582
583
|
/* Aviso de falha de serviço / limite de uso. */
|
|
583
|
-
.ilibras-widget-aviso {
|
|
584
|
+
#ilibras-widget-container .ilibras-widget-aviso {
|
|
584
585
|
background: #fdf2f2;
|
|
585
586
|
border: 1px solid #f0c2c2;
|
|
586
587
|
border-left: 4px solid #b02a37;
|
|
@@ -592,47 +593,47 @@ var CSS = `/**
|
|
|
592
593
|
line-height: 1.5;
|
|
593
594
|
}
|
|
594
595
|
|
|
595
|
-
.ilibras-widget-aviso[hidden] {
|
|
596
|
+
#ilibras-widget-container .ilibras-widget-aviso[hidden] {
|
|
596
597
|
display: none;
|
|
597
598
|
}
|
|
598
599
|
|
|
599
|
-
.ilibras-widget-aviso:focus-visible {
|
|
600
|
+
#ilibras-widget-container .ilibras-widget-aviso:focus-visible {
|
|
600
601
|
outline: 3px solid #b02a37;
|
|
601
602
|
outline-offset: 2px;
|
|
602
603
|
}
|
|
603
604
|
|
|
604
|
-
.ilibras-widget-aviso-texto {
|
|
605
|
+
#ilibras-widget-container .ilibras-widget-aviso-texto {
|
|
605
606
|
margin: 0;
|
|
606
607
|
}
|
|
607
608
|
|
|
608
609
|
/* Plano de contingência: aparece quando a API não responde. */
|
|
609
|
-
.ilibras-widget-fallback {
|
|
610
|
+
#ilibras-widget-container .ilibras-widget-fallback {
|
|
610
611
|
margin-top: 10px;
|
|
611
612
|
padding-top: 10px;
|
|
612
613
|
border-top: 1px solid #f0c2c2;
|
|
613
614
|
font-size: 13px;
|
|
614
615
|
}
|
|
615
616
|
|
|
616
|
-
.ilibras-widget-fallback p {
|
|
617
|
+
#ilibras-widget-container .ilibras-widget-fallback p {
|
|
617
618
|
margin: 0 0 6px;
|
|
618
619
|
}
|
|
619
620
|
|
|
620
|
-
.ilibras-widget-fallback ul {
|
|
621
|
+
#ilibras-widget-container .ilibras-widget-fallback ul {
|
|
621
622
|
margin: 0;
|
|
622
623
|
padding-left: 18px;
|
|
623
624
|
list-style: disc;
|
|
624
625
|
}
|
|
625
626
|
|
|
626
|
-
.ilibras-widget-fallback li {
|
|
627
|
+
#ilibras-widget-container .ilibras-widget-fallback li {
|
|
627
628
|
margin: 2px 0;
|
|
628
629
|
}
|
|
629
630
|
|
|
630
|
-
.ilibras-widget-fallback a {
|
|
631
|
+
#ilibras-widget-container .ilibras-widget-fallback a {
|
|
631
632
|
color: #1f4f7a;
|
|
632
633
|
font-weight: 600;
|
|
633
634
|
}
|
|
634
635
|
|
|
635
|
-
.ilibras-widget-status {
|
|
636
|
+
#ilibras-widget-container .ilibras-widget-status {
|
|
636
637
|
font-size: 13px;
|
|
637
638
|
color: #495057;
|
|
638
639
|
margin: 0;
|
|
@@ -641,12 +642,12 @@ var CSS = `/**
|
|
|
641
642
|
|
|
642
643
|
/* Foco visível em tudo que recebe foco, inclusive campos — o :focus original
|
|
643
644
|
trocava a sombra, que some em alto contraste. */
|
|
644
|
-
.ilibras-widget-button:focus-visible,
|
|
645
|
-
.ilibras-widget-close:focus-visible,
|
|
646
|
-
.ilibras-widget-submit:focus-visible,
|
|
647
|
-
.ilibras-widget-form-group input:focus-visible,
|
|
648
|
-
.ilibras-widget-checkbox-label input:focus-visible,
|
|
649
|
-
.ilibras-widget-fallback a:focus-visible {
|
|
645
|
+
#ilibras-widget-container .ilibras-widget-button:focus-visible,
|
|
646
|
+
#ilibras-widget-container .ilibras-widget-close:focus-visible,
|
|
647
|
+
#ilibras-widget-container .ilibras-widget-submit:focus-visible,
|
|
648
|
+
#ilibras-widget-container .ilibras-widget-form-group input:focus-visible,
|
|
649
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label input:focus-visible,
|
|
650
|
+
#ilibras-widget-container .ilibras-widget-fallback a:focus-visible {
|
|
650
651
|
outline: 3px solid #1f4f7a;
|
|
651
652
|
outline-offset: 2px;
|
|
652
653
|
}
|
|
@@ -654,17 +655,17 @@ var CSS = `/**
|
|
|
654
655
|
/* Windows em alto contraste remove cor de fundo e borda sutil: sem isto o
|
|
655
656
|
campo e o botão ficam sem contorno. */
|
|
656
657
|
@media (forced-colors: active) {
|
|
657
|
-
.ilibras-widget-modal,
|
|
658
|
-
.ilibras-widget-form-group input,
|
|
659
|
-
.ilibras-widget-submit,
|
|
660
|
-
.ilibras-widget-aviso {
|
|
658
|
+
#ilibras-widget-container .ilibras-widget-modal,
|
|
659
|
+
#ilibras-widget-container .ilibras-widget-form-group input,
|
|
660
|
+
#ilibras-widget-container .ilibras-widget-submit,
|
|
661
|
+
#ilibras-widget-container .ilibras-widget-aviso {
|
|
661
662
|
border: 1px solid CanvasText;
|
|
662
663
|
}
|
|
663
664
|
|
|
664
|
-
.ilibras-widget-button:focus-visible,
|
|
665
|
-
.ilibras-widget-close:focus-visible,
|
|
666
|
-
.ilibras-widget-submit:focus-visible,
|
|
667
|
-
.ilibras-widget-form-group input:focus-visible {
|
|
665
|
+
#ilibras-widget-container .ilibras-widget-button:focus-visible,
|
|
666
|
+
#ilibras-widget-container .ilibras-widget-close:focus-visible,
|
|
667
|
+
#ilibras-widget-container .ilibras-widget-submit:focus-visible,
|
|
668
|
+
#ilibras-widget-container .ilibras-widget-form-group input:focus-visible {
|
|
668
669
|
outline: 3px solid Highlight;
|
|
669
670
|
}
|
|
670
671
|
}
|
|
@@ -673,61 +674,61 @@ var CSS = `/**
|
|
|
673
674
|
das pessoas com sensibilidade vestibular, isso causa mal-estar. */
|
|
674
675
|
@media (prefers-reduced-motion: reduce) {
|
|
675
676
|
#ilibras-widget-container,
|
|
676
|
-
.ilibras-widget-modal,
|
|
677
|
-
.ilibras-widget-submit,
|
|
678
|
-
.ilibras-widget-close,
|
|
679
|
-
.ilibras-widget-badge {
|
|
677
|
+
#ilibras-widget-container .ilibras-widget-modal,
|
|
678
|
+
#ilibras-widget-container .ilibras-widget-submit,
|
|
679
|
+
#ilibras-widget-container .ilibras-widget-close,
|
|
680
|
+
#ilibras-widget-container .ilibras-widget-badge {
|
|
680
681
|
animation: none !important;
|
|
681
682
|
transition: none !important;
|
|
682
683
|
}
|
|
683
684
|
|
|
684
|
-
.ilibras-widget-submit:hover,
|
|
685
|
-
.ilibras-widget-close:hover {
|
|
685
|
+
#ilibras-widget-container .ilibras-widget-submit:hover,
|
|
686
|
+
#ilibras-widget-container .ilibras-widget-close:hover {
|
|
686
687
|
transform: none;
|
|
687
688
|
}
|
|
688
689
|
}
|
|
689
690
|
|
|
690
691
|
@media (prefers-color-scheme: dark) {
|
|
691
|
-
.ilibras-widget-legenda,
|
|
692
|
-
.ilibras-widget-dica,
|
|
693
|
-
.ilibras-widget-status {
|
|
692
|
+
#ilibras-widget-container .ilibras-widget-legenda,
|
|
693
|
+
#ilibras-widget-container .ilibras-widget-dica,
|
|
694
|
+
#ilibras-widget-container .ilibras-widget-status {
|
|
694
695
|
color: #c9c9c9;
|
|
695
696
|
}
|
|
696
697
|
|
|
697
|
-
.ilibras-widget-erro {
|
|
698
|
+
#ilibras-widget-container .ilibras-widget-erro {
|
|
698
699
|
color: #ff9aa2;
|
|
699
700
|
}
|
|
700
701
|
|
|
701
|
-
.ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
702
|
+
#ilibras-widget-container .ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
702
703
|
border-color: #ff9aa2;
|
|
703
704
|
}
|
|
704
705
|
|
|
705
|
-
.ilibras-widget-aviso {
|
|
706
|
+
#ilibras-widget-container .ilibras-widget-aviso {
|
|
706
707
|
background: #3a2224;
|
|
707
708
|
border-color: #6b3a3f;
|
|
708
709
|
border-left-color: #ff9aa2;
|
|
709
710
|
color: #ffd9dc;
|
|
710
711
|
}
|
|
711
712
|
|
|
712
|
-
.ilibras-widget-fallback {
|
|
713
|
+
#ilibras-widget-container .ilibras-widget-fallback {
|
|
713
714
|
border-top-color: #6b3a3f;
|
|
714
715
|
}
|
|
715
716
|
|
|
716
|
-
.ilibras-widget-fallback a {
|
|
717
|
+
#ilibras-widget-container .ilibras-widget-fallback a {
|
|
717
718
|
color: #9ecbff;
|
|
718
719
|
}
|
|
719
720
|
|
|
720
|
-
.ilibras-widget-title {
|
|
721
|
+
#ilibras-widget-container .ilibras-widget-title {
|
|
721
722
|
color: #e6f0f8;
|
|
722
723
|
}
|
|
723
724
|
|
|
724
|
-
.ilibras-widget-header {
|
|
725
|
+
#ilibras-widget-container .ilibras-widget-header {
|
|
725
726
|
background: #1e1e1e;
|
|
726
727
|
border-left-color: #333;
|
|
727
728
|
border-bottom-color: #333;
|
|
728
729
|
}
|
|
729
730
|
|
|
730
|
-
.ilibras-widget-close {
|
|
731
|
+
#ilibras-widget-container .ilibras-widget-close {
|
|
731
732
|
color: #e0e0e0;
|
|
732
733
|
}
|
|
733
734
|
}
|
|
@@ -1131,8 +1132,12 @@ var ILibrasWidget = class {
|
|
|
1131
1132
|
const destino = resultado.link_fila || resultado.link || resultado.url || resultado.redirect;
|
|
1132
1133
|
if (!destino) throw new FalhaDeServico("resposta_inesperada");
|
|
1133
1134
|
this.anunciar(modo === "agendamento" ? "Cadastro feito. Abrindo o calendário para escolher data e horário." : "Atendimento criado. Abrindo a sala de atendimento.");
|
|
1134
|
-
const aba = window.open(destino, "_blank"
|
|
1135
|
-
if (
|
|
1135
|
+
const aba = window.open(destino, "_blank");
|
|
1136
|
+
if (aba) {
|
|
1137
|
+
aba.opener = null;
|
|
1138
|
+
} else {
|
|
1139
|
+
window.location.assign(destino);
|
|
1140
|
+
}
|
|
1136
1141
|
this.form.reset();
|
|
1137
1142
|
this.closeWidget();
|
|
1138
1143
|
} catch (erro) {
|