(window.webpackJsonp=window.webpackJsonp||[]).push([[310,311],{1330:function(t,e,o){"use strict";o.r(e);var l={props:{data:{type:Object,required:!0}},computed:{date:{get:function(){return this.data},set:function(data){this.$emit("update:data",data)}}},methods:{cancelCalendarioModal:function(){this.$bvModal.hide("editCalendarioModal")}}},n=o(42),component=Object(n.a)(l,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("b-modal",{attrs:{id:"editCalendarioModal",size:"sm",scrollable:"",centered:"","hide-header-close":"","hide-footer":""},scopedSlots:t._u([{key:"modal-header",fn:function(){return[o("div",{staticClass:"d-flex"},[o("fa-icon",{staticStyle:{"font-size":"1.3rem","margin-top":"15px"},attrs:{icon:"tools"}}),t._v(" "),o("h4",{staticClass:"ml-3 mt-3"},[t._v("Calendario")])],1)]},proxy:!0}])},[t._v(" "),o("b-form",{staticClass:"px-4"},[o("b-row",{staticClass:"mt-2"},[o("b-form-group",{attrs:{label:"Data"}},[o("b-form-input",{attrs:{disabled:"",value:t.date.value.toLocaleDateString()}})],1)],1),t._v(" "),o("b-row",{staticClass:"mt-2"},[o("b-form-group",[o("b-form-checkbox",{attrs:{switch:""},model:{value:t.date.diaUtil,callback:function(e){t.$set(t.date,"diaUtil",e)},expression:"date.diaUtil"}},[t._v("\n          Dia util\n        ")])],1)],1),t._v(" "),o("b-row",{staticClass:"mt-2"},[o("b-form-group",[o("b-form-checkbox",{attrs:{switch:""},model:{value:t.date.feriado,callback:function(e){t.$set(t.date,"feriado",e)},expression:"date.feriado"}},[t._v("\n          Feriado\n        ")])],1)],1),t._v(" "),o("b-row",[o("b-btn",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"primary",type:"submit"}},[o("fa-icon",{attrs:{icon:"save"}}),t._v(" "),o("span",{staticClass:"ml-1"},[t._v("Salvar")])],1),t._v(" "),o("b-btn",{staticClass:"my-2 ml-2 rounded",attrs:{size:"sm",variant:"outline-secondary"},on:{click:t.cancelCalendarioModal}},[o("fa-icon",{attrs:{icon:"times"}}),t._v(" "),o("span",{staticClass:"ml-1"},[t._v("Cancelar")])],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports},1884:function(t,e,o){"use strict";o.r(e);o(1182);var main=o(1151),l=o(1163),n=o(1164),d=o(1139),r=o.n(d),c={components:{EditCalendarioModal:o(1330).default,FullCalendar:main.a},data:function(){return{calendarOptions:{plugins:[l.a,n.a],initialView:"dayGridMonth",dateClick:this.handleDateClick,locale:r.a},date:{value:new Date,diaUtil:!1,feriado:!1}}},methods:{handleDateClick:function(t){this.date.diaUtil=0!==t.date.getDay()&&6!==t.date.getDay(),console.log(t.date),this.$bvModal.show("editCalendarioModal")}}},m=o(42),component=Object(m.a)(c,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("b-card",{attrs:{title:"Calendário"}},[o("EditCalendarioModal",{attrs:{data:t.date},on:{"update:data":function(e){t.date=e}}}),t._v(" "),o("b-row",[o("b-col",{attrs:{cols:"8"}},[o("FullCalendar",{attrs:{options:t.calendarOptions}})],1),t._v(" "),o("b-col",[o("b-card",{attrs:{title:"Feriados"}},[o("b-list-group",[o("b-list-group-item",[t._v("Não há feriados no mês selecionado.")])],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=ec9bc32-1.2.11.js.map