@tiddh/brave-vue 1.9.21 → 1.9.24
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/brave-vue.esm.js +166 -65
- package/dist/brave-vue.min.js +1 -1
- package/dist/brave-vue.ssr.js +183 -82
- package/package.json +1 -2
- package/src/components/Avatar/Avatar.vue +18 -0
- package/src/components/Avatar/elements/CustomizationPanel.vue +9 -0
- package/src/components/Avatar/elements/CustomizationView.vue +28 -0
- package/src/components/Modal/Modal.vue +388 -371
- package/src/components/Preview/Preview.vue +971 -933
- package/src/components/Preview/PreviewTools.vue +2148 -1164
- package/src/components/Preview/PreviewWithTools.vue +252 -248
|
@@ -1,943 +1,981 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
2
|
+
<div class="flipbook-container">
|
|
3
|
+
<div class="loading-box" v-if="isLoading && loader">
|
|
4
|
+
<div id="loading"></div>
|
|
5
|
+
<small>{{ lang.justASecond }}</small>
|
|
6
|
+
<h4>{{ lang.loadingPhrase }}</h4>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div
|
|
10
|
+
class="book-centered"
|
|
11
|
+
v-bind:style="centered ? { 'margin-left': isCover + 'px' } : null"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
class="preview-desktop"
|
|
15
|
+
:class="!isLoading ? 'visible' : 'invisible'"
|
|
16
|
+
>
|
|
17
|
+
<div class="flipbook-lib" :class="[formato]" id="flipbook"></div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="controls" v-if="controls">
|
|
22
|
+
<Button
|
|
23
|
+
kind="ghost"
|
|
24
|
+
size="md"
|
|
25
|
+
width="circle"
|
|
26
|
+
class="arrow"
|
|
27
|
+
:disabled="false"
|
|
28
|
+
:inverted="false"
|
|
29
|
+
@click="toTheLeft()"
|
|
30
|
+
>
|
|
31
|
+
<span
|
|
32
|
+
data-v-98f27cc4=""
|
|
33
|
+
data-v-c614f43e=""
|
|
34
|
+
class="icon icon-chevron-left size-lg svg-color"
|
|
35
|
+
>
|
|
36
|
+
<svg
|
|
37
|
+
fill="#12d3db"
|
|
38
|
+
stroke="transparent"
|
|
39
|
+
viewBox="0 0 32 32"
|
|
40
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
41
|
+
>
|
|
42
|
+
<path
|
|
43
|
+
d="M20.0847 20.7019L15.3828 16L20.0847 11.298C20.8651 10.5177 20.8651 9.25557 20.0847 8.47522C19.3044 7.69487 18.0423 7.69487 17.2619 8.47522L11.1419 14.5952C10.3616 15.3756 10.3616 16.6377 11.1419 17.418L17.2619 23.538C18.0423 24.3184 19.3044 24.3184 20.0848 23.5381L20.0908 23.5319C20.8421 22.7608 20.8726 21.4898 20.0847 20.7019Z"
|
|
44
|
+
></path>
|
|
45
|
+
</svg>
|
|
46
|
+
</span>
|
|
47
|
+
<!-- <Icon name="chevron-left" fill="#12d3db" stroke="transparent" /> -->
|
|
48
|
+
</Button>
|
|
49
|
+
|
|
50
|
+
<div class="info-space">
|
|
51
|
+
<div class="current-pages">
|
|
52
|
+
<div
|
|
53
|
+
class="list"
|
|
54
|
+
v-bind:style="{ left: '-' + numberPositions + 'px' }"
|
|
55
|
+
>
|
|
56
|
+
<span v-for="(item, index) in pages" :key="index">{{
|
|
57
|
+
index + 1
|
|
58
|
+
}}</span>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="info-pages">{{ pages }} {{ lang.pages }}</div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<Button
|
|
65
|
+
kind="ghost"
|
|
66
|
+
size="md"
|
|
67
|
+
class="arrow"
|
|
68
|
+
width="circle"
|
|
69
|
+
:disabled="false"
|
|
70
|
+
:inverted="false"
|
|
71
|
+
@click="toTheRight()"
|
|
72
|
+
>
|
|
73
|
+
<span
|
|
74
|
+
data-v-98f27cc4=""
|
|
75
|
+
data-v-c614f43e=""
|
|
76
|
+
class="icon icon-chevron-right size-lg svg-color"
|
|
77
|
+
>
|
|
78
|
+
<svg
|
|
79
|
+
fill="#12d3db"
|
|
80
|
+
stroke="transparent"
|
|
81
|
+
viewBox="0 0 32 32"
|
|
82
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
83
|
+
>
|
|
84
|
+
<path
|
|
85
|
+
fill-rule="evenodd"
|
|
86
|
+
clip-rule="evenodd"
|
|
87
|
+
d="M11.9153 8.47532C11.135 9.25567 11.135 10.5178 11.9153 11.2981L16.6173 16.0001L11.9153 20.702C11.135 21.4823 11.135 22.7444 11.9153 23.5248C12.6957 24.3051 13.9578 24.3051 14.7381 23.5248L20.8582 17.4048C21.6385 16.6244 21.6385 15.3623 20.8582 14.582L14.7381 8.46198C13.9668 7.69064 12.6913 7.69931 11.9153 8.47532Z"
|
|
88
|
+
></path>
|
|
89
|
+
</svg>
|
|
90
|
+
</span>
|
|
91
|
+
<!-- <Icon name="chevron-right" fill="#12d3db" stroke="transparent" /> -->
|
|
92
|
+
</Button>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
60
95
|
</template>
|
|
61
96
|
|
|
62
97
|
<script>
|
|
63
|
-
import Language from "./js/language.json";
|
|
64
|
-
|
|
65
|
-
import jQuery from "jquery";
|
|
66
|
-
import "./js/turn.min.js";
|
|
67
|
-
import "./js/zoom.min.js";
|
|
68
|
-
import Icon from "../Icons/Icon.vue";
|
|
69
|
-
|
|
70
|
-
const $ = jQuery;
|
|
71
|
-
const axios = require("axios");
|
|
72
|
-
|
|
73
|
-
export default {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
};
|
|
98
|
+
import Language from "./js/language.json";
|
|
99
|
+
|
|
100
|
+
import jQuery from "jquery";
|
|
101
|
+
import "./js/turn.min.js";
|
|
102
|
+
import "./js/zoom.min.js";
|
|
103
|
+
import Icon from "../Icons/Icon.vue";
|
|
104
|
+
|
|
105
|
+
const $ = jQuery;
|
|
106
|
+
const axios = require("axios");
|
|
107
|
+
|
|
108
|
+
export default {
|
|
109
|
+
name: "Preview",
|
|
110
|
+
components: { Icon },
|
|
111
|
+
props: {
|
|
112
|
+
/** Character uuid. `ddh5e177ff920f15` */
|
|
113
|
+
uuid: {
|
|
114
|
+
type: String,
|
|
115
|
+
required: true,
|
|
116
|
+
},
|
|
117
|
+
/** Number of pages. `32` */
|
|
118
|
+
pages: {
|
|
119
|
+
type: Number,
|
|
120
|
+
required: true,
|
|
121
|
+
},
|
|
122
|
+
/** Child age. `5` */
|
|
123
|
+
age: {
|
|
124
|
+
type: Number,
|
|
125
|
+
required: true,
|
|
126
|
+
},
|
|
127
|
+
/** Product ID. `109` */
|
|
128
|
+
product_id: {
|
|
129
|
+
type: Number,
|
|
130
|
+
required: true,
|
|
131
|
+
},
|
|
132
|
+
/** The five first pages. `https://builder.dentrodahistoria.com.br/api/builder/getpreview/ddh5e177ff920f15?page=X` */
|
|
133
|
+
preloaded_pages: {
|
|
134
|
+
type: Array,
|
|
135
|
+
required: false,
|
|
136
|
+
},
|
|
137
|
+
/** Download and convert preloaded images to base64. `false` */
|
|
138
|
+
base64: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
required: false,
|
|
141
|
+
},
|
|
142
|
+
typeLanguage: {
|
|
143
|
+
type: String,
|
|
144
|
+
required: false,
|
|
145
|
+
default: "br",
|
|
146
|
+
},
|
|
147
|
+
zoom: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: false,
|
|
150
|
+
},
|
|
151
|
+
/** Show preview controls */
|
|
152
|
+
controls: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: true,
|
|
155
|
+
},
|
|
156
|
+
/** Center book on first and last page */
|
|
157
|
+
centered: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: true,
|
|
160
|
+
},
|
|
161
|
+
/** Show loader */
|
|
162
|
+
loader: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: true,
|
|
165
|
+
},
|
|
166
|
+
apiUrl: {
|
|
167
|
+
type: String,
|
|
168
|
+
required: false,
|
|
169
|
+
default: "https://builder.dentrodahistoria.com.br",
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
data() {
|
|
173
|
+
return {
|
|
174
|
+
formato: "a4",
|
|
175
|
+
bookDimensions: {
|
|
176
|
+
widthPlaceholder: 100,
|
|
177
|
+
width: 800,
|
|
178
|
+
},
|
|
179
|
+
flipbookWidth: null,
|
|
180
|
+
flipbookHeight: null,
|
|
181
|
+
isCover: 0,
|
|
182
|
+
currentPage: 1,
|
|
183
|
+
loadedPages: 5,
|
|
184
|
+
numberPositions: 0,
|
|
185
|
+
sizeSquare: "calc(75vh - 50px)",
|
|
186
|
+
isLoading: true,
|
|
187
|
+
lang: Language[this.typeLanguage],
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
mounted() {
|
|
191
|
+
const self = this;
|
|
192
|
+
|
|
193
|
+
//let age = this.product.tagName.substring(0, 1)
|
|
194
|
+
if (parseInt(this.age) <= 5) {
|
|
195
|
+
this.sizeSquare = "calc(55vh - 50px)";
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (this.age <= 5) {
|
|
199
|
+
this.formato = "square";
|
|
200
|
+
this.bookDimensions.width = 1050;
|
|
201
|
+
} else {
|
|
202
|
+
this.formato = "a4";
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
this.createInitialPages();
|
|
206
|
+
this.initBook();
|
|
207
|
+
|
|
208
|
+
$(function() {
|
|
209
|
+
window.addEventListener("resize", function(e) {
|
|
210
|
+
if ($("#flipbook").length > 0) {
|
|
211
|
+
var size = self.resize();
|
|
212
|
+
$("#flipbook").turn("size", size.width, size.height);
|
|
213
|
+
$("#flipbook").turn("resize");
|
|
214
|
+
self.updated();
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
if (this.loader) {
|
|
220
|
+
setTimeout(function() {
|
|
221
|
+
self.isLoading = false;
|
|
222
|
+
|
|
223
|
+
var size = self.resize();
|
|
224
|
+
$("#flipbook").turn("size", size.width, size.height);
|
|
225
|
+
$("#flipbook").turn("resize");
|
|
226
|
+
}, 3000);
|
|
227
|
+
} else {
|
|
228
|
+
self.isLoading = false;
|
|
229
|
+
|
|
230
|
+
var size = self.resize();
|
|
231
|
+
$("#flipbook").turn("size", size.width, size.height);
|
|
232
|
+
$("#flipbook").turn("resize");
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (self.zoom) {
|
|
236
|
+
this.activateZoom();
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
methods: {
|
|
241
|
+
started() {
|
|
242
|
+
this.$emit("started");
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
updated() {
|
|
246
|
+
this.$emit("updated");
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
completed(payload) {
|
|
250
|
+
if (payload.success) {
|
|
251
|
+
this.$emit("completed");
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
createInitialPages() {
|
|
256
|
+
let d = new Date();
|
|
257
|
+
let n = d.getMilliseconds();
|
|
258
|
+
|
|
259
|
+
//var n = Math.floor(Math.random() * 1000);
|
|
260
|
+
|
|
261
|
+
let InitialPages = "";
|
|
262
|
+
if (this.base64) {
|
|
263
|
+
for (var i = 1; i < 6; i++) {
|
|
264
|
+
var url =
|
|
265
|
+
this.apiUrl +
|
|
266
|
+
"/api/builder/getpreview/" +
|
|
267
|
+
this.uuid +
|
|
268
|
+
"?page=" +
|
|
269
|
+
i +
|
|
270
|
+
"&update=" +
|
|
271
|
+
n +
|
|
272
|
+
"&w=533&v=0&noCache=true";
|
|
273
|
+
InitialPages +=
|
|
274
|
+
"<div class='hard'><img src='data:image/png;base64," +
|
|
275
|
+
url +
|
|
276
|
+
"' alt='' firstPage='true'></div>";
|
|
277
|
+
}
|
|
278
|
+
} else {
|
|
279
|
+
for (var i = 1; i < 6; i++) {
|
|
280
|
+
var url =
|
|
281
|
+
this.apiUrl +
|
|
282
|
+
"/api/builder/getpreview/" +
|
|
283
|
+
this.uuid +
|
|
284
|
+
"?page=" +
|
|
285
|
+
i +
|
|
286
|
+
"&update=" +
|
|
287
|
+
n +
|
|
288
|
+
"&w=533&v=0&noCache=true";
|
|
289
|
+
InitialPages +=
|
|
290
|
+
"<div class='hard'><img src='" +
|
|
291
|
+
url +
|
|
292
|
+
"' alt='' firstPage='true'></div>";
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
InitialPages +=
|
|
296
|
+
"<div class='hard back-side'><img src='" +
|
|
297
|
+
this.apiUrl +
|
|
298
|
+
"/api/builder/getpreview/" +
|
|
299
|
+
this.uuid +
|
|
300
|
+
"?page=" +
|
|
301
|
+
(this.pages - 1) +
|
|
302
|
+
"&w=" +
|
|
303
|
+
this.bookDimensions.width +
|
|
304
|
+
"&v=0&update=" +
|
|
305
|
+
n +
|
|
306
|
+
"' alt=''></div>";
|
|
307
|
+
InitialPages +=
|
|
308
|
+
"<div class='hard'><img src='" +
|
|
309
|
+
this.apiUrl +
|
|
310
|
+
"/api/builder/getpreview/" +
|
|
311
|
+
this.uuid +
|
|
312
|
+
"?page=" +
|
|
313
|
+
this.pages +
|
|
314
|
+
"&w=" +
|
|
315
|
+
this.bookDimensions.width +
|
|
316
|
+
"&v=0&update=" +
|
|
317
|
+
n +
|
|
318
|
+
"' alt=''></div>";
|
|
319
|
+
|
|
320
|
+
$("#flipbook").html(InitialPages);
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
initBook() {
|
|
324
|
+
const self = this;
|
|
325
|
+
|
|
326
|
+
this.flipbookWidth = self.formato === "square" ? "100vh" : "100vh";
|
|
327
|
+
this.flipbookHeight =
|
|
328
|
+
self.formato === "square" ? "calc(50.2vh)" : "calc(70.5vh)";
|
|
329
|
+
|
|
330
|
+
$("#flipbook").turn({
|
|
331
|
+
width: self.flipbookWidth,
|
|
332
|
+
height: self.flipbookHeight,
|
|
333
|
+
autoCenter: false,
|
|
334
|
+
gradients: true,
|
|
335
|
+
acceleration: true,
|
|
336
|
+
duration: 800,
|
|
337
|
+
elevation: 150,
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
$("#flipbook").bind("start", function(event, pageObject, corner) {
|
|
341
|
+
console.log(event);
|
|
342
|
+
console.log(pageObject);
|
|
343
|
+
console.log(corner);
|
|
344
|
+
|
|
345
|
+
if (corner == "r" || corner == "l") {
|
|
346
|
+
$(".page-wrapper").css("cursor", "pointer");
|
|
347
|
+
} else {
|
|
348
|
+
$(".page-wrapper").css("cursor", "unset");
|
|
349
|
+
}
|
|
350
|
+
if (
|
|
351
|
+
corner == "tl" ||
|
|
352
|
+
corner == "tr" ||
|
|
353
|
+
corner == "bl" ||
|
|
354
|
+
corner == "br"
|
|
355
|
+
) {
|
|
356
|
+
event.preventDefault();
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
$("#flipbook").bind("end", function(event, pageObject, turned) {
|
|
361
|
+
//$(".page-wrapper").css("cursor", "unset");
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
// Habilitar passagem via o dedo
|
|
365
|
+
$(document).keydown(function(e) {
|
|
366
|
+
var previous = 37;
|
|
367
|
+
var next = 39;
|
|
368
|
+
switch (e.keyCode) {
|
|
369
|
+
case previous:
|
|
370
|
+
jQuery("#flipbook").turn("previous");
|
|
371
|
+
break;
|
|
372
|
+
case next:
|
|
373
|
+
jQuery("#flipbook").turn("next");
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
self.isCover =
|
|
379
|
+
"-" + $(".page-wrapper[page=" + self.currentPage + "]").width();
|
|
380
|
+
$("#flipbook").bind("turning", function(event, page, view) {
|
|
381
|
+
self.currentPage = page;
|
|
382
|
+
|
|
383
|
+
if (self.currentPage >= self.loadedPages - 2) {
|
|
384
|
+
self.morePages();
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if (self.currentPage === 1) {
|
|
388
|
+
self.numberPositions = 0;
|
|
389
|
+
self.isCover =
|
|
390
|
+
"-" + $(".page-wrapper[page=" + self.currentPage + "]").width();
|
|
391
|
+
} else if (self.currentPage === self.pages) {
|
|
392
|
+
self.isCover = $(
|
|
393
|
+
".page-wrapper[page=" + self.currentPage + "]"
|
|
394
|
+
).width();
|
|
395
|
+
|
|
396
|
+
if (self.currentPage % 2 == 0) {
|
|
397
|
+
self.numberPositions = self.currentPage * 30;
|
|
398
|
+
} else {
|
|
399
|
+
self.numberPositions = (self.currentPage - 1) * 30;
|
|
400
|
+
}
|
|
401
|
+
} else {
|
|
402
|
+
self.isCover = 0;
|
|
403
|
+
|
|
404
|
+
if (self.currentPage % 2 == 0) {
|
|
405
|
+
self.numberPositions = self.currentPage * 30;
|
|
406
|
+
} else {
|
|
407
|
+
self.numberPositions = (self.currentPage - 1) * 30;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
for (var i = this.loadedPages; i < this.pages - 2; i++) {
|
|
413
|
+
var pageCount = $("#flipbook").turn("pages") + 1;
|
|
414
|
+
|
|
415
|
+
var element = $(
|
|
416
|
+
'<div><img class="img-book" width="100%" src="' +
|
|
417
|
+
this.apiUrl +
|
|
418
|
+
"/api/builder/getplaceholder/" +
|
|
419
|
+
this.product_id +
|
|
420
|
+
"?page=" +
|
|
421
|
+
i +
|
|
422
|
+
"&w=" +
|
|
423
|
+
this.bookDimensions.widthPlaceholder +
|
|
424
|
+
'&pw=0&noCache=true" alt=""><div class="loading-bg"><div class="loading book-loading"></div></div> </div>'
|
|
425
|
+
);
|
|
426
|
+
|
|
427
|
+
$("#flipbook").turn("addPage", element);
|
|
428
|
+
$("#flipbook").turn("pages", pageCount); // Sets the total # of pages
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
this.started();
|
|
432
|
+
},
|
|
433
|
+
|
|
434
|
+
toTheLeft() {
|
|
435
|
+
$("#flipbook").turn("previous");
|
|
436
|
+
},
|
|
437
|
+
|
|
438
|
+
toTheRight() {
|
|
439
|
+
$("#flipbook").turn("next");
|
|
440
|
+
},
|
|
441
|
+
|
|
442
|
+
zoomTo(event) {
|
|
443
|
+
setTimeout(function() {
|
|
444
|
+
if ($(".flipbook-container").data().regionClicked) {
|
|
445
|
+
$(".flipbook-container").data().regionClicked = false;
|
|
446
|
+
} else {
|
|
447
|
+
if ($(".flipbook-container").zoom("value") == 1) {
|
|
448
|
+
$(".flipbook-container").zoom("zoomIn", event);
|
|
449
|
+
} else {
|
|
450
|
+
$(".flipbook-container").zoom("zoomOut");
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}, 1);
|
|
454
|
+
},
|
|
455
|
+
|
|
456
|
+
activateZoom() {
|
|
457
|
+
const self = this;
|
|
458
|
+
|
|
459
|
+
$(".flipbook-container").zoom({
|
|
460
|
+
flipbook: $("#flipbook"),
|
|
461
|
+
|
|
462
|
+
max: function() {
|
|
463
|
+
return 1452 / $("#flipbook").width();
|
|
464
|
+
},
|
|
465
|
+
|
|
466
|
+
when: {
|
|
467
|
+
swipeLeft: function() {
|
|
468
|
+
$(this)
|
|
469
|
+
.zoom("flipbook")
|
|
470
|
+
.turn("next");
|
|
471
|
+
},
|
|
472
|
+
|
|
473
|
+
swipeRight: function() {
|
|
474
|
+
$(this)
|
|
475
|
+
.zoom("flipbook")
|
|
476
|
+
.turn("previous");
|
|
477
|
+
},
|
|
478
|
+
|
|
479
|
+
resize: function(event, scale, page, pageElement) {
|
|
480
|
+
// if (scale==1)
|
|
481
|
+
// loadSmallPage(page, pageElement);
|
|
482
|
+
// else
|
|
483
|
+
// loadLargePage(page, pageElement);
|
|
484
|
+
},
|
|
485
|
+
|
|
486
|
+
zoomIn: function() {
|
|
487
|
+
$(".flipbook-container").removeClass("zoom-in");
|
|
488
|
+
$(".flipbook-container").removeClass("zoom-out");
|
|
489
|
+
|
|
490
|
+
$(".flipbook-container").addClass("zoom-in");
|
|
491
|
+
// $('.thumbnails').hide();
|
|
492
|
+
// $('.made').hide();
|
|
493
|
+
// $('.magazine').removeClass('animated').addClass('zoom-in');
|
|
494
|
+
// $('.zoom-icon').removeClass('zoom-icon-in').addClass('zoom-icon-out');
|
|
495
|
+
|
|
496
|
+
// if (!window.escTip && !$.isTouch) {
|
|
497
|
+
// escTip = true;
|
|
498
|
+
|
|
499
|
+
// $('<div />', {'class': 'exit-message'}).
|
|
500
|
+
// html('<div>Press ESC to exit</div>').
|
|
501
|
+
// appendTo($('body')).
|
|
502
|
+
// delay(2000).
|
|
503
|
+
// animate({opacity:0}, 500, function() {
|
|
504
|
+
// $(this).remove();
|
|
505
|
+
// });
|
|
506
|
+
// }
|
|
507
|
+
},
|
|
508
|
+
|
|
509
|
+
zoomOut: function() {
|
|
510
|
+
$(".flipbook-container").removeClass("zoom-in");
|
|
511
|
+
$(".flipbook-container").removeClass("zoom-out");
|
|
512
|
+
|
|
513
|
+
$(".flipbook-container").addClass("zoom-out");
|
|
514
|
+
// $('.exit-message').hide();
|
|
515
|
+
// $('.thumbnails').fadeIn();
|
|
516
|
+
// $('.made').fadeIn();
|
|
517
|
+
// $('.zoom-icon').removeClass('zoom-icon-out').addClass('zoom-icon-in');
|
|
518
|
+
|
|
519
|
+
setTimeout(function() {
|
|
520
|
+
$("#flipbook")
|
|
521
|
+
.addClass("animated")
|
|
522
|
+
.removeClass("zoom-in");
|
|
523
|
+
self.resizeViewport();
|
|
524
|
+
}, 0);
|
|
525
|
+
},
|
|
526
|
+
},
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
// Zoom event
|
|
530
|
+
if ($.isTouch) {
|
|
531
|
+
$(".flipbook-container").bind("zoom.doubleTap", self.zoomTo);
|
|
532
|
+
} else {
|
|
533
|
+
$(".flipbook-container").bind("zoom.tap", self.zoomTo);
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
|
|
537
|
+
resizeViewport() {
|
|
538
|
+
var width = $(window).width(),
|
|
539
|
+
height = $(window).height(),
|
|
540
|
+
options = $("#flipbook").turn("options");
|
|
541
|
+
|
|
542
|
+
$("#flipbook").removeClass("animated");
|
|
543
|
+
|
|
544
|
+
$(".flipbook-container")
|
|
545
|
+
.css({
|
|
546
|
+
width: width,
|
|
547
|
+
height: height,
|
|
548
|
+
})
|
|
549
|
+
.zoom("resize");
|
|
550
|
+
|
|
551
|
+
if ($("#flipbook").turn("zoom") == 1) {
|
|
552
|
+
var bound = calculateBound({
|
|
553
|
+
width: options.width,
|
|
554
|
+
height: options.height,
|
|
555
|
+
boundWidth: Math.min(options.width, width),
|
|
556
|
+
boundHeight: Math.min(options.height, height),
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
if (bound.width % 2 !== 0) bound.width -= 1;
|
|
560
|
+
|
|
561
|
+
if (
|
|
562
|
+
bound.width != $("#flipbook").width() ||
|
|
563
|
+
bound.height != $("#flipbook").height()
|
|
564
|
+
) {
|
|
565
|
+
$("#flipbook").turn("size", bound.width, bound.height);
|
|
566
|
+
|
|
567
|
+
if ($("#flipbook").turn("page") == 1)
|
|
568
|
+
$("#flipbook").turn("peel", "br");
|
|
569
|
+
|
|
570
|
+
// $('.next-button').css({height: bound.height, backgroundPosition: '-38px '+(bound.height/2-32/2)+'px'});
|
|
571
|
+
// $('.previous-button').css({height: bound.height, backgroundPosition: '-4px '+(bound.height/2-32/2)+'px'});
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
$("#flipbook").css({
|
|
575
|
+
top: -bound.height / 2,
|
|
576
|
+
left: -bound.width / 2,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
// var magazineOffset = $('#flipbook').offset(),
|
|
581
|
+
// boundH = height - magazineOffset.top - $('#flipbook').height(),
|
|
582
|
+
// marginTop = (boundH - $('.thumbnails > div').height()) / 2;
|
|
583
|
+
|
|
584
|
+
// if (marginTop<0) {
|
|
585
|
+
// $('.thumbnails').css({height:1});
|
|
586
|
+
// } else {
|
|
587
|
+
// $('.thumbnails').css({height: boundH});
|
|
588
|
+
// $('.thumbnails > div').css({marginTop: marginTop});
|
|
589
|
+
// }
|
|
590
|
+
|
|
591
|
+
// if (magazineOffset.top<$('.made').height())
|
|
592
|
+
// $('.made').hide();
|
|
593
|
+
// else
|
|
594
|
+
// $('.made').show();
|
|
595
|
+
|
|
596
|
+
$("#flipbook").addClass("animated");
|
|
597
|
+
},
|
|
598
|
+
|
|
599
|
+
morePages() {
|
|
600
|
+
for (var i = this.loadedPages + 1; i <= this.loadedPages + 4; i++) {
|
|
601
|
+
this.addPage(i, $("#flipbook"));
|
|
602
|
+
}
|
|
603
|
+
this.loadedPages = this.loadedPages + 4;
|
|
604
|
+
},
|
|
605
|
+
|
|
606
|
+
addPage(page, book) {
|
|
607
|
+
if (book.turn("hasPage", page) && page <= this.pages - 2) {
|
|
608
|
+
let classHard = "";
|
|
609
|
+
|
|
610
|
+
var element = $("<div />", { class: "hard" }).html(
|
|
611
|
+
'<img class="img-book loading-blur" width="100%" src="https://dka04237waacy.cloudfront.net/api/builder/getplaceholder/' +
|
|
612
|
+
this.product_id +
|
|
613
|
+
"?page=" +
|
|
614
|
+
page +
|
|
615
|
+
"&w=" +
|
|
616
|
+
this.bookDimensions.widthPlaceholder +
|
|
617
|
+
'&pw=0" alt=""><div class="loading-bg"><div class="loading book-loading"></div></div>'
|
|
618
|
+
);
|
|
619
|
+
book.turn("addPage", element, page);
|
|
620
|
+
|
|
621
|
+
var url =
|
|
622
|
+
this.apiUrl +
|
|
623
|
+
"/api/builder/getpreview/" +
|
|
624
|
+
this.uuid +
|
|
625
|
+
"?page=" +
|
|
626
|
+
page +
|
|
627
|
+
"&w=" +
|
|
628
|
+
this.bookDimensions.width +
|
|
629
|
+
"&v=0";
|
|
630
|
+
|
|
631
|
+
axios
|
|
632
|
+
.get(url, {
|
|
633
|
+
progress: false,
|
|
634
|
+
responseType: "arraybuffer",
|
|
635
|
+
})
|
|
636
|
+
.then((response) => {
|
|
637
|
+
const cover = new Buffer.from(response.data, "binary").toString(
|
|
638
|
+
"base64"
|
|
639
|
+
);
|
|
640
|
+
element.html(
|
|
641
|
+
"<img width='100%' src='data:image/png;base64," + cover + "'>"
|
|
642
|
+
);
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
|
|
647
|
+
resize() {
|
|
648
|
+
var barSize = 90 + 40;
|
|
649
|
+
|
|
650
|
+
//var controlSize = $(".controls").height() + 20
|
|
651
|
+
|
|
652
|
+
var width = "100vh";
|
|
653
|
+
var height = this.sizeSquare;
|
|
654
|
+
|
|
655
|
+
return {
|
|
656
|
+
width: width,
|
|
657
|
+
height: height,
|
|
658
|
+
};
|
|
659
|
+
},
|
|
660
|
+
},
|
|
661
|
+
computed: {
|
|
662
|
+
shadowVar() {
|
|
663
|
+
return {
|
|
664
|
+
"--shadow-color": this.shadowColor,
|
|
665
|
+
};
|
|
666
|
+
},
|
|
667
|
+
},
|
|
668
|
+
};
|
|
631
669
|
</script>
|
|
632
670
|
|
|
633
|
-
|
|
634
671
|
<style lang="scss">
|
|
635
|
-
@import "./node_modules/@tiddh/brave-tokens/dist/styles/style.scss";
|
|
636
|
-
@import "./css/flipbook.scss";
|
|
637
|
-
|
|
638
|
-
.storybook {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
672
|
+
@import "./node_modules/@tiddh/brave-tokens/dist/styles/style.scss";
|
|
673
|
+
@import "./css/flipbook.scss";
|
|
674
|
+
|
|
675
|
+
.storybook {
|
|
676
|
+
&-6 {
|
|
677
|
+
width: columns("lg", 6);
|
|
678
|
+
}
|
|
679
|
+
&-12 {
|
|
680
|
+
width: columns("lg", 12);
|
|
681
|
+
}
|
|
682
|
+
&-25 {
|
|
683
|
+
width: columns("lg", 25);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
649
686
|
</style>
|
|
650
687
|
|
|
651
|
-
<style lang=
|
|
652
|
-
@import "./node_modules/@tiddh/brave-tokens/dist/styles/style.scss";
|
|
653
|
-
::v-deep .arrow{
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
.zoom-in {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.preview-desktop {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
.loading-box {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
.book-centered {
|
|
727
|
-
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
.flipbook-container {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
.controls {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
688
|
+
<style lang="scss" scoped>
|
|
689
|
+
@import "./node_modules/@tiddh/brave-tokens/dist/styles/style.scss";
|
|
690
|
+
::v-deep .arrow {
|
|
691
|
+
svg {
|
|
692
|
+
width: 100% !important;
|
|
693
|
+
height: 100% !important;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.zoom-in {
|
|
698
|
+
#flipbook img {
|
|
699
|
+
height: 100% !important;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.preview-desktop {
|
|
704
|
+
text-align: center;
|
|
705
|
+
margin: 0 auto;
|
|
706
|
+
transition: all 0.7s ease-in-out;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.loading-box {
|
|
710
|
+
position: absolute;
|
|
711
|
+
top: 35%;
|
|
712
|
+
left: 0;
|
|
713
|
+
right: 0;
|
|
714
|
+
bottom: 0;
|
|
715
|
+
margin-bottom: auto;
|
|
716
|
+
margin-top: auto;
|
|
717
|
+
z-index: 9999;
|
|
718
|
+
text-align: center;
|
|
719
|
+
font-family: $font-family-02;
|
|
720
|
+
|
|
721
|
+
#loading {
|
|
722
|
+
display: inline-block;
|
|
723
|
+
border: 8px solid #f3f3f3;
|
|
724
|
+
border-top: 8px solid #42cda1;
|
|
725
|
+
border-radius: 50%;
|
|
726
|
+
width: px-size("lg", 60px);
|
|
727
|
+
height: px-size("lg", 60px);
|
|
728
|
+
animation: spin 0.6s linear infinite;
|
|
729
|
+
@include media-breakpoint-down("sm") {
|
|
730
|
+
border: 6px solid #f3f3f3;
|
|
731
|
+
border-top: 6px solid #42cda1;
|
|
732
|
+
width: px-size("lg", 40px);
|
|
733
|
+
height: px-size("lg", 40px);
|
|
734
|
+
font-family: $font-family-02;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
@keyframes spin {
|
|
739
|
+
0% {
|
|
740
|
+
transform: rotate(0deg);
|
|
741
|
+
}
|
|
742
|
+
100% {
|
|
743
|
+
transform: rotate(360deg);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
small {
|
|
748
|
+
display: block;
|
|
749
|
+
width: 100%;
|
|
750
|
+
font-size: $font-size-xxs;
|
|
751
|
+
font-weight: $font-weight-bold;
|
|
752
|
+
font-family: $font-family-comp-01;
|
|
753
|
+
margin-top: $spacing-inset-xs;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
h4 {
|
|
757
|
+
font-size: $font-size-sm;
|
|
758
|
+
margin-top: $spacing-stack-xs;
|
|
759
|
+
font-weight: $font-weight-regular;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.book-centered {
|
|
764
|
+
transition: all 0.7s ease-in-out;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.flipbook-container {
|
|
768
|
+
position: relative;
|
|
769
|
+
display: flex;
|
|
770
|
+
flex-direction: column;
|
|
771
|
+
justify-content: center;
|
|
772
|
+
align-items: center;
|
|
773
|
+
transition: all 0.3s;
|
|
774
|
+
z-index: 2;
|
|
775
|
+
min-height: 210px;
|
|
776
|
+
min-height: 210px;
|
|
777
|
+
|
|
778
|
+
&.zoom-in {
|
|
779
|
+
height: 100vh;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
@include media-breakpoint-down("sm") {
|
|
783
|
+
display: none;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.flipbook-lib {
|
|
787
|
+
z-index: 50;
|
|
788
|
+
|
|
789
|
+
.page {
|
|
790
|
+
&.odd:not(.p1)::before {
|
|
791
|
+
content: "";
|
|
792
|
+
position: absolute;
|
|
793
|
+
display: block;
|
|
794
|
+
height: 100%;
|
|
795
|
+
width: 100%;
|
|
796
|
+
top: 0;
|
|
797
|
+
left: 0;
|
|
798
|
+
box-shadow: 20px 0px 20px -10px rgba(0, 0, 0, 0.3) inset;
|
|
799
|
+
z-index: 4;
|
|
800
|
+
}
|
|
801
|
+
&.even::before {
|
|
802
|
+
position: absolute;
|
|
803
|
+
display: block;
|
|
804
|
+
content: "";
|
|
805
|
+
height: 100%;
|
|
806
|
+
width: 100%;
|
|
807
|
+
top: 0;
|
|
808
|
+
left: 0;
|
|
809
|
+
box-shadow: -20px 0px 20px -10px rgba(0, 0, 0, 0.5) inset;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
img {
|
|
813
|
+
height: 100% !important;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.controls {
|
|
819
|
+
margin: 0 auto;
|
|
820
|
+
display: block;
|
|
821
|
+
display: inline-block;
|
|
822
|
+
margin-top: 20px;
|
|
823
|
+
position: relative;
|
|
824
|
+
z-index: 2;
|
|
825
|
+
|
|
826
|
+
button {
|
|
827
|
+
display: inline-block !important;
|
|
828
|
+
background: #fff;
|
|
829
|
+
box-shadow: $shadow-level-03;
|
|
830
|
+
padding: px-size("lg", $spacing-inline-xs) !important;
|
|
831
|
+
border-radius: $border-radius-circle;
|
|
832
|
+
text-align: center;
|
|
833
|
+
color: $color-neutral-dark;
|
|
834
|
+
border: none;
|
|
835
|
+
width: auto !important;
|
|
836
|
+
height: auto !important;
|
|
837
|
+
cursor: pointer;
|
|
838
|
+
|
|
839
|
+
svg {
|
|
840
|
+
fill: transparent !important;
|
|
841
|
+
|
|
842
|
+
path {
|
|
843
|
+
fill: transparent !important;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.svg-color {
|
|
848
|
+
fill: #12d3db !important;
|
|
849
|
+
path {
|
|
850
|
+
fill: #12d3db !important;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.info-space {
|
|
856
|
+
position: relative;
|
|
857
|
+
top: 3px;
|
|
858
|
+
display: inline-block;
|
|
859
|
+
margin: 0px px-size("lg", $spacing-inline-xs);
|
|
860
|
+
font-size: $font-size-xxxxs;
|
|
861
|
+
font-weight: $font-weight-black;
|
|
862
|
+
color: $color-neutral-dark;
|
|
863
|
+
font-family: $font-family-comp-01;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.current-pages {
|
|
867
|
+
width: 60px;
|
|
868
|
+
white-space: nowrap;
|
|
869
|
+
line-height: 1;
|
|
870
|
+
overflow: hidden;
|
|
871
|
+
transition: all 0.5s ease;
|
|
872
|
+
|
|
873
|
+
.list {
|
|
874
|
+
position: relative;
|
|
875
|
+
transition: all 0.5s ease;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
span {
|
|
879
|
+
width: 30px;
|
|
880
|
+
display: inline-block;
|
|
881
|
+
text-align: center;
|
|
882
|
+
font-size: $font-size-xs;
|
|
883
|
+
|
|
884
|
+
&:first-child {
|
|
885
|
+
margin: 0px $spacing-inline-sm;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
&:last-child {
|
|
889
|
+
margin: 0px $spacing-inline-sm;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.info-pages {
|
|
896
|
+
text-align: center;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
@keyframes arrow-animation {
|
|
900
|
+
0%,
|
|
901
|
+
48%,
|
|
902
|
+
100% {
|
|
903
|
+
-webkit-transform: translateX(0%);
|
|
904
|
+
transform: translateX(0%);
|
|
905
|
+
-webkit-transform-origin: 50% 50%;
|
|
906
|
+
transform-origin: 50% 50%;
|
|
907
|
+
}
|
|
908
|
+
8% {
|
|
909
|
+
-webkit-transform: translateX(-30%);
|
|
910
|
+
transform: translateX(-30%);
|
|
911
|
+
}
|
|
912
|
+
16% {
|
|
913
|
+
-webkit-transform: translateX(15%);
|
|
914
|
+
transform: translateX(15%);
|
|
915
|
+
}
|
|
916
|
+
24% {
|
|
917
|
+
-webkit-transform: translateX(-15%);
|
|
918
|
+
transform: translateX(-15%);
|
|
919
|
+
}
|
|
920
|
+
32% {
|
|
921
|
+
-webkit-transform: translateX(9%);
|
|
922
|
+
transform: translateX(9%);
|
|
923
|
+
}
|
|
924
|
+
40% {
|
|
925
|
+
-webkit-transform: translateX(-6%);
|
|
926
|
+
transform: translateX(-6%);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.visible {
|
|
931
|
+
opacity: 1;
|
|
932
|
+
}
|
|
933
|
+
.invisible {
|
|
934
|
+
opacity: 0;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
::v-deep {
|
|
938
|
+
.loading-bg {
|
|
939
|
+
position: absolute;
|
|
940
|
+
display: flex;
|
|
941
|
+
top: 0;
|
|
942
|
+
width: 100%;
|
|
943
|
+
height: 100%;
|
|
944
|
+
background-color: #fff;
|
|
945
|
+
opacity: $opacity-intense;
|
|
946
|
+
align-items: center;
|
|
947
|
+
justify-content: center;
|
|
948
|
+
z-index: 12;
|
|
949
|
+
|
|
950
|
+
.loading {
|
|
951
|
+
border: $border-width-md solid $color-neutral-medium;
|
|
952
|
+
border-top: $border-width-md solid $color-feedback-success;
|
|
953
|
+
border-radius: $border-radius-circle;
|
|
954
|
+
width: px-size("lg", 60px);
|
|
955
|
+
height: px-size("lg", 60px);
|
|
956
|
+
animation: spin 0.6s linear infinite;
|
|
957
|
+
@include media-breakpoint-down("sm") {
|
|
958
|
+
border: 6px solid #f3f3f3;
|
|
959
|
+
border-top: 6px solid #42cda1;
|
|
960
|
+
width: px-size("lg", 40px);
|
|
961
|
+
height: px-size("lg", 40px);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
@keyframes spin {
|
|
966
|
+
0% {
|
|
967
|
+
transform: rotate(0deg);
|
|
968
|
+
}
|
|
969
|
+
100% {
|
|
970
|
+
transform: rotate(360deg);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.icon {
|
|
977
|
+
width: 24px;
|
|
978
|
+
height: 24px;
|
|
979
|
+
display: block;
|
|
980
|
+
}
|
|
943
981
|
</style>
|