adata-ui 0.3.73 → 0.3.74

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.
Files changed (96) hide show
  1. package/README.md +7 -7
  2. package/babel.config.js +5 -5
  3. package/package.json +76 -76
  4. package/public/index.html +17 -17
  5. package/public/logo.svg +4 -4
  6. package/src/App.vue +25 -25
  7. package/src/assets/_text_field.scss +224 -224
  8. package/src/assets/facebook.svg +4 -4
  9. package/src/assets/instagram.svg +6 -6
  10. package/src/assets/logo-desktop-main.svg +8 -8
  11. package/src/assets/logo-desktop.svg +9 -9
  12. package/src/assets/logo-mobile-main.svg +4 -4
  13. package/src/assets/logo-mobile.svg +9 -9
  14. package/src/assets/logo-white-desktop.svg +8 -8
  15. package/src/assets/style.scss +1 -1
  16. package/src/assets/telegram.svg +4 -4
  17. package/src/assets/tiktok.svg +4 -4
  18. package/src/assets/up-down.svg +3 -3
  19. package/src/assets/youtube.svg +5 -5
  20. package/src/components/Alert/Alert.stories.js +17 -17
  21. package/src/components/Alert/Alert.vue +63 -63
  22. package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +160 -160
  23. package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +24 -24
  24. package/src/components/Button/AButton.vue +231 -231
  25. package/src/components/Button/Button.stories.js +23 -23
  26. package/src/components/Checkbox/ACheckbox.vue +114 -114
  27. package/src/components/Checkbox/Checkbox.stories.js +15 -15
  28. package/src/components/CheckboxMenu/CheckboxMenu.stories.js +23 -23
  29. package/src/components/CheckboxMenu/CheckboxMenu.vue +108 -108
  30. package/src/components/ErrorPages/BadGateway.vue +224 -224
  31. package/src/components/ErrorPages/Forbidden.vue +468 -468
  32. package/src/components/ErrorPages/InternalServerError.vue +275 -275
  33. package/src/components/ErrorPages/NotFound.vue +995 -995
  34. package/src/components/ErrorPages/Unavailable.vue +3705 -3705
  35. package/src/components/Footer/Footer.stories.js +20 -20
  36. package/src/components/Footer/Footer.vue +292 -292
  37. package/src/components/Header/ChildLinks.vue +141 -122
  38. package/src/components/Header/Header.stories.js +56 -56
  39. package/src/components/Header/Header.vue +1289 -1289
  40. package/src/components/Header/InfoHeader.vue +319 -319
  41. package/src/components/Header/Profile.vue +670 -670
  42. package/src/components/Header/ProfileMenu.vue +291 -276
  43. package/src/components/Header/ProfileMobile.vue +308 -308
  44. package/src/components/Header/ProfileOld.vue +781 -781
  45. package/src/components/InternalServerError/InternalServerError.stories.js +16 -16
  46. package/src/components/InternalServerError/InternalServerError.vue +262 -262
  47. package/src/components/Introduction.stories.mdx +7 -7
  48. package/src/components/Loader/Loader.stories.js +24 -24
  49. package/src/components/Loader/Loader.vue +325 -325
  50. package/src/components/MailTo/MailTo.stories.js +14 -14
  51. package/src/components/MailTo/MailTo.vue +258 -258
  52. package/src/components/NavIcon/ANavIcon.vue +49 -49
  53. package/src/components/NavIcon/NavIcon.stories.js +14 -14
  54. package/src/components/PasswordField/PasswordField.stories.js +16 -16
  55. package/src/components/PasswordField/PasswordField.vue +77 -77
  56. package/src/components/SearchTextField/SearchTextField.stories.js +77 -77
  57. package/src/components/SearchTextField/SearchTextField.vue +230 -230
  58. package/src/components/ServiceSlider/AServiceSlider.vue +782 -782
  59. package/src/components/ServiceSlider/ServiceSlider.stories.js +20 -20
  60. package/src/components/Table/ATable.vue +117 -117
  61. package/src/components/Table/Table.stories.js +15 -15
  62. package/src/components/TextArea/TextArea.stories.js +17 -17
  63. package/src/components/TextArea/TextArea.vue +116 -116
  64. package/src/components/TextError/TextError.stories.js +15 -15
  65. package/src/components/TextError/TextError.vue +57 -57
  66. package/src/components/TextField/TextField.stories.js +17 -17
  67. package/src/components/TextField/TextField.vue +107 -107
  68. package/src/components/index.js +54 -54
  69. package/src/components/newComponents/FooterNew/FooterBottom.vue +153 -153
  70. package/src/components/newComponents/FooterNew/FooterItem.vue +113 -113
  71. package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -20
  72. package/src/components/newComponents/FooterNew/FooterNew.vue +39 -39
  73. package/src/components/newComponents/FooterNew/FooterTop.vue +321 -321
  74. package/src/components/transitions/SlideToggle.vue +55 -55
  75. package/src/components/transitions/VerticalMobileToggle.vue +75 -75
  76. package/src/configs/icons.js +112 -112
  77. package/src/configs/profileDropDown.js +134 -134
  78. package/src/main.js +12 -12
  79. package/dist/adata-ui.common.js +0 -12969
  80. package/dist/adata-ui.common.js.map +0 -1
  81. package/dist/adata-ui.css +0 -1
  82. package/dist/adata-ui.umd.js +0 -12979
  83. package/dist/adata-ui.umd.js.map +0 -1
  84. package/dist/adata-ui.umd.min.js +0 -7
  85. package/dist/adata-ui.umd.min.js.map +0 -1
  86. package/dist/demo.html +0 -10
  87. package/dist/img/facebook.797d820f.svg +0 -4
  88. package/dist/img/instagram.8a77381c.svg +0 -6
  89. package/dist/img/logo-desktop-main.4d169395.svg +0 -8
  90. package/dist/img/logo-mobile-main.397bce24.svg +0 -4
  91. package/dist/img/logo-white-desktop.7d0e3481.svg +0 -8
  92. package/dist/img/telegram.be0d1008.svg +0 -4
  93. package/dist/img/tiktok.eaeb39cb.svg +0 -4
  94. package/dist/img/up-down.e2b28f72.svg +0 -3
  95. package/dist/img/youtube.125aace6.svg +0 -5
  96. package/package-lock.json +0 -26218
@@ -1,1289 +1,1289 @@
1
- <template>
2
- <header :class="{ sticky: isSticky }">
3
- <InfoHeader
4
- :weather="weather"
5
- :currencies="currencies"
6
- :system-message="systemMessage"
7
- :requestCount="requestCount"
8
- :daysRemaining="daysRemaining"
9
- :is-open-notification="isOpenNotification"
10
- :is-authenticated="isAuthenticated"
11
- @closeNotification="closeNotification"
12
- />
13
- <div class="header" :class="{ bordered: isBordered }">
14
- <div class="container">
15
- <div class="header__left">
16
- <a
17
- class="logo"
18
- :href="main[mode]"
19
- onclick="return false;"
20
- @click="goToAnotherModule(main[mode])"
21
- >
22
-
23
- <span class="logo-desktop">
24
- </span>
25
- <span class="logo-mobile">
26
- </span>
27
- </a>
28
- <div class="menu" v-show="headerItems.length > 0">
29
- <div
30
- class="menu__item"
31
- v-for="(item, index) in headerItems"
32
- :key="index">
33
- <a
34
- class="menu__wrapper menu__items"
35
- :class="{ active: item.key === activeTabKey }"
36
- :href="item[mode]"
37
- @click="goToAnotherModule(item[mode])"
38
- onclick="return false;"
39
- >
40
- {{ item.name }}
41
- </a>
42
- <child-links class="menu__sublinks" :links="item" :module="activeTabKey" :mode="mode" />
43
- </div>
44
- </div>
45
- <div class="mobile-search">
46
- <div v-show="hasSearchField" @click="$emit('search')" class="search-input">
47
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
48
- <path d="M14 13.9995L10.5967 10.596" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
49
- <circle cx="7" cy="7" r="5" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
50
- </svg>
51
- Найти
52
- </div>
53
- </div>
54
- </div>
55
- <div class="header__right" v-show="!noAuth">
56
- <Profile
57
- :mode="mode"
58
- :activeTabKey="activeTabKey"
59
- :isAuthenticated="isAuthenticated"
60
- :email="email"
61
- :loginUrl="loginUrl"
62
- :rate="rate"
63
- :balance="this.thousandSeparator(balance)"
64
- :tab="tab"
65
- @showBalanceModal="
66
- (val) => {
67
- $emit('showBalanceModal', val);
68
- }
69
- "
70
- @setShowModal="
71
- (val) => {
72
- $emit('setShowModal', val);
73
- }
74
- "
75
- @logout="$emit('logout')"
76
- @setIsReplenishModal="
77
- (val) => {
78
- $emit('setIsReplenishModal', val);
79
- }
80
- "
81
- />
82
- </div>
83
- </div>
84
- <MobileToggle v-slot="{ animationClass }">
85
- <div
86
- class="menu_mobile"
87
- :class="animationClass"
88
- v-show="headerItems.length > 0 && isOpen"
89
- >
90
- <div class="empty-space" @click="changeValue"></div>
91
- <div class="menu-wrapper">
92
- <div class="menu-wrapper__top">
93
- <div class="mobile-table-head">
94
- <button
95
- @click.prevent="goAuth"
96
- class="sign"
97
- v-if="!isAuthenticated"
98
- >
99
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
100
- <path d="M13.5 15L16.5 11.9189L13.6154 9" stroke="#007AFF" stroke-miterlimit="10"
101
- stroke-linecap="round" stroke-linejoin="round"/>
102
- <path d="M9 7.125V4.5H19.5V19.5H9V17.4375" stroke="#007AFF" stroke-miterlimit="10"
103
- stroke-linecap="round" stroke-linejoin="round"/>
104
- <path d="M16 12H4" stroke="#007AFF" stroke-miterlimit="10" stroke-linecap="round"
105
- stroke-linejoin="round"/>
106
- </svg>
107
- <span>Войти</span>
108
- </button>
109
- <div v-else class="menu-wrapper__top-left">
110
- <div class="text-wrapper">
111
- <p>{{ email }}
112
- <span @click.stop="changeValue">
113
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
114
- <path d="M1.99902 1.99957L13.9996 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
115
- <path d="M14 1.99957L1.9994 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
116
- </svg>
117
- </span>
118
- </p>
119
- <p>Тариф {{ rate }}
120
- <span @click.stop.prevent="isActiveMenu = true">
121
- Перейти
122
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
123
- <rect width="24" height="24" rx="12" transform="matrix(-1 0 0 1 24 0)" fill="#007AFF" fill-opacity="0.12"/>
124
- <path d="M14.0005 8.00311L18.0005 12.0096L14.0005 16.0031" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10"
125
- stroke-linecap="round" stroke-linejoin="round"/>
126
- <path d="M18 12L6 12" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
127
- </svg>
128
- </span>
129
- </p>
130
- </div>
131
- </div>
132
- <div v-if="!isAuthenticated" class="menu-wrapper__top-right" @click.stop="changeValue">
133
- <svg
134
- width="18"
135
- height="18"
136
- fill="none"
137
- xmlns="http://www.w3.org/2000/svg"
138
- viewBox="0 0 24 24"
139
- >
140
- <path
141
- fill-rule="evenodd"
142
- clip-rule="evenodd"
143
- d="M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z"
144
- fill="#2C3E50"
145
- ></path>
146
- <path
147
- fill-rule="evenodd"
148
- clip-rule="evenodd"
149
- d="M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z"
150
- fill="#2C3E50"
151
- ></path>
152
- </svg>
153
- </div>
154
- </div>
155
- <div class="menu__link">
156
- <a
157
- v-for="(item, index) in headerItems"
158
- :key="index"
159
- class="menu_mobile-wrapper"
160
- :class="{ 'active-burger-tab': item.key === activeTabKey }"
161
- :href="item[mode]"
162
- >
163
- {{ item.name }}
164
- </a>
165
- </div>
166
- </div>
167
- <div class="menu-wrapper__bottom">
168
- <div class="menu-wrapper__bottom-header">
169
- <span>Валюта</span>
170
- <span>Покупка</span>
171
- <span>Продажа</span>
172
- </div>
173
- <div class="menu-wrapper__bottom-body">
174
- <div v-for="(currency, index) in currencies" :key="index" class="menu-wrapper__bottom-row">
175
- <div class="menu-wrapper__bottom-column">
176
- <svg v-if="currency.currency === 'USD'" width="16" height="17" viewBox="0 0 16 17" fill="none"
177
- xmlns="http://www.w3.org/2000/svg">
178
- <g clip-path="url(#clip0_179_1917)">
179
- <path d="M26.4 0.5H-4V16.5H26.4V0.5Z" fill="white"/>
180
- <path d="M26.4 0.5H-4V1.732H26.4V0.5Z" fill="#B22234"/>
181
- <path d="M26.4 2.95996H-4V4.19196H26.4V2.95996Z" fill="#B22234"/>
182
- <path d="M26.4 5.42407H-4V6.65607H26.4V5.42407Z" fill="#B22234"/>
183
- <path d="M26.4 7.88403H-4V9.11603H26.4V7.88403Z" fill="#B22234"/>
184
- <path d="M26.4 10.3479H-4V11.5799H26.4V10.3479Z" fill="#B22234"/>
185
- <path d="M26.4 12.8081H-4V14.0401H26.4V12.8081Z" fill="#B22234"/>
186
- <path d="M26.4 15.2681H-4V16.5001H26.4V15.2681Z" fill="#B22234"/>
187
- <path d="M8.16 0.5H-4V9.116H8.16V0.5Z" fill="#3C3B6E"/>
188
- <path
189
- d="M0.603882 1.20011L0.891882 1.40811L0.783882 1.75211L1.07188 1.54011L1.35988 1.75211L1.25188 1.40811L1.53988 1.20011H1.18388L1.07188 0.860107L0.959882 1.20011H0.603882Z"
190
- fill="white"/>
191
- <path
192
- d="M2.61987 1.20011L2.90787 1.40811L2.79987 1.75211L3.08787 1.54011L3.37587 1.75211L3.26787 1.40811L3.55587 1.20011H3.19987L3.08787 0.860107L2.97587 1.20011H2.61987Z"
193
- fill="white"/>
194
- <path
195
- d="M4.63599 1.20011L4.92399 1.40811L4.81599 1.75211L5.10399 1.54011L5.39199 1.75211L5.28399 1.40811L5.57199 1.20011H5.21599L5.10399 0.860107L4.99199 1.20011H4.63599Z"
196
- fill="white"/>
197
- <path
198
- d="M6.65198 1.20011L6.93998 1.40811L6.83198 1.75211L7.11998 1.54011L7.40798 1.75211L7.29998 1.40811L7.58798 1.20011H7.23198L7.11998 0.860107L7.00798 1.20011H6.65198Z"
199
- fill="white"/>
200
- <path
201
- d="M-0.403931 2.06412L-0.115931 2.27212L-0.223931 2.61612L0.0640694 2.40412L0.352069 2.61612L0.244069 2.27212L0.532069 2.06412H0.176069L0.0640694 1.72412L-0.0479305 2.06412H-0.403931Z"
202
- fill="white"/>
203
- <path
204
- d="M1.61206 2.06412L1.90006 2.27212L1.79206 2.61612L2.08006 2.40412L2.36806 2.61612L2.26006 2.27212L2.54806 2.06412H2.19206L2.08006 1.72412L1.96806 2.06412H1.61206Z"
205
- fill="white"/>
206
- <path
207
- d="M3.62817 2.06412L3.91617 2.27212L3.80817 2.61612L4.09617 2.40412L4.38417 2.61612L4.27617 2.27212L4.56417 2.06412H4.20817L4.09617 1.72412L3.98417 2.06412H3.62817Z"
208
- fill="white"/>
209
- <path
210
- d="M5.64417 2.06412L5.93216 2.27212L5.82416 2.61612L6.11216 2.40412L6.40016 2.61612L6.29216 2.27212L6.58016 2.06412H6.22416L6.11216 1.72412L6.00016 2.06412H5.64417Z"
211
- fill="white"/>
212
- <path
213
- d="M0.603882 2.92789L0.891882 3.13589L0.783882 3.47989L1.07188 3.26789L1.35988 3.47989L1.25188 3.13589L1.53988 2.92789H1.18388L1.07188 2.58789L0.959882 2.92789H0.603882Z"
214
- fill="white"/>
215
- <path
216
- d="M2.61987 2.92789L2.90787 3.13589L2.79987 3.47989L3.08787 3.26789L3.37587 3.47989L3.26787 3.13589L3.55587 2.92789H3.19987L3.08787 2.58789L2.97587 2.92789H2.61987Z"
217
- fill="white"/>
218
- <path
219
- d="M4.63599 2.92789L4.92399 3.13589L4.81599 3.47989L5.10399 3.26789L5.39199 3.47989L5.28399 3.13589L5.57199 2.92789H5.21599L5.10399 2.58789L4.99199 2.92789H4.63599Z"
220
- fill="white"/>
221
- <path
222
- d="M6.65198 2.92789L6.93998 3.13589L6.83198 3.47989L7.11998 3.26789L7.40798 3.47989L7.29998 3.13589L7.58798 2.92789H7.23198L7.11998 2.58789L7.00798 2.92789H6.65198Z"
223
- fill="white"/>
224
- <path
225
- d="M-0.380127 3.7959L-0.0881271 4.0039L-0.200127 4.3439L0.0878731 4.1359L0.379873 4.3439L0.267873 4.0039L0.555873 3.7959H0.199873L0.0878731 3.4519L-0.0201271 3.7959H-0.380127Z"
226
- fill="white"/>
227
- <path
228
- d="M1.63599 3.7959L1.92399 4.0039L1.81599 4.3439L2.10399 4.1359L2.39599 4.3439L2.28399 4.0039L2.57199 3.7959H2.21599L2.10399 3.4519L1.99599 3.7959H1.63599Z"
229
- fill="white"/>
230
- <path
231
- d="M3.65198 3.7959L3.94398 4.0039L3.83198 4.3439L4.11998 4.1359L4.41198 4.3439L4.29998 4.0039L4.58798 3.7959H4.23198L4.11998 3.4519L4.01198 3.7959H3.65198Z"
232
- fill="white"/>
233
- <path
234
- d="M5.66797 3.7959L5.95597 4.0039L5.84797 4.3439L6.13597 4.1359L6.42797 4.3439L6.31597 4.0039L6.60397 3.7959H6.24797L6.13597 3.4519L6.02797 3.7959H5.66797Z"
235
- fill="white"/>
236
- <path
237
- d="M0.635986 4.65201L0.923986 4.86001L0.811986 5.20401L1.10399 4.99201L1.39199 5.20401L1.27999 4.86001L1.57199 4.65201H1.21199L1.10399 4.31201L0.991986 4.65201H0.635986Z"
238
- fill="white"/>
239
- <path
240
- d="M2.65198 4.65201L2.93998 4.86001L2.82798 5.20401L3.11998 4.99201L3.40798 5.20401L3.29598 4.86001L3.58798 4.65201H3.22798L3.11998 4.31201L3.00798 4.65201H2.65198Z"
241
- fill="white"/>
242
- <path
243
- d="M4.66406 4.65201L4.95606 4.86001L4.84406 5.20401L5.13606 4.99201L5.42406 5.20401L5.31206 4.86001L5.60406 4.65201H5.24406L5.13606 4.31201L5.02406 4.65201H4.66406Z"
244
- fill="white"/>
245
- <path
246
- d="M6.40002 4.84L6.69202 5.048L6.58002 5.392L6.87202 5.18L7.16002 5.392L7.04802 5.048L7.34002 4.84H6.98002L6.87202 4.5L6.76002 4.84H6.40002Z"
247
- fill="white"/>
248
- <path
249
- d="M0.651978 6.35196L0.943977 6.55996L0.831978 6.90396L1.11998 6.69196L1.41198 6.90396L1.29998 6.55996L1.58798 6.35196H1.23198L1.11998 6.01196L1.01198 6.35196H0.651978Z"
250
- fill="white"/>
251
- <path
252
- d="M2.66797 6.35196L2.95997 6.55996L2.84797 6.90396L3.13597 6.69196L3.42797 6.90396L3.31597 6.55996L3.60797 6.35196H3.24797L3.13597 6.01196L3.02797 6.35196H2.66797Z"
253
- fill="white"/>
254
- <path
255
- d="M4.68396 6.35196L4.97596 6.55996L4.86396 6.90396L5.15196 6.69196L5.44396 6.90396L5.33196 6.55996L5.61996 6.35196H5.26396L5.15196 6.01196L5.04396 6.35196H4.68396Z"
256
- fill="white"/>
257
- <path
258
- d="M6.69995 6.35196L6.99195 6.55996L6.87995 6.90396L7.16795 6.69196L7.45995 6.90396L7.34795 6.55996L7.63595 6.35196H7.27995L7.16795 6.01196L7.05995 6.35196H6.69995Z"
259
- fill="white"/>
260
- <path
261
- d="M0.628174 8.07193L0.916174 8.28393L0.808174 8.62393L1.09617 8.41193L1.38817 8.62393L1.27617 8.28393L1.56417 8.07193H1.20817L1.09617 7.73193L0.988174 8.07193H0.628174Z"
262
- fill="white"/>
263
- <path
264
- d="M2.64417 8.07193L2.93616 8.28393L2.82416 8.62393L3.11216 8.41193L3.40416 8.62393L3.29216 8.28393L3.58016 8.07193H3.22416L3.11216 7.73193L3.00416 8.07193H2.64417Z"
265
- fill="white"/>
266
- <path
267
- d="M4.66016 8.07193L4.95216 8.28393L4.84016 8.62393L5.12816 8.41193L5.42016 8.62393L5.30816 8.28393L5.59616 8.07193H5.24016L5.12816 7.73193L5.02016 8.07193H4.66016Z"
268
- fill="white"/>
269
- <path
270
- d="M6.67615 8.07193L6.96415 8.28393L6.85615 8.62393L7.14415 8.41193L7.43615 8.62393L7.32415 8.28393L7.61215 8.07193H7.25615L7.14415 7.73193L7.03615 8.07193H6.67615Z"
271
- fill="white"/>
272
- <path
273
- d="M-0.376221 5.4921L-0.0842209 5.7041L-0.196221 6.0441L0.095779 5.8321L0.383779 6.0441L0.275779 5.7041L0.563779 5.4921H0.203779L0.095779 5.1521L-0.0162209 5.4921H-0.376221Z"
274
- fill="white"/>
275
- <path
276
- d="M1.64417 5.4921L1.93217 5.7041L1.82017 6.0441L2.11217 5.8321L2.40017 6.0441L2.28817 5.7041L2.58017 5.4921H2.22017L2.11217 5.1521L2.00017 5.4921H1.64417Z"
277
- fill="white"/>
278
- <path
279
- d="M3.65588 5.4921L3.94788 5.7041L3.83588 6.0441L4.12788 5.8321L4.41588 6.0441L4.30788 5.7041L4.59588 5.4921H4.23588L4.12788 5.1521L4.01588 5.4921H3.65588Z"
280
- fill="white"/>
281
- <path
282
- d="M5.67188 5.4921L5.96387 5.7041L5.85187 6.0441L6.14387 5.8321L6.43187 6.0441L6.31987 5.7041L6.61187 5.4921H6.25187L6.14387 5.1521L6.03187 5.4921H5.67188Z"
283
- fill="white"/>
284
- <path
285
- d="M-0.380127 7.21207L-0.0881271 7.42007L-0.200127 7.76007L0.0878731 7.55207L0.379873 7.76007L0.267873 7.42007L0.555873 7.21207H0.199873L0.0878731 6.87207L-0.0201271 7.21207H-0.380127Z"
286
- fill="white"/>
287
- <path
288
- d="M1.63599 7.21207L1.92399 7.42007L1.81599 7.76007L2.10399 7.55207L2.39599 7.76007L2.28399 7.42007L2.57199 7.21207H2.21599L2.10399 6.87207L1.99599 7.21207H1.63599Z"
289
- fill="white"/>
290
- <path
291
- d="M3.65198 7.21207L3.94398 7.42007L3.83198 7.76007L4.11998 7.55207L4.41198 7.76007L4.29998 7.42007L4.58798 7.21207H4.23198L4.11998 6.87207L4.01198 7.21207H3.65198Z"
292
- fill="white"/>
293
- <path
294
- d="M5.66797 7.21207L5.95597 7.42007L5.84797 7.76007L6.13597 7.55207L6.42797 7.76007L6.31597 7.42007L6.60397 7.21207H6.24797L6.13597 6.87207L6.02797 7.21207H5.66797Z"
295
- fill="white"/>
296
- </g>
297
- <defs>
298
- <clipPath id="clip0_179_1917">
299
- <path
300
- d="M0 2.5C0 1.39543 0.895431 0.5 2 0.5H14C15.1046 0.5 16 1.39543 16 2.5V14.5C16 15.6046 15.1046 16.5 14 16.5H2C0.895431 16.5 0 15.6046 0 14.5V2.5Z"
301
- fill="white"/>
302
- </clipPath>
303
- </defs>
304
- </svg>
305
- <svg v-if="currency.currency === 'EUR'" width="16" height="17" viewBox="0 0 16 17" fill="none"
306
- xmlns="http://www.w3.org/2000/svg">
307
- <path
308
- d="M0 2.5C0 1.39543 0.895431 0.5 2 0.5H14C15.1046 0.5 16 1.39543 16 2.5V14.5C16 15.6046 15.1046 16.5 14 16.5H2C0.895431 16.5 0 15.6046 0 14.5V2.5Z"
309
- fill="#314199"/>
310
- <path
311
- d="M7.99479 12.5967L8.18355 13.1573L8.75857 13.1568L8.35044 13.4667L8.46265 14.0686L7.99479 13.7271L7.52542 14.0594L7.639 13.4667L7.23511 13.1549H7.80958L7.99479 12.5967Z"
312
- fill="#F8EC26"/>
313
- <path
314
- d="M7.99479 2.85718L8.18355 3.41796L8.75857 3.41727L8.35044 3.72735L8.46265 4.32913L7.99479 3.98765L7.52542 4.31994L7.639 3.72735L7.23511 3.41535H7.80958L7.99479 2.85718Z"
315
- fill="#F8EC26"/>
316
- <path
317
- d="M10.333 3.48364L10.5218 4.04428L11.097 4.04373L10.6888 4.35368L10.8009 4.95546L10.333 4.61411L9.86366 4.94641L9.97739 4.35368L9.57349 4.04181H10.148L10.333 3.48364Z"
318
- fill="#F8EC26"/>
319
- <path
320
- d="M5.54397 3.48364L5.73273 4.04428L6.3079 4.04373L5.89976 4.35368L6.01184 4.95546L5.54397 4.61411L5.0746 4.94641L5.18832 4.35368L4.78442 4.04181H5.35877L5.54397 3.48364Z"
321
- fill="#F8EC26"/>
322
- <path
323
- d="M10.333 11.9387L10.5218 12.4995L11.097 12.4989L10.6888 12.8089L10.8009 13.4107L10.333 13.0693L9.86366 13.4016L9.97739 12.8089L9.57349 12.4969H10.148L10.333 11.9387Z"
324
- fill="#F8EC26"/>
325
- <path
326
- d="M5.54397 11.9387L5.73273 12.4995L6.3079 12.4989L5.89976 12.8089L6.01184 13.4107L5.54397 13.0693L5.0746 13.4016L5.18832 12.8089L4.78442 12.4969H5.35877L5.54397 11.9387Z"
327
- fill="#F8EC26"/>
328
- <path
329
- d="M3.75309 5.32153L3.94185 5.88231L4.51688 5.88162L4.10888 6.1917L4.22082 6.79349L3.75309 6.45214L3.28372 6.7843L3.39731 6.1917L2.99341 5.8797H3.56789L3.75309 5.32153Z"
330
- fill="#F8EC26"/>
331
- <path
332
- d="M12.1823 5.32153L12.3711 5.88231L12.9462 5.88162L12.5381 6.1917L12.6502 6.79349L12.1823 6.45214L11.7129 6.7843L11.8265 6.1917L11.4226 5.8797H11.9971L12.1823 5.32153Z"
333
- fill="#F8EC26"/>
334
- <path
335
- d="M3.75309 10.1826L3.94185 10.7434L4.51688 10.7427L4.10888 11.0528L4.22082 11.6546L3.75309 11.3131L3.28372 11.6454L3.39731 11.0528L2.99341 10.7408H3.56789L3.75309 10.1826Z"
336
- fill="#F8EC26"/>
337
- <path
338
- d="M12.1823 10.1826L12.3711 10.7434L12.9462 10.7427L12.5381 11.0528L12.6502 11.6546L12.1823 11.3131L11.7129 11.6454L11.8265 11.0528L11.4226 10.7408H11.9971L12.1823 10.1826Z"
339
- fill="#F8EC26"/>
340
- <path
341
- d="M3.19682 7.73389L3.38558 8.29466L3.96074 8.29398L3.55261 8.60406L3.66469 9.20584L3.19682 8.86436L2.72745 9.19665L2.84103 8.60406L2.43713 8.29206H3.01161L3.19682 7.73389Z"
342
- fill="#F8EC26"/>
343
- <path
344
- d="M12.799 7.73389L12.9877 8.29466L13.5629 8.29398L13.1548 8.60406L13.2668 9.20584L12.799 8.86436L12.3296 9.19665L12.4433 8.60406L12.0394 8.29206H12.6138L12.799 7.73389Z"
345
- fill="#F8EC26"/>
346
- </svg>
347
- <svg v-if="currency.currency === 'RUB'" width="16" height="17" viewBox="0 0 16 17" fill="none"
348
- xmlns="http://www.w3.org/2000/svg">
349
- <g clip-path="url(#clip0_179_2012)">
350
- <path d="M0 0.5C0 -0.60457 0.895431 -1.5 2 -1.5H18C19.1046 -1.5 20 -0.604569 20 0.5V5.5H0V0.5Z"
351
- fill="#F0F0F0"/>
352
- <rect y="5.5" width="20" height="7" fill="#0039A6"/>
353
- <path d="M0 11.5H20V16.5C20 17.6046 19.1046 18.5 18 18.5H2C0.895431 18.5 0 17.6046 0 16.5V11.5Z"
354
- fill="#D52B1E"/>
355
- </g>
356
- <defs>
357
- <clipPath id="clip0_179_2012">
358
- <rect y="0.5" width="16" height="16" rx="2" fill="white"/>
359
- </clipPath>
360
- </defs>
361
- </svg>
362
- <svg v-if="currency.currency === 'CNY'" width="16" height="16" viewBox="0 0 16 16" fill="none"
363
- xmlns="http://www.w3.org/2000/svg">
364
- <path
365
- d="M0 2C0 0.895431 0.895431 0 2 0H14C15.1046 0 16 0.895431 16 2V14C16 15.1046 15.1046 16 14 16H2C0.895431 16 0 15.1046 0 14V2Z"
366
- fill="#DE2910"/>
367
- <path
368
- d="M4.00115 1.60043L5.41155 5.94203L1.71875 3.25883H6.28355L2.59075 5.94203L4.00115 1.60043Z"
369
- fill="#FFDE00"/>
370
- <path
371
- d="M7.3125 2.01103L8.3117 0.863831L8.1781 2.37983L7.3957 1.07503L8.7957 1.67023L7.3125 2.01103Z"
372
- fill="#FFDE00"/>
373
- <path
374
- d="M8.80803 3.31335L10.1744 2.64375L9.46323 3.98855L9.24803 2.48215L10.3072 3.57415L8.80803 3.31335Z"
375
- fill="#FFDE00"/>
376
- <path
377
- d="M8.82968 5.38077L10.3497 5.32637L9.15208 6.26477L9.56968 4.80157L10.0913 6.23037L8.82968 5.38077Z"
378
- fill="#FFDE00"/>
379
- <path d="M7.3758 6.6997L8.7998 7.2365L7.3326 7.6397L8.283 6.4509L8.2118 7.9709L7.3758 6.6997Z"
380
- fill="#FFDE00"/>
381
- </svg>
382
-
383
- <span>{{ currency.currency }}</span>
384
- </div>
385
- <div class="menu-wrapper__bottom-column">
386
- <span>{{ currency.sell }}</span>
387
- <svg v-if="currency.sell_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
388
- xmlns="http://www.w3.org/2000/svg">
389
- <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
390
- </svg>
391
- <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
392
- xmlns="http://www.w3.org/2000/svg">
393
- <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
394
- </svg>
395
- </div>
396
- <div class="menu-wrapper__bottom-column">
397
- <span>{{ currency.buy }}</span>
398
- <svg v-if="currency.buy_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
399
- xmlns="http://www.w3.org/2000/svg">
400
- <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
401
- </svg>
402
- <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
403
- xmlns="http://www.w3.org/2000/svg">
404
- <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
405
- </svg>
406
- </div>
407
- </div>
408
- </div>
409
- <div v-show="isAuthenticated" class="menu_mobile-footer">
410
- <button class="sign" @click="$emit('logout')">
411
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
412
- <path d="M16.5 15L19.5 12L16.5 9" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
413
- stroke-linejoin="round"/>
414
- <path d="M15 16.875L15 19.5L4.5 19.5L4.5 4.5L15 4.5L15 6.5625" stroke="white" stroke-miterlimit="10"
415
- stroke-linecap="round" stroke-linejoin="round"/>
416
- <path d="M19 12H8" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
417
- stroke-linejoin="round"/>
418
- </svg>
419
- <span>Выход</span>
420
- </button>
421
- </div>
422
- </div>
423
- </div>
424
- </div>
425
- </MobileToggle>
426
- </div>
427
- </header>
428
- </template>
429
-
430
- <script>
431
- import Profile from "./Profile";
432
- import MobileToggle from "../transitions/VerticalMobileToggle";
433
- import InfoHeader from "./InfoHeader";
434
- import ChildLinks from "@/components/Header/ChildLinks";
435
-
436
- export default {
437
- components: {
438
- ChildLinks,
439
- InfoHeader,
440
- Profile,
441
- MobileToggle,
442
- },
443
- props: {
444
- rate: {
445
- type: String,
446
- default: ""
447
- },
448
- mode: {
449
- type: String,
450
- required: true,
451
- validator: function (value) {
452
- return ["prod", "dev", "staging"].indexOf(value) !== -1;
453
- },
454
- },
455
- noAuth: {
456
- type: Boolean,
457
- default: false
458
- },
459
- isAuthenticated: {
460
- type: Boolean,
461
- default: false,
462
- },
463
- isBordered: {
464
- type: Boolean,
465
- default: false,
466
- },
467
- isSticky: {
468
- type: Boolean,
469
- default: false,
470
- },
471
- requestCount: {
472
- type: [String, Number],
473
- default: null,
474
- },
475
- daysRemaining: {
476
- type: [String, Number],
477
- default: null,
478
- },
479
- email: {
480
- type: String,
481
- default: "",
482
- },
483
- loginUrl: {
484
- type: String,
485
- default: "",
486
- required: true,
487
- },
488
- activeTabKey: {
489
- type: String,
490
- default: "",
491
- required: true,
492
- },
493
- balance: {
494
- type: Number,
495
- default: 0
496
- },
497
- hasFavourites: {
498
- type: Boolean,
499
- default: false
500
- },
501
- hasSearchField: {
502
- type: Boolean,
503
- default: false
504
- },
505
- tab: {
506
- type: String,
507
- default: ""
508
- }
509
- },
510
- data() {
511
- return {
512
- isActiveMenu: false,
513
- main: {
514
- dev: "https://adtdev.kz",
515
- prod: "https://adata.kz",
516
- staging: "https://adada.kz",
517
- },
518
- headerItems: [
519
- {
520
- id: 1,
521
- name: "Контрагенты",
522
- dev: "https://pk.adtdev.kz",
523
- prod: "https://pk.adata.kz",
524
- staging: "https://pk.adada.kz",
525
- key: "counterparty",
526
- children: [
527
- {
528
- name: 'Проверка контрагентов',
529
- subtitle: 'Проверьте контрагента на благонадежность',
530
- to: '/',
531
- icon: 'search'
532
- },
533
- {
534
- name: 'Сравнение контрагентов',
535
- subtitle: 'Проверьте рейтинг компании',
536
- to: '/counterparty/compare',
537
- icon: 'scales'
538
- },
539
- {
540
- name: 'Косвенные связи',
541
- subtitle: 'Проверьте наличие косвенных связей',
542
- to: '/counterparty/search-connections/check',
543
- icon: 'link'
544
- },
545
- {
546
- name: 'Массовая проверка',
547
- subtitle: 'Проверьте благонадежность нескольких компаний или сотрудников одновременно',
548
- to: '/counterparty/employees-check',
549
- icon: 'users'
550
- },
551
- {
552
- name: 'Зарубежные контрагенты',
553
- subtitle: 'Изучите сведения о российских и зарубежных компаниях',
554
- to: '/counterparty/foreign',
555
- icon: 'globe'
556
- },
557
- {
558
- name: 'Санкции',
559
- subtitle: 'Проверьте бизнес-партнера на включение в санкционные списки',
560
- to: '/counterparty/sanctions',
561
- icon: 'slash'
562
- },
563
- {
564
- name: 'Офшоры',
565
- subtitle: 'Проверьте наличие контрагента в офшорных списках',
566
- to: '/counterparty/offshore',
567
- icon: 'dollar'
568
- },
569
- ],
570
- },
571
- {
572
- id: 2,
573
- name: "Работа",
574
- dev: "https://work.adtdev.kz",
575
- prod: "https://work.adata.kz",
576
- staging: "https://work.adada.kz",
577
- key: "work",
578
- children: [
579
- {
580
- name: 'Вакансии',
581
- subtitle: 'Поиск вакансий',
582
- to: '/vacancy',
583
- icon: 'bag'
584
- },
585
- {
586
- name: 'Резюме',
587
- subtitle: 'Поиск резюме',
588
- to: '/summary',
589
- icon: 'scales'
590
- },
591
- ],
592
- },
593
- {
594
- id: 3,
595
- name: "Тендеры",
596
- dev: "https://tender.adtdev.kz",
597
- prod: "https://tender.adata.kz",
598
- staging: "https://tender.adada.kz",
599
- key: "tenders",
600
- children: [
601
- {
602
- name: 'Поиск тендеров',
603
- subtitle: 'Найдите интересующие объявления о закупках',
604
- to: '/',
605
- icon: 'search'
606
- },
607
- {
608
- name: 'Поиск договоров',
609
- subtitle: 'Найдите договоры по совершенным тендерным закупкам',
610
- to: '/main/contracts',
611
- icon: 'file'
612
- },
613
- {
614
- name: 'Планы закупок',
615
- subtitle: 'Узнайте о планирующихся тендерных закупках',
616
- to: '/main/plans',
617
- icon: 'package'
618
- }
619
- ],
620
- },
621
- {
622
- id: 4,
623
- name: "Штрафы",
624
- dev: "https://avto.adtdev.kz",
625
- prod: "https://avto.adata.kz",
626
- staging: "https://avto.adada.kz",
627
- key: "fines",
628
- children: [
629
- {
630
- name: 'Проверка штрафов',
631
- subtitle: 'Проверьте наличие штрафов, задолженностей и запретов',
632
- to: '/',
633
- icon: 'check'
634
- },
635
- {
636
- name: 'Проверка авто',
637
- subtitle: 'Проверьте информацию и историю авто',
638
- to: '/check',
639
- icon: 'car'
640
- },
641
- {
642
- name: 'Массовая проверка авто',
643
- subtitle: 'Используйте массовую проверку для получения информации о нескольких авто',
644
- to: '/bulk-check',
645
- icon: 'truck'
646
- },
647
- ],
648
- },
649
- {
650
- id: 5,
651
- name: "Аналитика",
652
- dev: "https://analytics.adtdev.kz",
653
- prod: "https://analytics.adata.kz",
654
- staging: "https://analytics.adada.kz",
655
- key: "marketing",
656
- children: [
657
- {
658
- name: 'Поиск клиентов',
659
- subtitle: 'Получите актуальную базу контактов потенциальных клиентов',
660
- to: '/unload-data',
661
- icon: 'search'
662
- },
663
- {
664
- name: 'Анализ закупок',
665
- subtitle: 'Изучите динамику и получите данные о проведенных тендерных закупках',
666
- to: '/purchasing-analysis',
667
- icon: 'package'
668
- },
669
- {
670
- name: 'Индекс деловой активности',
671
- subtitle: 'Изучайте активность предприятий на рынке',
672
- to: '/business-activity',
673
- icon: 'trending'
674
- },
675
- {
676
- name: 'Рейтинг налогоплательщиков',
677
- subtitle: 'Получите данные о лидерах компаний, видах деятельности и регионах',
678
- to: '/tax-payment',
679
- icon: 'award'
680
- },
681
- {
682
- name: 'Субъекты бизнеса',
683
- subtitle: 'Изучите динамику субъектов действующего бизнеса',
684
- to: '/business-entities',
685
- icon: 'company'
686
- }
687
- ],
688
- },
689
- ],
690
- isOpen: false,
691
- weather: null,
692
- currencies: null,
693
- systemMessage: null,
694
- timer: null,
695
- isOpenNotification: false,
696
- };
697
- },
698
- created() {
699
- this.fetchCurrencies();
700
- },
701
- mounted() {
702
- this.notificationShow()
703
- },
704
- methods: {
705
- goToAnotherModule(url) {
706
- if(!location.href.includes(url)) {
707
- this.$emit("changeModule");
708
- }
709
- window.open(url, "_self");
710
- },
711
- goAuth() {
712
- const fullPath = encodeURIComponent(window.location.toString());
713
- if (window) {
714
- window.location.href = `${this.loginUrl}?url=${fullPath}`;
715
- }
716
- },
717
- async fetchNotification() {
718
- try {
719
- const link = `https://users.adata.kz/api/v1/system-messages/active-list/?module_name=${this.activeTabKey}`
720
- const response = await fetch(link);
721
- const {data} = await response.json();
722
-
723
- if (data.details.length) {
724
- this.systemMessage = data.details[0].message;
725
- this.isOpenNotification = true;
726
- localStorage.setItem('start_time', JSON.stringify(new Date()))
727
- }
728
-
729
- } catch (e) {
730
- console.log(e.message)
731
- }
732
- },
733
- notificationShow() {
734
- const startTime = localStorage.getItem('start_time');
735
- let diffTime = startTime ? Math.round((new Date() - new Date(JSON.parse(startTime))) / 3600000) : 0
736
- if (startTime) {
737
- if (diffTime >= 24) {
738
- localStorage.removeItem('start_time')
739
- }
740
- } else {
741
- this.fetchNotification()
742
- }
743
- },
744
- async fetchCurrencies() {
745
- try {
746
- const response = await fetch('https://users.adata.kz/api/v1/information/currency');
747
- const {data} = await response.json();
748
-
749
- if (data.currencies) {
750
- this.currencies = data.currencies;
751
- }
752
-
753
- } catch (e) {
754
- console.log(e.message)
755
- }
756
- },
757
- async fetchWeather() {
758
- try {
759
- const response = await fetch('https://users.adata.kz/api/v1/information/weather');
760
- const {data} = await response.json();
761
-
762
- if (data.cities) {
763
- this.weather = data.cities;
764
- }
765
-
766
- } catch (e) {
767
- console.log(e.message)
768
- }
769
- },
770
- closeNotification(option) {
771
- this.isOpenNotification = !option
772
- },
773
- changeValue() {
774
- this.isActiveMenu = false;
775
- this.isOpen = !this.isOpen;
776
- this.$emit("menuOpen", this.isOpen);
777
- },
778
- thousandSeparator(val) {
779
- return val ? val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ") : "0";
780
- },
781
- defineIconState(name) {
782
- return name === "DOWN" ? "@/assets/icons/arrow-down.svg" : "@/assets/icons/arrow-up.svg";
783
- },
784
- defineIconEntity(name) {
785
- switch (name) {
786
- case 'USD':
787
- return "@/assets/icons/dollor.svg";
788
- case 'EUR':
789
- return "@/assets/icons/euro.svg";
790
- case 'RUB':
791
- return "@/assets/icons/ruble.svg";
792
- }
793
- },
794
- },
795
- };
796
- </script>
797
-
798
- <style lang="scss">
799
- * {
800
- font-family: "Open Sans", sans-serif;
801
- box-sizing: border-box;
802
- margin: 0;
803
- padding: 0;
804
- }
805
-
806
- .sticky {
807
- position: sticky;
808
- z-index: 1000;
809
- top: 0;
810
- }
811
-
812
- .header {
813
- background: #ffffff;
814
- max-height: 62px;
815
- height: 62px;
816
- display: flex;
817
- align-items: center;
818
- width: 100%;
819
- @media (max-width: 1025px) {
820
- height: 56px;
821
- border-bottom: 1px solid #BDC7CE;
822
- }
823
-
824
- &.bordered {
825
- border-bottom: 1px solid #2c3e5026;
826
- }
827
-
828
- & > .container {
829
- width: 100%;
830
- display: flex;
831
- justify-content: space-between;
832
- align-items: center;
833
- @media (max-width: 1025px) {
834
- gap: 12px;
835
- }
836
- }
837
-
838
- &__right {
839
- display: flex;
840
- align-items: center;
841
- }
842
-
843
- &__left {
844
- display: flex;
845
- align-items: center;
846
- @media (max-width: 1025px) {
847
- width: 100%;
848
- }
849
-
850
- .menu {
851
- display: flex;
852
- align-items: center;
853
- $self: &;
854
- @media (max-width: 1025px) {
855
- display: none;
856
- }
857
-
858
- &__sublinks {
859
- display: none;
860
- }
861
- &__item {
862
- margin-right: 8px;
863
- align-items: center;
864
- position: relative;
865
- &:hover {
866
- .menu__sublinks {
867
- display: block;
868
- }
869
- }
870
- }
871
- &__items {
872
- padding: 20px 8px 20px 0;
873
- transition: text-shadow 0.3s;
874
- display: block;
875
- font-weight: bold;
876
- font-size: 16px;
877
- line-height: 22px;
878
- text-transform: uppercase;
879
- color: #71757a;
880
- position: relative;
881
-
882
- &::after {
883
- content: "";
884
- position: absolute;
885
- right: -1px;
886
- top: 50%;
887
- transform: translateY(-50%);
888
- height: 22px;
889
- width: 1px;
890
- background-color: #e5e5e5;
891
- }
892
-
893
- &.active {
894
- font-weight: bold;
895
- font-size: 16px;
896
- line-height: 22px;
897
- text-transform: uppercase;
898
- color: #2c3e50;
899
- }
900
-
901
- &:hover {
902
- color: #9da3ac;
903
- cursor: pointer;
904
- }
905
- }
906
- }
907
-
908
- .logo {
909
- display: block;
910
- margin-right: 20px;
911
- @media (max-width: 1025px) {
912
- margin-right: 10px;
913
- padding-bottom: 0;
914
- }
915
-
916
- svg {
917
- //width: 90px;
918
- //height: 26px;
919
- //display: block;
920
- fill: #2c3e50;
921
- @media (max-width: 1025px) {
922
- // width: 77px;
923
- // height: 24px;
924
- width: 38px;
925
- height: 30px;
926
- }
927
-
928
- &:hover {
929
- fill: #71757a;
930
- }
931
- &.desktop {
932
- @media (max-width: 1025px) {
933
- display: none;
934
- }
935
- }
936
- &.mobile {
937
- display: none;
938
- @media (max-width: 1025px) {
939
- display: block;
940
- width: auto;
941
- }
942
- }
943
- }
944
- }
945
- }
946
-
947
- .menu_mobile {
948
- display: none;
949
- grid-template-columns: 10% 90%;
950
- z-index: 1000000;
951
- position: absolute !important;
952
-
953
- .empty-space {
954
- background: rgba(0, 0, 0, 0.40);
955
- }
956
-
957
- &::-webkit-scrollbar {
958
- width: 4px;
959
-
960
- &-thumb {
961
- background: #c4c4c4;
962
- }
963
-
964
- &-track {
965
- background: #fff;
966
- }
967
- }
968
-
969
- &--switcher {
970
- display: none;
971
- cursor: pointer;
972
- }
973
-
974
- button.sign {
975
- height: auto;
976
- justify-content: flex-start;
977
-
978
- svg {
979
- margin-right: 8px;
980
- height: 24px;
981
- width: 24px;
982
- }
983
-
984
- span {
985
- color: #007AFF;
986
- font-size: 14px;
987
- }
988
- }
989
-
990
- @media (max-width: 1025px) {
991
- display: grid;
992
- background: transparent !important;
993
- .mobile-table-head {
994
- display: flex;
995
- justify-content: space-between;
996
- padding: 20px 16px;
997
- height: auto;
998
- background: #ECEFF1;
999
- border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1000
- }
1001
- &-wrapper {
1002
- border-top: 1px solid #9da3ac4c;
1003
- padding: 16px;
1004
- font-weight: 600;
1005
- font-size: 14px;
1006
- line-height: 22px;
1007
- color: #2c3e50;
1008
- display: block;
1009
-
1010
- &:first-child {
1011
- border-top: none;
1012
- }
1013
-
1014
- &.active-burger-tab {
1015
- background: #2c3e500d;
1016
- }
1017
- }
1018
- &--switcher {
1019
- display: flex;
1020
- align-items: center;
1021
- justify-content: center;
1022
- }
1023
- }
1024
-
1025
- .menu-wrapper {
1026
- height: 100%;
1027
- display: flex;
1028
- flex-direction: column;
1029
- justify-content: space-between;
1030
- box-shadow: -6px 4px 12px rgb(157 163 172 / 40%);
1031
- background: #fff;
1032
- @media (max-width: 1025px) {
1033
- justify-content: flex-start;
1034
- }
1035
-
1036
- &__top {
1037
- &-left {
1038
- display: flex;
1039
- gap: 8px;
1040
- align-items: center;
1041
- width: 100%;
1042
-
1043
- .svg-wrapper {
1044
- width: 32px;
1045
- height: 32px;
1046
- background: rgba(189, 199, 206, 0.2);
1047
- display: flex;
1048
- justify-content: center;
1049
- align-items: center;
1050
- border-radius: 50%;
1051
-
1052
- svg {
1053
- width: 24px;
1054
- height: 24px;
1055
- }
1056
- }
1057
-
1058
- .text-wrapper {
1059
- width: 100%;
1060
- p {
1061
- font-size: 14px;
1062
- font-weight: 500;
1063
- display: flex;
1064
- justify-content: space-between;
1065
- align-items: center;
1066
-
1067
- &:first-child {
1068
- border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1069
- padding-bottom: 12px;
1070
- margin-bottom: 12px;
1071
- span {
1072
- cursor: pointer;
1073
- svg {
1074
- width: 16px;
1075
- height: 16px;
1076
- }
1077
- }
1078
- }
1079
-
1080
- &:nth-child(2) {
1081
- color: #007AFF;
1082
- font-size: 12px;
1083
- font-weight: 600;
1084
- span {
1085
- display: flex;
1086
- align-items: center;
1087
- gap: 8px;
1088
- cursor: pointer;
1089
- font-weight: 400;
1090
- }
1091
- }
1092
- }
1093
- }
1094
- }
1095
-
1096
- &-right {
1097
- display: flex;
1098
- align-items: center;
1099
- justify-content: center;
1100
- cursor: pointer;
1101
- }
1102
- }
1103
- }
1104
-
1105
- &-footer {
1106
- width: 100%;
1107
- background: #007AFF;
1108
- padding: 20px 16px;
1109
- display: flex;
1110
- margin-top: auto;
1111
- position: relative;
1112
- z-index: 1000000;
1113
- @media (max-width: 1025px) {
1114
- height: 40px;
1115
- width: calc(100% - 32px);
1116
- margin: 32px 16px;
1117
- justify-content: center;
1118
- }
1119
-
1120
- button.sign {
1121
- span {
1122
- color: #fff;
1123
- }
1124
- }
1125
- }
1126
- }
1127
-
1128
- .menu-wrapper__bottom {
1129
- margin: 80px 0 0;
1130
- @media (max-width: 1025px) {
1131
- margin: 0;
1132
- }
1133
-
1134
- &-header {
1135
- background: rgba(189, 199, 206, 0.2);
1136
- padding: 4px 16px;
1137
- display: flex;
1138
- justify-content: space-between;
1139
- align-items: center;
1140
-
1141
- span {
1142
- font-weight: 500;
1143
- font-size: 12px;
1144
- line-height: 20px;
1145
- color: #666C72;
1146
- }
1147
- }
1148
-
1149
- &-body {
1150
- padding: 8px 16px 16px;
1151
- display: flex;
1152
- flex-direction: column;
1153
- justify-content: space-between;
1154
- gap: 12px;
1155
- margin-bottom: 36px;
1156
- @media (max-width: 1025px) {
1157
- margin-bottom: 0;
1158
- }
1159
- }
1160
-
1161
- &-row {
1162
- display: flex;
1163
- justify-content: space-between;
1164
- align-items: center;
1165
- }
1166
-
1167
- &-column {
1168
- display: flex;
1169
- align-items: center;
1170
- gap: 8px;
1171
-
1172
- &:first-child {
1173
- justify-content: flex-start;
1174
- }
1175
-
1176
- &:nth-child(2), &:nth-child(3) {
1177
- justify-content: flex-end;
1178
- width: 60px;;
1179
- }
1180
-
1181
- span {
1182
- font-weight: 500;
1183
- font-size: 14px;
1184
- line-height: 20px;
1185
- color: #2C3E50;
1186
- }
1187
- }
1188
-
1189
- &-footer {
1190
- background: rgba(189, 199, 206, 0.2);
1191
- padding: 8px 16px;
1192
- display: flex;
1193
- flex-direction: column;
1194
- gap: 10px;
1195
-
1196
- &-item {
1197
- display: flex;
1198
- justify-content: space-between;
1199
- align-items: center;
1200
- }
1201
-
1202
- &-title {
1203
- font-weight: 500;
1204
- font-size: 14px;
1205
- line-height: 20px;
1206
- color: #2C3E50;
1207
- }
1208
-
1209
- &-circle {
1210
- color: #ffffff;
1211
- padding: 4px 12px;
1212
- background: #007AFF;
1213
- border-radius: 100px;
1214
- font-weight: 500;
1215
- font-size: 14px;
1216
- line-height: 20px;
1217
- }
1218
- }
1219
- }
1220
- }
1221
-
1222
- .logo-desktop {
1223
- display: flex;
1224
- justify-content: center;
1225
- align-items: center;
1226
- width: 90px;
1227
- height: 26px;
1228
- background-image: url("~@/assets/logo-desktop-main.svg");
1229
- background-size: cover;
1230
- background-position: center;
1231
- @media screen and (max-width: 1025px){
1232
- display: none;
1233
- }
1234
- }
1235
- .logo-mobile {
1236
- display: none;
1237
- width: 24px;
1238
- height: 24px;
1239
- background-image: url("~@/assets/logo-mobile-main.svg");
1240
- background-size: cover;
1241
- background-position: center;
1242
- @media screen and (max-width: 1025px){
1243
- display: flex;
1244
- align-items: center;
1245
- justify-content: center;
1246
- }
1247
- }
1248
-
1249
- .mobile-search {
1250
- display: none;
1251
- height: 32px;
1252
- max-height: 32px;
1253
- @media (max-width: 1025px) {
1254
- display: flex;
1255
- align-items: center;
1256
- justify-content: flex-end;
1257
- gap: 8px;
1258
- width: 100%;
1259
- }
1260
- .search-input {
1261
- display: flex;
1262
- align-items: center;
1263
- gap: 8px;
1264
- background: rgba(189, 199, 206, 0.2);
1265
- height: 100%;
1266
- border-radius: 2px;
1267
- width: 100%;
1268
- padding: 0 14px;
1269
- font-weight: 500;
1270
- font-size: 12px;
1271
- line-height: 20px;
1272
- cursor: pointer;
1273
- }
1274
- .favorite-btn {
1275
- background: rgba(189, 199, 206, 0.2);
1276
- display: flex;
1277
- justify-content: center;
1278
- align-items: center;
1279
- padding: 10px;
1280
- height: 100%;
1281
- border-radius: 2px;
1282
- cursor: pointer;
1283
- svg {
1284
- width: 16px;
1285
- height: 16px;
1286
- }
1287
- }
1288
- }
1289
- </style>
1
+ <template>
2
+ <header :class="{ sticky: isSticky }">
3
+ <InfoHeader
4
+ :weather="weather"
5
+ :currencies="currencies"
6
+ :system-message="systemMessage"
7
+ :requestCount="requestCount"
8
+ :daysRemaining="daysRemaining"
9
+ :is-open-notification="isOpenNotification"
10
+ :is-authenticated="isAuthenticated"
11
+ @closeNotification="closeNotification"
12
+ />
13
+ <div class="header" :class="{ bordered: isBordered }">
14
+ <div class="container">
15
+ <div class="header__left">
16
+ <a
17
+ class="logo"
18
+ :href="main[mode]"
19
+ onclick="return false;"
20
+ @click="goToAnotherModule(main[mode])"
21
+ >
22
+
23
+ <span class="logo-desktop">
24
+ </span>
25
+ <span class="logo-mobile">
26
+ </span>
27
+ </a>
28
+ <div class="menu" v-show="headerItems.length > 0">
29
+ <div
30
+ class="menu__item"
31
+ v-for="(item, index) in headerItems"
32
+ :key="index">
33
+ <a
34
+ class="menu__wrapper menu__items"
35
+ :class="{ active: item.key === activeTabKey }"
36
+ :href="item[mode]"
37
+ @click="goToAnotherModule(item[mode])"
38
+ onclick="return false;"
39
+ >
40
+ {{ item.name }}
41
+ </a>
42
+ <child-links class="menu__sublinks" :links="item" :module="activeTabKey" :mode="mode" />
43
+ </div>
44
+ </div>
45
+ <div class="mobile-search">
46
+ <div v-show="hasSearchField" @click="$emit('search')" class="search-input">
47
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
48
+ <path d="M14 13.9995L10.5967 10.596" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
49
+ <circle cx="7" cy="7" r="5" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
50
+ </svg>
51
+ Найти
52
+ </div>
53
+ </div>
54
+ </div>
55
+ <div class="header__right" v-show="!noAuth">
56
+ <Profile
57
+ :mode="mode"
58
+ :activeTabKey="activeTabKey"
59
+ :isAuthenticated="isAuthenticated"
60
+ :email="email"
61
+ :loginUrl="loginUrl"
62
+ :rate="rate"
63
+ :balance="this.thousandSeparator(balance)"
64
+ :tab="tab"
65
+ @showBalanceModal="
66
+ (val) => {
67
+ $emit('showBalanceModal', val);
68
+ }
69
+ "
70
+ @setShowModal="
71
+ (val) => {
72
+ $emit('setShowModal', val);
73
+ }
74
+ "
75
+ @logout="$emit('logout')"
76
+ @setIsReplenishModal="
77
+ (val) => {
78
+ $emit('setIsReplenishModal', val);
79
+ }
80
+ "
81
+ />
82
+ </div>
83
+ </div>
84
+ <MobileToggle v-slot="{ animationClass }">
85
+ <div
86
+ class="menu_mobile"
87
+ :class="animationClass"
88
+ v-show="headerItems.length > 0 && isOpen"
89
+ >
90
+ <div class="empty-space" @click="changeValue"></div>
91
+ <div class="menu-wrapper">
92
+ <div class="menu-wrapper__top">
93
+ <div class="mobile-table-head">
94
+ <button
95
+ @click.prevent="goAuth"
96
+ class="sign"
97
+ v-if="!isAuthenticated"
98
+ >
99
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
100
+ <path d="M13.5 15L16.5 11.9189L13.6154 9" stroke="#007AFF" stroke-miterlimit="10"
101
+ stroke-linecap="round" stroke-linejoin="round"/>
102
+ <path d="M9 7.125V4.5H19.5V19.5H9V17.4375" stroke="#007AFF" stroke-miterlimit="10"
103
+ stroke-linecap="round" stroke-linejoin="round"/>
104
+ <path d="M16 12H4" stroke="#007AFF" stroke-miterlimit="10" stroke-linecap="round"
105
+ stroke-linejoin="round"/>
106
+ </svg>
107
+ <span>Войти</span>
108
+ </button>
109
+ <div v-else class="menu-wrapper__top-left">
110
+ <div class="text-wrapper">
111
+ <p>{{ email }}
112
+ <span @click.stop="changeValue">
113
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
114
+ <path d="M1.99902 1.99957L13.9996 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
115
+ <path d="M14 1.99957L1.9994 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
116
+ </svg>
117
+ </span>
118
+ </p>
119
+ <p>Тариф {{ rate }}
120
+ <span @click.stop.prevent="isActiveMenu = true">
121
+ Перейти
122
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
123
+ <rect width="24" height="24" rx="12" transform="matrix(-1 0 0 1 24 0)" fill="#007AFF" fill-opacity="0.12"/>
124
+ <path d="M14.0005 8.00311L18.0005 12.0096L14.0005 16.0031" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10"
125
+ stroke-linecap="round" stroke-linejoin="round"/>
126
+ <path d="M18 12L6 12" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
127
+ </svg>
128
+ </span>
129
+ </p>
130
+ </div>
131
+ </div>
132
+ <div v-if="!isAuthenticated" class="menu-wrapper__top-right" @click.stop="changeValue">
133
+ <svg
134
+ width="18"
135
+ height="18"
136
+ fill="none"
137
+ xmlns="http://www.w3.org/2000/svg"
138
+ viewBox="0 0 24 24"
139
+ >
140
+ <path
141
+ fill-rule="evenodd"
142
+ clip-rule="evenodd"
143
+ d="M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z"
144
+ fill="#2C3E50"
145
+ ></path>
146
+ <path
147
+ fill-rule="evenodd"
148
+ clip-rule="evenodd"
149
+ d="M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z"
150
+ fill="#2C3E50"
151
+ ></path>
152
+ </svg>
153
+ </div>
154
+ </div>
155
+ <div class="menu__link">
156
+ <a
157
+ v-for="(item, index) in headerItems"
158
+ :key="index"
159
+ class="menu_mobile-wrapper"
160
+ :class="{ 'active-burger-tab': item.key === activeTabKey }"
161
+ :href="item[mode]"
162
+ >
163
+ {{ item.name }}
164
+ </a>
165
+ </div>
166
+ </div>
167
+ <div class="menu-wrapper__bottom">
168
+ <div class="menu-wrapper__bottom-header">
169
+ <span>Валюта</span>
170
+ <span>Покупка</span>
171
+ <span>Продажа</span>
172
+ </div>
173
+ <div class="menu-wrapper__bottom-body">
174
+ <div v-for="(currency, index) in currencies" :key="index" class="menu-wrapper__bottom-row">
175
+ <div class="menu-wrapper__bottom-column">
176
+ <svg v-if="currency.currency === 'USD'" width="16" height="17" viewBox="0 0 16 17" fill="none"
177
+ xmlns="http://www.w3.org/2000/svg">
178
+ <g clip-path="url(#clip0_179_1917)">
179
+ <path d="M26.4 0.5H-4V16.5H26.4V0.5Z" fill="white"/>
180
+ <path d="M26.4 0.5H-4V1.732H26.4V0.5Z" fill="#B22234"/>
181
+ <path d="M26.4 2.95996H-4V4.19196H26.4V2.95996Z" fill="#B22234"/>
182
+ <path d="M26.4 5.42407H-4V6.65607H26.4V5.42407Z" fill="#B22234"/>
183
+ <path d="M26.4 7.88403H-4V9.11603H26.4V7.88403Z" fill="#B22234"/>
184
+ <path d="M26.4 10.3479H-4V11.5799H26.4V10.3479Z" fill="#B22234"/>
185
+ <path d="M26.4 12.8081H-4V14.0401H26.4V12.8081Z" fill="#B22234"/>
186
+ <path d="M26.4 15.2681H-4V16.5001H26.4V15.2681Z" fill="#B22234"/>
187
+ <path d="M8.16 0.5H-4V9.116H8.16V0.5Z" fill="#3C3B6E"/>
188
+ <path
189
+ d="M0.603882 1.20011L0.891882 1.40811L0.783882 1.75211L1.07188 1.54011L1.35988 1.75211L1.25188 1.40811L1.53988 1.20011H1.18388L1.07188 0.860107L0.959882 1.20011H0.603882Z"
190
+ fill="white"/>
191
+ <path
192
+ d="M2.61987 1.20011L2.90787 1.40811L2.79987 1.75211L3.08787 1.54011L3.37587 1.75211L3.26787 1.40811L3.55587 1.20011H3.19987L3.08787 0.860107L2.97587 1.20011H2.61987Z"
193
+ fill="white"/>
194
+ <path
195
+ d="M4.63599 1.20011L4.92399 1.40811L4.81599 1.75211L5.10399 1.54011L5.39199 1.75211L5.28399 1.40811L5.57199 1.20011H5.21599L5.10399 0.860107L4.99199 1.20011H4.63599Z"
196
+ fill="white"/>
197
+ <path
198
+ d="M6.65198 1.20011L6.93998 1.40811L6.83198 1.75211L7.11998 1.54011L7.40798 1.75211L7.29998 1.40811L7.58798 1.20011H7.23198L7.11998 0.860107L7.00798 1.20011H6.65198Z"
199
+ fill="white"/>
200
+ <path
201
+ d="M-0.403931 2.06412L-0.115931 2.27212L-0.223931 2.61612L0.0640694 2.40412L0.352069 2.61612L0.244069 2.27212L0.532069 2.06412H0.176069L0.0640694 1.72412L-0.0479305 2.06412H-0.403931Z"
202
+ fill="white"/>
203
+ <path
204
+ d="M1.61206 2.06412L1.90006 2.27212L1.79206 2.61612L2.08006 2.40412L2.36806 2.61612L2.26006 2.27212L2.54806 2.06412H2.19206L2.08006 1.72412L1.96806 2.06412H1.61206Z"
205
+ fill="white"/>
206
+ <path
207
+ d="M3.62817 2.06412L3.91617 2.27212L3.80817 2.61612L4.09617 2.40412L4.38417 2.61612L4.27617 2.27212L4.56417 2.06412H4.20817L4.09617 1.72412L3.98417 2.06412H3.62817Z"
208
+ fill="white"/>
209
+ <path
210
+ d="M5.64417 2.06412L5.93216 2.27212L5.82416 2.61612L6.11216 2.40412L6.40016 2.61612L6.29216 2.27212L6.58016 2.06412H6.22416L6.11216 1.72412L6.00016 2.06412H5.64417Z"
211
+ fill="white"/>
212
+ <path
213
+ d="M0.603882 2.92789L0.891882 3.13589L0.783882 3.47989L1.07188 3.26789L1.35988 3.47989L1.25188 3.13589L1.53988 2.92789H1.18388L1.07188 2.58789L0.959882 2.92789H0.603882Z"
214
+ fill="white"/>
215
+ <path
216
+ d="M2.61987 2.92789L2.90787 3.13589L2.79987 3.47989L3.08787 3.26789L3.37587 3.47989L3.26787 3.13589L3.55587 2.92789H3.19987L3.08787 2.58789L2.97587 2.92789H2.61987Z"
217
+ fill="white"/>
218
+ <path
219
+ d="M4.63599 2.92789L4.92399 3.13589L4.81599 3.47989L5.10399 3.26789L5.39199 3.47989L5.28399 3.13589L5.57199 2.92789H5.21599L5.10399 2.58789L4.99199 2.92789H4.63599Z"
220
+ fill="white"/>
221
+ <path
222
+ d="M6.65198 2.92789L6.93998 3.13589L6.83198 3.47989L7.11998 3.26789L7.40798 3.47989L7.29998 3.13589L7.58798 2.92789H7.23198L7.11998 2.58789L7.00798 2.92789H6.65198Z"
223
+ fill="white"/>
224
+ <path
225
+ d="M-0.380127 3.7959L-0.0881271 4.0039L-0.200127 4.3439L0.0878731 4.1359L0.379873 4.3439L0.267873 4.0039L0.555873 3.7959H0.199873L0.0878731 3.4519L-0.0201271 3.7959H-0.380127Z"
226
+ fill="white"/>
227
+ <path
228
+ d="M1.63599 3.7959L1.92399 4.0039L1.81599 4.3439L2.10399 4.1359L2.39599 4.3439L2.28399 4.0039L2.57199 3.7959H2.21599L2.10399 3.4519L1.99599 3.7959H1.63599Z"
229
+ fill="white"/>
230
+ <path
231
+ d="M3.65198 3.7959L3.94398 4.0039L3.83198 4.3439L4.11998 4.1359L4.41198 4.3439L4.29998 4.0039L4.58798 3.7959H4.23198L4.11998 3.4519L4.01198 3.7959H3.65198Z"
232
+ fill="white"/>
233
+ <path
234
+ d="M5.66797 3.7959L5.95597 4.0039L5.84797 4.3439L6.13597 4.1359L6.42797 4.3439L6.31597 4.0039L6.60397 3.7959H6.24797L6.13597 3.4519L6.02797 3.7959H5.66797Z"
235
+ fill="white"/>
236
+ <path
237
+ d="M0.635986 4.65201L0.923986 4.86001L0.811986 5.20401L1.10399 4.99201L1.39199 5.20401L1.27999 4.86001L1.57199 4.65201H1.21199L1.10399 4.31201L0.991986 4.65201H0.635986Z"
238
+ fill="white"/>
239
+ <path
240
+ d="M2.65198 4.65201L2.93998 4.86001L2.82798 5.20401L3.11998 4.99201L3.40798 5.20401L3.29598 4.86001L3.58798 4.65201H3.22798L3.11998 4.31201L3.00798 4.65201H2.65198Z"
241
+ fill="white"/>
242
+ <path
243
+ d="M4.66406 4.65201L4.95606 4.86001L4.84406 5.20401L5.13606 4.99201L5.42406 5.20401L5.31206 4.86001L5.60406 4.65201H5.24406L5.13606 4.31201L5.02406 4.65201H4.66406Z"
244
+ fill="white"/>
245
+ <path
246
+ d="M6.40002 4.84L6.69202 5.048L6.58002 5.392L6.87202 5.18L7.16002 5.392L7.04802 5.048L7.34002 4.84H6.98002L6.87202 4.5L6.76002 4.84H6.40002Z"
247
+ fill="white"/>
248
+ <path
249
+ d="M0.651978 6.35196L0.943977 6.55996L0.831978 6.90396L1.11998 6.69196L1.41198 6.90396L1.29998 6.55996L1.58798 6.35196H1.23198L1.11998 6.01196L1.01198 6.35196H0.651978Z"
250
+ fill="white"/>
251
+ <path
252
+ d="M2.66797 6.35196L2.95997 6.55996L2.84797 6.90396L3.13597 6.69196L3.42797 6.90396L3.31597 6.55996L3.60797 6.35196H3.24797L3.13597 6.01196L3.02797 6.35196H2.66797Z"
253
+ fill="white"/>
254
+ <path
255
+ d="M4.68396 6.35196L4.97596 6.55996L4.86396 6.90396L5.15196 6.69196L5.44396 6.90396L5.33196 6.55996L5.61996 6.35196H5.26396L5.15196 6.01196L5.04396 6.35196H4.68396Z"
256
+ fill="white"/>
257
+ <path
258
+ d="M6.69995 6.35196L6.99195 6.55996L6.87995 6.90396L7.16795 6.69196L7.45995 6.90396L7.34795 6.55996L7.63595 6.35196H7.27995L7.16795 6.01196L7.05995 6.35196H6.69995Z"
259
+ fill="white"/>
260
+ <path
261
+ d="M0.628174 8.07193L0.916174 8.28393L0.808174 8.62393L1.09617 8.41193L1.38817 8.62393L1.27617 8.28393L1.56417 8.07193H1.20817L1.09617 7.73193L0.988174 8.07193H0.628174Z"
262
+ fill="white"/>
263
+ <path
264
+ d="M2.64417 8.07193L2.93616 8.28393L2.82416 8.62393L3.11216 8.41193L3.40416 8.62393L3.29216 8.28393L3.58016 8.07193H3.22416L3.11216 7.73193L3.00416 8.07193H2.64417Z"
265
+ fill="white"/>
266
+ <path
267
+ d="M4.66016 8.07193L4.95216 8.28393L4.84016 8.62393L5.12816 8.41193L5.42016 8.62393L5.30816 8.28393L5.59616 8.07193H5.24016L5.12816 7.73193L5.02016 8.07193H4.66016Z"
268
+ fill="white"/>
269
+ <path
270
+ d="M6.67615 8.07193L6.96415 8.28393L6.85615 8.62393L7.14415 8.41193L7.43615 8.62393L7.32415 8.28393L7.61215 8.07193H7.25615L7.14415 7.73193L7.03615 8.07193H6.67615Z"
271
+ fill="white"/>
272
+ <path
273
+ d="M-0.376221 5.4921L-0.0842209 5.7041L-0.196221 6.0441L0.095779 5.8321L0.383779 6.0441L0.275779 5.7041L0.563779 5.4921H0.203779L0.095779 5.1521L-0.0162209 5.4921H-0.376221Z"
274
+ fill="white"/>
275
+ <path
276
+ d="M1.64417 5.4921L1.93217 5.7041L1.82017 6.0441L2.11217 5.8321L2.40017 6.0441L2.28817 5.7041L2.58017 5.4921H2.22017L2.11217 5.1521L2.00017 5.4921H1.64417Z"
277
+ fill="white"/>
278
+ <path
279
+ d="M3.65588 5.4921L3.94788 5.7041L3.83588 6.0441L4.12788 5.8321L4.41588 6.0441L4.30788 5.7041L4.59588 5.4921H4.23588L4.12788 5.1521L4.01588 5.4921H3.65588Z"
280
+ fill="white"/>
281
+ <path
282
+ d="M5.67188 5.4921L5.96387 5.7041L5.85187 6.0441L6.14387 5.8321L6.43187 6.0441L6.31987 5.7041L6.61187 5.4921H6.25187L6.14387 5.1521L6.03187 5.4921H5.67188Z"
283
+ fill="white"/>
284
+ <path
285
+ d="M-0.380127 7.21207L-0.0881271 7.42007L-0.200127 7.76007L0.0878731 7.55207L0.379873 7.76007L0.267873 7.42007L0.555873 7.21207H0.199873L0.0878731 6.87207L-0.0201271 7.21207H-0.380127Z"
286
+ fill="white"/>
287
+ <path
288
+ d="M1.63599 7.21207L1.92399 7.42007L1.81599 7.76007L2.10399 7.55207L2.39599 7.76007L2.28399 7.42007L2.57199 7.21207H2.21599L2.10399 6.87207L1.99599 7.21207H1.63599Z"
289
+ fill="white"/>
290
+ <path
291
+ d="M3.65198 7.21207L3.94398 7.42007L3.83198 7.76007L4.11998 7.55207L4.41198 7.76007L4.29998 7.42007L4.58798 7.21207H4.23198L4.11998 6.87207L4.01198 7.21207H3.65198Z"
292
+ fill="white"/>
293
+ <path
294
+ d="M5.66797 7.21207L5.95597 7.42007L5.84797 7.76007L6.13597 7.55207L6.42797 7.76007L6.31597 7.42007L6.60397 7.21207H6.24797L6.13597 6.87207L6.02797 7.21207H5.66797Z"
295
+ fill="white"/>
296
+ </g>
297
+ <defs>
298
+ <clipPath id="clip0_179_1917">
299
+ <path
300
+ d="M0 2.5C0 1.39543 0.895431 0.5 2 0.5H14C15.1046 0.5 16 1.39543 16 2.5V14.5C16 15.6046 15.1046 16.5 14 16.5H2C0.895431 16.5 0 15.6046 0 14.5V2.5Z"
301
+ fill="white"/>
302
+ </clipPath>
303
+ </defs>
304
+ </svg>
305
+ <svg v-if="currency.currency === 'EUR'" width="16" height="17" viewBox="0 0 16 17" fill="none"
306
+ xmlns="http://www.w3.org/2000/svg">
307
+ <path
308
+ d="M0 2.5C0 1.39543 0.895431 0.5 2 0.5H14C15.1046 0.5 16 1.39543 16 2.5V14.5C16 15.6046 15.1046 16.5 14 16.5H2C0.895431 16.5 0 15.6046 0 14.5V2.5Z"
309
+ fill="#314199"/>
310
+ <path
311
+ d="M7.99479 12.5967L8.18355 13.1573L8.75857 13.1568L8.35044 13.4667L8.46265 14.0686L7.99479 13.7271L7.52542 14.0594L7.639 13.4667L7.23511 13.1549H7.80958L7.99479 12.5967Z"
312
+ fill="#F8EC26"/>
313
+ <path
314
+ d="M7.99479 2.85718L8.18355 3.41796L8.75857 3.41727L8.35044 3.72735L8.46265 4.32913L7.99479 3.98765L7.52542 4.31994L7.639 3.72735L7.23511 3.41535H7.80958L7.99479 2.85718Z"
315
+ fill="#F8EC26"/>
316
+ <path
317
+ d="M10.333 3.48364L10.5218 4.04428L11.097 4.04373L10.6888 4.35368L10.8009 4.95546L10.333 4.61411L9.86366 4.94641L9.97739 4.35368L9.57349 4.04181H10.148L10.333 3.48364Z"
318
+ fill="#F8EC26"/>
319
+ <path
320
+ d="M5.54397 3.48364L5.73273 4.04428L6.3079 4.04373L5.89976 4.35368L6.01184 4.95546L5.54397 4.61411L5.0746 4.94641L5.18832 4.35368L4.78442 4.04181H5.35877L5.54397 3.48364Z"
321
+ fill="#F8EC26"/>
322
+ <path
323
+ d="M10.333 11.9387L10.5218 12.4995L11.097 12.4989L10.6888 12.8089L10.8009 13.4107L10.333 13.0693L9.86366 13.4016L9.97739 12.8089L9.57349 12.4969H10.148L10.333 11.9387Z"
324
+ fill="#F8EC26"/>
325
+ <path
326
+ d="M5.54397 11.9387L5.73273 12.4995L6.3079 12.4989L5.89976 12.8089L6.01184 13.4107L5.54397 13.0693L5.0746 13.4016L5.18832 12.8089L4.78442 12.4969H5.35877L5.54397 11.9387Z"
327
+ fill="#F8EC26"/>
328
+ <path
329
+ d="M3.75309 5.32153L3.94185 5.88231L4.51688 5.88162L4.10888 6.1917L4.22082 6.79349L3.75309 6.45214L3.28372 6.7843L3.39731 6.1917L2.99341 5.8797H3.56789L3.75309 5.32153Z"
330
+ fill="#F8EC26"/>
331
+ <path
332
+ d="M12.1823 5.32153L12.3711 5.88231L12.9462 5.88162L12.5381 6.1917L12.6502 6.79349L12.1823 6.45214L11.7129 6.7843L11.8265 6.1917L11.4226 5.8797H11.9971L12.1823 5.32153Z"
333
+ fill="#F8EC26"/>
334
+ <path
335
+ d="M3.75309 10.1826L3.94185 10.7434L4.51688 10.7427L4.10888 11.0528L4.22082 11.6546L3.75309 11.3131L3.28372 11.6454L3.39731 11.0528L2.99341 10.7408H3.56789L3.75309 10.1826Z"
336
+ fill="#F8EC26"/>
337
+ <path
338
+ d="M12.1823 10.1826L12.3711 10.7434L12.9462 10.7427L12.5381 11.0528L12.6502 11.6546L12.1823 11.3131L11.7129 11.6454L11.8265 11.0528L11.4226 10.7408H11.9971L12.1823 10.1826Z"
339
+ fill="#F8EC26"/>
340
+ <path
341
+ d="M3.19682 7.73389L3.38558 8.29466L3.96074 8.29398L3.55261 8.60406L3.66469 9.20584L3.19682 8.86436L2.72745 9.19665L2.84103 8.60406L2.43713 8.29206H3.01161L3.19682 7.73389Z"
342
+ fill="#F8EC26"/>
343
+ <path
344
+ d="M12.799 7.73389L12.9877 8.29466L13.5629 8.29398L13.1548 8.60406L13.2668 9.20584L12.799 8.86436L12.3296 9.19665L12.4433 8.60406L12.0394 8.29206H12.6138L12.799 7.73389Z"
345
+ fill="#F8EC26"/>
346
+ </svg>
347
+ <svg v-if="currency.currency === 'RUB'" width="16" height="17" viewBox="0 0 16 17" fill="none"
348
+ xmlns="http://www.w3.org/2000/svg">
349
+ <g clip-path="url(#clip0_179_2012)">
350
+ <path d="M0 0.5C0 -0.60457 0.895431 -1.5 2 -1.5H18C19.1046 -1.5 20 -0.604569 20 0.5V5.5H0V0.5Z"
351
+ fill="#F0F0F0"/>
352
+ <rect y="5.5" width="20" height="7" fill="#0039A6"/>
353
+ <path d="M0 11.5H20V16.5C20 17.6046 19.1046 18.5 18 18.5H2C0.895431 18.5 0 17.6046 0 16.5V11.5Z"
354
+ fill="#D52B1E"/>
355
+ </g>
356
+ <defs>
357
+ <clipPath id="clip0_179_2012">
358
+ <rect y="0.5" width="16" height="16" rx="2" fill="white"/>
359
+ </clipPath>
360
+ </defs>
361
+ </svg>
362
+ <svg v-if="currency.currency === 'CNY'" width="16" height="16" viewBox="0 0 16 16" fill="none"
363
+ xmlns="http://www.w3.org/2000/svg">
364
+ <path
365
+ d="M0 2C0 0.895431 0.895431 0 2 0H14C15.1046 0 16 0.895431 16 2V14C16 15.1046 15.1046 16 14 16H2C0.895431 16 0 15.1046 0 14V2Z"
366
+ fill="#DE2910"/>
367
+ <path
368
+ d="M4.00115 1.60043L5.41155 5.94203L1.71875 3.25883H6.28355L2.59075 5.94203L4.00115 1.60043Z"
369
+ fill="#FFDE00"/>
370
+ <path
371
+ d="M7.3125 2.01103L8.3117 0.863831L8.1781 2.37983L7.3957 1.07503L8.7957 1.67023L7.3125 2.01103Z"
372
+ fill="#FFDE00"/>
373
+ <path
374
+ d="M8.80803 3.31335L10.1744 2.64375L9.46323 3.98855L9.24803 2.48215L10.3072 3.57415L8.80803 3.31335Z"
375
+ fill="#FFDE00"/>
376
+ <path
377
+ d="M8.82968 5.38077L10.3497 5.32637L9.15208 6.26477L9.56968 4.80157L10.0913 6.23037L8.82968 5.38077Z"
378
+ fill="#FFDE00"/>
379
+ <path d="M7.3758 6.6997L8.7998 7.2365L7.3326 7.6397L8.283 6.4509L8.2118 7.9709L7.3758 6.6997Z"
380
+ fill="#FFDE00"/>
381
+ </svg>
382
+
383
+ <span>{{ currency.currency }}</span>
384
+ </div>
385
+ <div class="menu-wrapper__bottom-column">
386
+ <span>{{ currency.sell }}</span>
387
+ <svg v-if="currency.sell_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
388
+ xmlns="http://www.w3.org/2000/svg">
389
+ <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
390
+ </svg>
391
+ <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
392
+ xmlns="http://www.w3.org/2000/svg">
393
+ <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
394
+ </svg>
395
+ </div>
396
+ <div class="menu-wrapper__bottom-column">
397
+ <span>{{ currency.buy }}</span>
398
+ <svg v-if="currency.buy_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
399
+ xmlns="http://www.w3.org/2000/svg">
400
+ <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
401
+ </svg>
402
+ <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
403
+ xmlns="http://www.w3.org/2000/svg">
404
+ <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
405
+ </svg>
406
+ </div>
407
+ </div>
408
+ </div>
409
+ <div v-show="isAuthenticated" class="menu_mobile-footer">
410
+ <button class="sign" @click="$emit('logout')">
411
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
412
+ <path d="M16.5 15L19.5 12L16.5 9" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
413
+ stroke-linejoin="round"/>
414
+ <path d="M15 16.875L15 19.5L4.5 19.5L4.5 4.5L15 4.5L15 6.5625" stroke="white" stroke-miterlimit="10"
415
+ stroke-linecap="round" stroke-linejoin="round"/>
416
+ <path d="M19 12H8" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
417
+ stroke-linejoin="round"/>
418
+ </svg>
419
+ <span>Выход</span>
420
+ </button>
421
+ </div>
422
+ </div>
423
+ </div>
424
+ </div>
425
+ </MobileToggle>
426
+ </div>
427
+ </header>
428
+ </template>
429
+
430
+ <script>
431
+ import Profile from "./Profile";
432
+ import MobileToggle from "../transitions/VerticalMobileToggle";
433
+ import InfoHeader from "./InfoHeader";
434
+ import ChildLinks from "@/components/Header/ChildLinks";
435
+
436
+ export default {
437
+ components: {
438
+ ChildLinks,
439
+ InfoHeader,
440
+ Profile,
441
+ MobileToggle,
442
+ },
443
+ props: {
444
+ rate: {
445
+ type: String,
446
+ default: ""
447
+ },
448
+ mode: {
449
+ type: String,
450
+ required: true,
451
+ validator: function (value) {
452
+ return ["prod", "dev", "staging"].indexOf(value) !== -1;
453
+ },
454
+ },
455
+ noAuth: {
456
+ type: Boolean,
457
+ default: false
458
+ },
459
+ isAuthenticated: {
460
+ type: Boolean,
461
+ default: false,
462
+ },
463
+ isBordered: {
464
+ type: Boolean,
465
+ default: false,
466
+ },
467
+ isSticky: {
468
+ type: Boolean,
469
+ default: false,
470
+ },
471
+ requestCount: {
472
+ type: [String, Number],
473
+ default: null,
474
+ },
475
+ daysRemaining: {
476
+ type: [String, Number],
477
+ default: null,
478
+ },
479
+ email: {
480
+ type: String,
481
+ default: "",
482
+ },
483
+ loginUrl: {
484
+ type: String,
485
+ default: "",
486
+ required: true,
487
+ },
488
+ activeTabKey: {
489
+ type: String,
490
+ default: "",
491
+ required: true,
492
+ },
493
+ balance: {
494
+ type: Number,
495
+ default: 0
496
+ },
497
+ hasFavourites: {
498
+ type: Boolean,
499
+ default: false
500
+ },
501
+ hasSearchField: {
502
+ type: Boolean,
503
+ default: false
504
+ },
505
+ tab: {
506
+ type: String,
507
+ default: ""
508
+ }
509
+ },
510
+ data() {
511
+ return {
512
+ isActiveMenu: false,
513
+ main: {
514
+ dev: "https://adtdev.kz",
515
+ prod: "https://adata.kz",
516
+ staging: "https://adada.kz",
517
+ },
518
+ headerItems: [
519
+ {
520
+ id: 1,
521
+ name: "Контрагенты",
522
+ dev: "https://pk.adtdev.kz",
523
+ prod: "https://pk.adata.kz",
524
+ staging: "https://pk.adada.kz",
525
+ key: "counterparty",
526
+ children: [
527
+ {
528
+ name: 'Проверка контрагентов',
529
+ subtitle: 'Проверьте контрагента на благонадежность',
530
+ to: '/',
531
+ icon: 'search'
532
+ },
533
+ {
534
+ name: 'Сравнение контрагентов',
535
+ subtitle: 'Проверьте рейтинг компании',
536
+ to: '/counterparty/compare',
537
+ icon: 'scales'
538
+ },
539
+ {
540
+ name: 'Косвенные связи',
541
+ subtitle: 'Проверьте наличие косвенных связей',
542
+ to: '/counterparty/search-connections/check',
543
+ icon: 'link'
544
+ },
545
+ {
546
+ name: 'Массовая проверка',
547
+ subtitle: 'Проверьте благонадежность нескольких компаний или сотрудников одновременно',
548
+ to: '/counterparty/employees-check',
549
+ icon: 'users'
550
+ },
551
+ {
552
+ name: 'Зарубежные контрагенты',
553
+ subtitle: 'Изучите сведения о российских и зарубежных компаниях',
554
+ to: '/counterparty/foreign',
555
+ icon: 'globe'
556
+ },
557
+ {
558
+ name: 'Санкции',
559
+ subtitle: 'Проверьте бизнес-партнера на включение в санкционные списки',
560
+ to: '/counterparty/sanctions',
561
+ icon: 'slash'
562
+ },
563
+ {
564
+ name: 'Офшоры',
565
+ subtitle: 'Проверьте наличие контрагента в офшорных списках',
566
+ to: '/counterparty/offshore',
567
+ icon: 'dollar'
568
+ },
569
+ ],
570
+ },
571
+ {
572
+ id: 2,
573
+ name: "Работа",
574
+ dev: "https://work.adtdev.kz",
575
+ prod: "https://work.adata.kz",
576
+ staging: "https://work.adada.kz",
577
+ key: "work",
578
+ children: [
579
+ {
580
+ name: 'Вакансии',
581
+ subtitle: 'Поиск вакансий',
582
+ to: '/vacancy',
583
+ icon: 'bag'
584
+ },
585
+ {
586
+ name: 'Резюме',
587
+ subtitle: 'Поиск резюме',
588
+ to: '/summary',
589
+ icon: 'scales'
590
+ },
591
+ ],
592
+ },
593
+ {
594
+ id: 3,
595
+ name: "Тендеры",
596
+ dev: "https://tender.adtdev.kz",
597
+ prod: "https://tender.adata.kz",
598
+ staging: "https://tender.adada.kz",
599
+ key: "tenders",
600
+ children: [
601
+ {
602
+ name: 'Поиск тендеров',
603
+ subtitle: 'Найдите интересующие объявления о закупках',
604
+ to: '/',
605
+ icon: 'search'
606
+ },
607
+ {
608
+ name: 'Поиск договоров',
609
+ subtitle: 'Найдите договоры по совершенным тендерным закупкам',
610
+ to: '/main/contracts',
611
+ icon: 'file'
612
+ },
613
+ {
614
+ name: 'Планы закупок',
615
+ subtitle: 'Узнайте о планирующихся тендерных закупках',
616
+ to: '/main/plans',
617
+ icon: 'package'
618
+ }
619
+ ],
620
+ },
621
+ {
622
+ id: 4,
623
+ name: "Штрафы",
624
+ dev: "https://avto.adtdev.kz",
625
+ prod: "https://avto.adata.kz",
626
+ staging: "https://avto.adada.kz",
627
+ key: "fines",
628
+ children: [
629
+ {
630
+ name: 'Проверка штрафов',
631
+ subtitle: 'Проверьте наличие штрафов, задолженностей и запретов',
632
+ to: '/',
633
+ icon: 'check'
634
+ },
635
+ {
636
+ name: 'Проверка авто',
637
+ subtitle: 'Проверьте информацию и историю авто',
638
+ to: '/check',
639
+ icon: 'car'
640
+ },
641
+ {
642
+ name: 'Массовая проверка авто',
643
+ subtitle: 'Используйте массовую проверку для получения информации о нескольких авто',
644
+ to: '/bulk-check',
645
+ icon: 'truck'
646
+ },
647
+ ],
648
+ },
649
+ {
650
+ id: 5,
651
+ name: "Аналитика",
652
+ dev: "https://analytics.adtdev.kz",
653
+ prod: "https://analytics.adata.kz",
654
+ staging: "https://analytics.adada.kz",
655
+ key: "marketing",
656
+ children: [
657
+ {
658
+ name: 'Поиск клиентов',
659
+ subtitle: 'Получите актуальную базу контактов потенциальных клиентов',
660
+ to: '/unload-data',
661
+ icon: 'search'
662
+ },
663
+ {
664
+ name: 'Анализ закупок',
665
+ subtitle: 'Изучите динамику и получите данные о проведенных тендерных закупках',
666
+ to: '/purchasing-analysis',
667
+ icon: 'package'
668
+ },
669
+ {
670
+ name: 'Индекс деловой активности',
671
+ subtitle: 'Изучайте активность предприятий на рынке',
672
+ to: '/business-activity',
673
+ icon: 'trending'
674
+ },
675
+ {
676
+ name: 'Рейтинг налогоплательщиков',
677
+ subtitle: 'Получите данные о лидерах компаний, видах деятельности и регионах',
678
+ to: '/tax-payment',
679
+ icon: 'award'
680
+ },
681
+ {
682
+ name: 'Субъекты бизнеса',
683
+ subtitle: 'Изучите динамику субъектов действующего бизнеса',
684
+ to: '/business-entities',
685
+ icon: 'company'
686
+ }
687
+ ],
688
+ },
689
+ ],
690
+ isOpen: false,
691
+ weather: null,
692
+ currencies: null,
693
+ systemMessage: null,
694
+ timer: null,
695
+ isOpenNotification: false,
696
+ };
697
+ },
698
+ created() {
699
+ this.fetchCurrencies();
700
+ },
701
+ mounted() {
702
+ this.notificationShow()
703
+ },
704
+ methods: {
705
+ goToAnotherModule(url) {
706
+ if(!location.href.includes(url)) {
707
+ this.$emit("changeModule");
708
+ }
709
+ window.open(url, "_self");
710
+ },
711
+ goAuth() {
712
+ const fullPath = encodeURIComponent(window.location.toString());
713
+ if (window) {
714
+ window.location.href = `${this.loginUrl}?url=${fullPath}`;
715
+ }
716
+ },
717
+ async fetchNotification() {
718
+ try {
719
+ const link = `https://users.adata.kz/api/v1/system-messages/active-list/?module_name=${this.activeTabKey}`
720
+ const response = await fetch(link);
721
+ const {data} = await response.json();
722
+
723
+ if (data.details.length) {
724
+ this.systemMessage = data.details[0].message;
725
+ this.isOpenNotification = true;
726
+ localStorage.setItem('start_time', JSON.stringify(new Date()))
727
+ }
728
+
729
+ } catch (e) {
730
+ console.log(e.message)
731
+ }
732
+ },
733
+ notificationShow() {
734
+ const startTime = localStorage.getItem('start_time');
735
+ let diffTime = startTime ? Math.round((new Date() - new Date(JSON.parse(startTime))) / 3600000) : 0
736
+ if (startTime) {
737
+ if (diffTime >= 24) {
738
+ localStorage.removeItem('start_time')
739
+ }
740
+ } else {
741
+ this.fetchNotification()
742
+ }
743
+ },
744
+ async fetchCurrencies() {
745
+ try {
746
+ const response = await fetch('https://users.adata.kz/api/v1/information/currency');
747
+ const {data} = await response.json();
748
+
749
+ if (data.currencies) {
750
+ this.currencies = data.currencies;
751
+ }
752
+
753
+ } catch (e) {
754
+ console.log(e.message)
755
+ }
756
+ },
757
+ async fetchWeather() {
758
+ try {
759
+ const response = await fetch('https://users.adata.kz/api/v1/information/weather');
760
+ const {data} = await response.json();
761
+
762
+ if (data.cities) {
763
+ this.weather = data.cities;
764
+ }
765
+
766
+ } catch (e) {
767
+ console.log(e.message)
768
+ }
769
+ },
770
+ closeNotification(option) {
771
+ this.isOpenNotification = !option
772
+ },
773
+ changeValue() {
774
+ this.isActiveMenu = false;
775
+ this.isOpen = !this.isOpen;
776
+ this.$emit("menuOpen", this.isOpen);
777
+ },
778
+ thousandSeparator(val) {
779
+ return val ? val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ") : "0";
780
+ },
781
+ defineIconState(name) {
782
+ return name === "DOWN" ? "@/assets/icons/arrow-down.svg" : "@/assets/icons/arrow-up.svg";
783
+ },
784
+ defineIconEntity(name) {
785
+ switch (name) {
786
+ case 'USD':
787
+ return "@/assets/icons/dollor.svg";
788
+ case 'EUR':
789
+ return "@/assets/icons/euro.svg";
790
+ case 'RUB':
791
+ return "@/assets/icons/ruble.svg";
792
+ }
793
+ },
794
+ },
795
+ };
796
+ </script>
797
+
798
+ <style lang="scss">
799
+ * {
800
+ font-family: "Open Sans", sans-serif;
801
+ box-sizing: border-box;
802
+ margin: 0;
803
+ padding: 0;
804
+ }
805
+
806
+ .sticky {
807
+ position: sticky;
808
+ z-index: 1000;
809
+ top: 0;
810
+ }
811
+
812
+ .header {
813
+ background: #ffffff;
814
+ max-height: 62px;
815
+ height: 62px;
816
+ display: flex;
817
+ align-items: center;
818
+ width: 100%;
819
+ @media (max-width: 1025px) {
820
+ height: 56px;
821
+ border-bottom: 1px solid #BDC7CE;
822
+ }
823
+
824
+ &.bordered {
825
+ border-bottom: 1px solid #2c3e5026;
826
+ }
827
+
828
+ & > .container {
829
+ width: 100%;
830
+ display: flex;
831
+ justify-content: space-between;
832
+ align-items: center;
833
+ @media (max-width: 1025px) {
834
+ gap: 12px;
835
+ }
836
+ }
837
+
838
+ &__right {
839
+ display: flex;
840
+ align-items: center;
841
+ }
842
+
843
+ &__left {
844
+ display: flex;
845
+ align-items: center;
846
+ @media (max-width: 1025px) {
847
+ width: 100%;
848
+ }
849
+
850
+ .menu {
851
+ display: flex;
852
+ align-items: center;
853
+ $self: &;
854
+ @media (max-width: 1025px) {
855
+ display: none;
856
+ }
857
+
858
+ &__sublinks {
859
+ display: none;
860
+ }
861
+ &__item {
862
+ margin-right: 8px;
863
+ align-items: center;
864
+ position: relative;
865
+ &:hover {
866
+ .menu__sublinks {
867
+ display: block;
868
+ }
869
+ }
870
+ }
871
+ &__items {
872
+ padding: 20px 8px 20px 0;
873
+ transition: text-shadow 0.3s;
874
+ display: block;
875
+ font-weight: bold;
876
+ font-size: 16px;
877
+ line-height: 22px;
878
+ text-transform: uppercase;
879
+ color: #71757a;
880
+ position: relative;
881
+
882
+ &::after {
883
+ content: "";
884
+ position: absolute;
885
+ right: -1px;
886
+ top: 50%;
887
+ transform: translateY(-50%);
888
+ height: 22px;
889
+ width: 1px;
890
+ background-color: #e5e5e5;
891
+ }
892
+
893
+ &.active {
894
+ font-weight: bold;
895
+ font-size: 16px;
896
+ line-height: 22px;
897
+ text-transform: uppercase;
898
+ color: #2c3e50;
899
+ }
900
+
901
+ &:hover {
902
+ color: #9da3ac;
903
+ cursor: pointer;
904
+ }
905
+ }
906
+ }
907
+
908
+ .logo {
909
+ display: block;
910
+ margin-right: 20px;
911
+ @media (max-width: 1025px) {
912
+ margin-right: 10px;
913
+ padding-bottom: 0;
914
+ }
915
+
916
+ svg {
917
+ //width: 90px;
918
+ //height: 26px;
919
+ //display: block;
920
+ fill: #2c3e50;
921
+ @media (max-width: 1025px) {
922
+ // width: 77px;
923
+ // height: 24px;
924
+ width: 38px;
925
+ height: 30px;
926
+ }
927
+
928
+ &:hover {
929
+ fill: #71757a;
930
+ }
931
+ &.desktop {
932
+ @media (max-width: 1025px) {
933
+ display: none;
934
+ }
935
+ }
936
+ &.mobile {
937
+ display: none;
938
+ @media (max-width: 1025px) {
939
+ display: block;
940
+ width: auto;
941
+ }
942
+ }
943
+ }
944
+ }
945
+ }
946
+
947
+ .menu_mobile {
948
+ display: none;
949
+ grid-template-columns: 10% 90%;
950
+ z-index: 1000000;
951
+ position: absolute !important;
952
+
953
+ .empty-space {
954
+ background: rgba(0, 0, 0, 0.40);
955
+ }
956
+
957
+ &::-webkit-scrollbar {
958
+ width: 4px;
959
+
960
+ &-thumb {
961
+ background: #c4c4c4;
962
+ }
963
+
964
+ &-track {
965
+ background: #fff;
966
+ }
967
+ }
968
+
969
+ &--switcher {
970
+ display: none;
971
+ cursor: pointer;
972
+ }
973
+
974
+ button.sign {
975
+ height: auto;
976
+ justify-content: flex-start;
977
+
978
+ svg {
979
+ margin-right: 8px;
980
+ height: 24px;
981
+ width: 24px;
982
+ }
983
+
984
+ span {
985
+ color: #007AFF;
986
+ font-size: 14px;
987
+ }
988
+ }
989
+
990
+ @media (max-width: 1025px) {
991
+ display: grid;
992
+ background: transparent !important;
993
+ .mobile-table-head {
994
+ display: flex;
995
+ justify-content: space-between;
996
+ padding: 20px 16px;
997
+ height: auto;
998
+ background: #ECEFF1;
999
+ border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1000
+ }
1001
+ &-wrapper {
1002
+ border-top: 1px solid #9da3ac4c;
1003
+ padding: 16px;
1004
+ font-weight: 600;
1005
+ font-size: 14px;
1006
+ line-height: 22px;
1007
+ color: #2c3e50;
1008
+ display: block;
1009
+
1010
+ &:first-child {
1011
+ border-top: none;
1012
+ }
1013
+
1014
+ &.active-burger-tab {
1015
+ background: #2c3e500d;
1016
+ }
1017
+ }
1018
+ &--switcher {
1019
+ display: flex;
1020
+ align-items: center;
1021
+ justify-content: center;
1022
+ }
1023
+ }
1024
+
1025
+ .menu-wrapper {
1026
+ height: 100%;
1027
+ display: flex;
1028
+ flex-direction: column;
1029
+ justify-content: space-between;
1030
+ box-shadow: -6px 4px 12px rgb(157 163 172 / 40%);
1031
+ background: #fff;
1032
+ @media (max-width: 1025px) {
1033
+ justify-content: flex-start;
1034
+ }
1035
+
1036
+ &__top {
1037
+ &-left {
1038
+ display: flex;
1039
+ gap: 8px;
1040
+ align-items: center;
1041
+ width: 100%;
1042
+
1043
+ .svg-wrapper {
1044
+ width: 32px;
1045
+ height: 32px;
1046
+ background: rgba(189, 199, 206, 0.2);
1047
+ display: flex;
1048
+ justify-content: center;
1049
+ align-items: center;
1050
+ border-radius: 50%;
1051
+
1052
+ svg {
1053
+ width: 24px;
1054
+ height: 24px;
1055
+ }
1056
+ }
1057
+
1058
+ .text-wrapper {
1059
+ width: 100%;
1060
+ p {
1061
+ font-size: 14px;
1062
+ font-weight: 500;
1063
+ display: flex;
1064
+ justify-content: space-between;
1065
+ align-items: center;
1066
+
1067
+ &:first-child {
1068
+ border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1069
+ padding-bottom: 12px;
1070
+ margin-bottom: 12px;
1071
+ span {
1072
+ cursor: pointer;
1073
+ svg {
1074
+ width: 16px;
1075
+ height: 16px;
1076
+ }
1077
+ }
1078
+ }
1079
+
1080
+ &:nth-child(2) {
1081
+ color: #007AFF;
1082
+ font-size: 12px;
1083
+ font-weight: 600;
1084
+ span {
1085
+ display: flex;
1086
+ align-items: center;
1087
+ gap: 8px;
1088
+ cursor: pointer;
1089
+ font-weight: 400;
1090
+ }
1091
+ }
1092
+ }
1093
+ }
1094
+ }
1095
+
1096
+ &-right {
1097
+ display: flex;
1098
+ align-items: center;
1099
+ justify-content: center;
1100
+ cursor: pointer;
1101
+ }
1102
+ }
1103
+ }
1104
+
1105
+ &-footer {
1106
+ width: 100%;
1107
+ background: #007AFF;
1108
+ padding: 20px 16px;
1109
+ display: flex;
1110
+ margin-top: auto;
1111
+ position: relative;
1112
+ z-index: 1000000;
1113
+ @media (max-width: 1025px) {
1114
+ height: 40px;
1115
+ width: calc(100% - 32px);
1116
+ margin: 32px 16px;
1117
+ justify-content: center;
1118
+ }
1119
+
1120
+ button.sign {
1121
+ span {
1122
+ color: #fff;
1123
+ }
1124
+ }
1125
+ }
1126
+ }
1127
+
1128
+ .menu-wrapper__bottom {
1129
+ margin: 80px 0 0;
1130
+ @media (max-width: 1025px) {
1131
+ margin: 0;
1132
+ }
1133
+
1134
+ &-header {
1135
+ background: rgba(189, 199, 206, 0.2);
1136
+ padding: 4px 16px;
1137
+ display: flex;
1138
+ justify-content: space-between;
1139
+ align-items: center;
1140
+
1141
+ span {
1142
+ font-weight: 500;
1143
+ font-size: 12px;
1144
+ line-height: 20px;
1145
+ color: #666C72;
1146
+ }
1147
+ }
1148
+
1149
+ &-body {
1150
+ padding: 8px 16px 16px;
1151
+ display: flex;
1152
+ flex-direction: column;
1153
+ justify-content: space-between;
1154
+ gap: 12px;
1155
+ margin-bottom: 36px;
1156
+ @media (max-width: 1025px) {
1157
+ margin-bottom: 0;
1158
+ }
1159
+ }
1160
+
1161
+ &-row {
1162
+ display: flex;
1163
+ justify-content: space-between;
1164
+ align-items: center;
1165
+ }
1166
+
1167
+ &-column {
1168
+ display: flex;
1169
+ align-items: center;
1170
+ gap: 8px;
1171
+
1172
+ &:first-child {
1173
+ justify-content: flex-start;
1174
+ }
1175
+
1176
+ &:nth-child(2), &:nth-child(3) {
1177
+ justify-content: flex-end;
1178
+ width: 60px;;
1179
+ }
1180
+
1181
+ span {
1182
+ font-weight: 500;
1183
+ font-size: 14px;
1184
+ line-height: 20px;
1185
+ color: #2C3E50;
1186
+ }
1187
+ }
1188
+
1189
+ &-footer {
1190
+ background: rgba(189, 199, 206, 0.2);
1191
+ padding: 8px 16px;
1192
+ display: flex;
1193
+ flex-direction: column;
1194
+ gap: 10px;
1195
+
1196
+ &-item {
1197
+ display: flex;
1198
+ justify-content: space-between;
1199
+ align-items: center;
1200
+ }
1201
+
1202
+ &-title {
1203
+ font-weight: 500;
1204
+ font-size: 14px;
1205
+ line-height: 20px;
1206
+ color: #2C3E50;
1207
+ }
1208
+
1209
+ &-circle {
1210
+ color: #ffffff;
1211
+ padding: 4px 12px;
1212
+ background: #007AFF;
1213
+ border-radius: 100px;
1214
+ font-weight: 500;
1215
+ font-size: 14px;
1216
+ line-height: 20px;
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+
1222
+ .logo-desktop {
1223
+ display: flex;
1224
+ justify-content: center;
1225
+ align-items: center;
1226
+ width: 90px;
1227
+ height: 26px;
1228
+ background-image: url("~@/assets/logo-desktop-main.svg");
1229
+ background-size: cover;
1230
+ background-position: center;
1231
+ @media screen and (max-width: 1025px){
1232
+ display: none;
1233
+ }
1234
+ }
1235
+ .logo-mobile {
1236
+ display: none;
1237
+ width: 24px;
1238
+ height: 24px;
1239
+ background-image: url("~@/assets/logo-mobile-main.svg");
1240
+ background-size: cover;
1241
+ background-position: center;
1242
+ @media screen and (max-width: 1025px){
1243
+ display: flex;
1244
+ align-items: center;
1245
+ justify-content: center;
1246
+ }
1247
+ }
1248
+
1249
+ .mobile-search {
1250
+ display: none;
1251
+ height: 32px;
1252
+ max-height: 32px;
1253
+ @media (max-width: 1025px) {
1254
+ display: flex;
1255
+ align-items: center;
1256
+ justify-content: flex-end;
1257
+ gap: 8px;
1258
+ width: 100%;
1259
+ }
1260
+ .search-input {
1261
+ display: flex;
1262
+ align-items: center;
1263
+ gap: 8px;
1264
+ background: rgba(189, 199, 206, 0.2);
1265
+ height: 100%;
1266
+ border-radius: 2px;
1267
+ width: 100%;
1268
+ padding: 0 14px;
1269
+ font-weight: 500;
1270
+ font-size: 12px;
1271
+ line-height: 20px;
1272
+ cursor: pointer;
1273
+ }
1274
+ .favorite-btn {
1275
+ background: rgba(189, 199, 206, 0.2);
1276
+ display: flex;
1277
+ justify-content: center;
1278
+ align-items: center;
1279
+ padding: 10px;
1280
+ height: 100%;
1281
+ border-radius: 2px;
1282
+ cursor: pointer;
1283
+ svg {
1284
+ width: 16px;
1285
+ height: 16px;
1286
+ }
1287
+ }
1288
+ }
1289
+ </style>