(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["analise-venda~editar-venda~produtos"],{"0798":function(e,t,n){"use strict";n("0c18");var r=n("10d2"),a=n("afdd"),o=n("9d26"),i=n("f2e7"),s=n("7560"),c=n("f40d"),l=n("58df"),u=n("d9bd");t["a"]=Object(l["a"])(r["a"],i["a"],c["a"]).extend({name:"v-alert",props:{border:{type:String,validator(e){return["top","right","bottom","left"].includes(e)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator(e){return"string"===typeof e||!1===e}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator(e){return["info","error","success","warning"].includes(e)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder(){if(!this.border)return null;let e={staticClass:"v-alert__border",class:{["v-alert__border--"+this.border]:!0}};return this.coloredBorder&&(e=this.setBackgroundColor(this.computedColor,e),e.class["v-alert__border--has-color"]=!0),this.$createElement("div",e)},__cachedDismissible(){if(!this.dismissible)return null;const e=this.iconColor;return this.$createElement(a["a"],{staticClass:"v-alert__dismissible",props:{color:e,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:()=>this.isActive=!1}},[this.$createElement(o["a"],{props:{color:e}},this.closeIcon)])},__cachedIcon(){return this.computedIcon?this.$createElement(o["a"],{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes(){const e={...r["a"].options.computed.classes.call(this),"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text};return this.border&&(e["v-alert--border-"+this.border]=!0),e},computedColor(){return this.color||this.type},computedIcon(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$"+this.type)},hasColoredIcon(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText(){return this.text||this.outlined},iconColor(){return this.hasColoredIcon?this.computedColor:void 0},isDark(){return!(!this.type||this.coloredBorder||this.outlined)||s["a"].options.computed.isDark.call(this)}},created(){this.$attrs.hasOwnProperty("outline")&&Object(u["a"])("outline","outlined",this)},methods:{genWrapper(){const e=[this.$slots.prepend||this.__cachedIcon,this.genContent(),this.__cachedBorder,this.$slots.append,this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],t={staticClass:"v-alert__wrapper"};return this.$createElement("div",t,e)},genContent(){return this.$createElement("div",{staticClass:"v-alert__content"},this.$slots.default)},genAlert(){let e={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){const t=this.hasText?this.setTextColor:this.setBackgroundColor;e=t(this.computedColor,e)}return this.$createElement("div",e,[this.genWrapper()])},toggle(){this.isActive=!this.isActive}},render(e){const t=this.genAlert();return this.transition?e("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[t]):t}})},"0c18":function(e,t,n){},"0db3":function(e,t,n){},"169a9":function(e,t,n){"use strict";n("368e");var r=n("480e"),a=n("4ad4"),o=n("b848"),i=n("75eb"),s=n("e707"),c=n("e4d3"),l=n("21be"),u=n("a293"),d=n("58df"),h=n("d9bd"),m=n("80d2");const p=Object(d["a"])(o["a"],i["a"],s["a"],c["a"],l["a"],a["a"]);t["a"]=p.extend({name:"v-dialog",directives:{ClickOutside:u["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[("v-dialog "+this.contentClass).trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive(e){var t;e?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null===(t=this.previousActiveElement)||void 0===t||t.focus())},fullscreen(e){this.isActive&&(e?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&Object(h["e"])("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(e){const t=e.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(t)||this.overlay&&t&&!this.overlay.$el.contains(t))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):s["a"].options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var e,t;(null===(e=this.$refs.dialog)||void 0===e?void 0:e.contains(document.activeElement))||(this.previousActiveElement=document.activeElement,null===(t=this.$refs.dialog)||void 0===t||t.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(e){this.$emit("click:outside",e),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(e){if(e.keyCode===m["y"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;const e=this.getActivator();this.$nextTick(()=>e&&e.focus())}this.$emit("keydown",e)},onFocusin(e){if(!e||!this.retainFocus)return;const t=e.target;if(t&&this.$refs.dialog&&![document,this.$refs.dialog].includes(t)&&!this.$refs.dialog.contains(t)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(e=>e.contains(t))){const e=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),t=[...e].find(e=>!e.hasAttribute("disabled")&&!e.matches('[tabindex="-1"]'));t&&t.focus()}},genContent(){return this.showLazyContent(()=>[this.$createElement(r["a"],{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:{role:"dialog","aria-modal":this.hideOverlay?void 0:"true",...this.getScopeIdAttrs()},on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){const e=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[e]):e},genInnerContent(){const e={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(e.style={...e.style,maxWidth:Object(m["h"])(this.maxWidth),width:Object(m["h"])(this.width)}),this.$createElement("div",e,this.getContentSlot())}},render(e){return e("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}})},"197d":function(e,t,n){"use strict";var r=n("5a0c"),a=n.n(r),o=n("e418"),i=n.n(o);a.a.extend(i.a),t["a"]={methods:{validaDebitosPorCpf:function(){var e=this,t=this.cpf.replace(/[^0-9]/g,"");11==t.length&&(this.cpfLoading=!0,this.$axios("/cliente/verificar-debito/cpf/".concat(t)).then((function(t){0===t.data.boletosVencidos?e.cpfEmDebito=!1:e.cpfEmDebito=!0,e.cpfLoading=!1})))}},data:function(){return{rules:{nascimento:function(){return!0},nascimento18:function(e){return a()(e).isBetween(a()(new Date).subtract(18,"year"),a()("1930-01-01","year"))||"Idade Inválida"},required:function(e){return!!e||"Campo Obrigatório."},max:function(e){return e.length<=40||"Max 40 caracteres"},password:function(e){return e.length<=15||"Max 15 caracteres"},min:function(e){return e.length>=5||"Min 5 caracteres"},rg:function(e){return 12==e.length||"RG incompleto"},cpfLength:function(e){return 14==e.length||"CPF incompleto"},celular:function(e){var t=/^\([1-9]{2}\) (?:[2-8]|9[1-9])[0-9]{3}-[0-9]{4}$/;return t.test(e)},word:function(e){var t=/[0-9]/,n=/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/;return!t.test(e)&&!n.test(e)||"Este campo deve conter apenas Letras"},email:function(e){var t=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)||"e-mail Inválido."},cpf:function(e){function t(e){if(e){var t=e.replace(/[^0-9]/g,""),n=10*t[0]+9*t[1]+8*t[2]+7*t[3]+6*t[4]+5*t[5]+4*t[6]+3*t[7]+2*t[8],r=10*n%11;10==r&&(r=0);var a=11*t[0]+10*t[1]+9*t[2]+8*t[3]+7*t[4]+6*t[5]+5*t[6]+4*t[7]+3*t[8]+2*r,o=10*a%11;return 10==o&&(o=0),t[9]==r&&t[10]==o}return!1}return t(e)||"CPF Inválido"}}}}}},2677:function(e,t,n){"use strict";var r=n("8654");t["a"]=r["a"]},"2c64":function(e,t,n){},"368e":function(e,t,n){},"3d86":function(e,t,n){},"43a6":function(e,t,n){"use strict";n("ec29"),n("3d86");var r=n("c37a"),a=n("604c"),o=n("58df");const i=Object(o["a"])(a["a"],r["a"]);t["a"]=i.extend({name:"v-radio-group",provide(){return{radioGroup:this}},props:{column:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},name:String,row:Boolean,value:null},computed:{classes(){return{...r["a"].options.computed.classes.call(this),"v-input--selection-controls v-input--radio-group":!0,"v-input--radio-group--column":this.column&&!this.row,"v-input--radio-group--row":this.row}}},methods:{genDefaultSlot(){return this.$createElement("div",{staticClass:"v-input--radio-group__input",attrs:{id:this.id,role:"radiogroup","aria-labelledby":this.computedId}},r["a"].options.methods.genDefaultSlot.call(this))},genInputSlot(){const e=r["a"].options.methods.genInputSlot.call(this);return delete e.data.on.click,e},genLabel(){const e=r["a"].options.methods.genLabel.call(this);return e?(e.data.attrs.id=this.computedId,delete e.data.attrs.for,e.tag="legend",e):null},onClick:a["a"].options.methods.onClick},render(e){const t=r["a"].options.render.call(this,e);return this._b(t.data,"div",this.attrs$),t}})},"4ba9":function(e,t,n){"use strict";var r=n("b0af"),a=n("99d9"),o=n("62ad"),i=n("0fd9"),s=n("8654"),c=function(){var e=this,t=e._self._c;return t(r["a"],{staticClass:"mt-4"},[t(a["c"],[e._v("Contatos")]),t(a["b"],[t(s["a"],{staticClass:"q-mt-md",attrs:{label:"e-mail",type:"email",outlined:"",dense:"",rules:[e.rules.required,e.rules.email]},model:{value:e.contacts.email,callback:function(t){e.$set(e.contacts,"email",t)},expression:"contacts.email"}}),t(i["a"],[t(o["a"],[t(s["a"],{directives:[{name:"mask",rawName:"v-mask",value:"(##) # ####-####",expression:"'(##) # ####-####'"}],staticClass:"q-mt-md",attrs:{label:"celular",type:"tel",outlined:"",dense:"",rules:[e.rules.required]},model:{value:e.contacts.celular,callback:function(t){e.$set(e.contacts,"celular",t)},expression:"contacts.celular"}})],1),t(o["a"],[t(s["a"],{directives:[{name:"mask",rawName:"v-mask",value:"(##) # ####-####",expression:"'(##) # ####-####'"}],staticClass:"q-mt-md",attrs:{label:"whatsapp",type:"tel",outlined:"",dense:""},model:{value:e.contacts.whatsapp,callback:function(t){e.$set(e.contacts,"whatsapp",t)},expression:"contacts.whatsapp"}})],1)],1),t(s["a"],{directives:[{name:"mask",rawName:"v-mask",value:"(##) ####-####",expression:"'(##) ####-####'"}],staticClass:"q-mt-md",attrs:{label:"telefone fixo",type:"tel",outlined:"",dense:""},model:{value:e.contacts.telefone,callback:function(t){e.$set(e.contacts,"telefone",t)},expression:"contacts.telefone"}}),t(i["a"],[t(o["a"],[t(s["a"],{directives:[{name:"mask",rawName:"v-mask",value:"(##) # ####-####",expression:"'(##) # ####-####'"}],staticClass:"q-mt-md",attrs:{label:"Segundo Celular",type:"tel",outlined:"",dense:""},model:{value:e.contacts.celular_2,callback:function(t){e.$set(e.contacts,"celular_2",t)},expression:"contacts.celular_2"}})],1),t(o["a"],[t(s["a"],{staticClass:"q-mt-md",attrs:{label:"Dono do Segundo Celular",outlined:"",dense:""},model:{value:e.contacts.dono_celular_2,callback:function(t){e.$set(e.contacts,"dono_celular_2",t)},expression:"contacts.dono_celular_2"}})],1)],1)],1)],1)},l=[],u=n("197d"),d={name:"contactsForm",mixins:[u["a"]],computed:{contacts:{get:function(){return this.value},set:function(e){this.$emit("change",e)}}},watch:{isCelphoneWhatsapp:function(e){this.contacts.whatsapp=e?this.contacts.celular:""},"contacts.celular":function(){this.isCelphoneWhatsapp&&(this.contacts.whatsapp=this.contacts.celular)}},data:function(){return{isCelphoneWhatsapp:!1,rules:{required:function(e){return!!e||"Campo obrigatório."},email:function(e){return/.+@.+\..+/.test(e)||"E-mail must be valid"}}}},props:{value:Object}},h=d,m=n("2877"),p=Object(m["a"])(h,c,l,!1,null,null,null);t["a"]=p.exports},"4bd4":function(e,t,n){"use strict";var r=n("58df"),a=n("7e2b"),o=n("3206");t["a"]=Object(r["a"])(a["a"],Object(o["b"])("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(e){const t=Object.values(e).includes(!0);this.$emit("input",!t)},deep:!0,immediate:!0}},methods:{watchInput(e){const t=e=>e.$watch("hasError",t=>{this.$set(this.errorBag,e._uid,t)},{immediate:!0}),n={_uid:e._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?n.shouldValidate=e.$watch("shouldValidate",r=>{r&&(this.errorBag.hasOwnProperty(e._uid)||(n.valid=t(e)))}):n.valid=t(e),n},validate(){return 0===this.inputs.filter(e=>!e.validate(!0)).length},reset(){this.inputs.forEach(e=>e.reset()),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout(()=>{this.errorBag={}},0)},resetValidation(){this.inputs.forEach(e=>e.resetValidation()),this.resetErrorBag()},register(e){this.inputs.push(e),this.watchers.push(this.watchInput(e))},unregister(e){const t=this.inputs.find(t=>t._uid===e._uid);if(!t)return;const n=this.watchers.find(e=>e._uid===t._uid);n&&(n.valid(),n.shouldValidate()),this.watchers=this.watchers.filter(e=>e._uid!==t._uid),this.inputs=this.inputs.filter(e=>e._uid!==t._uid),this.$delete(this.errorBag,t._uid)}},render(e){return e("form",{staticClass:"v-form",attrs:{novalidate:!0,...this.attrs$},on:{submit:e=>this.$emit("submit",e)}},this.$slots.default)}})},5311:function(e,t,n){"use strict";var r=n("5607"),a=n("2b0e");t["a"]=a["default"].extend({name:"rippleable",directives:{ripple:r["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(e={}){return this.ripple?(e.staticClass="v-input--selection-controls__ripple",e.directives=e.directives||[],e.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",e)):null}}})},5803:function(e,t,n){},"67b6":function(e,t,n){"use strict";n("2c64");var r=n("ba87"),a=n("9d26"),o=n("c37a"),i=n("7e2b"),s=n("a9ad"),c=n("4e82"),l=n("5311"),u=n("7560"),d=n("fe09"),h=n("80d2"),m=n("58df"),p=n("d9f7");const f=Object(m["a"])(i["a"],s["a"],l["a"],Object(c["a"])("radioGroup"),u["a"]);t["a"]=f.extend().extend({name:"v-radio",inheritAttrs:!1,props:{disabled:Boolean,id:String,label:String,name:String,offIcon:{type:String,default:"$radioOff"},onIcon:{type:String,default:"$radioOn"},readonly:Boolean,value:{default:null}},data:()=>({isFocused:!1}),computed:{classes(){return{"v-radio--is-disabled":this.isDisabled,"v-radio--is-focused":this.isFocused,...this.themeClasses,...this.groupClasses}},computedColor(){if(!this.isDisabled)return d["a"].options.computed.computedColor.call(this)},computedIcon(){return this.isActive?this.onIcon:this.offIcon},computedId(){return o["a"].options.computed.computedId.call(this)},hasLabel:o["a"].options.computed.hasLabel,hasState(){return(this.radioGroup||{}).hasState},isDisabled(){return this.disabled||!!this.radioGroup&&this.radioGroup.isDisabled},isReadonly(){return this.readonly||!!this.radioGroup&&this.radioGroup.isReadonly},computedName(){return this.name||!this.radioGroup?this.name:this.radioGroup.name||"radio-"+this.radioGroup._uid},rippleState(){return d["a"].options.computed.rippleState.call(this)},validationState(){return(this.radioGroup||{}).validationState||this.computedColor}},methods:{genInput(e){return d["a"].options.methods.genInput.call(this,"radio",e)},genLabel(){return this.hasLabel?this.$createElement(r["a"],{on:{click:d["b"]},attrs:{for:this.computedId},props:{color:this.validationState,focused:this.hasState}},Object(h["s"])(this,"label")||this.label):null},genRadio(){const{title:e,...t}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(a["a"],this.setTextColor(this.validationState,{props:{dense:this.radioGroup&&this.radioGroup.dense}}),this.computedIcon),this.genInput({name:this.computedName,value:this.value,...t}),this.genRipple(this.setTextColor(this.rippleState))])},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},onBlur(e){this.isFocused=!1,this.$emit("blur",e)},onChange(){this.isDisabled||this.isReadonly||this.isActive||this.toggle()},onKeydown:()=>{}},render(e){const t={staticClass:"v-radio",class:this.classes,on:Object(p["c"])({click:this.onChange},this.listeners$),attrs:{title:this.attrs$.title}};return e("div",t,[this.genRadio(),this.genLabel()])}})},"6ca7":function(e,t,n){},"6d2f":function(e,t,n){"use strict";n("0db3")},"6da8":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function i(e,t,n){return(i=o()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&a(o,n.prototype),o}).apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return i(e,arguments,r(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a(o,e)})(e)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){var t=o();return function(){var n,a=r(e);return c(this,t?(n=r(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments))}}function u(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n\n \n \n \n '.concat(e,"\n \n \n"),headers:{"Content-Type":"text/xml;charset=UTF-8","cache-control":"no-cache"},timeout:t.timeout||3e4}).then(b).catch(C)}function b(e){return e.ok?e.text().then(g).then(w):e.text().then(y).then(_)}function g(e){try{var t;return(null!==(t=e.replace(/\r?\n|\r/g,"").match(/(.*)<\/return>/)[0])&&void 0!==t?t:"").replace("","").replace("","").split(/");return 1(.*)<\/faultstring>/)[0])&&void 0!==t?t:"").replace("","").replace("","")}catch(e){throw new Error("Não foi possível interpretar o XML de resposta.")}}function _(e){throw new Error(e)}function w(e){return{cep:e.cep,state:e.uf,city:e.cidade,neighborhood:e.bairro,street:e.end,service:"correios"}}function C(e){var t=new f({message:e.message,service:"correios"});throw"FetchError"===e.name&&(t.message="Erro ao se conectar com o serviço dos Correios."),t}function x(e,t){return p("https://buscacepinter.correios.com.br/app/endereco/carrega-cep-endereco.php",{method:"POST",mode:"cors",headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8",Referer:"https://buscacepinter.correios.com.br/app/endereco/index.php","Referrer-Policy":"strict-origin-when-cross-origin"},body:"endereco=".concat(e,"&tipoCEP=ALL"),timeout:t.timeout||3e4}).then(S).then($).catch(k)}function S(e){return e.json().then((function(e){if(0===e.total||e.erro||""===e.dados[0].cep)throw new Error("CEP não encontrado na base dos Correios.");return e}))}function $(e){var t=e.dados[0];return{cep:t.cep,state:t.uf,city:t.localidade,neighborhood:t.bairro,street:t.logradouroDNEC,service:"correios-alt"}}function k(e){var t=new f({message:e.message,service:"correios-alt"});throw"FetchError"===e.name&&(t.message="Erro ao se conectar com o serviço dos Correios Alt."),t}function O(e,t){var n="https://viacep.com.br/ws/".concat(e,"/json/"),r={method:"GET",mode:"cors",headers:{"content-type":"application/json;charset=utf-8"},timeout:t.timeout||3e4};return"undefined"==typeof window&&(r.headers["user-agent"]="cep-promise"),p(n,r).then(A).then(E).then(I).catch(P)}function A(e){if(e.ok)return e.json();throw Error("Erro ao se conectar com o serviço ViaCEP.")}function E(e){if(!0===e.erro)throw new Error("CEP não encontrado na base do ViaCEP.");return e}function I(e){return{cep:e.cep.replace("-",""),state:e.uf,city:e.localidade,neighborhood:e.bairro,street:e.logradouro,service:"viacep"}}function P(e){var t=new f({message:e.message,service:"viacep"});throw"FetchError"===e.name&&(t.message="Erro ao se conectar com o serviço ViaCEP."),t}function j(e,t){var n="".concat(e.slice(0,5),"-").concat(e.slice(5));return p("https://cdn.apicep.com/file/apicep/".concat(n,".json"),{method:"GET",mode:"cors",headers:{accept:"application/json"},timeout:t.timeout||3e4}).then(D).then(B).then(T).catch(F)}function D(e){if(e.ok)return e.json();throw Error("Erro ao se conectar com o serviço WideNet.")}function B(e){if(!1===e.ok||200!==e.status)throw new Error("CEP não encontrado na base do WideNet.");return e}function T(e){return{cep:e.code.replace("-",""),state:e.state,city:e.city,neighborhood:e.district,street:e.address,service:"widenet"}}function F(e){var t=new f({message:e.message,service:"widenet"});throw"FetchError"===e.name&&(t.message="Erro ao se conectar com o serviço WideNet."),t}function V(e,t){return p("https://brasilapi.com.br/api/cep/v1/".concat(e),{method:"GET",mode:"cors",headers:{"content-type":"application/json;charset=utf-8"},timeout:t.timeout||3e4}).then(N).then(M).catch(L)}function N(e){if(!1===e.ok||200!==e.status)throw new Error("CEP não encontrado na base do BrasilAPI.");return e.json()}function M(e){return{cep:e.cep,state:e.state,city:e.city,neighborhood:e.neighborhood,street:e.street,service:"brasilapi"}}function L(e){var t=new f({message:e.message,service:"brasilapi"});throw"FetchError"===e.name&&(t.message="Erro ao se conectar com o serviço BrasilAPI."),t}function R(){return"undefined"!=typeof window?{viacep:O,widenet:j,brasilapi:V}:{correios:v,"correios-alt":x,viacep:O,widenet:j,brasilapi:V}}function q(e){return new Promise((function(t,n){return Promise.resolve(e).then(n,t)}))}Promise.any=function(e){return q(Promise.all(u(e).map(q)))};var z=Promise,U=8;function G(t){var n=e(t);if("number"===n||"string"===n)return t;throw new m({message:"Erro ao inicializar a instância do CepPromise.",type:"validation_error",errors:[{message:"Você deve chamar o construtor utilizando uma String ou um Number.",service:"cep_validation"}]})}function W(e){return e.toString().replace(/\D+/g,"")}function H(e){return"0".repeat(U-e.length)+e}function K(e){if(e.length<=U)return e;throw new m({message:"CEP deve conter exatamente ".concat(U," caracteres."),type:"validation_error",errors:[{message:"CEP informado possui mais do que ".concat(U," caracteres."),service:"cep_validation"}]})}function Z(e){if(void 0!==e.length)throw new m({message:"Todos os serviços de CEP retornaram erro.",type:"service_error",errors:e});throw e}function J(e){var t=e.message,n=e.type,r=e.errors;throw new m({message:t,type:n,errors:r})}return function(e){var t=1=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(!t.includes(a))throw new m({message:"Erro ao inicializar a instância do CepPromise.",type:"validation_error",errors:[{message:'O provider "'.concat(a,'" é inválido. Os providers disponíveis são: ["').concat(t.join('", "'),'"].'),service:"providers_validation"}]})}}catch(e){r.e(e)}finally{r.f()}}(t.providers),e})).then(W).then(K).then(H).then((function(e){return n=e,r=t,a=R(),0!==r.providers.length?z.any(r.providers.map((function(e){return a[e](n,r)}))):z.any(Object.values(a).map((function(e){return e(n,r)})));var n,r,a})).catch(Z).catch(J)}}))},8767:function(e,t,n){"use strict";var r=n("b0af"),a=n("99d9"),o=n("ac7c"),i=n("cc20"),s=n("ce7e"),c=n("132d"),l=n("67b6"),u=n("43a6"),d=n("0fd9"),h=function(){var e=this,t=e._self._c;return t(r["a"],{staticClass:"mt-4 mb-4"},[t(a["b"],[t("div",{staticClass:"checkbox-row"},[t(o["a"],{attrs:{label:"Ativar Crédito Recorrente"},on:{change:e.onToggleRecorrente},model:{value:e.payment.credito_recorrente,callback:function(t){e.$set(e.payment,"credito_recorrente",t)},expression:"payment.credito_recorrente"}}),t(o["a"],{staticClass:"ml-2",attrs:{label:"Este Contratante está isento da taxa de adesão?"},on:{change:e.onToggleIsencao},model:{value:e.payment.isento_adesao,callback:function(t){e.$set(e.payment,"isento_adesao",t)},expression:"payment.isento_adesao"}})],1),t(s["a"],{staticClass:"mt-4 mb-4"})],1),t(a["b"],[t(d["a"],{staticClass:"text-h6"},[e._v("Método de pagamento da taxa de adesão")]),t(u["a"],{key:e.radioKey,attrs:{hint:"Escolha o método de pagamento a ser utilizado",outlined:"",disabled:e.payment.credito_recorrente||e.payment.isento_adesao,rules:[function(t){return e.payment.isento_adesao||e.payment.credito_recorrente||!!t||"Campo obrigatório."}]},model:{value:e.payment.forma_pagamento_adesao,callback:function(t){e.$set(e.payment,"forma_pagamento_adesao",t)},expression:"payment.forma_pagamento_adesao"}},[t(l["a"],{attrs:{value:"moeda",label:"Dinheiro"}}),t(l["a"],{attrs:{value:"credito",label:"Cartão de Crédito"}}),t(l["a"],{attrs:{value:"debito",label:"Cartão de Débito"}}),t(l["a"],{attrs:{value:"recorrente",label:"Crédito Recorrente"}})],1),t(s["a"],{staticClass:"mt-4 mb-4"}),t(i["a"],{attrs:{square:"",size:"md"}},[t(c["a"],{attrs:{color:"green","text-color":"white"}},[e._v("mdi-cart")]),t("span",[e._v(e._s(e._f("dinheiro")(e.valorAdesaoExibir)))])],1),t("span",{staticClass:"ml-4"},[e._v("Valor a ser pago")])],1)],1)},m=[];function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t=e.members_limit},on:{click:function(t){e.dialog=!0}}},[t(d["a"],[e._v("mdi-plus")]),t("span",[e._v("Adicionar um associado")])],1),1==e.ownerIsMember?t(r["a"],{staticClass:"mt-4",attrs:{type:"info"}},[t("span",[e._v("O contratante também é um associado")]),t(s["a"],{attrs:{label:"Adicionar Plano Odontológico para o contratante"},model:{value:e.contratante_plano_dental,callback:function(t){e.contratante_plano_dental=t},expression:"contratante_plano_dental"}})],1):e._e(),t(h["a"],e._l(e.members,(function(n,r){return t(c["a"],{key:r,staticClass:"mt-md"},[t(o["a"],{attrs:{outlined:"","min-width":"330","max-width":"502"}},[t(i["b"],[t("div",[t(d["a"],{staticClass:"mr-4"},[e._v("mdi-account")]),t("span",[e._v(e._s(n.nome))])],1),t("div",[t(d["a"],{staticClass:"mr-4"},[e._v("mdi-account-group")]),t("span",[e._v(e._s(n.parentesco))])],1),t("div",[t(d["a"],{staticClass:"mr-4"},[e._v("mdi-card-bulleted")]),t("span",[e._v(e._s(n.cpf))])],1),t("div",[t(d["a"],{staticClass:"mr-4"},[e._v("mdi-cake-variant")]),t("span",[e._v(e._s(n.nascimento))])],1),t("div",[t(s["a"],{attrs:{color:"green",label:"Adicionar Plano Odontológico"},model:{value:n.plano_dental,callback:function(t){e.$set(n,"plano_dental",t)},expression:"item.plano_dental"}})],1)]),t(i["a"],[t(a["a"],{attrs:{color:"red",outlined:""},on:{click:function(t){return e.removeMember(r)}}},[t("span",[e._v("remover")]),t(d["a"],{attrs:{right:""}},[e._v("mdi-cancel")])],1)],1)],1)],1)})),1),t(l["a"],{model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[t(o["a"],[t(i["c"],[e._v("Adicionar um associado")]),t(i["b"],[t(u["a"],{ref:"AddMemberForm",on:{submit:function(t){return t.preventDefault(),e.addMember()}}},[t(p["a"],{attrs:{label:"Nome Completo",outlined:"",dense:"",rules:[e.rules.required]},model:{value:e.member.nome,callback:function(t){e.$set(e.member,"nome",t)},expression:"member.nome"}}),t(h["a"],[t(c["a"],[t(p["a"],{directives:[{name:"mask",rawName:"v-mask",value:"##/##/####",expression:"'##/##/####'"}],attrs:{label:"Nascimento",outlined:"",dense:"",rules:[e.rules.required,e.rules.nascimento]},model:{value:e.member.nascimento,callback:function(t){e.$set(e.member,"nascimento",t)},expression:"member.nascimento"}})],1),t(c["a"],[t(p["a"],{directives:[{name:"mask",rawName:"v-mask",value:"###.###.###-##",expression:"'###.###.###-##'"}],attrs:{label:"CPF",outlined:"",dense:"",rules:[e.rules.required,e.rules.cpf]},model:{value:e.member.cpf,callback:function(t){e.$set(e.member,"cpf",t)},expression:"member.cpf"}})],1)],1),t(h["a"],[t(c["a"],[t(m["a"],{attrs:{label:"Parentesco",outlined:"",dense:"",items:e.kinship,rules:[e.rules.required]},model:{value:e.member.parentesco,callback:function(t){e.$set(e.member,"parentesco",t)},expression:"member.parentesco"}})],1),t(c["a"],[t(a["a"],{attrs:{color:"orange",dark:"",type:"submit"}},[t(d["a"],[e._v("mdi-plus")]),t("span",[e._v("Adicionar")])],1)],1)],1)],1)],1)],1)],1)],1)],1)},v=[],b=n("197d");function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;tthis.inputIndeterminate=e)},inputIndeterminate(e){this.$emit("update:indeterminate",e)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:e,...t}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(r["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...t,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},adb9:function(e,t,n){"use strict";var r=n("f2a8"),a=n("bc3a"),o=n.n(a);t["a"]={data:function(){return{valorPlanoDental:10,valid:!1,sendingData:!1,venda:{},account:{nome:"",profissao:"",sexo:"",cpf:"",rg:"",rg_orgao_emissor:"",nascimento:"",indicado:""},contacts:{whatsapp:"",celular:"",celular_2:"",dono_celular_2:"",telefone:"",email:""},address:{cep:"",rua:"",numero:"",complemento:"",cidade:"",bairro:"",uf:""},documents:[],documentsUploaded:[],payment:{forma_pagamento_adesao:"",forma_pagamento:"",isento_adesao:!1},members:[],contratante_associado:!1,contratante_plano_dental:!1}},computed:{members_length:function(){if(this.id){if(this.contratante_associado){var e=this.members.length+this.savedMembers.length-this.membersToDelete.length;return e+1}var t=this.members.length+this.savedMembers.length-this.membersToDelete.length;return t}return this.contratante_associado?this.members.length+1:this.members.length},totalDeAssociadosComPlanoDental:function(){var e=this.members.filter((function(e){return 1==e.plano_dental})).length,t=this.contratante_plano_dental?1:0;return e+t},valorCalculadoPlanoDental:function(){return this.totalDeAssociadosComPlanoDental*this.valorPlanoDental},valor_adesao:function(){if(this.payment.isento_adesao)return 0;var e=this.valorCalculadoPlanoDental;if(this.VALOR_INCREMENTAVEL){var t=this.VALOR_MENSAL*this.members_length;return t+e}var n=this.VALOR_MENSAL;return n+e}},methods:{setContratanteAssociado:function(e){this.contratante_associado=e},setContratantePlanoDental:function(e){this.contratante_plano_dental=e},checkoutForm:function(){this.$refs.checkoutForm.validate()?this.documents_length<=0?this.$notify.error({msg:"Adicione algum documento."}):this.members_length<=0?this.$notify.error({msg:"Adicione algum associado."}):this.salvarVenda():alert("Alguns campos obrigatórios não foram preenchidos. Preencha-os e tente salvar novamente.")},loading:function(){this.$loading(!0)},sendDocs:function(e){var t=this;return new Promise((function(n,a){var i=t.documents.map((function(t){return{id_venda:e,documento:t}}));console.log("docs"),o.a.post(r["VendasApiUrl"]+"/api/vendas/documentos",{documentos:i}).then((function(){return n()})).catch((function(e){return a(e)}))}))},sendMembers:function(e){var t=this;return new Promise((function(n,a){var i=t.members.map((function(t){return{id_venda:e,cpf:t.cpf,nome:t.nome,parentesco:t.parentesco,nascimento:t.nascimento,telefone:t.telefone||"",registro_nascimento:t.registro_nascimento||0}}));i.length?o.a.post(r["VendasApiUrl"]+"/api/vendas/associados",{associados:i}).then((function(){return n()})).catch((function(e){return a(e)})):n()}))}}}},b33c:function(e,t,n){"use strict";var r=n("b0af"),a=n("99d9"),o=n("62ad"),i=n("ce7e"),s=(n("5803"),n("2677")),c=n("cc20"),l=n("80d2"),u=n("d9bd"),d=n("d9f7"),h=s["a"].extend({name:"v-file-input",model:{prop:"value",event:"change"},props:{chips:Boolean,clearable:{type:Boolean,default:!0},counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,placeholder:String,prependIcon:{type:String,default:"$file"},readonly:{type:Boolean,default:!1},showSize:{type:[Boolean,Number],default:!1,validator:e=>"boolean"===typeof e||[1e3,1024].includes(e)},smallChips:Boolean,truncateLength:{type:[Number,String],default:22},type:{type:String,default:"file"},value:{default:void 0,validator:e=>Object(l["H"])(e).every(e=>null!=e&&"object"===typeof e)}},computed:{classes(){return{...s["a"].options.computed.classes.call(this),"v-file-input":!0}},computedCounterValue(){const e=this.multiple&&this.lazyValue?this.lazyValue.length:this.lazyValue instanceof File?1:0;if(!this.showSize)return this.$vuetify.lang.t(this.counterString,e);const t=this.internalArrayValue.reduce((e,{size:t=0})=>e+t,0);return this.$vuetify.lang.t(this.counterSizeString,e,Object(l["w"])(t,1024===this.base))},internalArrayValue(){return Object(l["H"])(this.internalValue)},internalValue:{get(){return this.lazyValue},set(e){this.lazyValue=e,this.$emit("change",this.lazyValue)}},isDirty(){return this.internalArrayValue.length>0},isLabelActive(){return this.isDirty},text(){return this.isDirty||!this.persistentPlaceholder&&!this.isFocused&&this.hasLabel?this.internalArrayValue.map(e=>{const{name:t="",size:n=0}=e,r=this.truncateText(t);return this.showSize?`${r} (${Object(l["w"])(n,1024===this.base)})`:r}):[this.placeholder]},base(){return"boolean"!==typeof this.showSize?this.showSize:void 0},hasChips(){return this.chips||this.smallChips}},watch:{readonly:{handler(e){!0===e&&Object(u["b"])("readonly is not supported on ",this)},immediate:!0},value(e){const t=this.multiple?e:e?[e]:[];Object(l["k"])(t,this.$refs.input.files)||(this.$refs.input.value="")}},methods:{clearableCallback(){this.internalValue=this.multiple?[]:null,this.$refs.input.value=""},genChips(){return this.isDirty?this.text.map((e,t)=>this.$createElement(c["a"],{props:{small:this.smallChips},on:{"click:close":()=>{const e=this.internalValue;e.splice(t,1),this.internalValue=e}}},[e])):[]},genControl(){const e=s["a"].options.methods.genControl.call(this);return this.hideInput&&(e.data.style=Object(d["d"])(e.data.style,{display:"none"})),e},genInput(){const e=s["a"].options.methods.genInput.call(this);return e.data.attrs.multiple=this.multiple,delete e.data.domProps.value,delete e.data.on.input,e.data.on.change=this.onInput,[this.genSelections(),e]},genPrependSlot(){if(!this.prependIcon)return null;const e=this.genIcon("prepend",()=>{this.$refs.input.click()});return this.genSlot("prepend","outer",[e])},genSelectionText(){const e=this.text.length;return e<2?this.text:this.showSize&&!this.counter?[this.computedCounterValue]:[this.$vuetify.lang.t(this.counterString,e)]},genSelections(){const e=[];return this.isDirty&&this.$scopedSlots.selection?this.internalArrayValue.forEach((t,n)=>{this.$scopedSlots.selection&&e.push(this.$scopedSlots.selection({text:this.text[n],file:t,index:n}))}):e.push(this.hasChips&&this.isDirty?this.genChips():this.genSelectionText()),this.$createElement("div",{staticClass:"v-file-input__text",class:{"v-file-input__text--placeholder":this.placeholder&&!this.isDirty,"v-file-input__text--chips":this.hasChips&&!this.$scopedSlots.selection}},e)},genTextFieldSlot(){const e=s["a"].options.methods.genTextFieldSlot.call(this);return e.data.on={...e.data.on||{},click:e=>{e.target&&"LABEL"===e.target.nodeName||this.$refs.input.click()}},e},onInput(e){const t=[...e.target.files||[]];this.internalValue=this.multiple?t:t[0],this.initialValue=this.internalValue},onKeyDown(e){this.$emit("keydown",e)},truncateText(e){if(e.length3?(a=p===r)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=m&&((a=n<2&&mr||r>p)&&(o[4]=n,o[5]=r,h.n=p,s=0))}if(a||n>1)return i;throw d=!0,r}return function(a,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,p),s=u,c=p;(t=s<2?e:c)||!d;){o||(s?s<3?(s>1&&(h.n=-1),m(s,c)):h.n=c:h.v=c);try{if(l=2,o){if(s||(a="next"),t=o[a]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);o=e}else if((t=(d=h.n<0)?c:n.call(r,h))!==i)break}catch(t){o=e,s=1,c=t}finally{l=1}}return{value:t,done:d}}}(n,a,o),!0),l}var i={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(y(t={},r,(function(){return this})),t),d=l.prototype=s.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,y(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,y(d,"constructor",l),y(l,"constructor",c),c.displayName="GeneratorFunction",y(l,a,"GeneratorFunction"),y(d),y(d,a,"Generator"),y(d,r,(function(){return this})),y(d,"toString",(function(){return"[object Generator]"})),(g=function(){return{w:o,m:h}})()}function y(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}y=function(e,t,n,r){if(t)a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){y(e,t,(function(e){return this._invoke(t,n,e)}))};o("next",0),o("throw",1),o("return",2)}},y(e,t,n,r)}function _(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function w(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){_(o,r,a,i,s,"next",e)}function s(e){_(o,r,a,i,s,"throw",e)}i(void 0)}))}}function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function x(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nt&&this.docNames.splice(t);while(this.docNames.length=0&&this.pending.splice(t,1)},resizeDataUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.9;return new Promise((function(a,o){var i=new Image;i.onload=function(){if(!i.naturalWidth||!i.naturalHeight)return o(new Error("Imagem com dimensões 0."));var s=i.naturalWidth,c=i.naturalHeight,l=Math.min(t/s,n/c,1),u=Math.round(s*l),d=Math.round(c*l),h=document.createElement("canvas");h.width=u,h.height=d;var m=h.getContext("2d");m.drawImage(i,0,0,u,d);var p=/^data:(image\/[a-zA-Z0-9.+-]+);base64,/.exec(e),f=p?p[1]:"image/jpeg";try{a(h.toDataURL(f,r))}catch(v){a(h.toDataURL("image/jpeg",r))}},i.onerror=function(){return o(new Error("Falha ao carregar a imagem (base64 inválida ou formato não suportado)."))},i.src=e}))},encodeFiles:function(){var e,t=this,n=C(this.dropFiles);try{var r=function(){var n=e.value;if(!n)return 1;var r=t.startPending(n.name),a=function(){return t.finishPending(r)},o=function(e){return t.docNames.push(e||"Documento")},i=new FileReader;t.isImage(n)?(i.onload=w(g().m((function e(){var r,s;return g().w((function(e){while(1)switch(e.n){case 0:return e.p=0,e.n=1,t.resizeDataUrl(i.result,1e3,1e3);case 1:r=e.v,t.documents.push(r),o(n.name),e.n=3;break;case 2:e.p=2,s=e.v,console.error("resize error",s);case 3:return e.p=3,a(),e.f(3);case 4:return e.a(2)}}),e,null,[[0,2,3,4]])}))),i.onerror=function(e){console.error("file read error (image)",e),a()},i.readAsDataURL(n)):t.isPdf(n)?(i.onload=function(){var e=i.result;t.documents.push(e),o(n.name),a()},i.onerror=function(e){console.error("file read error (pdf)",e),a()},i.readAsDataURL(n)):(console.warn("Ignorando arquivo não suportado:",n.name||"(sem nome)",n.type||"(sem type)"),a())};for(n.s();!(e=n.n()).done;)r()}catch(a){n.e(a)}finally{n.f()}this.dropFiles=[]}}},O=k,A=(n("6d2f"),n("2877")),E=Object(A["a"])(O,v,b,!1,null,"8eab9c04",null);t["a"]=E.exports},bb5f:function(e,t,n){},dcb4:function(e,t,n){"use strict";var r=n("b0af"),a=n("99d9"),o=n("62ad"),i=n("ce7e"),s=n("0fd9"),c=n("8654"),l=function(){var e=this,t=e._self._c;return t(r["a"],{staticClass:"mt-4"},[t(a["c"],[e._v("Endereço")]),t(a["b"],[t(s["a"],{staticClass:"q-gutter-md"},[t(o["a"],[t(c["a"],{directives:[{name:"mask",rawName:"v-mask",value:"#####-###",expression:"'#####-###'"}],staticClass:"q-mt-md",attrs:{label:"CEP",outlined:"",dense:"",rules:[e.rules.required],loading:e.isLoading},on:{blur:function(t){return e.completaEndereco()}},model:{value:e.address.cep,callback:function(t){e.$set(e.address,"cep",t)},expression:"address.cep"}})],1),t(o["a"],[t(c["a"],{staticClass:"q-mt-md",attrs:{label:"Número",outlined:"",dense:"",type:"tel",rules:[e.rules.required]},model:{value:e.address.numero,callback:function(t){e.$set(e.address,"numero",t)},expression:"address.numero"}})],1)],1),t(c["a"],{staticClass:"q-my-md",attrs:{label:"complemento",outlined:"",dense:""},model:{value:e.address.complemento,callback:function(t){e.$set(e.address,"complemento",t)},expression:"address.complemento"}}),t("transition",{attrs:{appear:"","enter-active-class":"animated flipInX","leave-active-class":"animated flipOutX"}},[e.address.cep.length?t("div",[t(i["a"],{staticClass:"mb-4"}),t(c["a"],{staticClass:"q-mt-md",attrs:{label:"Rua",outlined:"",dense:"",disabled:"",readonly:"",value:e.address.rua}}),t(s["a"],{staticClass:"q-gutter-md"},[t(o["a"],[t(c["a"],{staticClass:"q-mt-md",attrs:{label:"Bairro",outlined:"",dense:"",disabled:"",readonly:"",value:e.address.bairro}})],1),t(o["a"],[t(c["a"],{staticClass:"q-mt-md",attrs:{label:"Cidade",outlined:"",dense:"",disabled:"",readonly:"",value:e.address.cidade}})],1)],1)],1):e._e()])],1)],1)},u=[],d=n("6da8"),h=n.n(d),m={name:"ContactForm",computed:{address:{get:function(){return this.value},set:function(e){this.$emit("change",e)}}},data:function(){return{isLoading:!1,cepMatch:!1,rules:{required:function(e){return!!e||"Campo obrigatório."}}}},methods:{completaEndereco:function(){var e=this;this.isLoading=!0,h()(this.address.cep.replace(/[^0-9]/g,"")).then((function(t){console.log("cadastrou"),e.address.uf=t.state,e.address.rua=t.street,e.address.cidade=t.city,e.address.bairro=t.neighborhood})).catch((function(t){console.log(t),e.address={cep:"",uf:"",rua:"",cidade:"",bairro:""}})).finally((function(){return e.isLoading=!1}))}},props:{value:Object}},p=m,f=n("2877"),v=Object(f["a"])(p,l,u,!1,null,null,null);t["a"]=v.exports},e418:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,a){var o=n(e),i=n(t),s="("===(a=a||"()")[0],c=")"===a[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(c?this.isBefore(i,r):!this.isAfter(i,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(c?this.isAfter(i,r):!this.isBefore(i,r))}}}))},e5b2:function(e,t,n){"use strict";var r=n("b0af"),a=n("99d9"),o=n("62ad"),i=n("67b6"),s=n("43a6"),c=n("0fd9"),l=n("b974"),u=n("8654"),d=function(){var e=this,t=e._self._c;return t(r["a"],{staticClass:"mt-4"},[t(a["c"],[e._v("Dados do contratante")]),t(a["b"],[t(c["a"],[t(o["a"],[t(u["a"],{directives:[{name:"mask",rawName:"v-mask",value:"###.###.###-##",expression:"'###.###.###-##'"}],attrs:{label:"CPF",type:"tel",outlined:"",dense:"",rules:[e.rules.required,e.rules.cpf]},model:{value:e.account.cpf,callback:function(t){e.$set(e.account,"cpf",t)},expression:"account.cpf"}})],1),t(o["a"],[t(u["a"],{directives:[{name:"mask",rawName:"v-mask",value:"##/##/####",expression:"'##/##/####'"}],attrs:{label:"Data de Nascimento",type:"tel",outlined:"",dense:"",rules:[e.rules.required,e.rules.nascimento]},model:{value:e.account.nascimento,callback:function(t){e.$set(e.account,"nascimento",t)},expression:"account.nascimento"}})],1)],1),t(c["a"],[t(o["a"],[t(u["a"],{directives:[{name:"mask",rawName:"v-mask",value:"##.###.###-#",expression:"'##.###.###-#'"}],attrs:{label:"RG",type:"tel",outlined:"",dense:"",rules:[e.rules.required]},model:{value:e.account.rg,callback:function(t){e.$set(e.account,"rg",t)},expression:"account.rg"}})],1),t(o["a"],[t(u["a"],{attrs:{label:"Orgão emissor do RG",outlined:"",dense:""},model:{value:e.account.rg_orgao_emissor,callback:function(t){e.$set(e.account,"rg_orgao_emissor",t)},expression:"account.rg_orgao_emissor"}})],1)],1),t(c["a"],[t(o["a"],[t(u["a"],{staticClass:"q-mt-md",attrs:{label:"Nome Completo",outlined:"",dense:"",rules:[e.rules.required]},model:{value:e.account.nome,callback:function(t){e.$set(e.account,"nome",t)},expression:"account.nome"}})],1),t(o["a"],[t(u["a"],{staticClass:"q-mt-md",attrs:{label:"Profissão",outlined:"",dense:"",rules:[e.rules.required]},model:{value:e.account.profissao,callback:function(t){e.$set(e.account,"profissao",t)},expression:"account.profissao"}})],1)],1),t("br"),t(s["a"],{attrs:{label:"Gênero",rules:[e.rules.required]},model:{value:e.account.sexo,callback:function(t){e.$set(e.account,"sexo",t)},expression:"account.sexo"}},[t(i["a"],{attrs:{value:"masculino",label:"Masculino"}}),t(i["a"],{attrs:{value:"feminino",label:"Feminino"}})],1),t(l["a"],{staticClass:"q-mt-md",attrs:{label:"Aonde conheceu o Flexcard?",outlined:"",dense:"",items:e.indications},model:{value:e.account.indicado,callback:function(t){e.$set(e.account,"indicado",t)},expression:"account.indicado"}})],1)],1)},h=[],m=n("197d"),p={name:"AccountForm",mixins:[m["a"]],computed:{account:{get:function(){return this.value},set:function(e){this.$emit("change",e)}}},data:function(){return{indications:["Abordagem na Master","Abordagem na Galeão","Indicação Master","Indicação Telefonia","Indicação Galeão","Reacordo","Panfletagem","Parceiros","Abordagem externa","Eventos externos","Desconto amigo","Conta própria","Outdoors","Taxi/vans","Jornaleiros","Mídias sociais","TMK Ativo"]}},props:{value:Object}},f=p,v=n("2877"),b=Object(v["a"])(f,d,h,!1,null,null,null);t["a"]=b.exports},ec29:function(e,t,n){},fe09:function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n("c37a"),a=n("5311"),o=n("8547"),i=n("58df");function s(e){e.preventDefault()}t["a"]=Object(i["a"])(r["a"],a["a"],o["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const e=this.value,t=this.internalValue;return this.isMultiple?!!Array.isArray(t)&&t.some(t=>this.valueComparator(t,e)):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,t):Boolean(t):this.valueComparator(t,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(e){this.lazyValue=e,this.hasColor=e}},methods:{genLabel(){const e=r["a"].options.methods.genLabel.call(this);return e?(e.data.on={click:s},e):e},genInput(e,t){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:e,type:e},t),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:s},ref:"input"})},onClick(e){this.onChange(),this.$emit("click",e)},onChange(){if(!this.isInteractive)return;const e=this.value;let t=this.internalValue;if(this.isMultiple){Array.isArray(t)||(t=[]);const n=t.length;t=t.filter(t=>!this.valueComparator(t,e)),t.length===n&&t.push(e)}else t=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(t,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(t,e)?null:e:!t;this.validate(!0,t),this.internalValue=t,this.hasColor=t},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},onBlur(e){this.isFocused=!1,this.$emit("blur",e)},onKeydown(e){}}})}}]); //# sourceMappingURL=analise-venda~editar-venda~produtos.0a5608f2.js.map