(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{578:function(a,b,c){"use strict";function d(a,b,c,d,e,f,g,h){var i="function"==typeof a?a.options:a;b&&(i.render=b,i.staticRenderFns=c,i._compiled=!0),d&&(i.functional=!0),f&&(i._scopeId="data-v-"+f);var j;if(g?(j=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,a||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),e&&e.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(g)},i._ssrRegister=j):e&&(j=h?function(){e.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:e),j)if(i.functional){i._injectStyles=j;var k=i.render;i.render=function(a,b){return j.call(b),k(a,b)}}else{var l=i.beforeCreate;i.beforeCreate=l?[].concat(l,j):[j]}return{exports:a,options:i}}c.d(b,"a",function(){return d})},758:function(a,b,c){"use strict";function d(a,b){return j(a)||h(a,b)||f(a,b)||e()}function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(a,b){if(a){if("string"==typeof a)return g(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?g(a,b):void 0}}function g(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function h(a,b){var c=null==a?null:"undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null!=c){var d,e,f,g,h=[],i=!0,j=!1;try{if(f=(c=c.call(a)).next,0===b){if(Object(c)!==c)return;i=!1}else for(;!(i=(d=f.call(c)).done)&&(h.push(d.value),h.length!==b);i=!0);}catch(a){j=!0,e=a}finally{try{if(!i&&null!=c.return&&(g=c.return(),Object(g)!==g))return}finally{if(j)throw e}}return h}}function j(a){if(Array.isArray(a))return a}c.r(b);var i=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("base-card",{staticClass:"padding-medium"},[a.hasOrderSchedule?[c("span",{staticClass:"top-margin-medium text-dark-opacity text-medium text-bold text-break-word"},[a._v("Agendamento")]),a._v(" "),c("div",{staticClass:"width-fit background-success padding-x-small rounded-large top-margin-x-small"},[c("span",{staticClass:"text-success text-bold text-x-small"},[a._v(a._s(a.status))])]),a._v(" "),c("div",{staticClass:"flex start-xs gap-4 vertical-margin-medium"},a._l(a.formatedData(a.schedule),function(b,d){return c("div",{key:d},[c("div",{staticClass:"flex-col"},[c("p",{staticClass:"text-dark-opacity text-x-small text-bold"},[a._v(a._s(b.title))]),a._v(" "),c("p",{staticClass:"text-dark-opacity text-small"},[a._v(a._s(b.info))])])])}),0),a._v(" "),a._t("default")]:[c("div",{staticClass:"flex start-xs middle-xs gap-1 bottom-margin-medium"},[c("i",{staticClass:"fas fa-exclamation-triangle text-warning"}),a._v(" "),c("span",{staticClass:"text-warning text-medium text-bold "},[a._v("Aten\xE7\xE3o")])]),a._v(" "),c("p",{staticClass:"bottom-margin-medium text-dark-opacity text-small"},[a._v("Este pedido n\xE3o cont\xE9m agendamento. Consulte os\n      hor\xE1rios dispon\xEDveis pelo bot\xE3o abaixo")]),a._v(" "),a._t("default")]],2)};i._withStripped=!0;var k={name:"ScheduleCustomer",props:{hasOrderSchedule:{type:Boolean,default:!1},schedule:{type:Array,default:[]}},components:{BaseCard:function(){return c.e(4).then(c.bind(null,101))},BaseButton:function(){return c.e(0).then(c.bind(null,117))}},computed:{status:function(){return 1==this.schedule[0].status?"Confirmado":"Cancelado"}},methods:{formatedData:function(a){var b=[{title:"Data fim",info:this.convertDates(a[0].date)},{title:"Hor\xE1rio inicial",info:this.convertTime(a[0].time)},{title:"Tipo da reuni\xE3o",info:a[0].type}];return b},convertTime:function(a){var b=a.split(":"),c=d(b,3),e=c[0],f=c[1],g=c[2],h="".concat(e,":").concat(f);return h},convertDates:function(a){if(-1!=a.indexOf("/"))return a;var b=a.split("-").reverse(),c=d(b,3),e=c[0],f=c[1],g=c[2],h="".concat(e,"/").concat(f,"/").concat(g);return h}}},l=c(578),m=Object(l.a)(k,i,[],!1,null,null,null),n=b["default"]=m.exports}}]);