1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{106:function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var f=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||f):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r},109:function(e,t,n){"use strict";n.r(t),t.default=(e,t)=>{t("setVarCss",((e,t)=>{document.documentElement.style.setProperty("--".concat(e),t)}))}},154:function(e,t,n){e.exports={}},165:function(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u={},a=function e(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:e,headers:{keys:function(){return o},entries:function(){return o.map((function(e){return[e,s.getResponseHeader(e)]}))},get:function(e){return s.getResponseHeader(e)},has:function(e){return null!=s.getResponseHeader(e)}}}};for(var i in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(e,t){u[t]||o.push(u[t]=t)})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(i,t.headers[i]);s.send(t.body||null)}))}n.d(t,"a",(function(){return r}))},167:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function l(e,source,t){return e.concat(source).map((function(element){return c(element,t)}))}function f(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return Object.propertyIsEnumerable.call(e,symbol)})):[]}(e))}function d(object,e){try{return e in object}catch(e){return!1}}function v(e,source,t){var n={};return t.isMergeableObject(e)&&f(e).forEach((function(r){n[r]=c(e[r],t)})),f(source).forEach((function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return h;var n=t.customMerge(e);return"function"==typeof n?n:h}(r,t)(e[r],source[r],t):n[r]=c(source[r],t))})),n}function h(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||l,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):v(e,source,t):c(source,t)}h.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return h(e,n,t)}),{})};var m=h;e.exports=m},169:function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";var r="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},o=n(1);e.exports=function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":r(document))&&"string"==typeof document.cookie,s="object"===(void 0===t?"undefined":r(t))&&"object"===(void 0===n?"undefined":r(n))&&void 0!==e,u=!a&&!s||a&&s,c=function(e){if(s){var r=t.headers.cookie||"";return e&&(r=(r=n.getHeaders())["set-cookie"]?r["set-cookie"].map((function(e){return e.split(";")[0]})).join(";"):""),r}if(a)return document.cookie||""},l=function(){var e=n.getHeader("Set-Cookie");return(e="string"==typeof e?[e]:e)||[]},p=function(e){return n.setHeader("Set-Cookie",e)},f=function(e,t){if(!t)return e;try{return JSON.parse(e)}catch(t){return e}},d={parseJSON:i,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(t="object"===(void 0===t?"undefined":r(t))?JSON.stringify(t):t,s){var i=l();i.push(o.serialize(e,t,n)),p(i)}else document.cookie=o.serialize(e,t,n)},setAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(e)&&e.forEach((function(e){var t=e.name,n=void 0===t?"":t,r=e.value,o=void 0===r?"":r,i=e.opts,a=void 0===i?{path:"/"}:i;d.set(n,o,a)}))},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return"";var n=o.parse(c(t.fromRes))[e];return f(n,t.parseJSON)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:d.parseJSON};if(u)return{};var t=o.parse(c(e.fromRes));for(var n in t)t[n]=f(t[n],e.parseJSON);return t},remove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};u||(t.expires=new Date(0),d.set(e,"",t))},removeAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:"/"};if(!u){var t=o.parse(c());for(var n in t)d.remove(n,e)}},nodeCookie:o};return d}},function(e,t,n){"use strict";function i(e,t){try{return t(e)}catch(t){return e}}t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=e.split(u),s=r.decode||a,c=0;c<o.length;c++){var l=o[c],p=l.indexOf("=");if(!(p<0)){var f=l.substr(0,p).trim(),d=l.substr(++p,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),null==n[f]&&(n[f]=i(d,s))}}return n},t.serialize=function(e,t,n){var o=n||{},c=o.encode||s;if("function"!=typeof c)throw new TypeError("option encode is invali
2d");if(!r.test(e))throw new TypeError("argument name is invalid");var i=c(t);if(i&&!r.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!r.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!r.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},170:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(47),n(60),n(48);function r(e){return null!==e&&"object"==typeof e}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",c=arguments.length>3?arguments[3]:void 0;if(!r(t))return o(e,{},n,c);var l=Object.assign({},t);for(var f in e)if("__proto__"!==f&&"constructor"!==f){var d=e[f];null!=d&&(c&&c(l,f,d,n)||(Array.isArray(d)&&Array.isArray(l[f])?l[f]=l[f].concat(d):r(d)&&r(l[f])?l[f]=o(d,l[f],(n?"".concat(n,"."):"")+f.toString(),c):l[f]=d))}return l}function c(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(((p,t)=>o(p,t,"",e)),{})}}var l=c();l.fn=c(((e,t,n,r)=>{if(void 0!==e[t]&&"function"==typeof n)return e[t]=n(e[t]),!0})),l.arrayFn=c(((e,t,n,r)=>{if(Array.isArray(e[t])&&"function"==typeof n)return e[t]=n(e[t]),!0})),l.extend=c},173:function(e,t,n){"use strict";n.r(t);var r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"titles"},[t("img",{attrs:{src:n(246),alt:"",width:"38.5",height:"18"}}),e._v(" "),t("span",[e._v("Venda Interna")])])},function(){var e=this,t=e._self._c;return t("button",{staticClass:"green statusFinalizar",attrs:{type:"button",title:"Finalizar compra",name:"button"}},[e._v("Finalizar "),t("span",{staticClass:"amoitado"},[e._v("Venda")])])}],o={props:{dados:Object,carrinho:Object},methods:{alert(){confirm("Tem certeza que deseja cancelar?")&&this.cancelarVenda()},cancelarVenda(){this.$axios.post("/v2/front/sale/cancel").then((e=>{window.location.href=e.data.redirect})).catch((()=>{alert("Hove um erro ao cancelar a venda.")}))}}},c=(n(247),n(26)),component=Object(c.a)(o,(function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"vendaInternaSpace"}),e._v(" "),t("div",{staticClass:"vendaInterna topoVendaInterna"},[e._m(0),e._v(" "),t("div",{staticClass:"numeroVenda"},[t("span",[e._v("Venda nº")]),e._v(" "),t("span",{staticClass:"numero"},[e._v(e._s(e.dados.vendaInterna.id))])]),e._v(" "),t("div",{staticClass:"nomes"},[t("span",[t("span",{staticClass:"operador"},[e._v("Operador")]),t("span",{staticClass:"cliente"},[e._v(" "+e._s(e.dados.vendaInterna.usuario.nome))])]),e._v(" "),t("span",[t("span",{staticClass:"operador"},[e._v("Cliente")]),t("span",{staticClass:"cliente"},[e._v(" "+e._s(e.dados.id)+" - "+e._s(e.dados.nomeRazao))])])]),e._v(" "),t("div",{staticClass:"botoes"},[t("a",{attrs:{href:"".concat(e.$store.state.siteUrl,"/checkout/pagamento")}},[e._m(1)]),e._v(" "),t("button",{staticClass:"red cancelarVendaInterna",attrs:{type:"button",name:"button"},on:{click:function(t){return e.alert()}}},[e._v("Cancelar "),t("span",{staticClass:"amoitado"},[e._v("Venda")])])]),e._v(" "),t("div",{staticClass:"itens"},[t("span",[t("span",{staticClass:"quantidade"},[e._v("Itens carrinho")]),t("span",{staticClass:"valor itensCarrinho"},[e._v(" "+e._s(e.carrinho.quantidadeItens))])]),e._v(" "),t("span",[t("span",{staticClass:"quantidade"},[e._v("Valor total")]),t("span",{staticClass:"valor totalCarrinho"},[e._v(" "+e._s(e._f("formatPrice")(e.carrinho.subtotal.valor)))])])])])])}),r,!1,null,"05606371",null);t.default=component.exports},175:function(e,t,n){e.exports={}},176:function(e,t,n){e.exports={}},179:function(e,t,n){(function(e){e.installComponents=function(component,e){var n="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(n.components=component.exports.options.components),n.components=n.components||{},e)n.components[i]=n.components[i]||e[i];n.functional&&function(component,e){if(component.exports[t])return;component.exports[t]=!0;var n=component.exports.render;component.exports.render=function(t,r){return n(t,Object.assign({},r,{_c:function(t,a,b){return r._c(e[t]||t,a,b)}}))}}(component,n.components)};var t="_functionalComponents"}).call(this,n(34))},240:function(e,t,n){e.exports={}},246:function(e,t,n){e.exports=n.p+"img/logo.762f619.png"},247:function(e,t,n){"use strict";n(154)},280:function(e,t,n){"use strict";n.r(t);var r={components:{vendaInternaBar:n(173).default},computed:{dadosUser(){return this.$store.state.user},dadosCarrinho(){return this.$store.state.carrinho}}},o=n(26),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return e.dadosUser&&e.dadosCarrinho&&Object.keys(e.dadosUser.vendaInterna).length>0&&e.dadosUser.vendaInterna.id?t("vendaInternaBar",{attrs:{dados:e.dadosUser,carrinho:e.dadosCarrinho}}
2):e._e()}),[],!1,null,null,null);t.default=component.exports},46:function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var f=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||f):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.