(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["components-public-Header-vue"],{be9e:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"site-header"},[n("b-navbar",{attrs:{toggleable:"lg"}},[n("b-container",{staticClass:"p-0"},[n("b-navbar-brand",[n("router-link",{attrs:{to:"/"}},[t._v("WGAW Candidate Site")])],1),n("b-navbar-toggle",{attrs:{target:"nav-collapse"}}),n("b-collapse",{attrs:{id:"nav-collapse","is-nav":""}},[n("b-navbar-nav",{staticClass:"ml-auto"},[t.showStatements?n("b-nav-item",{attrs:{href:"#tpl-statement"}},[t._v("statement ")]):t._e(),t.showEndorsements?n("b-nav-item",{attrs:{href:"#tpl-endorsements"}},[t._v(t._s(t.endorsementsText))]):t._e(),t.showEvents?n("b-nav-item",{attrs:{href:"#tpl-events"}},[t._v("events")]):t._e(),n("b-nav-item",{attrs:{href:"#tpl-contact"}},[t._v("contact")])],1)],1)],1)],1)],1)},a=[],r=n("b85c"),o={data:function(){return{title:"Header"}},mounted:function(){this.scrollTo()},computed:{showAbout:function(){return this.$store.getters["candidates/showAboutMenuItem"]},showStatements:function(){return this.$store.getters["candidates/showStatementMenuItem"]},showEvents:function(){return this.$store.getters["candidates/showEventsMenuItem"]},showEndorsements:function(){return this.$store.getters["candidates/showEndorsementMenuItem"]},candidate:function(){return this.$store.getters["candidates/candidate"]},endorsementsText:function(){return this.candidate.endorsementStatements.length>0?"endorsements":this.candidate.isPetition?"sign petition":"endorsements"}},methods:{scrollTo:function(){var t,e=document.querySelectorAll(".nav-link"),n=Object(r["a"])(e);try{for(n.s();!(t=n.n()).done;){var s=t.value;s.addEventListener("click",a)}}catch(o){n.e(o)}finally{n.f()}function a(t){t.preventDefault();var e=this.getAttribute("href"),n=document.querySelector(e).offsetTop-100;scroll({top:n,behavior:"smooth"})}}}},i=o,c=n("2877"),d=Object(c["a"])(i,s,a,!1,null,"3693c16e",null);e["default"]=d.exports}}]);
//# sourceMappingURL=components-public-Header-vue.9fae741d.js.map