adata-ui 0.3.65 → 0.3.66

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 (92) hide show
  1. package/README.md +7 -7
  2. package/babel.config.js +5 -5
  3. package/dist/adata-ui.common.js +8638 -6055
  4. package/dist/adata-ui.common.js.map +1 -1
  5. package/dist/adata-ui.css +1 -1
  6. package/dist/adata-ui.umd.js +8638 -6055
  7. package/dist/adata-ui.umd.js.map +1 -1
  8. package/dist/adata-ui.umd.min.js +3 -3
  9. package/dist/adata-ui.umd.min.js.map +1 -1
  10. package/dist/img/{facebook.990fd0ba.svg → facebook.797d820f.svg} +4 -4
  11. package/dist/img/{instagram.90311e74.svg → instagram.8a77381c.svg} +6 -6
  12. package/dist/img/{logo-white-desktop.0827cb20.svg → logo-white-desktop.7d0e3481.svg} +8 -8
  13. package/dist/img/{telegram.da3d2408.svg → telegram.be0d1008.svg} +4 -4
  14. package/dist/img/{tiktok.91223b77.svg → tiktok.eaeb39cb.svg} +4 -4
  15. package/dist/img/{up-down.de7b3a68.svg → up-down.e2b28f72.svg} +3 -3
  16. package/dist/img/{youtube.96e7b076.svg → youtube.125aace6.svg} +5 -5
  17. package/package-lock.json +26218 -26218
  18. package/package.json +76 -76
  19. package/public/index.html +17 -17
  20. package/public/logo.svg +4 -4
  21. package/src/App.vue +25 -25
  22. package/src/assets/_text_field.scss +224 -224
  23. package/src/assets/facebook.svg +4 -4
  24. package/src/assets/instagram.svg +6 -6
  25. package/src/assets/logo-desktop.svg +9 -9
  26. package/src/assets/logo-mobile.svg +9 -9
  27. package/src/assets/logo-white-desktop.svg +8 -8
  28. package/src/assets/style.scss +1 -1
  29. package/src/assets/telegram.svg +4 -4
  30. package/src/assets/tiktok.svg +4 -4
  31. package/src/assets/up-down.svg +3 -3
  32. package/src/assets/youtube.svg +5 -5
  33. package/src/components/Alert/Alert.stories.js +17 -17
  34. package/src/components/Alert/Alert.vue +63 -63
  35. package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +151 -151
  36. package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +24 -24
  37. package/src/components/Button/AButton.vue +231 -231
  38. package/src/components/Button/Button.stories.js +23 -23
  39. package/src/components/Checkbox/ACheckbox.vue +114 -114
  40. package/src/components/Checkbox/Checkbox.stories.js +15 -15
  41. package/src/components/CheckboxMenu/CheckboxMenu.stories.js +23 -23
  42. package/src/components/CheckboxMenu/CheckboxMenu.vue +108 -108
  43. package/src/components/ErrorPages/BadGateway.vue +224 -224
  44. package/src/components/ErrorPages/Forbidden.vue +468 -468
  45. package/src/components/ErrorPages/InternalServerError.vue +275 -275
  46. package/src/components/ErrorPages/NotFound.vue +995 -995
  47. package/src/components/ErrorPages/Unavailable.vue +3705 -3705
  48. package/src/components/Footer/Footer.stories.js +20 -20
  49. package/src/components/Footer/Footer.vue +292 -292
  50. package/src/components/Header/ChildLinks.vue +122 -122
  51. package/src/components/Header/Header.stories.js +56 -56
  52. package/src/components/Header/Header.vue +1307 -1307
  53. package/src/components/Header/InfoHeader.vue +319 -319
  54. package/src/components/Header/Profile.vue +670 -670
  55. package/src/components/Header/ProfileMenu.vue +275 -275
  56. package/src/components/Header/ProfileMobile.vue +308 -308
  57. package/src/components/Header/ProfileOld.vue +781 -781
  58. package/src/components/InternalServerError/InternalServerError.stories.js +16 -16
  59. package/src/components/InternalServerError/InternalServerError.vue +262 -262
  60. package/src/components/Introduction.stories.mdx +7 -7
  61. package/src/components/Loader/Loader.stories.js +24 -24
  62. package/src/components/Loader/Loader.vue +325 -325
  63. package/src/components/MailTo/MailTo.stories.js +14 -14
  64. package/src/components/MailTo/MailTo.vue +258 -258
  65. package/src/components/NavIcon/ANavIcon.vue +49 -49
  66. package/src/components/NavIcon/NavIcon.stories.js +14 -14
  67. package/src/components/PasswordField/PasswordField.stories.js +16 -16
  68. package/src/components/PasswordField/PasswordField.vue +77 -77
  69. package/src/components/SearchTextField/SearchTextField.stories.js +77 -77
  70. package/src/components/SearchTextField/SearchTextField.vue +230 -230
  71. package/src/components/ServiceSlider/AServiceSlider.vue +782 -782
  72. package/src/components/ServiceSlider/ServiceSlider.stories.js +20 -20
  73. package/src/components/Table/ATable.vue +117 -117
  74. package/src/components/Table/Table.stories.js +15 -15
  75. package/src/components/TextArea/TextArea.stories.js +17 -17
  76. package/src/components/TextArea/TextArea.vue +116 -116
  77. package/src/components/TextError/TextError.stories.js +15 -15
  78. package/src/components/TextError/TextError.vue +57 -57
  79. package/src/components/TextField/TextField.stories.js +17 -17
  80. package/src/components/TextField/TextField.vue +107 -107
  81. package/src/components/index.js +54 -54
  82. package/src/components/newComponents/FooterNew/FooterBottom.vue +152 -151
  83. package/src/components/newComponents/FooterNew/FooterItem.vue +113 -113
  84. package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -20
  85. package/src/components/newComponents/FooterNew/FooterNew.vue +39 -39
  86. package/src/components/newComponents/FooterNew/FooterTop.vue +319 -318
  87. package/src/components/transitions/SlideToggle.vue +55 -55
  88. package/src/components/transitions/VerticalMobileToggle.vue +75 -75
  89. package/src/configs/icons.js +112 -112
  90. package/src/configs/profileDropDown.js +134 -134
  91. package/src/main.js +12 -12
  92. package/src/.DS_Store +0 -0
@@ -1,1307 +1,1307 @@
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
-
28
- <!-- <svg-->
29
- <!-- class="adata-logo desktop"-->
30
- <!-- xmlns="http://www.w3.org/2000/svg"-->
31
- <!-- viewBox="0 0 166 48"-->
32
- <!-- >-->
33
- <!-- <path-->
34
- <!-- d="M62.926 38.22v-28h10.316c10.342 0 15.511 4.55 15.508 13.652 0 4.36-1.41 7.843-4.232 10.448-2.822 2.605-6.58 3.907-11.276 3.904l-10.316-.004zm6.56-22.868v17.752h3.248c2.839 0 5.069-.82 6.69-2.46 1.622-1.64 2.43-3.873 2.424-6.7 0-2.667-.8-4.767-2.403-6.3-1.602-1.533-3.853-2.297-6.752-2.292h-3.206zM118.5 38.22h-7.131l-2.079-6.228H98.958l-2.079 6.228h-7.093l10.598-28h7.775l10.341 28zm-10.723-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.162c-.07.83-.24 1.649-.508 2.44l-3.168 9.492h7.451zm31.833-11.796h-8.316V38.22h-6.557V15.352h-8.274v-5.136h23.147v5.136zM166 38.22h-7.143l-2.079-6.228h-10.349l-2.05 6.228h-7.106l10.598-28h7.776l10.353 28zm-10.719-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.163c-.069.83-.239 1.649-.507 2.44l-3.168 9.492h7.451zM24.553 15.252h-.163c-.069.83-.24 1.649-.507 2.44L20.715 27.2h7.45l-3.126-9.412a12.02 12.02 0 01-.486-2.536z"-->
35
- <!-- ></path>-->
36
- <!-- <path-->
37
- <!-- d="M44.905 0H4.99a5.091 5.091 0 00-3.528 1.406A4.71 4.71 0 000 4.8v38.4a4.71 4.71 0 001.461 3.394A5.091 5.091 0 004.99 48h39.916a5.091 5.091 0 003.528-1.406 4.71 4.71 0 001.462-3.394V4.8a4.71 4.71 0 00-1.462-3.394A5.091 5.091 0 0044.905 0zM31.737 38.26l-2.079-6.232H19.305l-2.05 6.232h-7.097l10.598-28h7.776l10.353 28h-7.148z"-->
38
- <!-- ></path>-->
39
- <!-- </svg>-->
40
- <!-- <svg class="adata-logo mobile" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">
41
- <path d="M11.3883 7.06335H11.3145C11.2829 7.43668 11.2054 7.80519 11.0836 8.16135L9.64099 12.44H13.0335L11.6098 8.20455C11.4947 7.83247 11.4204 7.45002 11.3883 7.06335Z" fill="#2C3E50"/>
42
- <path d="M20.6552 0.200012H2.48111C1.8786 0.200012 1.30077 0.427581 0.874734 0.83266C0.448697 1.23774 0.209351 1.78714 0.209351 2.36001V19.64C0.209351 20.2129 0.448697 20.7623 0.874734 21.1674C1.30077 21.5724 1.8786 21.8 2.48111 21.8H20.6552C21.2577 21.8 21.8355 21.5724 22.2616 21.1674C22.6876 20.7623 22.9269 20.2129 22.9269 19.64V2.36001C22.9269 1.78714 22.6876 1.23774 22.2616 0.83266C21.8355 0.427581 21.2577 0.200012 20.6552 0.200012ZM14.6596 17.417L13.7131 14.6126H8.99916L8.06585 17.417H4.83427L9.65987 4.81702H13.2L17.9139 17.417H14.6596Z" fill="#2C3E50"/>
43
- </svg> -->
44
- </a>
45
- <div class="menu" v-show="headerItems.length > 0">
46
- <div
47
- class="menu__item"
48
- v-for="(item, index) in headerItems"
49
- :key="index">
50
- <a
51
- class="menu__wrapper menu__items"
52
- :class="{ active: item.key === activeTabKey }"
53
- :href="item[mode]"
54
- @click="goToAnotherModule(item[mode])"
55
- onclick="return false;"
56
- >
57
- {{ item.name }}
58
- </a>
59
- <child-links class="menu__sublinks" :links="item" :module="activeTabKey" :mode="mode" />
60
- </div>
61
- </div>
62
- <div class="mobile-search">
63
- <div v-show="hasSearchField" @click="$emit('search')" class="search-input">
64
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
65
- <path d="M14 13.9995L10.5967 10.596" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
66
- <circle cx="7" cy="7" r="5" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
67
- </svg>
68
- Найти
69
- </div>
70
- </div>
71
- </div>
72
- <div class="header__right" v-show="!noAuth">
73
- <Profile
74
- :mode="mode"
75
- :activeTabKey="activeTabKey"
76
- :isAuthenticated="isAuthenticated"
77
- :email="email"
78
- :loginUrl="loginUrl"
79
- :rate="rate"
80
- :balance="this.thousandSeparator(balance)"
81
- :tab="tab"
82
- @showBalanceModal="
83
- (val) => {
84
- $emit('showBalanceModal', val);
85
- }
86
- "
87
- @setShowModal="
88
- (val) => {
89
- $emit('setShowModal', val);
90
- }
91
- "
92
- @logout="$emit('logout')"
93
- @setIsReplenishModal="
94
- (val) => {
95
- $emit('setIsReplenishModal', val);
96
- }
97
- "
98
- />
99
- </div>
100
- </div>
101
- <MobileToggle v-slot="{ animationClass }">
102
- <div
103
- class="menu_mobile"
104
- :class="animationClass"
105
- v-show="headerItems.length > 0 && isOpen"
106
- >
107
- <div class="empty-space" @click="changeValue"></div>
108
- <div class="menu-wrapper">
109
- <div class="menu-wrapper__top">
110
- <div class="mobile-table-head">
111
- <button
112
- @click.prevent="goAuth"
113
- class="sign"
114
- v-if="!isAuthenticated"
115
- >
116
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
117
- <path d="M13.5 15L16.5 11.9189L13.6154 9" stroke="#007AFF" stroke-miterlimit="10"
118
- stroke-linecap="round" stroke-linejoin="round"/>
119
- <path d="M9 7.125V4.5H19.5V19.5H9V17.4375" stroke="#007AFF" stroke-miterlimit="10"
120
- stroke-linecap="round" stroke-linejoin="round"/>
121
- <path d="M16 12H4" stroke="#007AFF" stroke-miterlimit="10" stroke-linecap="round"
122
- stroke-linejoin="round"/>
123
- </svg>
124
- <span>Войти</span>
125
- </button>
126
- <div v-else class="menu-wrapper__top-left">
127
- <div class="text-wrapper">
128
- <p>{{ email }}
129
- <span @click.stop="changeValue">
130
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
131
- <path d="M1.99902 1.99957L13.9996 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
132
- <path d="M14 1.99957L1.9994 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
133
- </svg>
134
- </span>
135
- </p>
136
- <p>Тариф {{ rate }}
137
- <span @click.stop.prevent="isActiveMenu = true">
138
- Перейти
139
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
140
- <rect width="24" height="24" rx="12" transform="matrix(-1 0 0 1 24 0)" fill="#007AFF" fill-opacity="0.12"/>
141
- <path d="M14.0005 8.00311L18.0005 12.0096L14.0005 16.0031" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10"
142
- stroke-linecap="round" stroke-linejoin="round"/>
143
- <path d="M18 12L6 12" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
144
- </svg>
145
- </span>
146
- </p>
147
- </div>
148
- </div>
149
- <div v-if="!isAuthenticated" class="menu-wrapper__top-right" @click.stop="changeValue">
150
- <svg
151
- width="18"
152
- height="18"
153
- fill="none"
154
- xmlns="http://www.w3.org/2000/svg"
155
- viewBox="0 0 24 24"
156
- >
157
- <path
158
- fill-rule="evenodd"
159
- clip-rule="evenodd"
160
- d="M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z"
161
- fill="#2C3E50"
162
- ></path>
163
- <path
164
- fill-rule="evenodd"
165
- clip-rule="evenodd"
166
- d="M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z"
167
- fill="#2C3E50"
168
- ></path>
169
- </svg>
170
- </div>
171
- </div>
172
- <div class="menu__link">
173
- <a
174
- v-for="(item, index) in headerItems"
175
- :key="index"
176
- class="menu_mobile-wrapper"
177
- :class="{ 'active-burger-tab': item.key === activeTabKey }"
178
- :href="item[mode]"
179
- >
180
- {{ item.name }}
181
- </a>
182
- </div>
183
- </div>
184
- <div class="menu-wrapper__bottom">
185
- <div class="menu-wrapper__bottom-header">
186
- <span>Валюта</span>
187
- <span>Покупка</span>
188
- <span>Продажа</span>
189
- </div>
190
- <div class="menu-wrapper__bottom-body">
191
- <div v-for="(currency, index) in currencies" :key="index" class="menu-wrapper__bottom-row">
192
- <div class="menu-wrapper__bottom-column">
193
- <svg v-if="currency.currency === 'USD'" width="16" height="17" viewBox="0 0 16 17" fill="none"
194
- xmlns="http://www.w3.org/2000/svg">
195
- <g clip-path="url(#clip0_179_1917)">
196
- <path d="M26.4 0.5H-4V16.5H26.4V0.5Z" fill="white"/>
197
- <path d="M26.4 0.5H-4V1.732H26.4V0.5Z" fill="#B22234"/>
198
- <path d="M26.4 2.95996H-4V4.19196H26.4V2.95996Z" fill="#B22234"/>
199
- <path d="M26.4 5.42407H-4V6.65607H26.4V5.42407Z" fill="#B22234"/>
200
- <path d="M26.4 7.88403H-4V9.11603H26.4V7.88403Z" fill="#B22234"/>
201
- <path d="M26.4 10.3479H-4V11.5799H26.4V10.3479Z" fill="#B22234"/>
202
- <path d="M26.4 12.8081H-4V14.0401H26.4V12.8081Z" fill="#B22234"/>
203
- <path d="M26.4 15.2681H-4V16.5001H26.4V15.2681Z" fill="#B22234"/>
204
- <path d="M8.16 0.5H-4V9.116H8.16V0.5Z" fill="#3C3B6E"/>
205
- <path
206
- 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"
207
- fill="white"/>
208
- <path
209
- 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"
210
- fill="white"/>
211
- <path
212
- 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"
213
- fill="white"/>
214
- <path
215
- 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"
216
- fill="white"/>
217
- <path
218
- 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"
219
- fill="white"/>
220
- <path
221
- 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"
222
- fill="white"/>
223
- <path
224
- 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"
225
- fill="white"/>
226
- <path
227
- 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"
228
- fill="white"/>
229
- <path
230
- 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"
231
- fill="white"/>
232
- <path
233
- 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"
234
- fill="white"/>
235
- <path
236
- 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"
237
- fill="white"/>
238
- <path
239
- 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"
240
- fill="white"/>
241
- <path
242
- 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"
243
- fill="white"/>
244
- <path
245
- 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"
246
- fill="white"/>
247
- <path
248
- 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"
249
- fill="white"/>
250
- <path
251
- 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"
252
- fill="white"/>
253
- <path
254
- 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"
255
- fill="white"/>
256
- <path
257
- 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"
258
- fill="white"/>
259
- <path
260
- 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"
261
- fill="white"/>
262
- <path
263
- 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"
264
- fill="white"/>
265
- <path
266
- 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"
267
- fill="white"/>
268
- <path
269
- 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"
270
- fill="white"/>
271
- <path
272
- 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"
273
- fill="white"/>
274
- <path
275
- 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"
276
- fill="white"/>
277
- <path
278
- 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"
279
- fill="white"/>
280
- <path
281
- 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"
282
- fill="white"/>
283
- <path
284
- 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"
285
- fill="white"/>
286
- <path
287
- 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"
288
- fill="white"/>
289
- <path
290
- 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"
291
- fill="white"/>
292
- <path
293
- 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"
294
- fill="white"/>
295
- <path
296
- 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"
297
- fill="white"/>
298
- <path
299
- 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"
300
- fill="white"/>
301
- <path
302
- 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"
303
- fill="white"/>
304
- <path
305
- 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"
306
- fill="white"/>
307
- <path
308
- 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"
309
- fill="white"/>
310
- <path
311
- 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"
312
- fill="white"/>
313
- </g>
314
- <defs>
315
- <clipPath id="clip0_179_1917">
316
- <path
317
- 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"
318
- fill="white"/>
319
- </clipPath>
320
- </defs>
321
- </svg>
322
- <svg v-if="currency.currency === 'EUR'" width="16" height="17" viewBox="0 0 16 17" fill="none"
323
- xmlns="http://www.w3.org/2000/svg">
324
- <path
325
- 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"
326
- fill="#314199"/>
327
- <path
328
- 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"
329
- fill="#F8EC26"/>
330
- <path
331
- 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"
332
- fill="#F8EC26"/>
333
- <path
334
- 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"
335
- fill="#F8EC26"/>
336
- <path
337
- 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"
338
- fill="#F8EC26"/>
339
- <path
340
- 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"
341
- fill="#F8EC26"/>
342
- <path
343
- 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"
344
- fill="#F8EC26"/>
345
- <path
346
- 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"
347
- fill="#F8EC26"/>
348
- <path
349
- 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"
350
- fill="#F8EC26"/>
351
- <path
352
- 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"
353
- fill="#F8EC26"/>
354
- <path
355
- 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"
356
- fill="#F8EC26"/>
357
- <path
358
- 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"
359
- fill="#F8EC26"/>
360
- <path
361
- 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"
362
- fill="#F8EC26"/>
363
- </svg>
364
- <svg v-if="currency.currency === 'RUB'" width="16" height="17" viewBox="0 0 16 17" fill="none"
365
- xmlns="http://www.w3.org/2000/svg">
366
- <g clip-path="url(#clip0_179_2012)">
367
- <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"
368
- fill="#F0F0F0"/>
369
- <rect y="5.5" width="20" height="7" fill="#0039A6"/>
370
- <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"
371
- fill="#D52B1E"/>
372
- </g>
373
- <defs>
374
- <clipPath id="clip0_179_2012">
375
- <rect y="0.5" width="16" height="16" rx="2" fill="white"/>
376
- </clipPath>
377
- </defs>
378
- </svg>
379
- <svg v-if="currency.currency === 'CNY'" width="16" height="16" viewBox="0 0 16 16" fill="none"
380
- xmlns="http://www.w3.org/2000/svg">
381
- <path
382
- 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"
383
- fill="#DE2910"/>
384
- <path
385
- d="M4.00115 1.60043L5.41155 5.94203L1.71875 3.25883H6.28355L2.59075 5.94203L4.00115 1.60043Z"
386
- fill="#FFDE00"/>
387
- <path
388
- d="M7.3125 2.01103L8.3117 0.863831L8.1781 2.37983L7.3957 1.07503L8.7957 1.67023L7.3125 2.01103Z"
389
- fill="#FFDE00"/>
390
- <path
391
- d="M8.80803 3.31335L10.1744 2.64375L9.46323 3.98855L9.24803 2.48215L10.3072 3.57415L8.80803 3.31335Z"
392
- fill="#FFDE00"/>
393
- <path
394
- d="M8.82968 5.38077L10.3497 5.32637L9.15208 6.26477L9.56968 4.80157L10.0913 6.23037L8.82968 5.38077Z"
395
- fill="#FFDE00"/>
396
- <path d="M7.3758 6.6997L8.7998 7.2365L7.3326 7.6397L8.283 6.4509L8.2118 7.9709L7.3758 6.6997Z"
397
- fill="#FFDE00"/>
398
- </svg>
399
-
400
- <span>{{ currency.currency }}</span>
401
- </div>
402
- <div class="menu-wrapper__bottom-column">
403
- <span>{{ currency.sell }}</span>
404
- <svg v-if="currency.sell_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
405
- xmlns="http://www.w3.org/2000/svg">
406
- <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
407
- </svg>
408
- <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
409
- xmlns="http://www.w3.org/2000/svg">
410
- <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
411
- </svg>
412
- </div>
413
- <div class="menu-wrapper__bottom-column">
414
- <span>{{ currency.buy }}</span>
415
- <svg v-if="currency.buy_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
416
- xmlns="http://www.w3.org/2000/svg">
417
- <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
418
- </svg>
419
- <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
420
- xmlns="http://www.w3.org/2000/svg">
421
- <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
422
- </svg>
423
- </div>
424
- </div>
425
- </div>
426
- <div v-show="isAuthenticated" class="menu_mobile-footer">
427
- <button class="sign" @click="$emit('logout')">
428
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
429
- <path d="M16.5 15L19.5 12L16.5 9" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
430
- stroke-linejoin="round"/>
431
- <path d="M15 16.875L15 19.5L4.5 19.5L4.5 4.5L15 4.5L15 6.5625" stroke="white" stroke-miterlimit="10"
432
- stroke-linecap="round" stroke-linejoin="round"/>
433
- <path d="M19 12H8" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
434
- stroke-linejoin="round"/>
435
- </svg>
436
- <span>Выход</span>
437
- </button>
438
- </div>
439
- </div>
440
- </div>
441
- </div>
442
- </MobileToggle>
443
- </div>
444
- </header>
445
- </template>
446
-
447
- <script>
448
- import Profile from "./Profile";
449
- import MobileToggle from "../transitions/VerticalMobileToggle";
450
- import InfoHeader from "./InfoHeader";
451
- import ChildLinks from "@/components/Header/ChildLinks";
452
-
453
- export default {
454
- components: {
455
- ChildLinks,
456
- InfoHeader,
457
- Profile,
458
- MobileToggle,
459
- },
460
- props: {
461
- rate: {
462
- type: String,
463
- default: ""
464
- },
465
- mode: {
466
- type: String,
467
- required: true,
468
- validator: function (value) {
469
- return ["prod", "dev", "staging"].indexOf(value) !== -1;
470
- },
471
- },
472
- noAuth: {
473
- type: Boolean,
474
- default: false
475
- },
476
- isAuthenticated: {
477
- type: Boolean,
478
- default: false,
479
- },
480
- isBordered: {
481
- type: Boolean,
482
- default: false,
483
- },
484
- isSticky: {
485
- type: Boolean,
486
- default: false,
487
- },
488
- requestCount: {
489
- type: [String, Number],
490
- default: null,
491
- },
492
- daysRemaining: {
493
- type: [String, Number],
494
- default: null,
495
- },
496
- email: {
497
- type: String,
498
- default: "",
499
- },
500
- loginUrl: {
501
- type: String,
502
- default: "",
503
- required: true,
504
- },
505
- activeTabKey: {
506
- type: String,
507
- default: "",
508
- required: true,
509
- },
510
- balance: {
511
- type: Number,
512
- default: 0
513
- },
514
- hasFavourites: {
515
- type: Boolean,
516
- default: false
517
- },
518
- hasSearchField: {
519
- type: Boolean,
520
- default: false
521
- },
522
- tab: {
523
- type: String,
524
- default: ""
525
- }
526
- },
527
- data() {
528
- return {
529
- isActiveMenu: false,
530
- main: {
531
- dev: "https://adtdev.kz",
532
- prod: "https://adata.kz",
533
- staging: "https://adada.kz",
534
- },
535
- headerItems: [
536
- {
537
- id: 1,
538
- name: "Контрагенты",
539
- dev: "https://pk.adtdev.kz",
540
- prod: "https://pk.adata.kz",
541
- staging: "https://pk.adada.kz",
542
- key: "counterparty",
543
- children: [
544
- {
545
- name: 'Проверка контрагентов',
546
- subtitle: 'Проверьте контрагента на благонадежность',
547
- to: '/',
548
- icon: 'search'
549
- },
550
- {
551
- name: 'Сравнение контрагентов',
552
- subtitle: 'Проверьте рейтинг компании',
553
- to: '/counterparty/compare',
554
- icon: 'scales'
555
- },
556
- {
557
- name: 'Косвенные связи',
558
- subtitle: 'Проверьте наличие косвенных связей',
559
- to: '/counterparty/search-connections/check',
560
- icon: 'link'
561
- },
562
- {
563
- name: 'Массовая проверка',
564
- subtitle: 'Проверьте благонадежность нескольких компаний или сотрудников одновременно',
565
- to: '/counterparty/employees-check',
566
- icon: 'users'
567
- },
568
- {
569
- name: 'Зарубежные контрагенты',
570
- subtitle: 'Изучите сведения о российских и зарубежных компаниях',
571
- to: '/counterparty/foreign',
572
- icon: 'globe'
573
- },
574
- {
575
- name: 'Санкции',
576
- subtitle: 'Проверьте бизнес-партнера на включение в санкционные списки',
577
- to: '/counterparty/sanctions',
578
- icon: 'slash'
579
- },
580
- {
581
- name: 'Офшоры',
582
- subtitle: 'Проверьте наличие контрагента в офшорных списках',
583
- to: '/counterparty/offshore',
584
- icon: 'dollar'
585
- },
586
- ],
587
- },
588
- {
589
- id: 2,
590
- name: "Работа",
591
- dev: "https://work.adtdev.kz",
592
- prod: "https://work.adata.kz",
593
- staging: "https://work.adada.kz",
594
- key: "work",
595
- children: [
596
- {
597
- name: 'Вакансии',
598
- subtitle: 'Поиск вакансий',
599
- to: '/vacancy',
600
- icon: 'bag'
601
- },
602
- {
603
- name: 'Резюме',
604
- subtitle: 'Поиск резюме',
605
- to: '/summary',
606
- icon: 'scales'
607
- },
608
- ],
609
- },
610
- {
611
- id: 3,
612
- name: "Тендеры",
613
- dev: "https://tender.adtdev.kz",
614
- prod: "https://tender.adata.kz",
615
- staging: "https://tender.adada.kz",
616
- key: "tenders",
617
- children: [
618
- {
619
- name: 'Поиск тендеров',
620
- subtitle: 'Найдите интересующие объявления о закупках',
621
- to: '/',
622
- icon: 'search'
623
- },
624
- {
625
- name: 'Поиск договоров',
626
- subtitle: 'Найдите договоры по совершенным тендерным закупкам',
627
- to: '/main/contracts',
628
- icon: 'file'
629
- },
630
- {
631
- name: 'Планы закупок',
632
- subtitle: 'Узнайте о планирующихся тендерных закупках',
633
- to: '/main/plans',
634
- icon: 'package'
635
- }
636
- ],
637
- },
638
- {
639
- id: 4,
640
- name: "Штрафы",
641
- dev: "https://avto.adtdev.kz",
642
- prod: "https://avto.adata.kz",
643
- staging: "https://avto.adada.kz",
644
- key: "fines",
645
- children: [
646
- {
647
- name: 'Проверка штрафов',
648
- subtitle: 'Проверьте наличие штрафов, задолженностей и запретов',
649
- to: '/',
650
- icon: 'check'
651
- },
652
- {
653
- name: 'Проверка авто',
654
- subtitle: 'Проверьте информацию и историю авто',
655
- to: '/check',
656
- icon: 'car'
657
- },
658
- {
659
- name: 'Массовая проверка авто',
660
- subtitle: 'Используйте массовую проверку для получения информации о нескольких авто',
661
- to: '/bulk-check',
662
- icon: 'truck'
663
- },
664
- ],
665
- },
666
- {
667
- id: 5,
668
- name: "Маркетинг",
669
- dev: "https://marketing.adtdev.kz",
670
- prod: "https://marketing.adata.kz",
671
- staging: "https://marketing.adada.kz",
672
- key: "marketing",
673
- children: [
674
- {
675
- name: 'Поиск клиентов',
676
- subtitle: 'Получите актуальную базу контактов потенциальных клиентов',
677
- to: '/unload-data',
678
- icon: 'search'
679
- },
680
- {
681
- name: 'Анализ закупок',
682
- subtitle: 'Изучите динамику и получите данные о проведенных тендерных закупках',
683
- to: '/purchasing-analysis',
684
- icon: 'package'
685
- },
686
- {
687
- name: 'Индекс деловой активности',
688
- subtitle: 'Изучайте активность предприятий на рынке',
689
- to: '/business-activity',
690
- icon: 'trending'
691
- },
692
- {
693
- name: 'Рейтинг налогоплательщиков',
694
- subtitle: 'Получите данные о лидерах компаний, видах деятельности и регионах',
695
- to: '/tax-payment',
696
- icon: 'award'
697
- },
698
- {
699
- name: 'Субъекты бизнеса',
700
- subtitle: 'Изучите динамику субъектов действующего бизнеса',
701
- to: '/business-entities',
702
- icon: 'company'
703
- }
704
- ],
705
- },
706
- ],
707
- isOpen: false,
708
- weather: null,
709
- currencies: null,
710
- systemMessage: null,
711
- timer: null,
712
- isOpenNotification: false,
713
- };
714
- },
715
- created() {
716
- this.fetchCurrencies();
717
- },
718
- mounted() {
719
- this.notificationShow()
720
- },
721
- methods: {
722
- goToAnotherModule(url) {
723
- if(!location.href.includes(url)) {
724
- this.$emit("changeModule");
725
- }
726
- window.open(url, "_self");
727
- },
728
- goAuth() {
729
- const fullPath = encodeURIComponent(window.location.toString());
730
- if (window) {
731
- window.location.href = `${this.loginUrl}?url=${fullPath}`;
732
- }
733
- },
734
- async fetchNotification() {
735
- try {
736
- const link = `https://users.adata.kz/api/v1/system-messages/active-list/?module_name=${this.activeTabKey}`
737
- const response = await fetch(link);
738
- const {data} = await response.json();
739
-
740
- if (data.details.length) {
741
- this.systemMessage = data.details[0].message;
742
- this.isOpenNotification = true;
743
- localStorage.setItem('start_time', JSON.stringify(new Date()))
744
- }
745
-
746
- } catch (e) {
747
- console.log(e.message)
748
- }
749
- },
750
- notificationShow() {
751
- const startTime = localStorage.getItem('start_time');
752
- let diffTime = startTime ? Math.round((new Date() - new Date(JSON.parse(startTime))) / 3600000) : 0
753
- if (startTime) {
754
- if (diffTime >= 24) {
755
- localStorage.removeItem('start_time')
756
- }
757
- } else {
758
- this.fetchNotification()
759
- }
760
- },
761
- async fetchCurrencies() {
762
- try {
763
- const response = await fetch('https://users.adata.kz/api/v1/information/currency');
764
- const {data} = await response.json();
765
-
766
- if (data.currencies) {
767
- this.currencies = data.currencies;
768
- }
769
-
770
- } catch (e) {
771
- console.log(e.message)
772
- }
773
- },
774
- async fetchWeather() {
775
- try {
776
- const response = await fetch('https://users.adata.kz/api/v1/information/weather');
777
- const {data} = await response.json();
778
-
779
- if (data.cities) {
780
- this.weather = data.cities;
781
- }
782
-
783
- } catch (e) {
784
- console.log(e.message)
785
- }
786
- },
787
- closeNotification(option) {
788
- this.isOpenNotification = !option
789
- },
790
- changeValue() {
791
- this.isActiveMenu = false;
792
- this.isOpen = !this.isOpen;
793
- this.$emit("menuOpen", this.isOpen);
794
- },
795
- thousandSeparator(val) {
796
- return val ? val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ") : "0";
797
- },
798
- defineIconState(name) {
799
- return name === "DOWN" ? "@/assets/icons/arrow-down.svg" : "@/assets/icons/arrow-up.svg";
800
- },
801
- defineIconEntity(name) {
802
- switch (name) {
803
- case 'USD':
804
- return "@/assets/icons/dollor.svg";
805
- case 'EUR':
806
- return "@/assets/icons/euro.svg";
807
- case 'RUB':
808
- return "@/assets/icons/ruble.svg";
809
- }
810
- },
811
- },
812
- };
813
- </script>
814
-
815
- <style lang="scss">
816
- * {
817
- font-family: "Open Sans", sans-serif;
818
- box-sizing: border-box;
819
- margin: 0;
820
- padding: 0;
821
- }
822
-
823
- .sticky {
824
- position: sticky;
825
- z-index: 1000;
826
- top: 0;
827
- }
828
-
829
- .header {
830
- background: #ffffff;
831
- max-height: 62px;
832
- height: 62px;
833
- display: flex;
834
- align-items: center;
835
- width: 100%;
836
- @media (max-width: 1025px) {
837
- height: 56px;
838
- border-bottom: 1px solid #BDC7CE;
839
- }
840
-
841
- &.bordered {
842
- border-bottom: 1px solid #2c3e5026;
843
- }
844
-
845
- & > .container {
846
- width: 100%;
847
- display: flex;
848
- justify-content: space-between;
849
- align-items: center;
850
- @media (max-width: 1025px) {
851
- gap: 12px;
852
- }
853
- }
854
-
855
- &__right {
856
- display: flex;
857
- align-items: center;
858
- }
859
-
860
- &__left {
861
- display: flex;
862
- align-items: center;
863
- @media (max-width: 1025px) {
864
- width: 100%;
865
- }
866
-
867
- .menu {
868
- display: flex;
869
- align-items: center;
870
- $self: &;
871
- @media (max-width: 1025px) {
872
- display: none;
873
- }
874
-
875
- &__sublinks {
876
- display: none;
877
- }
878
- &__item {
879
- margin-right: 8px;
880
- align-items: center;
881
- position: relative;
882
- &:hover {
883
- .menu__sublinks {
884
- display: block;
885
- }
886
- }
887
- }
888
- &__items {
889
- padding: 20px 8px 20px 0;
890
- transition: text-shadow 0.3s;
891
- display: block;
892
- font-weight: bold;
893
- font-size: 16px;
894
- line-height: 22px;
895
- text-transform: uppercase;
896
- color: #71757a;
897
- position: relative;
898
-
899
- &::after {
900
- content: "";
901
- position: absolute;
902
- right: -1px;
903
- top: 50%;
904
- transform: translateY(-50%);
905
- height: 22px;
906
- width: 1px;
907
- background-color: #e5e5e5;
908
- }
909
-
910
- &.active {
911
- font-weight: bold;
912
- font-size: 16px;
913
- line-height: 22px;
914
- text-transform: uppercase;
915
- color: #2c3e50;
916
- }
917
-
918
- &:hover {
919
- color: #9da3ac;
920
- cursor: pointer;
921
- }
922
- }
923
- }
924
-
925
- .logo {
926
- display: block;
927
- margin-right: 20px;
928
- padding-bottom: 10px;
929
- @media (max-width: 1025px) {
930
- margin-right: 10px;
931
- padding-bottom: 0;
932
- }
933
-
934
- svg {
935
- //width: 90px;
936
- //height: 26px;
937
- //display: block;
938
- fill: #2c3e50;
939
- @media (max-width: 1025px) {
940
- // width: 77px;
941
- // height: 24px;
942
- width: 38px;
943
- height: 30px;
944
- }
945
-
946
- &:hover {
947
- fill: #71757a;
948
- }
949
- &.desktop {
950
- @media (max-width: 1025px) {
951
- display: none;
952
- }
953
- }
954
- &.mobile {
955
- display: none;
956
- @media (max-width: 1025px) {
957
- display: block;
958
- width: auto;
959
- }
960
- }
961
- }
962
- }
963
- }
964
-
965
- .menu_mobile {
966
- display: none;
967
- grid-template-columns: 10% 90%;
968
- z-index: 1000000;
969
- position: absolute !important;
970
-
971
- .empty-space {
972
- background: rgba(0, 0, 0, 0.40);
973
- }
974
-
975
- &::-webkit-scrollbar {
976
- width: 4px;
977
-
978
- &-thumb {
979
- background: #c4c4c4;
980
- }
981
-
982
- &-track {
983
- background: #fff;
984
- }
985
- }
986
-
987
- &--switcher {
988
- display: none;
989
- cursor: pointer;
990
- }
991
-
992
- button.sign {
993
- height: auto;
994
- justify-content: flex-start;
995
-
996
- svg {
997
- margin-right: 8px;
998
- height: 24px;
999
- width: 24px;
1000
- }
1001
-
1002
- span {
1003
- color: #007AFF;
1004
- font-size: 14px;
1005
- }
1006
- }
1007
-
1008
- @media (max-width: 1025px) {
1009
- display: grid;
1010
- background: transparent !important;
1011
- .mobile-table-head {
1012
- display: flex;
1013
- justify-content: space-between;
1014
- padding: 20px 16px;
1015
- height: auto;
1016
- background: #ECEFF1;
1017
- border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1018
- }
1019
- &-wrapper {
1020
- border-top: 1px solid #9da3ac4c;
1021
- padding: 16px;
1022
- font-weight: 600;
1023
- font-size: 14px;
1024
- line-height: 22px;
1025
- color: #2c3e50;
1026
- display: block;
1027
-
1028
- &:first-child {
1029
- border-top: none;
1030
- }
1031
-
1032
- &.active-burger-tab {
1033
- background: #2c3e500d;
1034
- }
1035
- }
1036
- &--switcher {
1037
- display: flex;
1038
- align-items: center;
1039
- justify-content: center;
1040
- }
1041
- }
1042
-
1043
- .menu-wrapper {
1044
- height: 100%;
1045
- display: flex;
1046
- flex-direction: column;
1047
- justify-content: space-between;
1048
- box-shadow: -6px 4px 12px rgb(157 163 172 / 40%);
1049
- background: #fff;
1050
- @media (max-width: 1025px) {
1051
- justify-content: flex-start;
1052
- }
1053
-
1054
- &__top {
1055
- &-left {
1056
- display: flex;
1057
- gap: 8px;
1058
- align-items: center;
1059
- width: 100%;
1060
-
1061
- .svg-wrapper {
1062
- width: 32px;
1063
- height: 32px;
1064
- background: rgba(189, 199, 206, 0.2);
1065
- display: flex;
1066
- justify-content: center;
1067
- align-items: center;
1068
- border-radius: 50%;
1069
-
1070
- svg {
1071
- width: 24px;
1072
- height: 24px;
1073
- }
1074
- }
1075
-
1076
- .text-wrapper {
1077
- width: 100%;
1078
- p {
1079
- font-size: 14px;
1080
- font-weight: 500;
1081
- display: flex;
1082
- justify-content: space-between;
1083
- align-items: center;
1084
-
1085
- &:first-child {
1086
- border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1087
- padding-bottom: 12px;
1088
- margin-bottom: 12px;
1089
- span {
1090
- cursor: pointer;
1091
- svg {
1092
- width: 16px;
1093
- height: 16px;
1094
- }
1095
- }
1096
- }
1097
-
1098
- &:nth-child(2) {
1099
- color: #007AFF;
1100
- font-size: 12px;
1101
- font-weight: 600;
1102
- span {
1103
- display: flex;
1104
- align-items: center;
1105
- gap: 8px;
1106
- cursor: pointer;
1107
- font-weight: 400;
1108
- }
1109
- }
1110
- }
1111
- }
1112
- }
1113
-
1114
- &-right {
1115
- display: flex;
1116
- align-items: center;
1117
- justify-content: center;
1118
- cursor: pointer;
1119
- }
1120
- }
1121
- }
1122
-
1123
- &-footer {
1124
- width: 100%;
1125
- background: #007AFF;
1126
- padding: 20px 16px;
1127
- display: flex;
1128
- margin-top: auto;
1129
- position: relative;
1130
- z-index: 1000000;
1131
- @media (max-width: 1025px) {
1132
- height: 40px;
1133
- width: calc(100% - 32px);
1134
- margin: 32px 16px;
1135
- justify-content: center;
1136
- }
1137
-
1138
- button.sign {
1139
- span {
1140
- color: #fff;
1141
- }
1142
- }
1143
- }
1144
- }
1145
-
1146
- .menu-wrapper__bottom {
1147
- margin: 80px 0 0;
1148
- @media (max-width: 1025px) {
1149
- margin: 0;
1150
- }
1151
-
1152
- &-header {
1153
- background: rgba(189, 199, 206, 0.2);
1154
- padding: 4px 16px;
1155
- display: flex;
1156
- justify-content: space-between;
1157
- align-items: center;
1158
-
1159
- span {
1160
- font-weight: 500;
1161
- font-size: 12px;
1162
- line-height: 20px;
1163
- color: #666C72;
1164
- }
1165
- }
1166
-
1167
- &-body {
1168
- padding: 8px 16px 16px;
1169
- display: flex;
1170
- flex-direction: column;
1171
- justify-content: space-between;
1172
- gap: 12px;
1173
- margin-bottom: 36px;
1174
- @media (max-width: 1025px) {
1175
- margin-bottom: 0;
1176
- }
1177
- }
1178
-
1179
- &-row {
1180
- display: flex;
1181
- justify-content: space-between;
1182
- align-items: center;
1183
- }
1184
-
1185
- &-column {
1186
- display: flex;
1187
- align-items: center;
1188
- gap: 8px;
1189
-
1190
- &:first-child {
1191
- justify-content: flex-start;
1192
- }
1193
-
1194
- &:nth-child(2), &:nth-child(3) {
1195
- justify-content: flex-end;
1196
- width: 60px;;
1197
- }
1198
-
1199
- span {
1200
- font-weight: 500;
1201
- font-size: 14px;
1202
- line-height: 20px;
1203
- color: #2C3E50;
1204
- }
1205
- }
1206
-
1207
- &-footer {
1208
- background: rgba(189, 199, 206, 0.2);
1209
- padding: 8px 16px;
1210
- display: flex;
1211
- flex-direction: column;
1212
- gap: 10px;
1213
-
1214
- &-item {
1215
- display: flex;
1216
- justify-content: space-between;
1217
- align-items: center;
1218
- }
1219
-
1220
- &-title {
1221
- font-weight: 500;
1222
- font-size: 14px;
1223
- line-height: 20px;
1224
- color: #2C3E50;
1225
- }
1226
-
1227
- &-circle {
1228
- color: #ffffff;
1229
- padding: 4px 12px;
1230
- background: #007AFF;
1231
- border-radius: 100px;
1232
- font-weight: 500;
1233
- font-size: 14px;
1234
- line-height: 20px;
1235
- }
1236
- }
1237
- }
1238
- }
1239
-
1240
- .logo-desktop {
1241
- display: flex;
1242
- justify-content: center;
1243
- align-items: center;
1244
- width: 112px;
1245
- height: 40px;
1246
- background-image: url("~@/assets/logo-desktop.webp");
1247
- background-size: cover;
1248
- background-position: center;
1249
- @media screen and (max-width: 1025px){
1250
- display: none;
1251
- }
1252
- }
1253
- .logo-mobile {
1254
- display: none;
1255
- width: 38px;
1256
- height: 30px;
1257
- background-image: url("~@/assets/logo-mobile.webp");
1258
- background-size: cover;
1259
- background-position: center;
1260
- @media screen and (max-width: 1025px){
1261
- display: flex;
1262
- align-items: center;
1263
- justify-content: center;
1264
- }
1265
- }
1266
-
1267
- .mobile-search {
1268
- display: none;
1269
- height: 32px;
1270
- max-height: 32px;
1271
- @media (max-width: 1025px) {
1272
- display: flex;
1273
- align-items: center;
1274
- justify-content: flex-end;
1275
- gap: 8px;
1276
- width: 100%;
1277
- }
1278
- .search-input {
1279
- display: flex;
1280
- align-items: center;
1281
- gap: 8px;
1282
- background: rgba(189, 199, 206, 0.2);
1283
- height: 100%;
1284
- border-radius: 2px;
1285
- width: 100%;
1286
- padding: 0 14px;
1287
- font-weight: 500;
1288
- font-size: 12px;
1289
- line-height: 20px;
1290
- cursor: pointer;
1291
- }
1292
- .favorite-btn {
1293
- background: rgba(189, 199, 206, 0.2);
1294
- display: flex;
1295
- justify-content: center;
1296
- align-items: center;
1297
- padding: 10px;
1298
- height: 100%;
1299
- border-radius: 2px;
1300
- cursor: pointer;
1301
- svg {
1302
- width: 16px;
1303
- height: 16px;
1304
- }
1305
- }
1306
- }
1307
- </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
+
28
+ <!-- <svg-->
29
+ <!-- class="adata-logo desktop"-->
30
+ <!-- xmlns="http://www.w3.org/2000/svg"-->
31
+ <!-- viewBox="0 0 166 48"-->
32
+ <!-- >-->
33
+ <!-- <path-->
34
+ <!-- d="M62.926 38.22v-28h10.316c10.342 0 15.511 4.55 15.508 13.652 0 4.36-1.41 7.843-4.232 10.448-2.822 2.605-6.58 3.907-11.276 3.904l-10.316-.004zm6.56-22.868v17.752h3.248c2.839 0 5.069-.82 6.69-2.46 1.622-1.64 2.43-3.873 2.424-6.7 0-2.667-.8-4.767-2.403-6.3-1.602-1.533-3.853-2.297-6.752-2.292h-3.206zM118.5 38.22h-7.131l-2.079-6.228H98.958l-2.079 6.228h-7.093l10.598-28h7.775l10.341 28zm-10.723-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.162c-.07.83-.24 1.649-.508 2.44l-3.168 9.492h7.451zm31.833-11.796h-8.316V38.22h-6.557V15.352h-8.274v-5.136h23.147v5.136zM166 38.22h-7.143l-2.079-6.228h-10.349l-2.05 6.228h-7.106l10.598-28h7.776l10.353 28zm-10.719-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.163c-.069.83-.239 1.649-.507 2.44l-3.168 9.492h7.451zM24.553 15.252h-.163c-.069.83-.24 1.649-.507 2.44L20.715 27.2h7.45l-3.126-9.412a12.02 12.02 0 01-.486-2.536z"-->
35
+ <!-- ></path>-->
36
+ <!-- <path-->
37
+ <!-- d="M44.905 0H4.99a5.091 5.091 0 00-3.528 1.406A4.71 4.71 0 000 4.8v38.4a4.71 4.71 0 001.461 3.394A5.091 5.091 0 004.99 48h39.916a5.091 5.091 0 003.528-1.406 4.71 4.71 0 001.462-3.394V4.8a4.71 4.71 0 00-1.462-3.394A5.091 5.091 0 0044.905 0zM31.737 38.26l-2.079-6.232H19.305l-2.05 6.232h-7.097l10.598-28h7.776l10.353 28h-7.148z"-->
38
+ <!-- ></path>-->
39
+ <!-- </svg>-->
40
+ <!-- <svg class="adata-logo mobile" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">
41
+ <path d="M11.3883 7.06335H11.3145C11.2829 7.43668 11.2054 7.80519 11.0836 8.16135L9.64099 12.44H13.0335L11.6098 8.20455C11.4947 7.83247 11.4204 7.45002 11.3883 7.06335Z" fill="#2C3E50"/>
42
+ <path d="M20.6552 0.200012H2.48111C1.8786 0.200012 1.30077 0.427581 0.874734 0.83266C0.448697 1.23774 0.209351 1.78714 0.209351 2.36001V19.64C0.209351 20.2129 0.448697 20.7623 0.874734 21.1674C1.30077 21.5724 1.8786 21.8 2.48111 21.8H20.6552C21.2577 21.8 21.8355 21.5724 22.2616 21.1674C22.6876 20.7623 22.9269 20.2129 22.9269 19.64V2.36001C22.9269 1.78714 22.6876 1.23774 22.2616 0.83266C21.8355 0.427581 21.2577 0.200012 20.6552 0.200012ZM14.6596 17.417L13.7131 14.6126H8.99916L8.06585 17.417H4.83427L9.65987 4.81702H13.2L17.9139 17.417H14.6596Z" fill="#2C3E50"/>
43
+ </svg> -->
44
+ </a>
45
+ <div class="menu" v-show="headerItems.length > 0">
46
+ <div
47
+ class="menu__item"
48
+ v-for="(item, index) in headerItems"
49
+ :key="index">
50
+ <a
51
+ class="menu__wrapper menu__items"
52
+ :class="{ active: item.key === activeTabKey }"
53
+ :href="item[mode]"
54
+ @click="goToAnotherModule(item[mode])"
55
+ onclick="return false;"
56
+ >
57
+ {{ item.name }}
58
+ </a>
59
+ <child-links class="menu__sublinks" :links="item" :module="activeTabKey" :mode="mode" />
60
+ </div>
61
+ </div>
62
+ <div class="mobile-search">
63
+ <div v-show="hasSearchField" @click="$emit('search')" class="search-input">
64
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
65
+ <path d="M14 13.9995L10.5967 10.596" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
66
+ <circle cx="7" cy="7" r="5" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
67
+ </svg>
68
+ Найти
69
+ </div>
70
+ </div>
71
+ </div>
72
+ <div class="header__right" v-show="!noAuth">
73
+ <Profile
74
+ :mode="mode"
75
+ :activeTabKey="activeTabKey"
76
+ :isAuthenticated="isAuthenticated"
77
+ :email="email"
78
+ :loginUrl="loginUrl"
79
+ :rate="rate"
80
+ :balance="this.thousandSeparator(balance)"
81
+ :tab="tab"
82
+ @showBalanceModal="
83
+ (val) => {
84
+ $emit('showBalanceModal', val);
85
+ }
86
+ "
87
+ @setShowModal="
88
+ (val) => {
89
+ $emit('setShowModal', val);
90
+ }
91
+ "
92
+ @logout="$emit('logout')"
93
+ @setIsReplenishModal="
94
+ (val) => {
95
+ $emit('setIsReplenishModal', val);
96
+ }
97
+ "
98
+ />
99
+ </div>
100
+ </div>
101
+ <MobileToggle v-slot="{ animationClass }">
102
+ <div
103
+ class="menu_mobile"
104
+ :class="animationClass"
105
+ v-show="headerItems.length > 0 && isOpen"
106
+ >
107
+ <div class="empty-space" @click="changeValue"></div>
108
+ <div class="menu-wrapper">
109
+ <div class="menu-wrapper__top">
110
+ <div class="mobile-table-head">
111
+ <button
112
+ @click.prevent="goAuth"
113
+ class="sign"
114
+ v-if="!isAuthenticated"
115
+ >
116
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
117
+ <path d="M13.5 15L16.5 11.9189L13.6154 9" stroke="#007AFF" stroke-miterlimit="10"
118
+ stroke-linecap="round" stroke-linejoin="round"/>
119
+ <path d="M9 7.125V4.5H19.5V19.5H9V17.4375" stroke="#007AFF" stroke-miterlimit="10"
120
+ stroke-linecap="round" stroke-linejoin="round"/>
121
+ <path d="M16 12H4" stroke="#007AFF" stroke-miterlimit="10" stroke-linecap="round"
122
+ stroke-linejoin="round"/>
123
+ </svg>
124
+ <span>Войти</span>
125
+ </button>
126
+ <div v-else class="menu-wrapper__top-left">
127
+ <div class="text-wrapper">
128
+ <p>{{ email }}
129
+ <span @click.stop="changeValue">
130
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
131
+ <path d="M1.99902 1.99957L13.9996 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
132
+ <path d="M14 1.99957L1.9994 14.0002" stroke="#2C3E50" stroke-linecap="round"/>
133
+ </svg>
134
+ </span>
135
+ </p>
136
+ <p>Тариф {{ rate }}
137
+ <span @click.stop.prevent="isActiveMenu = true">
138
+ Перейти
139
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
140
+ <rect width="24" height="24" rx="12" transform="matrix(-1 0 0 1 24 0)" fill="#007AFF" fill-opacity="0.12"/>
141
+ <path d="M14.0005 8.00311L18.0005 12.0096L14.0005 16.0031" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10"
142
+ stroke-linecap="round" stroke-linejoin="round"/>
143
+ <path d="M18 12L6 12" stroke="#007AFF" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
144
+ </svg>
145
+ </span>
146
+ </p>
147
+ </div>
148
+ </div>
149
+ <div v-if="!isAuthenticated" class="menu-wrapper__top-right" @click.stop="changeValue">
150
+ <svg
151
+ width="18"
152
+ height="18"
153
+ fill="none"
154
+ xmlns="http://www.w3.org/2000/svg"
155
+ viewBox="0 0 24 24"
156
+ >
157
+ <path
158
+ fill-rule="evenodd"
159
+ clip-rule="evenodd"
160
+ d="M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z"
161
+ fill="#2C3E50"
162
+ ></path>
163
+ <path
164
+ fill-rule="evenodd"
165
+ clip-rule="evenodd"
166
+ d="M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z"
167
+ fill="#2C3E50"
168
+ ></path>
169
+ </svg>
170
+ </div>
171
+ </div>
172
+ <div class="menu__link">
173
+ <a
174
+ v-for="(item, index) in headerItems"
175
+ :key="index"
176
+ class="menu_mobile-wrapper"
177
+ :class="{ 'active-burger-tab': item.key === activeTabKey }"
178
+ :href="item[mode]"
179
+ >
180
+ {{ item.name }}
181
+ </a>
182
+ </div>
183
+ </div>
184
+ <div class="menu-wrapper__bottom">
185
+ <div class="menu-wrapper__bottom-header">
186
+ <span>Валюта</span>
187
+ <span>Покупка</span>
188
+ <span>Продажа</span>
189
+ </div>
190
+ <div class="menu-wrapper__bottom-body">
191
+ <div v-for="(currency, index) in currencies" :key="index" class="menu-wrapper__bottom-row">
192
+ <div class="menu-wrapper__bottom-column">
193
+ <svg v-if="currency.currency === 'USD'" width="16" height="17" viewBox="0 0 16 17" fill="none"
194
+ xmlns="http://www.w3.org/2000/svg">
195
+ <g clip-path="url(#clip0_179_1917)">
196
+ <path d="M26.4 0.5H-4V16.5H26.4V0.5Z" fill="white"/>
197
+ <path d="M26.4 0.5H-4V1.732H26.4V0.5Z" fill="#B22234"/>
198
+ <path d="M26.4 2.95996H-4V4.19196H26.4V2.95996Z" fill="#B22234"/>
199
+ <path d="M26.4 5.42407H-4V6.65607H26.4V5.42407Z" fill="#B22234"/>
200
+ <path d="M26.4 7.88403H-4V9.11603H26.4V7.88403Z" fill="#B22234"/>
201
+ <path d="M26.4 10.3479H-4V11.5799H26.4V10.3479Z" fill="#B22234"/>
202
+ <path d="M26.4 12.8081H-4V14.0401H26.4V12.8081Z" fill="#B22234"/>
203
+ <path d="M26.4 15.2681H-4V16.5001H26.4V15.2681Z" fill="#B22234"/>
204
+ <path d="M8.16 0.5H-4V9.116H8.16V0.5Z" fill="#3C3B6E"/>
205
+ <path
206
+ 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"
207
+ fill="white"/>
208
+ <path
209
+ 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"
210
+ fill="white"/>
211
+ <path
212
+ 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"
213
+ fill="white"/>
214
+ <path
215
+ 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"
216
+ fill="white"/>
217
+ <path
218
+ 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"
219
+ fill="white"/>
220
+ <path
221
+ 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"
222
+ fill="white"/>
223
+ <path
224
+ 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"
225
+ fill="white"/>
226
+ <path
227
+ 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"
228
+ fill="white"/>
229
+ <path
230
+ 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"
231
+ fill="white"/>
232
+ <path
233
+ 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"
234
+ fill="white"/>
235
+ <path
236
+ 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"
237
+ fill="white"/>
238
+ <path
239
+ 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"
240
+ fill="white"/>
241
+ <path
242
+ 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"
243
+ fill="white"/>
244
+ <path
245
+ 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"
246
+ fill="white"/>
247
+ <path
248
+ 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"
249
+ fill="white"/>
250
+ <path
251
+ 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"
252
+ fill="white"/>
253
+ <path
254
+ 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"
255
+ fill="white"/>
256
+ <path
257
+ 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"
258
+ fill="white"/>
259
+ <path
260
+ 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"
261
+ fill="white"/>
262
+ <path
263
+ 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"
264
+ fill="white"/>
265
+ <path
266
+ 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"
267
+ fill="white"/>
268
+ <path
269
+ 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"
270
+ fill="white"/>
271
+ <path
272
+ 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"
273
+ fill="white"/>
274
+ <path
275
+ 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"
276
+ fill="white"/>
277
+ <path
278
+ 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"
279
+ fill="white"/>
280
+ <path
281
+ 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"
282
+ fill="white"/>
283
+ <path
284
+ 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"
285
+ fill="white"/>
286
+ <path
287
+ 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"
288
+ fill="white"/>
289
+ <path
290
+ 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"
291
+ fill="white"/>
292
+ <path
293
+ 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"
294
+ fill="white"/>
295
+ <path
296
+ 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"
297
+ fill="white"/>
298
+ <path
299
+ 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"
300
+ fill="white"/>
301
+ <path
302
+ 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"
303
+ fill="white"/>
304
+ <path
305
+ 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"
306
+ fill="white"/>
307
+ <path
308
+ 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"
309
+ fill="white"/>
310
+ <path
311
+ 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"
312
+ fill="white"/>
313
+ </g>
314
+ <defs>
315
+ <clipPath id="clip0_179_1917">
316
+ <path
317
+ 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"
318
+ fill="white"/>
319
+ </clipPath>
320
+ </defs>
321
+ </svg>
322
+ <svg v-if="currency.currency === 'EUR'" width="16" height="17" viewBox="0 0 16 17" fill="none"
323
+ xmlns="http://www.w3.org/2000/svg">
324
+ <path
325
+ 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"
326
+ fill="#314199"/>
327
+ <path
328
+ 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"
329
+ fill="#F8EC26"/>
330
+ <path
331
+ 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"
332
+ fill="#F8EC26"/>
333
+ <path
334
+ 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"
335
+ fill="#F8EC26"/>
336
+ <path
337
+ 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"
338
+ fill="#F8EC26"/>
339
+ <path
340
+ 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"
341
+ fill="#F8EC26"/>
342
+ <path
343
+ 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"
344
+ fill="#F8EC26"/>
345
+ <path
346
+ 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"
347
+ fill="#F8EC26"/>
348
+ <path
349
+ 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"
350
+ fill="#F8EC26"/>
351
+ <path
352
+ 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"
353
+ fill="#F8EC26"/>
354
+ <path
355
+ 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"
356
+ fill="#F8EC26"/>
357
+ <path
358
+ 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"
359
+ fill="#F8EC26"/>
360
+ <path
361
+ 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"
362
+ fill="#F8EC26"/>
363
+ </svg>
364
+ <svg v-if="currency.currency === 'RUB'" width="16" height="17" viewBox="0 0 16 17" fill="none"
365
+ xmlns="http://www.w3.org/2000/svg">
366
+ <g clip-path="url(#clip0_179_2012)">
367
+ <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"
368
+ fill="#F0F0F0"/>
369
+ <rect y="5.5" width="20" height="7" fill="#0039A6"/>
370
+ <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"
371
+ fill="#D52B1E"/>
372
+ </g>
373
+ <defs>
374
+ <clipPath id="clip0_179_2012">
375
+ <rect y="0.5" width="16" height="16" rx="2" fill="white"/>
376
+ </clipPath>
377
+ </defs>
378
+ </svg>
379
+ <svg v-if="currency.currency === 'CNY'" width="16" height="16" viewBox="0 0 16 16" fill="none"
380
+ xmlns="http://www.w3.org/2000/svg">
381
+ <path
382
+ 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"
383
+ fill="#DE2910"/>
384
+ <path
385
+ d="M4.00115 1.60043L5.41155 5.94203L1.71875 3.25883H6.28355L2.59075 5.94203L4.00115 1.60043Z"
386
+ fill="#FFDE00"/>
387
+ <path
388
+ d="M7.3125 2.01103L8.3117 0.863831L8.1781 2.37983L7.3957 1.07503L8.7957 1.67023L7.3125 2.01103Z"
389
+ fill="#FFDE00"/>
390
+ <path
391
+ d="M8.80803 3.31335L10.1744 2.64375L9.46323 3.98855L9.24803 2.48215L10.3072 3.57415L8.80803 3.31335Z"
392
+ fill="#FFDE00"/>
393
+ <path
394
+ d="M8.82968 5.38077L10.3497 5.32637L9.15208 6.26477L9.56968 4.80157L10.0913 6.23037L8.82968 5.38077Z"
395
+ fill="#FFDE00"/>
396
+ <path d="M7.3758 6.6997L8.7998 7.2365L7.3326 7.6397L8.283 6.4509L8.2118 7.9709L7.3758 6.6997Z"
397
+ fill="#FFDE00"/>
398
+ </svg>
399
+
400
+ <span>{{ currency.currency }}</span>
401
+ </div>
402
+ <div class="menu-wrapper__bottom-column">
403
+ <span>{{ currency.sell }}</span>
404
+ <svg v-if="currency.sell_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
405
+ xmlns="http://www.w3.org/2000/svg">
406
+ <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
407
+ </svg>
408
+ <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
409
+ xmlns="http://www.w3.org/2000/svg">
410
+ <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
411
+ </svg>
412
+ </div>
413
+ <div class="menu-wrapper__bottom-column">
414
+ <span>{{ currency.buy }}</span>
415
+ <svg v-if="currency.buy_state === 'DOWN'" width="16" height="17" viewBox="0 0 16 17" fill="none"
416
+ xmlns="http://www.w3.org/2000/svg">
417
+ <path d="M8 12.5249L12.3301 4.52507H3.66987L8 12.5249Z" fill="#FF2E43"/>
418
+ </svg>
419
+ <svg v-else width="16" height="17" viewBox="0 0 16 17" fill="none"
420
+ xmlns="http://www.w3.org/2000/svg">
421
+ <path d="M8 4.47461L12.3301 12.4702H3.66987L8 4.47461Z" fill="#00B92D"/>
422
+ </svg>
423
+ </div>
424
+ </div>
425
+ </div>
426
+ <div v-show="isAuthenticated" class="menu_mobile-footer">
427
+ <button class="sign" @click="$emit('logout')">
428
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
429
+ <path d="M16.5 15L19.5 12L16.5 9" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
430
+ stroke-linejoin="round"/>
431
+ <path d="M15 16.875L15 19.5L4.5 19.5L4.5 4.5L15 4.5L15 6.5625" stroke="white" stroke-miterlimit="10"
432
+ stroke-linecap="round" stroke-linejoin="round"/>
433
+ <path d="M19 12H8" stroke="white" stroke-miterlimit="10" stroke-linecap="round"
434
+ stroke-linejoin="round"/>
435
+ </svg>
436
+ <span>Выход</span>
437
+ </button>
438
+ </div>
439
+ </div>
440
+ </div>
441
+ </div>
442
+ </MobileToggle>
443
+ </div>
444
+ </header>
445
+ </template>
446
+
447
+ <script>
448
+ import Profile from "./Profile";
449
+ import MobileToggle from "../transitions/VerticalMobileToggle";
450
+ import InfoHeader from "./InfoHeader";
451
+ import ChildLinks from "@/components/Header/ChildLinks";
452
+
453
+ export default {
454
+ components: {
455
+ ChildLinks,
456
+ InfoHeader,
457
+ Profile,
458
+ MobileToggle,
459
+ },
460
+ props: {
461
+ rate: {
462
+ type: String,
463
+ default: ""
464
+ },
465
+ mode: {
466
+ type: String,
467
+ required: true,
468
+ validator: function (value) {
469
+ return ["prod", "dev", "staging"].indexOf(value) !== -1;
470
+ },
471
+ },
472
+ noAuth: {
473
+ type: Boolean,
474
+ default: false
475
+ },
476
+ isAuthenticated: {
477
+ type: Boolean,
478
+ default: false,
479
+ },
480
+ isBordered: {
481
+ type: Boolean,
482
+ default: false,
483
+ },
484
+ isSticky: {
485
+ type: Boolean,
486
+ default: false,
487
+ },
488
+ requestCount: {
489
+ type: [String, Number],
490
+ default: null,
491
+ },
492
+ daysRemaining: {
493
+ type: [String, Number],
494
+ default: null,
495
+ },
496
+ email: {
497
+ type: String,
498
+ default: "",
499
+ },
500
+ loginUrl: {
501
+ type: String,
502
+ default: "",
503
+ required: true,
504
+ },
505
+ activeTabKey: {
506
+ type: String,
507
+ default: "",
508
+ required: true,
509
+ },
510
+ balance: {
511
+ type: Number,
512
+ default: 0
513
+ },
514
+ hasFavourites: {
515
+ type: Boolean,
516
+ default: false
517
+ },
518
+ hasSearchField: {
519
+ type: Boolean,
520
+ default: false
521
+ },
522
+ tab: {
523
+ type: String,
524
+ default: ""
525
+ }
526
+ },
527
+ data() {
528
+ return {
529
+ isActiveMenu: false,
530
+ main: {
531
+ dev: "https://adtdev.kz",
532
+ prod: "https://adata.kz",
533
+ staging: "https://adada.kz",
534
+ },
535
+ headerItems: [
536
+ {
537
+ id: 1,
538
+ name: "Контрагенты",
539
+ dev: "https://pk.adtdev.kz",
540
+ prod: "https://pk.adata.kz",
541
+ staging: "https://pk.adada.kz",
542
+ key: "counterparty",
543
+ children: [
544
+ {
545
+ name: 'Проверка контрагентов',
546
+ subtitle: 'Проверьте контрагента на благонадежность',
547
+ to: '/',
548
+ icon: 'search'
549
+ },
550
+ {
551
+ name: 'Сравнение контрагентов',
552
+ subtitle: 'Проверьте рейтинг компании',
553
+ to: '/counterparty/compare',
554
+ icon: 'scales'
555
+ },
556
+ {
557
+ name: 'Косвенные связи',
558
+ subtitle: 'Проверьте наличие косвенных связей',
559
+ to: '/counterparty/search-connections/check',
560
+ icon: 'link'
561
+ },
562
+ {
563
+ name: 'Массовая проверка',
564
+ subtitle: 'Проверьте благонадежность нескольких компаний или сотрудников одновременно',
565
+ to: '/counterparty/employees-check',
566
+ icon: 'users'
567
+ },
568
+ {
569
+ name: 'Зарубежные контрагенты',
570
+ subtitle: 'Изучите сведения о российских и зарубежных компаниях',
571
+ to: '/counterparty/foreign',
572
+ icon: 'globe'
573
+ },
574
+ {
575
+ name: 'Санкции',
576
+ subtitle: 'Проверьте бизнес-партнера на включение в санкционные списки',
577
+ to: '/counterparty/sanctions',
578
+ icon: 'slash'
579
+ },
580
+ {
581
+ name: 'Офшоры',
582
+ subtitle: 'Проверьте наличие контрагента в офшорных списках',
583
+ to: '/counterparty/offshore',
584
+ icon: 'dollar'
585
+ },
586
+ ],
587
+ },
588
+ {
589
+ id: 2,
590
+ name: "Работа",
591
+ dev: "https://work.adtdev.kz",
592
+ prod: "https://work.adata.kz",
593
+ staging: "https://work.adada.kz",
594
+ key: "work",
595
+ children: [
596
+ {
597
+ name: 'Вакансии',
598
+ subtitle: 'Поиск вакансий',
599
+ to: '/vacancy',
600
+ icon: 'bag'
601
+ },
602
+ {
603
+ name: 'Резюме',
604
+ subtitle: 'Поиск резюме',
605
+ to: '/summary',
606
+ icon: 'scales'
607
+ },
608
+ ],
609
+ },
610
+ {
611
+ id: 3,
612
+ name: "Тендеры",
613
+ dev: "https://tender.adtdev.kz",
614
+ prod: "https://tender.adata.kz",
615
+ staging: "https://tender.adada.kz",
616
+ key: "tenders",
617
+ children: [
618
+ {
619
+ name: 'Поиск тендеров',
620
+ subtitle: 'Найдите интересующие объявления о закупках',
621
+ to: '/',
622
+ icon: 'search'
623
+ },
624
+ {
625
+ name: 'Поиск договоров',
626
+ subtitle: 'Найдите договоры по совершенным тендерным закупкам',
627
+ to: '/main/contracts',
628
+ icon: 'file'
629
+ },
630
+ {
631
+ name: 'Планы закупок',
632
+ subtitle: 'Узнайте о планирующихся тендерных закупках',
633
+ to: '/main/plans',
634
+ icon: 'package'
635
+ }
636
+ ],
637
+ },
638
+ {
639
+ id: 4,
640
+ name: "Штрафы",
641
+ dev: "https://avto.adtdev.kz",
642
+ prod: "https://avto.adata.kz",
643
+ staging: "https://avto.adada.kz",
644
+ key: "fines",
645
+ children: [
646
+ {
647
+ name: 'Проверка штрафов',
648
+ subtitle: 'Проверьте наличие штрафов, задолженностей и запретов',
649
+ to: '/',
650
+ icon: 'check'
651
+ },
652
+ {
653
+ name: 'Проверка авто',
654
+ subtitle: 'Проверьте информацию и историю авто',
655
+ to: '/check',
656
+ icon: 'car'
657
+ },
658
+ {
659
+ name: 'Массовая проверка авто',
660
+ subtitle: 'Используйте массовую проверку для получения информации о нескольких авто',
661
+ to: '/bulk-check',
662
+ icon: 'truck'
663
+ },
664
+ ],
665
+ },
666
+ {
667
+ id: 5,
668
+ name: "Маркетинг",
669
+ dev: "https://marketing.adtdev.kz",
670
+ prod: "https://marketing.adata.kz",
671
+ staging: "https://marketing.adada.kz",
672
+ key: "marketing",
673
+ children: [
674
+ {
675
+ name: 'Поиск клиентов',
676
+ subtitle: 'Получите актуальную базу контактов потенциальных клиентов',
677
+ to: '/unload-data',
678
+ icon: 'search'
679
+ },
680
+ {
681
+ name: 'Анализ закупок',
682
+ subtitle: 'Изучите динамику и получите данные о проведенных тендерных закупках',
683
+ to: '/purchasing-analysis',
684
+ icon: 'package'
685
+ },
686
+ {
687
+ name: 'Индекс деловой активности',
688
+ subtitle: 'Изучайте активность предприятий на рынке',
689
+ to: '/business-activity',
690
+ icon: 'trending'
691
+ },
692
+ {
693
+ name: 'Рейтинг налогоплательщиков',
694
+ subtitle: 'Получите данные о лидерах компаний, видах деятельности и регионах',
695
+ to: '/tax-payment',
696
+ icon: 'award'
697
+ },
698
+ {
699
+ name: 'Субъекты бизнеса',
700
+ subtitle: 'Изучите динамику субъектов действующего бизнеса',
701
+ to: '/business-entities',
702
+ icon: 'company'
703
+ }
704
+ ],
705
+ },
706
+ ],
707
+ isOpen: false,
708
+ weather: null,
709
+ currencies: null,
710
+ systemMessage: null,
711
+ timer: null,
712
+ isOpenNotification: false,
713
+ };
714
+ },
715
+ created() {
716
+ this.fetchCurrencies();
717
+ },
718
+ mounted() {
719
+ this.notificationShow()
720
+ },
721
+ methods: {
722
+ goToAnotherModule(url) {
723
+ if(!location.href.includes(url)) {
724
+ this.$emit("changeModule");
725
+ }
726
+ window.open(url, "_self");
727
+ },
728
+ goAuth() {
729
+ const fullPath = encodeURIComponent(window.location.toString());
730
+ if (window) {
731
+ window.location.href = `${this.loginUrl}?url=${fullPath}`;
732
+ }
733
+ },
734
+ async fetchNotification() {
735
+ try {
736
+ const link = `https://users.adata.kz/api/v1/system-messages/active-list/?module_name=${this.activeTabKey}`
737
+ const response = await fetch(link);
738
+ const {data} = await response.json();
739
+
740
+ if (data.details.length) {
741
+ this.systemMessage = data.details[0].message;
742
+ this.isOpenNotification = true;
743
+ localStorage.setItem('start_time', JSON.stringify(new Date()))
744
+ }
745
+
746
+ } catch (e) {
747
+ console.log(e.message)
748
+ }
749
+ },
750
+ notificationShow() {
751
+ const startTime = localStorage.getItem('start_time');
752
+ let diffTime = startTime ? Math.round((new Date() - new Date(JSON.parse(startTime))) / 3600000) : 0
753
+ if (startTime) {
754
+ if (diffTime >= 24) {
755
+ localStorage.removeItem('start_time')
756
+ }
757
+ } else {
758
+ this.fetchNotification()
759
+ }
760
+ },
761
+ async fetchCurrencies() {
762
+ try {
763
+ const response = await fetch('https://users.adata.kz/api/v1/information/currency');
764
+ const {data} = await response.json();
765
+
766
+ if (data.currencies) {
767
+ this.currencies = data.currencies;
768
+ }
769
+
770
+ } catch (e) {
771
+ console.log(e.message)
772
+ }
773
+ },
774
+ async fetchWeather() {
775
+ try {
776
+ const response = await fetch('https://users.adata.kz/api/v1/information/weather');
777
+ const {data} = await response.json();
778
+
779
+ if (data.cities) {
780
+ this.weather = data.cities;
781
+ }
782
+
783
+ } catch (e) {
784
+ console.log(e.message)
785
+ }
786
+ },
787
+ closeNotification(option) {
788
+ this.isOpenNotification = !option
789
+ },
790
+ changeValue() {
791
+ this.isActiveMenu = false;
792
+ this.isOpen = !this.isOpen;
793
+ this.$emit("menuOpen", this.isOpen);
794
+ },
795
+ thousandSeparator(val) {
796
+ return val ? val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ") : "0";
797
+ },
798
+ defineIconState(name) {
799
+ return name === "DOWN" ? "@/assets/icons/arrow-down.svg" : "@/assets/icons/arrow-up.svg";
800
+ },
801
+ defineIconEntity(name) {
802
+ switch (name) {
803
+ case 'USD':
804
+ return "@/assets/icons/dollor.svg";
805
+ case 'EUR':
806
+ return "@/assets/icons/euro.svg";
807
+ case 'RUB':
808
+ return "@/assets/icons/ruble.svg";
809
+ }
810
+ },
811
+ },
812
+ };
813
+ </script>
814
+
815
+ <style lang="scss">
816
+ * {
817
+ font-family: "Open Sans", sans-serif;
818
+ box-sizing: border-box;
819
+ margin: 0;
820
+ padding: 0;
821
+ }
822
+
823
+ .sticky {
824
+ position: sticky;
825
+ z-index: 1000;
826
+ top: 0;
827
+ }
828
+
829
+ .header {
830
+ background: #ffffff;
831
+ max-height: 62px;
832
+ height: 62px;
833
+ display: flex;
834
+ align-items: center;
835
+ width: 100%;
836
+ @media (max-width: 1025px) {
837
+ height: 56px;
838
+ border-bottom: 1px solid #BDC7CE;
839
+ }
840
+
841
+ &.bordered {
842
+ border-bottom: 1px solid #2c3e5026;
843
+ }
844
+
845
+ & > .container {
846
+ width: 100%;
847
+ display: flex;
848
+ justify-content: space-between;
849
+ align-items: center;
850
+ @media (max-width: 1025px) {
851
+ gap: 12px;
852
+ }
853
+ }
854
+
855
+ &__right {
856
+ display: flex;
857
+ align-items: center;
858
+ }
859
+
860
+ &__left {
861
+ display: flex;
862
+ align-items: center;
863
+ @media (max-width: 1025px) {
864
+ width: 100%;
865
+ }
866
+
867
+ .menu {
868
+ display: flex;
869
+ align-items: center;
870
+ $self: &;
871
+ @media (max-width: 1025px) {
872
+ display: none;
873
+ }
874
+
875
+ &__sublinks {
876
+ display: none;
877
+ }
878
+ &__item {
879
+ margin-right: 8px;
880
+ align-items: center;
881
+ position: relative;
882
+ &:hover {
883
+ .menu__sublinks {
884
+ display: block;
885
+ }
886
+ }
887
+ }
888
+ &__items {
889
+ padding: 20px 8px 20px 0;
890
+ transition: text-shadow 0.3s;
891
+ display: block;
892
+ font-weight: bold;
893
+ font-size: 16px;
894
+ line-height: 22px;
895
+ text-transform: uppercase;
896
+ color: #71757a;
897
+ position: relative;
898
+
899
+ &::after {
900
+ content: "";
901
+ position: absolute;
902
+ right: -1px;
903
+ top: 50%;
904
+ transform: translateY(-50%);
905
+ height: 22px;
906
+ width: 1px;
907
+ background-color: #e5e5e5;
908
+ }
909
+
910
+ &.active {
911
+ font-weight: bold;
912
+ font-size: 16px;
913
+ line-height: 22px;
914
+ text-transform: uppercase;
915
+ color: #2c3e50;
916
+ }
917
+
918
+ &:hover {
919
+ color: #9da3ac;
920
+ cursor: pointer;
921
+ }
922
+ }
923
+ }
924
+
925
+ .logo {
926
+ display: block;
927
+ margin-right: 20px;
928
+ padding-bottom: 10px;
929
+ @media (max-width: 1025px) {
930
+ margin-right: 10px;
931
+ padding-bottom: 0;
932
+ }
933
+
934
+ svg {
935
+ //width: 90px;
936
+ //height: 26px;
937
+ //display: block;
938
+ fill: #2c3e50;
939
+ @media (max-width: 1025px) {
940
+ // width: 77px;
941
+ // height: 24px;
942
+ width: 38px;
943
+ height: 30px;
944
+ }
945
+
946
+ &:hover {
947
+ fill: #71757a;
948
+ }
949
+ &.desktop {
950
+ @media (max-width: 1025px) {
951
+ display: none;
952
+ }
953
+ }
954
+ &.mobile {
955
+ display: none;
956
+ @media (max-width: 1025px) {
957
+ display: block;
958
+ width: auto;
959
+ }
960
+ }
961
+ }
962
+ }
963
+ }
964
+
965
+ .menu_mobile {
966
+ display: none;
967
+ grid-template-columns: 10% 90%;
968
+ z-index: 1000000;
969
+ position: absolute !important;
970
+
971
+ .empty-space {
972
+ background: rgba(0, 0, 0, 0.40);
973
+ }
974
+
975
+ &::-webkit-scrollbar {
976
+ width: 4px;
977
+
978
+ &-thumb {
979
+ background: #c4c4c4;
980
+ }
981
+
982
+ &-track {
983
+ background: #fff;
984
+ }
985
+ }
986
+
987
+ &--switcher {
988
+ display: none;
989
+ cursor: pointer;
990
+ }
991
+
992
+ button.sign {
993
+ height: auto;
994
+ justify-content: flex-start;
995
+
996
+ svg {
997
+ margin-right: 8px;
998
+ height: 24px;
999
+ width: 24px;
1000
+ }
1001
+
1002
+ span {
1003
+ color: #007AFF;
1004
+ font-size: 14px;
1005
+ }
1006
+ }
1007
+
1008
+ @media (max-width: 1025px) {
1009
+ display: grid;
1010
+ background: transparent !important;
1011
+ .mobile-table-head {
1012
+ display: flex;
1013
+ justify-content: space-between;
1014
+ padding: 20px 16px;
1015
+ height: auto;
1016
+ background: #ECEFF1;
1017
+ border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1018
+ }
1019
+ &-wrapper {
1020
+ border-top: 1px solid #9da3ac4c;
1021
+ padding: 16px;
1022
+ font-weight: 600;
1023
+ font-size: 14px;
1024
+ line-height: 22px;
1025
+ color: #2c3e50;
1026
+ display: block;
1027
+
1028
+ &:first-child {
1029
+ border-top: none;
1030
+ }
1031
+
1032
+ &.active-burger-tab {
1033
+ background: #2c3e500d;
1034
+ }
1035
+ }
1036
+ &--switcher {
1037
+ display: flex;
1038
+ align-items: center;
1039
+ justify-content: center;
1040
+ }
1041
+ }
1042
+
1043
+ .menu-wrapper {
1044
+ height: 100%;
1045
+ display: flex;
1046
+ flex-direction: column;
1047
+ justify-content: space-between;
1048
+ box-shadow: -6px 4px 12px rgb(157 163 172 / 40%);
1049
+ background: #fff;
1050
+ @media (max-width: 1025px) {
1051
+ justify-content: flex-start;
1052
+ }
1053
+
1054
+ &__top {
1055
+ &-left {
1056
+ display: flex;
1057
+ gap: 8px;
1058
+ align-items: center;
1059
+ width: 100%;
1060
+
1061
+ .svg-wrapper {
1062
+ width: 32px;
1063
+ height: 32px;
1064
+ background: rgba(189, 199, 206, 0.2);
1065
+ display: flex;
1066
+ justify-content: center;
1067
+ align-items: center;
1068
+ border-radius: 50%;
1069
+
1070
+ svg {
1071
+ width: 24px;
1072
+ height: 24px;
1073
+ }
1074
+ }
1075
+
1076
+ .text-wrapper {
1077
+ width: 100%;
1078
+ p {
1079
+ font-size: 14px;
1080
+ font-weight: 500;
1081
+ display: flex;
1082
+ justify-content: space-between;
1083
+ align-items: center;
1084
+
1085
+ &:first-child {
1086
+ border-bottom: 0.5px solid rgba(157, 163, 172, 0.5);
1087
+ padding-bottom: 12px;
1088
+ margin-bottom: 12px;
1089
+ span {
1090
+ cursor: pointer;
1091
+ svg {
1092
+ width: 16px;
1093
+ height: 16px;
1094
+ }
1095
+ }
1096
+ }
1097
+
1098
+ &:nth-child(2) {
1099
+ color: #007AFF;
1100
+ font-size: 12px;
1101
+ font-weight: 600;
1102
+ span {
1103
+ display: flex;
1104
+ align-items: center;
1105
+ gap: 8px;
1106
+ cursor: pointer;
1107
+ font-weight: 400;
1108
+ }
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+
1114
+ &-right {
1115
+ display: flex;
1116
+ align-items: center;
1117
+ justify-content: center;
1118
+ cursor: pointer;
1119
+ }
1120
+ }
1121
+ }
1122
+
1123
+ &-footer {
1124
+ width: 100%;
1125
+ background: #007AFF;
1126
+ padding: 20px 16px;
1127
+ display: flex;
1128
+ margin-top: auto;
1129
+ position: relative;
1130
+ z-index: 1000000;
1131
+ @media (max-width: 1025px) {
1132
+ height: 40px;
1133
+ width: calc(100% - 32px);
1134
+ margin: 32px 16px;
1135
+ justify-content: center;
1136
+ }
1137
+
1138
+ button.sign {
1139
+ span {
1140
+ color: #fff;
1141
+ }
1142
+ }
1143
+ }
1144
+ }
1145
+
1146
+ .menu-wrapper__bottom {
1147
+ margin: 80px 0 0;
1148
+ @media (max-width: 1025px) {
1149
+ margin: 0;
1150
+ }
1151
+
1152
+ &-header {
1153
+ background: rgba(189, 199, 206, 0.2);
1154
+ padding: 4px 16px;
1155
+ display: flex;
1156
+ justify-content: space-between;
1157
+ align-items: center;
1158
+
1159
+ span {
1160
+ font-weight: 500;
1161
+ font-size: 12px;
1162
+ line-height: 20px;
1163
+ color: #666C72;
1164
+ }
1165
+ }
1166
+
1167
+ &-body {
1168
+ padding: 8px 16px 16px;
1169
+ display: flex;
1170
+ flex-direction: column;
1171
+ justify-content: space-between;
1172
+ gap: 12px;
1173
+ margin-bottom: 36px;
1174
+ @media (max-width: 1025px) {
1175
+ margin-bottom: 0;
1176
+ }
1177
+ }
1178
+
1179
+ &-row {
1180
+ display: flex;
1181
+ justify-content: space-between;
1182
+ align-items: center;
1183
+ }
1184
+
1185
+ &-column {
1186
+ display: flex;
1187
+ align-items: center;
1188
+ gap: 8px;
1189
+
1190
+ &:first-child {
1191
+ justify-content: flex-start;
1192
+ }
1193
+
1194
+ &:nth-child(2), &:nth-child(3) {
1195
+ justify-content: flex-end;
1196
+ width: 60px;;
1197
+ }
1198
+
1199
+ span {
1200
+ font-weight: 500;
1201
+ font-size: 14px;
1202
+ line-height: 20px;
1203
+ color: #2C3E50;
1204
+ }
1205
+ }
1206
+
1207
+ &-footer {
1208
+ background: rgba(189, 199, 206, 0.2);
1209
+ padding: 8px 16px;
1210
+ display: flex;
1211
+ flex-direction: column;
1212
+ gap: 10px;
1213
+
1214
+ &-item {
1215
+ display: flex;
1216
+ justify-content: space-between;
1217
+ align-items: center;
1218
+ }
1219
+
1220
+ &-title {
1221
+ font-weight: 500;
1222
+ font-size: 14px;
1223
+ line-height: 20px;
1224
+ color: #2C3E50;
1225
+ }
1226
+
1227
+ &-circle {
1228
+ color: #ffffff;
1229
+ padding: 4px 12px;
1230
+ background: #007AFF;
1231
+ border-radius: 100px;
1232
+ font-weight: 500;
1233
+ font-size: 14px;
1234
+ line-height: 20px;
1235
+ }
1236
+ }
1237
+ }
1238
+ }
1239
+
1240
+ .logo-desktop {
1241
+ display: flex;
1242
+ justify-content: center;
1243
+ align-items: center;
1244
+ width: 112px;
1245
+ height: 40px;
1246
+ background-image: url("~@/assets/logo-desktop.webp");
1247
+ background-size: cover;
1248
+ background-position: center;
1249
+ @media screen and (max-width: 1025px){
1250
+ display: none;
1251
+ }
1252
+ }
1253
+ .logo-mobile {
1254
+ display: none;
1255
+ width: 38px;
1256
+ height: 30px;
1257
+ background-image: url("~@/assets/logo-mobile.webp");
1258
+ background-size: cover;
1259
+ background-position: center;
1260
+ @media screen and (max-width: 1025px){
1261
+ display: flex;
1262
+ align-items: center;
1263
+ justify-content: center;
1264
+ }
1265
+ }
1266
+
1267
+ .mobile-search {
1268
+ display: none;
1269
+ height: 32px;
1270
+ max-height: 32px;
1271
+ @media (max-width: 1025px) {
1272
+ display: flex;
1273
+ align-items: center;
1274
+ justify-content: flex-end;
1275
+ gap: 8px;
1276
+ width: 100%;
1277
+ }
1278
+ .search-input {
1279
+ display: flex;
1280
+ align-items: center;
1281
+ gap: 8px;
1282
+ background: rgba(189, 199, 206, 0.2);
1283
+ height: 100%;
1284
+ border-radius: 2px;
1285
+ width: 100%;
1286
+ padding: 0 14px;
1287
+ font-weight: 500;
1288
+ font-size: 12px;
1289
+ line-height: 20px;
1290
+ cursor: pointer;
1291
+ }
1292
+ .favorite-btn {
1293
+ background: rgba(189, 199, 206, 0.2);
1294
+ display: flex;
1295
+ justify-content: center;
1296
+ align-items: center;
1297
+ padding: 10px;
1298
+ height: 100%;
1299
+ border-radius: 2px;
1300
+ cursor: pointer;
1301
+ svg {
1302
+ width: 16px;
1303
+ height: 16px;
1304
+ }
1305
+ }
1306
+ }
1307
+ </style>