@burh/nuxt-core 1.0.383 → 1.0.385

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.
@@ -1,515 +1,516 @@
1
- <template>
2
- <div class="bg-white content-left">
3
- <div class="profile w-100 text-center">
4
- <div class="avatar">
5
- <img
6
- v-if="userData.urlAvatar"
7
- :src="userData.urlAvatar"
8
- :alt="userData.name"
9
- />
10
- <div v-else class=".">
11
- {{ userData.name }}
12
- </div>
13
- </div>
14
-
15
- <h5
16
- class="mb-0 text-wrap"
17
- :class="{ 'mt-5': !userData.urlAvatar }"
18
- v-html="
19
- highlightText(
20
- search,
21
- `${userData.name} ${userData.last_name}`
22
- )
23
- "
24
- ></h5>
25
-
26
- <p
27
- class="user-info"
28
- v-if="userData.user_experience.length > 0"
29
- v-html="
30
- highlightText(
31
- search,
32
- `${userData.user_experience[0].job_title} em ${userData.user_experience[0].company}`
33
- )
34
- "
35
- ></p>
36
-
37
- <span v-if="userData.user_address">
38
- <i class="fas fa-map-marker-alt"></i>
39
- {{ userData.user_address.city_name }} -
40
- {{ userData.user_address.region_code }}
41
- </span>
42
- <br />
43
- <span
44
- v-if="
45
- userData.user_complementary_information.wage_pretension > 1
46
- "
47
- >Pretensão salarial:
48
- {{
49
- userData.user_complementary_information.wage_pretension
50
- | convertMoney
51
- }}</span
52
- >
53
- </div>
54
-
55
- <div
56
- class="deficiency title-block mt-3 ml-4"
57
- v-if="userData.user_deficiency"
58
- >
59
- <div class="d-flex align-items-center">
60
- <i class="fas fa-wheelchair"></i>
61
- <h6 class="mb-0 ml-2">Deficiência</h6>
62
- </div>
63
- <div class="line"></div>
64
- <p>
65
- {{ userData.user_deficiency.deficiency_id | allDeficiencies }} -
66
- {{ userData.user_deficiency.cid }}
67
- </p>
68
-
69
- <p v-show="userData.user_deficiency.appliance">
70
- Acessório: {{ userData.user_deficiency.appliance }}
71
- </p>
72
-
73
- <p v-show="userData.user_deficiency.apparatus">
74
- Necessidade: {{ userData.user_deficiency.apparatus }}
75
- </p>
76
-
77
- <p v-show="userData.user_deficiency.course">
78
- Curso: {{ userData.user_deficiency.course }}
79
- </p>
80
-
81
- <p v-show="userData.user_deficiency.note">
82
- Anotações: {{ userData.user_deficiency.note }}
83
- </p>
84
-
85
- <p v-show="userData.user_deficiency.transport === 1">
86
- Utiliza transporte coletivo
87
- </p>
88
-
89
- <p v-show="userData.user_deficiency.vehicle === 1">
90
- Possuí veículo adaptado
91
- </p>
92
-
93
- <p v-show="userData.user_deficiency.escort === 1">
94
- Precisa de acompanhante
95
- </p>
96
- </div>
97
-
98
- <div
99
- v-show="userData.user_desired_job.length > 0"
100
- class="desidered title-block mt-3 ml-4"
101
- >
102
- <h6 class="mb-0">Cargos desejados</h6>
103
- <div class="line"></div>
104
-
105
- <p
106
- v-for="(des, index) in userData.user_desired_job"
107
- :key="`skill-${index}`"
108
- class="ml-1 mt-1 mb-0 text-capitalize"
109
- v-html="highlightText(search, des.occupation)"
110
- ></p>
111
- </div>
112
-
113
- <div
114
- v-show="userData.user_language.length > 0"
115
- class="languages title-block mt-3 ml-4"
116
- >
117
- <h6 class="mb-0">Idiomas</h6>
118
- <div class="line"></div>
119
-
120
- <p
121
- class="mb-1 text-capitalize"
122
- v-for="(lan, index) in userData.user_language"
123
- :key="index"
124
- v-html="
125
- highlightText(
126
- search,
127
- `${lan.language[0].name} ${languageLevel(lan.level)}`
128
- )
129
- "
130
- ></p>
131
- </div>
132
-
133
- <div
134
- v-show="userData.user_skill.length > 0"
135
- class="skills title-block ml-4"
136
- >
137
- <h6 class="mb-0">Habilidades</h6>
138
- <div class="line"></div>
139
-
140
- <p
141
- v-for="(skill, index) in userData.user_skill"
142
- :key="`skill-${index}`"
143
- class="ml-1 mt-1 mb-0 text-capitalize"
144
- v-html="highlightText(search, skill.skill_word)"
145
- ></p>
146
- </div>
147
-
148
- <div class="socials text-center mt-5">
149
- <a
150
- :href="baseUrl + '/' + userData.slug.slug"
151
- class="text-center"
152
- target="_blank"
153
- rel="noopener noreferrer"
154
- >
155
- <img
156
- class="no-social"
157
- src="../../../../assets/images/burhCv.svg"
158
- alt="Burh"
159
- />
160
- </a>
161
- <a
162
- v-show="userData.user_complementary_information.facebook_url"
163
- :href="userData.user_complementary_information.facebook_url"
164
- target="_blank"
165
- class="ml-2"
166
- rel="noopener noreferrer"
167
- >
168
- <img
169
- class="no-social"
170
- src="../../../../assets/images/facebookCv.svg"
171
- alt="Facebook"
172
- />
173
- </a>
174
- <a
175
- v-show="userData.user_complementary_information.linkedin_url"
176
- :href="userData.user_complementary_information.linkedin_url"
177
- target="_blank"
178
- class="ml-2"
179
- rel="noopener noreferrer"
180
- >
181
- <img
182
- class="no-social"
183
- src="../../../../assets/images/linkedinCv.svg"
184
- alt="Linkdin"
185
- />
186
- </a>
187
- <a
188
- v-show="userData.user_complementary_information.website"
189
- :href="userData.user_complementary_information.website"
190
- class="text-center ml-2"
191
- target="_blank"
192
- rel="noopener noreferrer"
193
- >
194
- <img
195
- class="no-social"
196
- src="../../../../assets/images/webCv.svg"
197
- alt="Web"
198
- />
199
- </a>
200
- </div>
201
-
202
- <div class="burh-code text-center mt-4">
203
- <vue-qrcode
204
- :value="baseUrl + '/' + userData.slug.slug"
205
- :options="{ width: 98, height: 98 }"
206
- class="border qr-code"
207
- ></vue-qrcode>
208
- <p class="mb-0">Código BURH</p>
209
- <span class="qr-id">{{ userData.id }}</span
210
- ><br />
211
- <div class="teste-block">
212
- <span class="font-weight-normal mt-2 d-block" v-if="!isLocked"
213
- >Data de atualização:
214
- {{ $moment(userData.updated_at).format('DD/MM/YYYY H:mm') }}
215
- <!-- <template v-if="isLocked" @click="$emit('open-contact', isLocked)">
216
- <i class="fa fa-lock"></i>
217
- </template>
218
- <template v-else>
219
- {{$moment(userData.updated_at).format('DD/MM/YYYY H:mm')}}
220
- </template> -->
221
- </span>
222
- </div>
223
- </div>
224
- </div>
225
- </template>
226
-
227
- <script>
228
- import getPrefixes from '~/util/getPrefixes.js';
229
- import VueQrcode from '@chenfengyuan/vue-qrcode';
230
- import swal from 'sweetalert2';
231
-
232
- export default {
233
- name: 'user-cv-left-side',
234
- components: {
235
- VueQrcode
236
- },
237
- computed: {
238
- currentCompany() {
239
- return this.$store.state.company.currentCompany;
240
- }
241
- },
242
- props: {
243
- userData: Object,
244
- baseUrl: String,
245
- search: {
246
- type: String,
247
- default: ''
248
- }
249
- },
250
- data() {
251
- return {
252
- isLocked: !this.companyHasProduct(
253
- this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['BUSCA_AVANCADA'] || false
254
- )
255
- };
256
- },
257
- methods: {
258
- highlightText(search, text) {
259
- if (search.length < 2) return text;
260
-
261
- const regex = new RegExp(search.toLowerCase(), 'gmi');
262
- return String(text || '').replace(
263
- regex,
264
- `<span class="search-highlight">${search}</span>`
265
- );
266
- },
267
- getTime(
268
- { start_year = null, end_year = null, start_month, end_month },
269
- textHappening = 'Cursando'
270
- ) {
271
- const isHappening = !end_month && !end_year;
272
-
273
- if (isHappening) {
274
- return textHappening;
275
- }
276
-
277
- const dateInitial = this.$moment(
278
- ['1', start_month.toString(), start_year.toString()],
279
- 'DD/MM/YYYY'
280
- );
281
- const dateDone = this.$moment(
282
- ['1', end_month.toString(), end_year.toString()],
283
- 'DD/MM/YYYY'
284
- );
285
- const diffDuration = this.$moment.duration(
286
- dateDone.diff(dateInitial)
287
- );
288
- const years = diffDuration.years();
289
- const months = diffDuration.months();
290
-
291
- if (years) {
292
- return years > 1 ? `(${years} anos)` : `(${years} ano)`;
293
- }
294
-
295
- return months > 1
296
- ? `(${months} meses)`
297
- : months == 1
298
- ? `(${months} mês)`
299
- : '';
300
- },
301
- languageLevel(level) {
302
- switch (parseInt(level)) {
303
- case 1:
304
- return 'Iniciante';
305
- case 2:
306
- return 'Elementar';
307
- case 3:
308
- return 'Pré-intermediário';
309
- case 4:
310
- return 'Intermediário';
311
- case 5:
312
- return 'Intermediário Superior';
313
- case 6:
314
- return 'Avançado';
315
- case 7:
316
- return 'Fluente';
317
- default:
318
- return '';
319
- }
320
- },
321
- treatPhone(phone) {
322
- if (phone) {
323
- if (phone == '0' || phone.length < 9 || !phone) {
324
- return 'não cadastrado';
325
- }
326
- }
327
-
328
- return phone;
329
- },
330
- treatCellphone(cellphone) {
331
- if (cellphone) {
332
- if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
333
- return 'não cadastrado';
334
- }
335
- }
336
-
337
- return cellphone;
338
- },
339
- handleGetPrefixes(name = '') {
340
- return getPrefixes(name);
341
- },
342
- treatEndDate(end_month, end_year) {
343
- if (end_month && end_year) {
344
- return `${end_month}/${end_year}`;
345
- }
346
- return '';
347
- }
348
- },
349
- filters: {
350
- allDeficiencies(id) {
351
- const typeDeficiency = {
352
- 1: 'Deficiência Física',
353
- 2: 'Deficiência Visual',
354
- 3: 'Deficiência Mental',
355
- 4: 'Deficiência Auditiva',
356
- 5: 'Deficiência Fonológica',
357
- 6: 'Deficiência Múltipla'
358
- };
359
-
360
- return typeDeficiency[id] || '-';
361
- },
362
- convertMoney(money) {
363
- let moneyAux = parseFloat(money);
364
- let m = moneyAux.toLocaleString('pt-BR', {
365
- style: 'currency',
366
- currency: 'BRL'
367
- });
368
- return m;
369
- }
370
- }
371
- };
372
- </script>
373
-
374
- <style lang="scss" scoped>
375
- @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
376
-
377
- /deep/ .search-highlight {
378
- background: rgb(255, 252, 61);
379
- color: #000;
380
- }
381
-
382
- .teste-block {
383
- display: inline !important;
384
- }
385
- .qr-id {
386
- color: #32325d !important;
387
- }
388
-
389
- .bg-light--darken {
390
- background-color: $gray-100 !important;
391
- }
392
-
393
- .profile {
394
- .avatar {
395
- width: initial!important;
396
- height: initial!important;
397
- margin-top: -48px;
398
- background: transparent !important;
399
- img {
400
- width: 163px;
401
- height: 163px;
402
- border-radius: 50%;
403
- top: 75%;
404
- background: #adb5bd;
405
- border: 4px solid #fff;
406
- }
407
-
408
- .no-image {
409
- display: flex;
410
- justify-content: center;
411
- align-items: center;
412
-
413
- position: absolute;
414
- background-color: #adb5bd;
415
- width: 163px;
416
- height: 163px;
417
- top: 120;
418
- border-radius: 50%;
419
- margin-bottom: 20px;
420
- border: 4px solid #fff;
421
- }
422
- }
423
-
424
- .user-info {
425
- padding: 0 20px;
426
- margin-top: 5px;
427
- }
428
-
429
- p {
430
- font-size: 13px;
431
- font-weight: 400;
432
- color: #62778c;
433
- line-height: 0.85rem;
434
- margin-bottom: 2rem;
435
- }
436
-
437
- span {
438
- font-size: 14px;
439
- color: #8da2b5;
440
- }
441
- }
442
-
443
- .skills {
444
- margin-top: 2.3rem;
445
- margin-bottom: 2.3rem;
446
- }
447
-
448
- .desidered {
449
- margin-bottom: 2.3rem;
450
- }
451
-
452
- .deficiency {
453
- p {
454
- margin-top: 0.25rem;
455
- margin-bottom: 0;
456
- text-transform: capitalize;
457
- }
458
- }
459
-
460
- .languages {
461
- margin-bottom: 2.3rem;
462
- }
463
-
464
- .title-block {
465
- .line {
466
- width: 235px;
467
- height: 0px;
468
- border: 1px solid #ececec5c;
469
- margin-bottom: 0.75rem;
470
- }
471
-
472
- p {
473
- font-size: 13px;
474
- }
475
- }
476
-
477
- .burh-code {
478
- .qr-code {
479
- box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
480
- border-radius: 10px;
481
- }
482
-
483
- p {
484
- font-size: 8px;
485
- font-weight: bold;
486
- }
487
-
488
- span {
489
- font-size: 12px;
490
- font-weight: bold;
491
- }
492
- }
493
-
494
- .socials {
495
- .no-social {
496
- height: 1.39rem;
497
- }
498
- }
499
-
500
- .cv-left {
501
- word-break: initial;
502
- }
503
-
504
- .disable-none {
505
- user-select: none;
506
- }
507
-
508
- .content-left {
509
- width: 25%;
510
- height: auto;
511
- padding: 0 20px;
512
- word-break: break-word !important;
513
- color: #62778c !important;
514
- }
515
- </style>
1
+ <template>
2
+ <div class="bg-white content-left">
3
+ <div class="profile w-100 text-center">
4
+ <div class="avatar">
5
+ <img
6
+ v-if="userData.urlAvatar"
7
+ :src="userData.urlAvatar"
8
+ :alt="userData.name"
9
+ />
10
+ <div v-else class=".">
11
+ {{ userData.name }}
12
+ </div>
13
+ </div>
14
+
15
+ <h5
16
+ class="mb-0 text-wrap"
17
+ :class="{ 'mt-5': !userData.urlAvatar }"
18
+ v-html="
19
+ highlightText(
20
+ search,
21
+ `${userData.name} ${userData.last_name}`
22
+ )
23
+ "
24
+ ></h5>
25
+
26
+ <p
27
+ class="user-info"
28
+ v-if="userData.user_experience.length > 0"
29
+ v-html="
30
+ highlightText(
31
+ search,
32
+ `${userData.user_experience[0].job_title} em ${userData.user_experience[0].company}`
33
+ )
34
+ "
35
+ ></p>
36
+
37
+ <span v-if="userData.user_address">
38
+ <i class="fas fa-map-marker-alt"></i>
39
+ {{ userData.user_address.city_name }} -
40
+ {{ userData.user_address.region_code }} <br>
41
+ {{ userData.user_address.neighborhood }}
42
+ </span><br />
43
+
44
+ <span
45
+ v-if="
46
+ userData.user_complementary_information.wage_pretension > 1
47
+ "
48
+ >Pretensão salarial:
49
+ {{
50
+ userData.user_complementary_information.wage_pretension
51
+ | convertMoney
52
+ }}</span
53
+ >
54
+ </div>
55
+
56
+ <div
57
+ class="deficiency title-block mt-3 ml-4"
58
+ v-if="userData.user_deficiency"
59
+ >
60
+ <div class="d-flex align-items-center">
61
+ <i class="fas fa-wheelchair"></i>
62
+ <h6 class="mb-0 ml-2">Deficiência</h6>
63
+ </div>
64
+ <div class="line"></div>
65
+ <p>
66
+ {{ userData.user_deficiency.deficiency_id | allDeficiencies }} -
67
+ {{ userData.user_deficiency.cid }}
68
+ </p>
69
+
70
+ <p v-show="userData.user_deficiency.appliance">
71
+ Acessório: {{ userData.user_deficiency.appliance }}
72
+ </p>
73
+
74
+ <p v-show="userData.user_deficiency.apparatus">
75
+ Necessidade: {{ userData.user_deficiency.apparatus }}
76
+ </p>
77
+
78
+ <p v-show="userData.user_deficiency.course">
79
+ Curso: {{ userData.user_deficiency.course }}
80
+ </p>
81
+
82
+ <p v-show="userData.user_deficiency.note">
83
+ Anotações: {{ userData.user_deficiency.note }}
84
+ </p>
85
+
86
+ <p v-show="userData.user_deficiency.transport === 1">
87
+ Utiliza transporte coletivo
88
+ </p>
89
+
90
+ <p v-show="userData.user_deficiency.vehicle === 1">
91
+ Possuí veículo adaptado
92
+ </p>
93
+
94
+ <p v-show="userData.user_deficiency.escort === 1">
95
+ Precisa de acompanhante
96
+ </p>
97
+ </div>
98
+
99
+ <div
100
+ v-show="userData.user_desired_job.length > 0"
101
+ class="desidered title-block mt-3 ml-4"
102
+ >
103
+ <h6 class="mb-0">Cargos desejados</h6>
104
+ <div class="line"></div>
105
+
106
+ <p
107
+ v-for="(des, index) in userData.user_desired_job"
108
+ :key="`skill-${index}`"
109
+ class="ml-1 mt-1 mb-0 text-capitalize"
110
+ v-html="highlightText(search, des.occupation)"
111
+ ></p>
112
+ </div>
113
+
114
+ <div
115
+ v-show="userData.user_language.length > 0"
116
+ class="languages title-block mt-3 ml-4"
117
+ >
118
+ <h6 class="mb-0">Idiomas</h6>
119
+ <div class="line"></div>
120
+
121
+ <p
122
+ class="mb-1 text-capitalize"
123
+ v-for="(lan, index) in userData.user_language"
124
+ :key="index"
125
+ v-html="
126
+ highlightText(
127
+ search,
128
+ `${lan.language[0].name} ${languageLevel(lan.level)}`
129
+ )
130
+ "
131
+ ></p>
132
+ </div>
133
+
134
+ <div
135
+ v-show="userData.user_skill.length > 0"
136
+ class="skills title-block ml-4"
137
+ >
138
+ <h6 class="mb-0">Habilidades</h6>
139
+ <div class="line"></div>
140
+
141
+ <p
142
+ v-for="(skill, index) in userData.user_skill"
143
+ :key="`skill-${index}`"
144
+ class="ml-1 mt-1 mb-0 text-capitalize"
145
+ v-html="highlightText(search, skill.skill_word)"
146
+ ></p>
147
+ </div>
148
+
149
+ <div class="socials text-center mt-5">
150
+ <a
151
+ :href="baseUrl + '/' + userData.slug.slug"
152
+ class="text-center"
153
+ target="_blank"
154
+ rel="noopener noreferrer"
155
+ >
156
+ <img
157
+ class="no-social"
158
+ src="../../../../assets/images/burhCv.svg"
159
+ alt="Burh"
160
+ />
161
+ </a>
162
+ <a
163
+ v-show="userData.user_complementary_information.facebook_url"
164
+ :href="userData.user_complementary_information.facebook_url"
165
+ target="_blank"
166
+ class="ml-2"
167
+ rel="noopener noreferrer"
168
+ >
169
+ <img
170
+ class="no-social"
171
+ src="../../../../assets/images/facebookCv.svg"
172
+ alt="Facebook"
173
+ />
174
+ </a>
175
+ <a
176
+ v-show="userData.user_complementary_information.linkedin_url"
177
+ :href="userData.user_complementary_information.linkedin_url"
178
+ target="_blank"
179
+ class="ml-2"
180
+ rel="noopener noreferrer"
181
+ >
182
+ <img
183
+ class="no-social"
184
+ src="../../../../assets/images/linkedinCv.svg"
185
+ alt="Linkdin"
186
+ />
187
+ </a>
188
+ <a
189
+ v-show="userData.user_complementary_information.website"
190
+ :href="userData.user_complementary_information.website"
191
+ class="text-center ml-2"
192
+ target="_blank"
193
+ rel="noopener noreferrer"
194
+ >
195
+ <img
196
+ class="no-social"
197
+ src="../../../../assets/images/webCv.svg"
198
+ alt="Web"
199
+ />
200
+ </a>
201
+ </div>
202
+
203
+ <div class="burh-code text-center mt-4">
204
+ <vue-qrcode
205
+ :value="baseUrl + '/' + userData.slug.slug"
206
+ :options="{ width: 98, height: 98 }"
207
+ class="border qr-code"
208
+ ></vue-qrcode>
209
+ <p class="mb-0">Código BURH</p>
210
+ <span class="qr-id">{{ userData.id }}</span
211
+ ><br />
212
+ <div class="teste-block">
213
+ <span class="font-weight-normal mt-2 d-block" v-if="!isLocked"
214
+ >Data de atualização:
215
+ {{ $moment(userData.updated_at).format('DD/MM/YYYY H:mm') }}
216
+ <!-- <template v-if="isLocked" @click="$emit('open-contact', isLocked)">
217
+ <i class="fa fa-lock"></i>
218
+ </template>
219
+ <template v-else>
220
+ {{$moment(userData.updated_at).format('DD/MM/YYYY H:mm')}}
221
+ </template> -->
222
+ </span>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </template>
227
+
228
+ <script>
229
+ import getPrefixes from '~/util/getPrefixes.js';
230
+ import VueQrcode from '@chenfengyuan/vue-qrcode';
231
+ // import swal from 'sweetalert2';
232
+
233
+ export default {
234
+ name: 'user-cv-left-side',
235
+ components: {
236
+ VueQrcode
237
+ },
238
+ computed: {
239
+ currentCompany() {
240
+ return this.$store.state.company.currentCompany;
241
+ }
242
+ },
243
+ props: {
244
+ userData: Object,
245
+ baseUrl: String,
246
+ search: {
247
+ type: String,
248
+ default: ''
249
+ }
250
+ },
251
+ data() {
252
+ return {
253
+ isLocked: !this.companyHasProduct(
254
+ this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['BUSCA_AVANCADA'] || false
255
+ )
256
+ };
257
+ },
258
+ methods: {
259
+ highlightText(search, text) {
260
+ if (search.length < 2) return text;
261
+
262
+ const regex = new RegExp(search.toLowerCase(), 'gmi');
263
+ return String(text || '').replace(
264
+ regex,
265
+ `<span class="search-highlight">${search}</span>`
266
+ );
267
+ },
268
+ getTime(
269
+ { start_year = null, end_year = null, start_month, end_month },
270
+ textHappening = 'Cursando'
271
+ ) {
272
+ const isHappening = !end_month && !end_year;
273
+
274
+ if (isHappening) {
275
+ return textHappening;
276
+ }
277
+
278
+ const dateInitial = this.$moment(
279
+ ['1', start_month.toString(), start_year.toString()],
280
+ 'DD/MM/YYYY'
281
+ );
282
+ const dateDone = this.$moment(
283
+ ['1', end_month.toString(), end_year.toString()],
284
+ 'DD/MM/YYYY'
285
+ );
286
+ const diffDuration = this.$moment.duration(
287
+ dateDone.diff(dateInitial)
288
+ );
289
+ const years = diffDuration.years();
290
+ const months = diffDuration.months();
291
+
292
+ if (years) {
293
+ return years > 1 ? `(${years} anos)` : `(${years} ano)`;
294
+ }
295
+
296
+ return months > 1
297
+ ? `(${months} meses)`
298
+ : months == 1
299
+ ? `(${months} mês)`
300
+ : '';
301
+ },
302
+ languageLevel(level) {
303
+ switch (parseInt(level)) {
304
+ case 1:
305
+ return 'Iniciante';
306
+ case 2:
307
+ return 'Elementar';
308
+ case 3:
309
+ return 'Pré-intermediário';
310
+ case 4:
311
+ return 'Intermediário';
312
+ case 5:
313
+ return 'Intermediário Superior';
314
+ case 6:
315
+ return 'Avançado';
316
+ case 7:
317
+ return 'Fluente';
318
+ default:
319
+ return '';
320
+ }
321
+ },
322
+ treatPhone(phone) {
323
+ if (phone) {
324
+ if (phone == '0' || phone.length < 9 || !phone) {
325
+ return 'não cadastrado';
326
+ }
327
+ }
328
+
329
+ return phone;
330
+ },
331
+ treatCellphone(cellphone) {
332
+ if (cellphone) {
333
+ if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
334
+ return 'não cadastrado';
335
+ }
336
+ }
337
+
338
+ return cellphone;
339
+ },
340
+ handleGetPrefixes(name = '') {
341
+ return getPrefixes(name);
342
+ },
343
+ treatEndDate(end_month, end_year) {
344
+ if (end_month && end_year) {
345
+ return `${end_month}/${end_year}`;
346
+ }
347
+ return '';
348
+ }
349
+ },
350
+ filters: {
351
+ allDeficiencies(id) {
352
+ const typeDeficiency = {
353
+ 1: 'Deficiência Física',
354
+ 2: 'Deficiência Visual',
355
+ 3: 'Deficiência Mental',
356
+ 4: 'Deficiência Auditiva',
357
+ 5: 'Deficiência Fonológica',
358
+ 6: 'Deficiência Múltipla'
359
+ };
360
+
361
+ return typeDeficiency[id] || '-';
362
+ },
363
+ convertMoney(money) {
364
+ let moneyAux = parseFloat(money);
365
+ let m = moneyAux.toLocaleString('pt-BR', {
366
+ style: 'currency',
367
+ currency: 'BRL'
368
+ });
369
+ return m;
370
+ }
371
+ }
372
+ };
373
+ </script>
374
+
375
+ <style lang="scss" scoped>
376
+ @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
377
+
378
+ /deep/ .search-highlight {
379
+ background: rgb(255, 252, 61);
380
+ color: #000;
381
+ }
382
+
383
+ .teste-block {
384
+ display: inline !important;
385
+ }
386
+ .qr-id {
387
+ color: #32325d !important;
388
+ }
389
+
390
+ .bg-light--darken {
391
+ background-color: $gray-100 !important;
392
+ }
393
+
394
+ .profile {
395
+ .avatar {
396
+ width: initial!important;
397
+ height: initial!important;
398
+ margin-top: -48px;
399
+ background: transparent !important;
400
+ img {
401
+ width: 163px;
402
+ height: 163px;
403
+ border-radius: 50%;
404
+ top: 75%;
405
+ background: #adb5bd;
406
+ border: 4px solid #fff;
407
+ }
408
+
409
+ .no-image {
410
+ display: flex;
411
+ justify-content: center;
412
+ align-items: center;
413
+
414
+ position: absolute;
415
+ background-color: #adb5bd;
416
+ width: 163px;
417
+ height: 163px;
418
+ top: 120;
419
+ border-radius: 50%;
420
+ margin-bottom: 20px;
421
+ border: 4px solid #fff;
422
+ }
423
+ }
424
+
425
+ .user-info {
426
+ padding: 0 20px;
427
+ margin-top: 5px;
428
+ }
429
+
430
+ p {
431
+ font-size: 13px;
432
+ font-weight: 400;
433
+ color: #62778c;
434
+ line-height: 0.85rem;
435
+ margin-bottom: 2rem;
436
+ }
437
+
438
+ span {
439
+ font-size: 14px;
440
+ color: #8da2b5;
441
+ }
442
+ }
443
+
444
+ .skills {
445
+ margin-top: 2.3rem;
446
+ margin-bottom: 2.3rem;
447
+ }
448
+
449
+ .desidered {
450
+ margin-bottom: 2.3rem;
451
+ }
452
+
453
+ .deficiency {
454
+ p {
455
+ margin-top: 0.25rem;
456
+ margin-bottom: 0;
457
+ text-transform: capitalize;
458
+ }
459
+ }
460
+
461
+ .languages {
462
+ margin-bottom: 2.3rem;
463
+ }
464
+
465
+ .title-block {
466
+ .line {
467
+ width: 235px;
468
+ height: 0px;
469
+ border: 1px solid #ececec5c;
470
+ margin-bottom: 0.75rem;
471
+ }
472
+
473
+ p {
474
+ font-size: 13px;
475
+ }
476
+ }
477
+
478
+ .burh-code {
479
+ .qr-code {
480
+ box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
481
+ border-radius: 10px;
482
+ }
483
+
484
+ p {
485
+ font-size: 8px;
486
+ font-weight: bold;
487
+ }
488
+
489
+ span {
490
+ font-size: 12px;
491
+ font-weight: bold;
492
+ }
493
+ }
494
+
495
+ .socials {
496
+ .no-social {
497
+ height: 1.39rem;
498
+ }
499
+ }
500
+
501
+ .cv-left {
502
+ word-break: initial;
503
+ }
504
+
505
+ .disable-none {
506
+ user-select: none;
507
+ }
508
+
509
+ .content-left {
510
+ width: 25%;
511
+ height: auto;
512
+ padding: 0 20px;
513
+ word-break: break-word !important;
514
+ color: #62778c !important;
515
+ }
516
+ </style>