{"version":3,"sources":["webpack:///./src/views/web/main/header.vue","webpack:///src/views/web/main/header.vue","webpack:///./src/views/web/main/header.vue?1916","webpack:///./src/views/web/main/header.vue?cc0e"],"names":["render","_vm","this","_c","_self","staticClass","attrs","on","mainMenuOpen","staticStyle","concat","myResBaseUrl","$store","state","app","activeGroup","logo","_v","_s","_f","name","isMobile","publicPage","route","params","id","homePageId","cid","class","domProps","_l","pages","p","i","key","getSub","length","show","activeId","active","$route","$event","task","st1","s","locTypeCode","taskEn","_e","staticRenderFns","_","require","data","created","undefined","resBaseUrl","mounted","init","methods","_objectSpread","mapActions","_this","_obj","responsiveLayout","navbarNavShow","backdrop","onCloseEvent","removeClassName","handleResponsiveLayoutConfig","then","toggleBodyClass","addRemoveClass","className","el","document","body","classList","add","remove","sortBy","filter","x","i2","i1","parentId","watch","component"],"mappings":"+IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,SAAS,CAACE,YAAY,uBAAuBC,MAAM,CAAC,GAAK,WAAW,CAACH,EAAG,IAAI,CAACE,YAAY,cAAcC,MAAM,CAAC,GAAK,gBAAgBC,GAAG,CAAC,MAAQN,EAAIO,eAAe,CAACL,EAAG,UAAU,CAACG,MAAM,CAAC,KAAO,UAAUH,EAAG,MAAM,CAACE,YAAY,qCAAqC,CAACF,EAAG,MAAM,CAACE,YAAY,UAAUI,YAAY,CAAC,YAAY,QAAQH,MAAM,CAAC,IAAK,GAAAI,OAAIT,EAAIU,cAAYD,OAAGT,EAAIW,OAAOC,MAAMC,IAAIC,YAAYC,MAAO,IAAM,MAAMb,EAAG,OAAO,CAACE,YAAY,UAAU,CAACJ,EAAIgB,GAAGhB,EAAIiB,GAAGjB,EAAIkB,GAAG,YAAPlB,CAAoBA,EAAIW,OAAOC,MAAMC,IAAIC,YAAYK,aAAa,GAAGjB,EAAG,MAAM,CAACE,YAAY,uBAAu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,KAAAzB,MAAAkB,EAAA6B,OACA,KAAAlE,OAAAC,MAAAC,IAAAiB,MAAAgD,QACA,SAAAC,GAAA,UAAAA,EAAAC,IAAA,GAAAD,EAAAE,IAAA,GAAAF,EAAAG,YAEA,MACA,QAuBAhD,OAAA,SAAAH,GACA,IAAAD,EAAAkB,EAAA6B,OACA,KAAAlE,OAAAC,MAAAC,IAAAiB,MAAAgD,QACA,SAAAC,GAAA,UAAAA,EAAAC,IAAA,GAAAD,EAAAE,IAAAF,EAAAG,UAAAnD,EAAAP,MAEA,MACA,OAEA,OAAAM,KAGAqD,MAAA,CACA,0BAEA,KAAA9C,SAAA,QC1Q6W,I,YCOzW+C,EAAY,eACd,EACArF,EACAgD,GACA,EACA,KACA,KACA,MAIa,aAAAqC,E","file":"js/chunk-2d212b58.e390a419.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container pd-0-f\"},[_c('header',{staticClass:\"navbar navbar-header\",attrs:{\"id\":\"header\"}},[_c('a',{staticClass:\"burger-menu\",attrs:{\"id\":\"mainMenuOpen\"},on:{\"click\":_vm.mainMenuOpen}},[_c('feather',{attrs:{\"type\":\"menu\"}}),_c('div',{staticClass:\"df-logo d-flex align-items-center\"},[_c('img',{staticClass:\"mg-l-10\",staticStyle:{\"max-width\":\"40px\"},attrs:{\"src\":`${_vm.myResBaseUrl}${_vm.$store.state.app.activeGroup.logo}`,\"alt\":\"\"}}),_c('span',{staticClass:\"mg-l-5\"},[_vm._v(_vm._s(_vm._f(\"stripHtml\")(_vm.$store.state.app.activeGroup.name)))])])],1),_c('div',{staticClass:\"navbar-menu-wrapper\"},[(_vm.$store.state.app.isMobile)?_c('div',{staticClass:\"navbar-menu-header\"},[_c('router-link',{staticClass:\"mg-r-10 df-logo\",attrs:{\"to\":{\n            name: _vm.$store.state.app.activeGroup.publicPage.route,\n            params: { id: _vm.$store.state.app.homePageId, cid: 0 }\n          }}},[_c('img',{staticStyle:{\"max-width\":\"40px\"},attrs:{\"src\":`${_vm.myResBaseUrl}${_vm.$store.state.app.activeGroup.logo}`,\"alt\":\"\"}}),_c('span',{staticClass:\"mg-l-5\"},[_vm._v(_vm._s(_vm._f(\"stripHtml\")(_vm.$store.state.app.activeGroup.name)))])])],1):_c('div',{staticClass:\"navbar-brand\"},[_c('router-link',{staticClass:\"mg-r-10\",attrs:{\"to\":{\n            name: _vm.$store.state.app.activeGroup.publicPage.route,\n            params: { id: _vm.$store.state.app.homePageId, cid: 0 }\n          }}},[_c('img',{staticClass:\"df-logo\",staticStyle:{\"max-width\":\"40px\"},attrs:{\"src\":`${_vm.myResBaseUrl}${_vm.$store.state.app.activeGroup.logo}`,\"alt\":\"\"}})]),_c('h1',{staticClass:\"d-none d-xl-block\",staticStyle:{\"font-size\":\"1.1rem\"}},[_c('router-link',{class:`df-logo logo ${_vm.$store.state.app.activeGroup.id==9298?'tx-22-f':'tx-16'}`,staticStyle:{\"line-height\":\"1.1\"},attrs:{\"to\":{\n              name: _vm.$store.state.app.activeGroup.publicPage.route,\n              params: { id: _vm.$store.state.app.homePageId, cid: 0 }\n            }},domProps:{\"innerHTML\":_vm._s(_vm.$store.state.app.activeGroup.name)}})],1)],1),_c('ul',{staticClass:\"nav navbar-menu order-2 pd-l-30\",staticStyle:{\"max-width\":\"1080px\"},attrs:{\"id\":\"navbarMenu\"}},[_c('li',{staticClass:\"nav-label pd-l-20 pd-lg-l-25 d-lg-none\"},[_vm._v(\"Үндсэн цэс\")]),_vm._l((_vm.pages),function(p,i){return _c('li',{key:i,staticClass:\"nav-item\",class:{ 'with-sub': _vm.getSub(p).length, show: _vm.activeId == p.id }},[(_vm.getSub(p).length)?_c('a',{staticClass:\"nav-link\",class:{ active: p.id == _vm.$route.params.id },attrs:{\"role\":\"button\"},on:{\"click\":function($event){_vm.activeId = p.id}}},[_vm._v(_vm._s(p.task))]):(p.st1=='special')?_c('router-link',{staticClass:\"nav-link\",class:{ active: p.id == _vm.$route.params.id },staticStyle:{\"color\":\"white !important\",\"background\":\"#007a3e\",\"border-radius\":\"3px\",\"padding\":\"3px 5px\"},attrs:{\"to\":{\n              name: _vm.$store.state.app.activeGroup.publicPage.route,\n              params: { id: p.id, cid: 0 }\n            }}},[_vm._v(_vm._s(p.task))]):_c('router-link',{staticClass:\"nav-link\",class:{ active: p.id == _vm.$route.params.id },attrs:{\"to\":{\n              name: _vm.$store.state.app.activeGroup.publicPage.route,\n              params: { id: p.id, cid: 0 }\n            }}},[_vm._v(_vm._s(p.task))]),(_vm.getSub(p).length)?_c('ul',{staticClass:\"navbar-menu-sub\"},_vm._l((_vm.getSub(p)),function(s,i){return _c('li',{key:i,staticClass:\"nav-sub-item\"},[(s.locTypeCode == 'link')?_c('a',{staticClass:\"nav-sub-link\",attrs:{\"href\":s.taskEn,\"target\":\"_blank\"}},[_c('feather',{attrs:{\"type\":\"chevron-right\"}}),_vm._v(\" \"+_vm._s(s.task)+\" \")],1):_c('router-link',{staticClass:\"nav-sub-link\",attrs:{\"to\":{\n                  name: _vm.$store.state.app.activeGroup.publicPage.route,\n                  params: { id: s.id, cid: 0 }\n                }}},[_c('feather',{attrs:{\"type\":\"chevron-right\"}}),_vm._v(\" \"+_vm._s(s.task)+\" \")],1)],1)}),0):_vm._e()],1)})],2),(_vm.$store.state.app.isMobile)?_c('div',{staticClass:\"mg-x-10\"},[_c('router-link',{staticClass:\"btn btn-outline-primary btn-block d-flex justify-content-center\",attrs:{\"to\":{ name: 'login' },\"type\":\"button\"}},[_c('feather',{staticClass:\"mg-r-5\",attrs:{\"type\":\"log-in\",\"size\":\"14\"}}),_vm._v(\"Нэвтрэх \")],1)],1):(_vm.$store.state.app.activeGroup.id == 9229)?_c('div',{staticClass:\"navbar-right\"},[_c('a',{staticClass:\"btn btn-primary text-white d-flex\",attrs:{\"href\":\"https://open.mnuac.edu.mn\",\"target\":\"_blank\"}},[_c('feather',{staticClass:\"mg-r-5\",attrs:{\"type\":\"log-in\",\"size\":\"14\"}}),_vm._v(\"Нэвтрэх\")],1)]):_c('div',{staticClass:\"navbar-right\"},[_c('router-link',{staticClass:\"btn btn-primary text-white d-flex\",attrs:{\"to\":{ name: 'login' }}},[_c('feather',{staticClass:\"mg-r-5\",attrs:{\"type\":\"log-in\",\"size\":\"14\"}}),_vm._v(\"Нэвтрэх\")],1)],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"container pd-0-f\">\n    <header id=\"header\" class=\"navbar navbar-header\">\n      <a  id=\"mainMenuOpen\" class=\"burger-menu \" @click=\"mainMenuOpen\">\n        <feather type=\"menu\"></feather>\n        <div class=\"df-logo d-flex align-items-center\">\n          <img\n            :src=\"`${myResBaseUrl}${$store.state.app.activeGroup.logo}`\"\n            alt\n            class=\"mg-l-10\"\n            style=\"max-width: 40px\"\n          />\n          <span class=\"mg-l-5 \">{{\n            $store.state.app.activeGroup.name | stripHtml\n          }}</span>\n        </div>\n      </a>\n\n      <div class=\"navbar-menu-wrapper\">\n        <div v-if=\"$store.state.app.isMobile\" class=\"navbar-menu-header\">\n          <router-link\n            :to=\"{\n              name: $store.state.app.activeGroup.publicPage.route,\n              params: { id: $store.state.app.homePageId, cid: 0 }\n            }\"\n            class=\"mg-r-10 df-logo\"\n          >\n            <img\n              :src=\"`${myResBaseUrl}${$store.state.app.activeGroup.logo}`\"\n              alt\n              class\n              style=\"max-width: 40px\"\n            />\n            <span class=\"mg-l-5\">{{\n              $store.state.app.activeGroup.name | stripHtml\n            }}</span>\n          </router-link>\n          <!-- <h1 style=\"font-size: 1.1rem\" class=\"d-none d-xl-block\">\n            <router-link\n              :to=\"({name: $store.state.app.activeGroup.publicPage.route, params: {id: $store.state.app.homePageId, cid: 0 } })\"\n              v-html=\"$store.state.app.activeGroup.name\"\n              class=\"df-logo logo tx-16\"\n              style=\"line-height: 1.1\"\n            ></router-link>\n          </h1>-->\n        </div>\n        <div v-else class=\"navbar-brand\">\n          <router-link\n            :to=\"{\n              name: $store.state.app.activeGroup.publicPage.route,\n              params: { id: $store.state.app.homePageId, cid: 0 }\n            }\"\n            class=\"mg-r-10\"\n          >\n            <img\n              :src=\"`${myResBaseUrl}${$store.state.app.activeGroup.logo}`\"\n              alt\n              class=\"df-logo\"\n              style=\"max-width: 40px\"\n            />\n          </router-link>\n          <h1 style=\"font-size: 1.1rem\" class=\"d-none d-xl-block\">\n            <router-link\n              :to=\"{\n                name: $store.state.app.activeGroup.publicPage.route,\n                params: { id: $store.state.app.homePageId, cid: 0 }\n              }\"\n              v-html=\"$store.state.app.activeGroup.name\"\n              :class=\"`df-logo logo ${$store.state.app.activeGroup.id==9298?'tx-22-f':'tx-16'}`\"\n              style=\"line-height: 1.1\"\n            ></router-link>\n          </h1>\n        </div>\n\n        <ul\n          id=\"navbarMenu\"\n          class=\"nav navbar-menu order-2 pd-l-30\"\n          style=\"max-width:1080px\"\n        >\n          <li class=\"nav-label pd-l-20 pd-lg-l-25 d-lg-none\">Үндсэн цэс</li>\n          <li\n            class=\"nav-item\"\n            v-for=\"(p, i) in pages\"\n            :key=\"i\"\n            :class=\"{ 'with-sub': getSub(p).length, show: activeId == p.id }\"\n          >\n            <a\n              v-if=\"getSub(p).length\"\n              @click=\"activeId = p.id\"\n              role=\"button\"\n              class=\"nav-link\"\n              :class=\"{ active: p.id == $route.params.id }\"\n              >{{ p.task }}</a\n            >\n\n            <router-link\n              v-else-if=\"p.st1=='special'\"\n              :to=\"{\n                name: $store.state.app.activeGroup.publicPage.route,\n                params: { id: p.id, cid: 0 }\n              }\"\n              class=\"nav-link \" style=\"color: white !important; background: #007a3e; border-radius: 3px; padding: 3px 5px;\"\n              :class=\"{ active: p.id == $route.params.id }\"\n              >{{ p.task }}</router-link\n            >\n            <router-link\n              v-else\n              :to=\"{\n                name: $store.state.app.activeGroup.publicPage.route,\n                params: { id: p.id, cid: 0 }\n              }\"\n              class=\"nav-link\"\n              :class=\"{ active: p.id == $route.params.id }\"\n              >{{ p.task }}</router-link\n            >\n\n            <ul v-if=\"getSub(p).length\" class=\"navbar-menu-sub\">\n              <li class=\"nav-sub-item\" v-for=\"(s, i) in getSub(p)\" :key=\"i\">\n                <a\n                  v-if=\"s.locTypeCode == 'link'\"\n                  class=\"nav-sub-link\"\n                  :href=\"s.taskEn\"\n                  target=\"_blank\"\n                >\n                  <feather type=\"chevron-right\"></feather>\n                  {{ s.task }}\n                </a>\n                <router-link\n                  v-else\n                  class=\"nav-sub-link\"\n                  :to=\"{\n                    name: $store.state.app.activeGroup.publicPage.route,\n                    params: { id: s.id, cid: 0 }\n                  }\"\n                >\n                  <feather type=\"chevron-right\"></feather>\n                  {{ s.task }}\n                </router-link>\n              </li>\n            </ul>\n          </li>\n        </ul>\n\n        <div v-if=\"$store.state.app.isMobile\" class=\"mg-x-10\">\n          <router-link\n            :to=\"{ name: 'login' }\"\n            class=\"btn btn-outline-primary btn-block d-flex justify-content-center\"\n            type=\"button\"\n          >\n            <feather type=\"log-in\" class=\"mg-r-5\" size=\"14\"></feather>Нэвтрэх\n          </router-link>\n        </div>\n\n        <div\n          v-else-if=\"$store.state.app.activeGroup.id == 9229\"\n          class=\"navbar-right\"\n        >\n          <a\n            href=\"https://open.mnuac.edu.mn\"\n            target=\"_blank\"\n            class=\"btn btn-primary text-white d-flex\"\n            ><feather type=\"log-in\" class=\"mg-r-5\" size=\"14\"></feather\n            >Нэвтрэх</a\n          >\n        </div>\n        <div v-else class=\"navbar-right\">\n          <router-link\n            :to=\"{ name: 'login' }\"\n            class=\"btn btn-primary text-white d-flex\"\n            ><feather type=\"log-in\" class=\"mg-r-5\" size=\"14\"></feather\n            >Нэвтрэх</router-link\n          >\n        </div>\n      </div>\n    </header>\n  </div>\n</template>\n\n<script>\n// import { request } from \"@/api/all\";\nimport { mapActions } from \"vuex\";\nvar _ = require(\"lodash\");\n\nexport default {\n  data() {\n    return {\n      pages: [],\n      activeId: null,\n      myResBaseUrl: \"https://res.gosmart.mn/\"\n    };\n  },\n  created() {\n    if (\n      this.$store.state.app.activeGroup.resBaseUrl != undefined &&\n      this.$store.state.app.activeGroup.resBaseUrl != \"\"\n    ) {\n      this.myResBaseUrl = this.$store.state.app.activeGroup.resBaseUrl;\n    }\n  },\n  mounted() {\n    this.init();\n  },\n  methods: {\n    ...mapActions([\"handleResponsiveLayoutConfig\"]),\n    mainMenuOpen() {\n      let _obj = this.$store.state.app.responsiveLayout;\n      _obj.navbarNavShow = true;\n      _obj.backdrop.show = true;\n      _obj.backdrop.onCloseEvent = 1;\n      _obj.backdrop.removeClassName = \"navbar-nav-show\";\n      this.handleResponsiveLayoutConfig(_obj).then(() => {\n        this.toggleBodyClass(\"addClass\", \"navbar-nav-show\");\n      });\n    },\n    toggleBodyClass(addRemoveClass, className) {\n      const el = document.body;\n\n      if (addRemoveClass === \"addClass\") {\n        el.classList.add(className);\n      } else {\n        el.classList.remove(className);\n      }\n    },\n    init() {\n      this.pages = _.sortBy(\n        this.$store.state.app.pages.filter(\n          x => x.i2 == 1 && x.i1 == 0 && x.parentId == 0\n        ),\n        \"ord\",\n        \"asc\"\n      );\n      // request({\n      //     api: { method: \"POST\", url: \"TaskCore/GetCoreList\" },\n      //     data: {\n      //         skip: 0,\n      //         size: 100,\n      //         ot: 356,\n      //         model:{\n      //             isPublic:true\n      //         }\n      //     },\n      //     store: this.$store\n      // }).then(res => {\n      //     if(res!=false){\n      //         this.pages= _.sortBy(res.data.tasks.filter(x => x.i2 == 1 && x.i1 == 0 && x.parentId == 0), \"ord\", \"asc\" );\n      //         let _home= res.data.tasks.filter(x=>x.st1=='home');\n      //         if(_home.length>0){\n      //             this.$emit('load-components', _home[0].id);\n      //         }\n      //     }\n      // });\n    },\n    getSub(p) {\n      let pages = _.sortBy(\n        this.$store.state.app.pages.filter(\n          x => x.i2 == 1 && x.i1 == 0 && x.parentId == p.id\n        ),\n        \"ord\",\n        \"asc\"\n      );\n      return pages;\n    }\n  },\n  watch: {\n    \"$root.$route\"() {\n      //console.log(newRoute);\n      this.activeId = null;\n    }\n  }\n};\n</script>\n\n<style></style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./header.vue?vue&type=template&id=207383fa\"\nimport script from \"./header.vue?vue&type=script&lang=js\"\nexport * from \"./header.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}