adata-ui 0.3.65 → 0.3.67

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 (98) hide show
  1. package/README.md +7 -7
  2. package/babel.config.js +5 -5
  3. package/dist/adata-ui.common.js +8627 -6061
  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 +8627 -6061
  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-desktop-main.4d169395.svg +8 -0
  13. package/dist/img/logo-mobile-main.397bce24.svg +4 -0
  14. package/dist/img/{logo-white-desktop.0827cb20.svg → logo-white-desktop.7d0e3481.svg} +8 -8
  15. package/dist/img/{telegram.da3d2408.svg → telegram.be0d1008.svg} +4 -4
  16. package/dist/img/{tiktok.91223b77.svg → tiktok.eaeb39cb.svg} +4 -4
  17. package/dist/img/{up-down.de7b3a68.svg → up-down.e2b28f72.svg} +3 -3
  18. package/dist/img/{youtube.96e7b076.svg → youtube.125aace6.svg} +5 -5
  19. package/package-lock.json +26218 -26218
  20. package/package.json +76 -76
  21. package/public/index.html +17 -17
  22. package/public/logo.svg +4 -4
  23. package/src/App.vue +25 -25
  24. package/src/assets/_text_field.scss +224 -224
  25. package/src/assets/facebook.svg +4 -4
  26. package/src/assets/instagram.svg +6 -6
  27. package/src/assets/logo-desktop-main.svg +8 -0
  28. package/src/assets/logo-desktop.svg +9 -9
  29. package/src/assets/logo-mobile-main.svg +4 -0
  30. package/src/assets/logo-mobile.svg +9 -9
  31. package/src/assets/logo-white-desktop.svg +8 -8
  32. package/src/assets/style.scss +1 -1
  33. package/src/assets/telegram.svg +4 -4
  34. package/src/assets/tiktok.svg +4 -4
  35. package/src/assets/up-down.svg +3 -3
  36. package/src/assets/youtube.svg +5 -5
  37. package/src/components/Alert/Alert.stories.js +17 -17
  38. package/src/components/Alert/Alert.vue +63 -63
  39. package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +151 -151
  40. package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +24 -24
  41. package/src/components/Button/AButton.vue +231 -231
  42. package/src/components/Button/Button.stories.js +23 -23
  43. package/src/components/Checkbox/ACheckbox.vue +114 -114
  44. package/src/components/Checkbox/Checkbox.stories.js +15 -15
  45. package/src/components/CheckboxMenu/CheckboxMenu.stories.js +23 -23
  46. package/src/components/CheckboxMenu/CheckboxMenu.vue +108 -108
  47. package/src/components/ErrorPages/BadGateway.vue +224 -224
  48. package/src/components/ErrorPages/Forbidden.vue +468 -468
  49. package/src/components/ErrorPages/InternalServerError.vue +275 -275
  50. package/src/components/ErrorPages/NotFound.vue +995 -995
  51. package/src/components/ErrorPages/Unavailable.vue +3705 -3705
  52. package/src/components/Footer/Footer.stories.js +20 -20
  53. package/src/components/Footer/Footer.vue +292 -292
  54. package/src/components/Header/ChildLinks.vue +122 -122
  55. package/src/components/Header/Header.stories.js +56 -56
  56. package/src/components/Header/Header.vue +1289 -1307
  57. package/src/components/Header/InfoHeader.vue +319 -319
  58. package/src/components/Header/Profile.vue +670 -670
  59. package/src/components/Header/ProfileMenu.vue +275 -275
  60. package/src/components/Header/ProfileMobile.vue +308 -308
  61. package/src/components/Header/ProfileOld.vue +781 -781
  62. package/src/components/InternalServerError/InternalServerError.stories.js +16 -16
  63. package/src/components/InternalServerError/InternalServerError.vue +262 -262
  64. package/src/components/Introduction.stories.mdx +7 -7
  65. package/src/components/Loader/Loader.stories.js +24 -24
  66. package/src/components/Loader/Loader.vue +325 -325
  67. package/src/components/MailTo/MailTo.stories.js +14 -14
  68. package/src/components/MailTo/MailTo.vue +258 -258
  69. package/src/components/NavIcon/ANavIcon.vue +49 -49
  70. package/src/components/NavIcon/NavIcon.stories.js +14 -14
  71. package/src/components/PasswordField/PasswordField.stories.js +16 -16
  72. package/src/components/PasswordField/PasswordField.vue +77 -77
  73. package/src/components/SearchTextField/SearchTextField.stories.js +77 -77
  74. package/src/components/SearchTextField/SearchTextField.vue +230 -230
  75. package/src/components/ServiceSlider/AServiceSlider.vue +782 -782
  76. package/src/components/ServiceSlider/ServiceSlider.stories.js +20 -20
  77. package/src/components/Table/ATable.vue +117 -117
  78. package/src/components/Table/Table.stories.js +15 -15
  79. package/src/components/TextArea/TextArea.stories.js +17 -17
  80. package/src/components/TextArea/TextArea.vue +116 -116
  81. package/src/components/TextError/TextError.stories.js +15 -15
  82. package/src/components/TextError/TextError.vue +57 -57
  83. package/src/components/TextField/TextField.stories.js +17 -17
  84. package/src/components/TextField/TextField.vue +107 -107
  85. package/src/components/index.js +54 -54
  86. package/src/components/newComponents/FooterNew/FooterBottom.vue +152 -151
  87. package/src/components/newComponents/FooterNew/FooterItem.vue +113 -113
  88. package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -20
  89. package/src/components/newComponents/FooterNew/FooterNew.vue +39 -39
  90. package/src/components/newComponents/FooterNew/FooterTop.vue +319 -318
  91. package/src/components/transitions/SlideToggle.vue +55 -55
  92. package/src/components/transitions/VerticalMobileToggle.vue +75 -75
  93. package/src/configs/icons.js +112 -112
  94. package/src/configs/profileDropDown.js +134 -134
  95. package/src/main.js +12 -12
  96. package/dist/img/logo-desktop.dbf92700.webp +0 -0
  97. package/dist/img/logo-mobile.a02408a3.webp +0 -0
  98. package/src/.DS_Store +0 -0
@@ -1,1307 +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
-
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
+ </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://marketing.adtdev.kz",
653
+ prod: "https://marketing.adata.kz",
654
+ staging: "https://marketing.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>