-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path95cc54d.modern.js
More file actions
1 lines (1 loc) · 12.1 KB
/
Copy path95cc54d.modern.js
File metadata and controls
1 lines (1 loc) · 12.1 KB
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[156,154,155],{199:function(t,e,o){var content=o(208);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(11).default)("ba702df0",content,!0,{sourceMap:!1})},206:function(t,e,o){t.exports=o.p+"img/logo.762f619.png"},207:function(t,e,o){"use strict";o(199)},208:function(t,e,o){var n=o(10)(function(i){return i[1]});n.push([t.i,".vendaInternaSpace[data-v-523bd88e]{height:50px}.vendaInterna[data-v-523bd88e]{background-color:#1c1c1c;box-shadow:1px 1px 3px 2px rgba(0,0,0,.15);color:#d9dee9;font-family:arial;height:50px;left:0;position:fixed;top:0;width:100%;z-index:2000}.vendaInterna .titles[data-v-523bd88e]{background:#e85128;color:#fff;float:left;font-size:20px;height:50px;line-height:2.4;padding:0 20px}.vendaInterna .titles img[data-v-523bd88e]{display:inline-block;margin-right:5px;margin-top:-5px;vertical-align:middle}.vendaInterna .numeroVenda[data-v-523bd88e]{background:#000;float:left;height:50px;padding:8px 10px 0}.vendaInterna .numeroVenda span[data-v-523bd88e]{display:block;font-size:12px;line-height:1.3;text-align:center}.vendaInterna .numeroVenda span.numero[data-v-523bd88e]{font-size:16px;font-weight:700}.vendaInterna .nomes[data-v-523bd88e]{float:left;height:50px;padding-left:10px;padding-right:10px;padding-top:5px;width:200px}.vendaInterna .nomes>span[data-v-523bd88e]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vendaInterna .nomes>span>span.operador[data-v-523bd88e]{font-size:10px;line-height:1.4}.vendaInterna .nomes>span>span.cliente[data-v-523bd88e]{font-size:14px;font-weight:700;line-height:1.4}.vendaInterna .botoes[data-v-523bd88e]{float:right;padding-right:5px}.vendaInterna .botoes button[data-v-523bd88e]{background:transparent;color:#d9dee9;cursor:pointer;float:left;font-family:arial;font-size:14px;height:40px;margin-top:5px;padding:0 25px}.vendaInterna .botoes button[data-v-523bd88e]:hover{background:#2f3544}.vendaInterna .botoes button.green[data-v-523bd88e]{border:1px solid #6abf3f;color:#6abf3f;margin-right:5px}.vendaInterna .botoes button.red[data-v-523bd88e]{border:1px solid #e8616a;color:#e8616a}.vendaInterna .botoes button.green[data-v-523bd88e]:hover{background:#6abf3f;color:#fff}.vendaInterna .botoes button.red[data-v-523bd88e]:hover{background:#e8616a;color:#fff}.vendaInterna .botoes button.green.disabled[data-v-523bd88e]{background:#3c4252!important;border:1px solid #ccc;color:#ccc!important;cursor:default;margin-right:5px;opacity:.5}.vendaInterna .itens[data-v-523bd88e]{float:right;height:50px;padding-left:10px;padding-right:10px;padding-top:5px;width:auto}.vendaInterna .itens>span[data-v-523bd88e]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vendaInterna .itens>span>span.quantidade[data-v-523bd88e]{font-size:10px;line-height:1.4}.vendaInterna .itens>span>span.valor[data-v-523bd88e]{font-size:14px;font-weight:700;line-height:1.4}@media (max-width:1000px){.vendaInterna .botoes button .amoitado[data-v-523bd88e],.vendaInterna .titles span[data-v-523bd88e]{display:none}.vendaInterna .titles img[data-v-523bd88e]{margin:14px 0 0}}@media (max-width:767px){.vendaInterna[data-v-523bd88e],.vendaInternaSpace[data-v-523bd88e]{display:none}}",""]),n.locals={},t.exports=n},215:function(t,e,o){"use strict";o.r(e);var n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"titles"},[e("img",{attrs:{src:o(206),alt:"",width:"38.5",height:"18"}}),t._v(" "),e("span",[t._v("Venda Interna")])])},function(){var t=this,e=t._self._c;return e("button",{staticClass:"green statusFinalizar",attrs:{type:"button",title:"Finalizar compra",name:"button"}},[t._v("Finalizar "),e("span",{staticClass:"amoitado"},[t._v("Venda")])])}],r={props:{dados:Object,carrinho:Object},methods:{alert(){confirm("Tem certeza que deseja cancelar?")&&this.cancelarVenda()},cancelarVenda(){this.$axios.post("/v2/front/sale/cancel").then(t=>{window.location.href=t.data.redirect}).catch(()=>{alert("Hove um erro ao cancelar a venda.")})}}},d=(o(207),o(12)),component=Object(d.a)(r,function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"vendaInternaSpace"}),t._v(" "),e("div",{staticClass:"vendaInterna topoVendaInterna"},[t._m(0),t._v(" "),e("div",{staticClass:"numeroVenda"},[e("span",[t._v("Venda nº")]),t._v(" "),e("span",{staticClass:"numero"},[t._v(t._s(t.dados.vendaInterna.id))])]),t._v(" "),e("div",{staticClass:"nomes"},[e("span",[e("span",{staticClass:"operador"},[t._v("Operador")]),e("span",{staticClass:"cliente"},[t._v(" "+t._s(t.dados.vendaInterna.usuario.nome))])]),t._v(" "),e("span",[e("span",{staticClass:"operador"},[t._v("Cliente")]),e("span",{staticClass:"cliente"},[t._v(" "+t._s(t.dados.id)+" - "+t._s(t.dados.nomeRazao))])])]),t._v(" "),e("div",{staticClass:"botoes"},[e("a",{attrs:{href:`${t.$store.state.siteUrl}/checkout/pagamento`}},[t._m(1)]),t._v(" "),e("button",{staticClass:"red cancelarVendaInterna",attrs:{type:"button",name:"button"},on:{click:function(e){return t.alert()}}},[t._v("Cancelar "),e("span",{staticClass:"amoitado"},[t._v("Venda")])])]),t._v(" "),e("div",{staticClass:"itens"},[e("span",[e("span",{staticClass:"quantidade"},[t._v("Itens carrinho")]),e("span",{staticClass:"valor itensCarrinho"},[t._v(" "+t._s(t.carrinho.quantidadeItens))])]),t._v(" "),e("span",[e("span",{staticClass:"quantidade"},[t._v("Valor total")]),e("span",{staticClass:"valor totalCarrinho"},[t._v(" "+t._s(t._f("formatPrice")(t.carrinho.subtotal.valor)))])])])])])},n,!1,null,"523bd88e",null);e.default=component.exports},401:function(t,e,o){"use strict";o.r(e);var n={components:{vendaInternaBar:o(215).default},computed:{dadosUser(){return this.$store.state.user},dadosCarrinho(){return this.$store.state.carrinho}}},r=o(12),component=Object(r.a)(n,function(){var t=this,e=t._self._c;return t.dadosUser&&t.dadosCarrinho&&Object.keys(t.dadosUser.vendaInterna).length>0&&t.dadosUser.vendaInterna.id?e("vendaInternaBar",{attrs:{dados:t.dadosUser,carrinho:t.dadosCarrinho}}):t._e()},[],!1,null,null,null);e.default=component.exports},416:function(t){t.exports=JSON.parse('{"a":"1.0.0"}')},768:function(t,e,o){"use strict";o.r(e);var n=o(416),r={components:{rodape:()=>o.e(11).then(o.bind(null,787)),popupDefault:()=>o.e(10).then(o.bind(null,783))},middleware(t){let{route:e,store:o}=t;e.query.liberarAcesso===n.a?o.commit("changeManutencaoLojaLiberar",!0):e.query.liberarAcesso&&e.query.liberarAcesso!==n.a&&o.commit("changeManutencaoLojaLiberar",!1)},data:()=>({showPopGlobal:!1,userDefaultGtm:!1,lastScrollPosition:0,isScrollingDown:!1,isScrollingUp:!1,notAtTop:!1}),head(){if(this.$store.state.dadosPageAtual)return this.changeHead(),{...this.changeHead(),meta:[...this.changeHead().meta,...this.tagVerification.map(code=>({name:"google-site-verification",content:code}))]}},computed:{tagVerification(){return this.$store.state.config.google.tag.verification||[]},dadosPageAtual(){return this.$store.state.dadosPageAtual},user(){return this.$store.state.user},dataPop(){return this.$store.state.popup.dataPop},dataCarrinho(){return this.$store.state.carrinho.dataCarrinho},seo(){return this.$store.state.dadosPageAtual&&this.$store.state.dadosPageAtual.estrutura&&!this.$store.state.dadosPageAtual.error?this.$store.state.dadosPageAtual.estrutura.seo:{title:"Página não encontrada",description:"",titleSocial:"Página não encontrada",descriptionSocial:"",openGraphUrlImagem:"",twitterUrlImagem:"",keywords:"",canonical:"",indexar:!0}},loadSegundaDobra(){return this.$store.state.loadSegundaDobra}},watch:{dataCarrinho(t){t&&this.$store.commit("setMenuCart",t)},dataPop(t){if(t){return localStorage.getItem(`popID${t.id}`)||this.$store.state.popup.exibidasNaSessao.includes(t.id)?void this.$store.commit("popup/setDataPop",null):void setTimeout(()=>{this.showPopGlobal=!0},1e3*t.tempo)}this.showPopGlobal=!1},$route:{deep:!0,handler(t,e){document.querySelector("html").scrollTop=0}},dadosPageAtual(t,e){t!==e&&this.$gtmGetData(),this.$getFavoritos(),this.$store.state.user&&this.$gtmEventUserProfile(this.$store.state.user)},user(t){t&&this.userDefaultGtm&&t.logado&&(this.userDefaultGtm=!0,this.$gtmEventUserProfile(this.user))}},mounted(){!0===this.$route.query.testeLoja&&alert("Loja modelo"),this.$route.query.liberarAcesso===n.a?window.localStorage.setItem("liberarAcesso",n.a):this.$route.query.liberarAcesso&&this.$route.query.liberarAcesso!==n.a?window.localStorage.removeItem("liberarAcesso"):window.localStorage.getItem("liberarAcesso")===n.a&&this.$store.commit("changeManutencaoLojaLiberar",!0),this.$store.state.user?this.$gtmEventUserProfile(this.$store.state.user):(this.userDefaultGtm=!0,this.$gtmEventUserProfile({id:0,nomeRazao:"Visitante",nomeFantasia:"",celular:"",telefone:"",email:"",pessoa:"",sexo:"",nascimento:"",revendedor:!1,logado:!1,loginFacilitado:!1,primeiraCompra:!1,ativo:!1,representantes:[],vendaInterna:{},endereco:{cep:"",principal:{cep:"",cidade:"",uf:"",pais:"Brazil"}}})),this.dadosPageAtual&&this.$gtmGetData(),this.$store.dispatch("getScreenWidth"),window.addEventListener("scroll",this.liberaSegundaDobra),window.addEventListener("scroll",this.handleScroll),window.addEventListener("load",()=>{this.$axios.request({method:"get",url:"/v2/front/checkout/user"}).then(t=>{this.$store.commit("setUser",t.data)}).catch(t=>{console.error(t.response.data.error)}),this.$getFavoritos()}),this.$store.commit("setFirstLoad")},created(){this.$router.beforeEach((t,e,o)=>(this.$store.commit("changeBackPage",e),o()))},methods:{liberaSegundaDobra(){window.scrollY>80&&(window.removeEventListener("scroll",this.liberaSegundaDobra),this.$store.commit("setLoadSegundaDobra"),this.$store.dispatch("initDefault"))},handleScroll(){const t=window.scrollY;this.notAtTop=t>=15,t>this.lastScrollPosition?(this.isScrollingDown=!0,this.isScrollingUp=!1):t<this.lastScrollPosition&&(this.isScrollingDown=!1,this.isScrollingUp=!0),this.lastScrollPosition=t},changeHead(){var t,e,o,n,r,d,l,c;const h=this.$store.state.listagem.nextPg,v=this.$store.state.listagem.prevPg,m={title:null===(t=this.seo)||void 0===t?void 0:t.title,meta:[{hid:"og:title",name:"og:title",content:(null===(e=this.seo)||void 0===e?void 0:e.title)||this.$store.state.config.seo.geral.title},{hid:"og:description",name:"og:description",content:(null===(o=this.seo)||void 0===o?void 0:o.descriptionSocial)||(null===(n=this.seo)||void 0===n?void 0:n.description)},{hid:"og:site_name",name:"og:site_name",content:this.$store.state.nomeSite},{hid:"og:image",property:"og:image",content:this.seo.openGraphUrlImagem},{hid:"description",name:"description",content:null===(r=this.seo)||void 0===r?void 0:r.description},{hid:"keywords",name:"keywords",content:null===(d=this.seo)||void 0===d?void 0:d.keywords}],link:[{rel:"canonical",href:null===(l=this.seo)||void 0===l?void 0:l.canonical}],script:[this.$setPaginaDadosEstruturados(this.$store.state.nomeSite,{rua:"Avenida Ômega, 174",cidade:"Barueri",estado:"SP",pais:"BR",cep:"06472-005"})]};return null!==(c=this.seo)&&void 0!==c&&c.indexar&&!this.$store.state.manutencaoLoja||m.meta.push({hid:"robots",name:"robots",content:"noindex"}),h&&m.link.push(h),v&&m.link.push(v),m}}},d=o(12),component=Object(d.a)(r,function(){var t,e=this,o=e._self._c;return!e.$store.state.manutencaoLoja||e.$store.state.manutencaoLojaLiberar?o("div",{ref:"application",class:{user_scrolling_down:e.isScrollingDown,user_scrolling_up:e.isScrollingUp,notAtTop:e.notAtTop},attrs:{id:"application"}},[o("venda-interna"),e._v(" "),o("geralCabecalho"),e._v(" "),!e.$store.state.popup.dataPop||null!==(t=e.$store.state.popup.dataPop)&&void 0!==t&&t.error||!e.showPopGlobal?e._e():o("popupDefault"),e._v(" "),o("geralCarrinho-lateral",{attrs:{tituloCarrinho:"CARRINHO DE COMPRAS",qtdTxt:!0}}),e._v(" "),e.$store.state.loader&&e.$store.state.loadInicial?o("geralLoader"):e._e(),e._v(" "),o("nuxt",{class:["main-route","loader-route",e.$store.state.loading&&"-loading"]}),e._v(" "),o("geralSend-to-top-button"),e._v(" "),e.loadSegundaDobra?o("rodape"):e._e(),e._v(" "),e.loadSegundaDobra?o("geralPopup-quick-view"):e._e(),e._v(" "),e.loadSegundaDobra?o("geralPopups"):e._e(),e._v(" "),o("div",{attrs:{id:"container-cover-screen"}}),e._v(" "),o("geralSymbol")],1):o("geralAguarde")},[],!1,null,null,null);e.default=component.exports;installComponents(component,{VendaInterna:o(401).default})}}]);