adata-ui 0.1.38 → 0.1.39

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.
@@ -8950,27 +8950,27 @@ var Alert_component = normalizeComponent(
8950
8950
  )
8951
8951
 
8952
8952
  /* harmony default export */ var Alert = (Alert_component.exports);
8953
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c01c32b-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Header.vue?vue&type=template&id=852863b8&
8954
- var Headervue_type_template_id_852863b8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('header',{staticClass:"a-header",class:[{'bordered': _vm.isBordered}, {'fixed': _vm.isFixed}]},[_c('div',{staticClass:"container"},[_c('div',{staticClass:"a-header__left"},[_c('a',{staticClass:"logo",attrs:{"href":_vm.toAdtdev('https://adata.kz')}},[_c('svg',{staticClass:"adata-logo",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 166 48"}},[_c('path',{attrs:{"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"}}),_c('path',{attrs:{"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"}})])]),(_vm.subheaderItems.length > 0)?_c('div',{staticClass:"menu"},_vm._l((_vm.subheaderItems),function(item,index){return _c('a',{key:index,staticClass:"menu__wrapper menu__items",class:{active: item.key === _vm.activeTabKey},attrs:{"href":_vm.toAdtdev(item.url)}},[_vm._v(" "+_vm._s(item.name)+" ")])}),0):_vm._e()]),_c('div',{staticClass:"a-header__right"},[_vm._t("chooseCountry"),_c('Profile',{attrs:{"profileDropDown":_vm.profileDropDown,"isDev":_vm.isDev,"isAuthenticated":_vm.isAuthenticated,"requestCount":_vm.requestCount,"daysRemaining":_vm.daysRemaining,"email":_vm.email,"loginUrl":_vm.loginUrl,"activeTabKey":_vm.activeTabKey},on:{"showBalanceModal":function (val) { _vm.$emit('showBalanceModal', val) },"setShowModal":function (val) { _vm.$emit('setShowModal', val) },"logout":function($event){return _vm.$emit('logout')},"setIsReplenishModal":function (val) { _vm.$emit('setIsReplenishModal', val) }}}),_c('div',{staticClass:"menu_mobile--switcher",on:{"click":_vm.changeValue}},[_c('svg',{attrs:{"width":"24","height":"24","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2 4h20v2H2V4zm0 14h20v2H2v-2zm0-7h20v2H2v-2z","fill":"#2C3E50"}})])])],2)]),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
8953
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3c01c32b-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Header.vue?vue&type=template&id=c97f5a8e&
8954
+ var Headervue_type_template_id_c97f5a8e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('header',{staticClass:"a-header",class:[{'bordered': _vm.isBordered}, {'fixed': _vm.isFixed}]},[_c('div',{staticClass:"container"},[_c('div',{staticClass:"a-header__left"},[_c('a',{staticClass:"logo",attrs:{"href":_vm.toAdtdev('https://adata.kz')}},[_c('svg',{staticClass:"adata-logo",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 166 48"}},[_c('path',{attrs:{"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"}}),_c('path',{attrs:{"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"}})])]),(_vm.subheaderItems.length > 0)?_c('div',{staticClass:"menu"},_vm._l((_vm.subheaderItems),function(item,index){return _c('a',{key:index,staticClass:"menu__wrapper menu__items",class:{active: item.key === _vm.activeTabKey},attrs:{"href":_vm.toAdtdev(item.url)}},[_vm._v(" "+_vm._s(item.name)+" ")])}),0):_vm._e()]),_c('div',{staticClass:"a-header__right"},[_vm._t("chooseCountry"),_c('Profile',{attrs:{"profileDropDown":_vm.profileDropDown,"isDev":_vm.isDev,"isAuthenticated":_vm.isAuthenticated,"requestCount":_vm.requestCount,"daysRemaining":_vm.daysRemaining,"email":_vm.email,"loginUrl":_vm.loginUrl,"activeTabKey":_vm.activeTabKey},on:{"showBalanceModal":function (val) { _vm.$emit('showBalanceModal', val) },"setShowModal":function (val) { _vm.$emit('setShowModal', val) },"logout":function($event){return _vm.$emit('logout')},"setIsReplenishModal":function (val) { _vm.$emit('setIsReplenishModal', val) }}}),_c('div',{staticClass:"menu_mobile--switcher",on:{"click":_vm.changeValue}},[_c('svg',{attrs:{"width":"24","height":"24","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2 4h20v2H2V4zm0 14h20v2H2v-2zm0-7h20v2H2v-2z","fill":"#2C3E50"}})])])],2)]),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
8955
8955
  var animationClass = ref.animationClass;
8956
- return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.subheaderItems.length > 0 && _vm.isOpen),expression:"subheaderItems.length > 0 && isOpen"}],staticClass:"menu_mobile",class:animationClass},[_c('div',{staticClass:"mobile-table-head",on:{"click":function($event){$event.stopPropagation();return _vm.changeValue.apply(null, arguments)}}},[_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z","fill":"#2C3E50"}})])]),_vm._l((_vm.subheaderItems),function(item,index){return _c('a',{key:index,staticClass:"menu_mobile-wrapper",class:{'active-burger-tab': item.key === _vm.activeTabKey},attrs:{"href":_vm.toAdtdev(item.url)}},[_vm._v(" "+_vm._s(item.name)+" ")])})],2)]}}])})],1)}
8957
- var Headervue_type_template_id_852863b8_staticRenderFns = []
8956
+ return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.subheaderItems.length > 0 && _vm.isOpen),expression:"subheaderItems.length > 0 && isOpen"}],staticClass:"menu_mobile",class:animationClass},[_c('div',{staticClass:"mobile-table-head",on:{"click":function($event){$event.stopPropagation();return _vm.changeValue.apply(null, arguments)}}},[_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z","fill":"#2C3E50"}})])]),_vm._l((_vm.subheaderItems),function(item,index){return _c('a',{key:index,staticClass:"menu_mobile-wrapper",class:{'active-burger-tab': item.key === _vm.activeTabKey},attrs:{"href":item[_vm.mode]}},[_vm._v(" "+_vm._s(item.name)+" ")])})],2)]}}])})],1)}
8957
+ var Headervue_type_template_id_c97f5a8e_staticRenderFns = []
8958
8958
 
8959
8959
 
8960
- // CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=852863b8&
8960
+ // CONCATENATED MODULE: ./src/components/Header/Header.vue?vue&type=template&id=c97f5a8e&
8961
8961
 
8962
8962
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
8963
8963
  var es_number_constructor = __webpack_require__("a9e3");
8964
8964
 
8965
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
8966
+ var es_function_name = __webpack_require__("b0c0");
8967
+
8965
8968
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
8966
8969
  var es_regexp_exec = __webpack_require__("ac1f");
8967
8970
 
8968
8971
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
8969
8972
  var es_string_replace = __webpack_require__("5319");
8970
8973
 
8971
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
8972
- var es_function_name = __webpack_require__("b0c0");
8973
-
8974
8974
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
8975
8975
  var es_regexp_to_string = __webpack_require__("25f0");
8976
8976
 
@@ -9906,9 +9906,12 @@ var profileDropDown = [{
9906
9906
  MobileToggle: VerticalMobileToggle
9907
9907
  },
9908
9908
  props: {
9909
- isDev: {
9910
- type: Boolean,
9911
- default: false
9909
+ mode: {
9910
+ type: String,
9911
+ required: true,
9912
+ validator: function validator(value) {
9913
+ return ['prod', 'dev', 'staging'].indexOf(value) !== -1;
9914
+ }
9912
9915
  },
9913
9916
  isAuthenticated: {
9914
9917
  type: Boolean,
@@ -9955,27 +9958,37 @@ var profileDropDown = [{
9955
9958
  subheaderItems: [{
9956
9959
  id: 1,
9957
9960
  name: "Контрагенты",
9958
- url: 'https://pk.adata.kz',
9961
+ dev: 'https://pk.adtdev.kz',
9962
+ prod: 'https://pk.adata.kz',
9963
+ staging: 'https://pk.adada.kz',
9959
9964
  key: 'counterparty'
9960
9965
  }, {
9961
9966
  id: 2,
9962
9967
  name: "Тендеры",
9963
- url: 'https://tender.adata.kz',
9968
+ dev: 'https://tender.adtdev.kz',
9969
+ prod: 'https://tender.adata.kz',
9970
+ staging: 'https://tender.adada.kz',
9964
9971
  key: 'tenders'
9965
9972
  }, {
9966
9973
  id: 3,
9967
9974
  name: "Работа",
9968
- url: 'https://work.adata.kz',
9975
+ dev: 'https://work.adtdev.kz',
9976
+ prod: 'https://work.adata.kz',
9977
+ staging: 'https://work.adada.kz',
9969
9978
  key: 'work'
9970
9979
  }, {
9971
9980
  id: 4,
9972
9981
  name: "Штрафы",
9973
- url: 'https://avto.adata.kz',
9982
+ dev: 'https://avto.adtdev.kz',
9983
+ prod: 'https://avto.adata.kz',
9984
+ staging: 'https://avto.adada.kz',
9974
9985
  key: 'fines'
9975
9986
  }, {
9976
9987
  id: 5,
9977
9988
  name: "Маркетинг",
9978
- url: 'https://marketing.adata.kz',
9989
+ dev: 'https://marketing.adtdev.kz',
9990
+ prod: 'https://marketing.adata.kz',
9991
+ staging: 'https://marketing.adada.kz',
9979
9992
  key: 'marketing'
9980
9993
  }],
9981
9994
  isOpen: false
@@ -9989,9 +10002,6 @@ var profileDropDown = [{
9989
10002
  this.isOpen = !this.isOpen;
9990
10003
  this.$emit('menuOpen', this.isOpen);
9991
10004
  },
9992
- toAdtdev: function toAdtdev(url) {
9993
- return this.isDev ? url.replace("adata", "adtdev") : url;
9994
- },
9995
10005
  setBalance: function setBalance(balance) {
9996
10006
  if (balance !== 0) {
9997
10007
  this.profileDropDown[2].name = 'Текущий баланс: ' + this.thousandSeparator(balance) + ' ₸';
@@ -10023,8 +10033,8 @@ var Headervue_type_style_index_0_lang_scss_ = __webpack_require__("52f3");
10023
10033
 
10024
10034
  var Header_component = normalizeComponent(
10025
10035
  Header_Headervue_type_script_lang_js_,
10026
- Headervue_type_template_id_852863b8_render,
10027
- Headervue_type_template_id_852863b8_staticRenderFns,
10036
+ Headervue_type_template_id_c97f5a8e_render,
10037
+ Headervue_type_template_id_c97f5a8e_staticRenderFns,
10028
10038
  false,
10029
10039
  null,
10030
10040
  null,