text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68174dd3"],{"6ff1":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fill-height"},[n("app-bar",{attrs:{title:"Palavra do presidente"},scopedSlots:t._u([{key:"append",fn:function(){return[n("v-btn",{attrs:{icon:"",to:"/",replace:""}},[n("v-icon",[t._v("mdi-arrow-left")])],1)]},proxy:!0}])}),n("async-container",{attrs:{loading:!t.loaded}},[n("v-card",{staticClass:"mx-auto mb-7",attrs:{"max-width":"680",dark:t.$store.state.dark}},[n("v-card-text",[n("div",{staticClass:"text-center"},[t.foto?n("v-avatar",{staticClass:"elevation-2 mb-1",attrs:{size:"7rem"}},[n("img",{attrs:{src:t.foto,alt:""}})]):t._e(),n("p",{staticClass:"title mb-0",staticStyle:{"line-height":"1rem"}},[t._v(t._s(t.nome))]),n("p",{staticClass:"blue--text subtitle-2 mb-0"},[t._v("Presidente do COFECI")])],1),n("p",{staticClass:"text-justify mb-0",staticStyle:{"white-space":"pre-line"}},[t._v(t._s(t.texto))]),n("p",[t._v("O futuro chegou. Venha conosco!")])])],1)],1)],1)},r=[],i=n("1da1"),o=(n("96cf"),n("83c8")),s=n("c762"),l=n("ae5b"),c=n("dd38"),d={name:"PalavraPresidenteCofeci",components:{AppBar:c["a"],AsyncContainer:l["a"]},data:function(){return{loaded:!1,texto:"",nome:"",foto:null}},methods:{loadData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,a,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,n=new o["a"](!0),e.next=4,n.getPresidente(0);case 4:return a=e.sent,t.texto=a.texto,t.nome=a.nome,e.next=9,n.getPresidenteFoto(0);case 9:return r=e.sent,e.next=12,s["a"].blobToDataURI_async(r);case 12:t.foto=e.sent,e.next=28;break;case 15:if(e.prev=15,e.t0=e["catch"](0),console.log(e.t0),i=localStorage.getItem("presidentecofeci"),!i){e.next=26;break}i=JSON.parse(i),t.texto=i.texto,t.nome=i.nome,t.foto=i.foto,e.next=28;break;case 26:return e.next=28,t.$router.push("/");case 28:return e.prev=28,t.loaded=!0,e.finish(28);case 31:case"end":return e.stop()}}),e,null,[[0,15,28,31]])})))()}},created:function(){this.loadData()},beforeDestroy:function(){this.loaded&&localStorage.setItem("presidentecofeci",JSON.stringify({texto:this.texto,nome:this.nome,foto:this.foto,uf:this.uf}))}},u=d,f=n("2877"),p=Object(f["a"])(u,a,r,!1,null,null,null);e["default"]=p.exports},ae5b:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-container",{staticClass:"d-flex flex-column",staticStyle:{"min-height":"100%"},attrs:{fluid:t.fluid}},[n("transition",{attrs:{mode:"out-in",name:t.loading?t.transition:t.spinnerTransition,appear:t.appear,"leave-class":t.loading?t.transition+"-leave":t.spinnerTransition+"-leave","leave-to-class":t.loading?t.transition+"-leave-to":t.spinnerTransition+"-leave-to","leave-active-class":t.loading?t.transition+"-leave-active":t.spinnerTransition+"-leave-active","enter-class":t.loading?t.spinnerTransition+"-enter":t.transition+"-enter","enter-to-class":t.loading?t.spinnerTransition+"-enter-to":t.transition+"-enter-to","enter-active-class":t.loading?t.spinnerTransition+"-enter-active":t.transition+"-enter-active"},on:{"after-leave":function(e){return t.$emit("after-leave",t.loading)},"after-enter":function(e){return t.$emit("after-enter",t.loading)}}},[t.loading?n("div",{key:0,staticClass:"d-flex flex-column justify-center align-center grow",staticStyle:{height:"100%"}},[n("v-progress-circular",{attrs:{indeterminate:"",color:t.color}}),t.text?n("p",{staticClass:"mb-0 mt-2 grey--text text--darken-1"},[t._v(t._s(t.text))]):t._e()],1):n("div",{key:1},[t._t("default")],2)])],1)},r=[],i={name:"AsyncContainer",props:{loading:{type:Boolean,default:!1},color:{type:String,default:"blue"},transition:{type:String,default:"scroll-x-transition"},spinnerTransition:{type:String,default:"fade-transition"},fluid:{type:Boolean,default:!1},appear:{type:Boolean,default:!0},text:{type:String,default:""}}},o=i,s=n("2877"),l=Object(s["a"])(o,a,r,!1,null,null,null);e["a"]=l.exports}}]);
  //# sourceMappingURL=chunk-68174dd3.c2cd4d6b.js.map