enqueueScripts([function(){ (window.webpackJsonpvtex_product_list_context_0_4_1=window.webpackJsonpvtex_product_list_context_0_4_1||[]).push([["useProductImpression"],[function(e,t){e.exports=React},,,function(e,t,n){"use strict";n.r(t);var s=n(1),i=n(0),r=n.n(i),o={nextImpressions:[],sentIds:new Map},c=Object(i.createContext)(o),a=Object(i.createContext)((function(e){console.error("error in dispatch ",e)}));function u(e,t){var n,s;switch(t.type){case"SEND_IMPRESSION":var i=t.args,r=i.product,o=i.position,c=void 0===o?0:o,a=e.nextImpressions;if(e.sentIds.has(r.productId))return e;var u=e.sentIds.size+1;e.sentIds.set(r.productId,{position:u});var l=null!==(s=null===(n=e.nextImpressions[0])||void 0===n?void 0:n.impressionIndex)&&void 0!==s?s:u;return a=e.nextImpressions.concat({product:r,impressionIndex:u,originalIndex:c}).sort((function(e,t){return e.originalIndex-t.originalIndex})).map((function(e,t){return Object.assign(Object.assign({},e),{impressionIndex:l+t})})),Object.assign(Object.assign({},e),{nextImpressions:a});case"RESET_NEXT_IMPRESSIONS":return Object.assign(Object.assign({},e),{nextImpressions:[]});case"SET_LIST_NAME":return t.args.listName!==e.listName?Object.assign(Object.assign({},e),{listName:t.args.listName,sentIds:new Map}):e;default:throw new Error("Unhandled action type on product-list-context")}}var l={nextImpressions:[],sentIds:new Map};t.default={ProductListProvider:function(e){var t=e.children,n=e.listName,o=Object(i.useReducer)(u,l),d=Object(s.a)(o,2),p=d[0],f=d[1];return Object(i.useEffect)((function(){f({type:"SET_LIST_NAME",args:{listName:n}})}),[n]),r.a.createElement(c.Provider,{value:p},r.a.createElement(a.Provider,{value:f},t))},useProductListState:function(){return Object(i.useContext)(c)},useProductListDispatch:function(){return Object(i.useContext)(a)}}},,function(e,t){function n(e,t,n){var s,i,r,o,c;function a(){var u=Date.now()-o;u=0?s=setTimeout(a,t-u):(s=null,n||(c=e.apply(r,i),r=i=null))}null==t&&(t=100);var u=function(){r=this,i=arguments,o=Date.now();var u=n&&!s;return s||(s=setTimeout(a,t)),u&&(c=e.apply(r,i),r=i=null),c};return u.clear=function(){s&&(clearTimeout(s),s=null)},u.flush=function(){s&&(c=e.apply(r,i),r=i=null,clearTimeout(s),s=null)},u}n.debounce=n,e.exports=n},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},,function(e,t,n){"use strict";n.r(t),function(e){var t=n(2);n.p=Object(t.getPublicPath)("vtex.product-list-context@0.4.1");var s=Object(t.register)((function(){return n(9)}),e,"vtex.product-list-context@0.4.1","vtex.product-list-context@0.x","useProductImpression");s.renderHotReload,s.setupHMR}.call(this,n(4)(e))},function(e,t,n){"use strict";n.r(t);var s=n(0),i=n(5),r=n.n(i),o=n(6),c=n.n(o),a=n(3),u=n(1),l=/.+ids\/(\d+)/,d=/http:\/\//;function p(e,t,n){return e.includes("/arquivos/ids/")?"".concat(function(e){var t=l.exec(e);if(t&&t.length>0)return t[0]}(e),"-").concat(t,"-").concat(n):e}var f={imageUrl:"",imageLabel:""},m={Value:""},v={commertialOffer:{Price:0,ListPrice:0}};function x(e){return e.sellers.find((function(e){var t=e.commertialOffer;return(void 0===t?{}:t).AvailableQuantity>0}))}function I(e){var t,n,s,i=Object.assign({},e),r=i.items||[],o=r.find(x)||r[0];if(o){var c=null!==(t=null==o?void 0:o.sellers)&&void 0!==t?t:[],a=Object(u.a)(c,1)[0],l=void 0===a?v:a,I=null!==(n=o.referenceId)&&void 0!==n?n:[],b=Object(u.a)(I,1)[0],g=void 0===b?m:b,O=null!==(s=o.images)&&void 0!==s?s:[],h=Object(u.a)(O,1)[0],j=void 0===h?f:h,_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof n&&(n=Math.min(n,4e3));var s=p(e,t,n),i=s.includes("?")?"&":"?";return"".concat(s).concat(i,"width=").concat(t,"&height=").concat(n,"&aspect=true")}}(j.imageUrl.replace(d,"https://"),500),E=Object.assign(Object.assign({},j),{imageUrl:_});i.sku=Object.assign(Object.assign({},o),{seller:l,referenceId:g,image:E})}return i}var b=a.default.useProductListDispatch,g=a.default.useProductListState,O=function(e){var t=e.push,n=e.nextImpressions,s=e.dispatch,i=e.listName;!n||n.length<=0||(t({event:"productImpression",list:i||"List of products",impressions:n.filter(Boolean).map((function(e,t){var n=e.product,s=e.impressionIndex;return{product:I(n),position:null!=s?s:t}}))}),s({type:"RESET_NEXT_IMPRESSIONS"}))};t.default=function(){var e=g(),t=e.nextImpressions,n=e.listName,i=c.a.usePixel().push,o=b(),a=Object(s.useCallback)(r()(O,1e3,!1),[]);Object(s.useEffect)((function(){a({push:i,dispatch:o,listName:n,nextImpressions:t})}),[t,a,o,i,n])}}],[[8,"common"]]]); },function(){ !function(e){function t(t){for(var r,u,a=t[0],c=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis.cancelTask(n,e)},resolve:void 0,reject:void 0};n.args.push(n.cancellationToken),this.queue.push(n),this.scheduler.schedule(()=>this.next());const i=new Promise((e,t)=>{n.resolve=e,n.reject=t});return i.cancel=e=>n.cancellationToken.cancel(e),i}cancel(){this.currentTask&&this.cancelTask(this.currentTask,s.cancel);const e=this.queue.splice(0);return e.length&&(e.forEach(e=>this.cancelTask(e,s.cancel)),this.emit(o)),this.wait()}indexOf(e){var t;if((null===(t=this.currentTask)||void 0===t?void 0:t.callback)===e)return 0;const n=this.queue.filter(e=>{var t;return!(null===(t=e.cancellationToken)||void 0===t?void 0:t.cancelled)}).findIndex(t=>t.callback===e);return n<0?n:n+(void 0!==this.currentTask?1:0)}close(e){return!this._isClosed&&(this._isClosed=!0,e)?this.cancel():this.wait()}async wait(){return this.currentTask||0!==this.queue.length?new Promise(e=>{this.waiters.push(e)}):Promise.resolve()}on(e,t){var n;this.events=null!==(n=this.events)&&void 0!==n?n:{},(this.events[e]||(this.events[e]=[])).push(t)}once(e,t){const n=(...i)=>{this.removeListener(e,n),t.apply(this,i)};this.on(e,n)}removeListener(e,t){if(this.events){const n=this.events[e];if(n){let e=0;for(;ee.apply(this,t))}catch(t){console.error(`${this.name}: Exception in '${e}' event handler`,t)}}next(){if(!this.currentTask){let t=this.queue.shift();for(;null==t?void 0:t.cancellationToken.cancelled;)t=this.queue.shift();if(t)try{this.currentTask=t,t.timeout&&(t.timeoutHandle=setTimeout(()=>{this.emit(l),this.cancelTask(t,s.timeout)},t.timeout));const n=t.callback.apply(void 0,t.args);n&&((e=n)&&"function"==typeof e.then)?n.then(e=>{t.result=e,this.doneTask(t)},e=>{this.doneTask(t,e)}):(t.result=n,this.doneTask(t))}catch(e){this.doneTask(t,e)}else this.callWaiters()}var e}cancelTask(e,t){e.cancellationToken.cancelled=!0,e.cancellationToken.reason=t,this.doneTask(e)}doneTask(e,t){e.timeoutHandle&&clearTimeout(e.timeoutHandle),e.cancellationToken.cancel=u,t?(this.emit(a,t),e.reject.call(void 0,t)):e.cancellationToken.cancelled?e.reject.call(void 0,e.cancellationToken.reason):e.resolve.call(void 0,e.result),this.currentTask===e&&(this.currentTask=void 0,this.queue.length?this.scheduler.schedule(()=>this.next()):(this.emit(o),this.callWaiters()))}callWaiters(){this.waiters.splice(0).forEach(e=>e())}}c.defaultScheduler={schedule:e=>setTimeout(()=>e(),0)},c.defaultScheduler={schedule:"function"==typeof e?t=>e(()=>t()):e=>setTimeout(()=>e(),0)};const d={id:"default-order-form",items:[],value:-1,totalizers:[],marketingData:{},canEditData:!1,loggedIn:!1,paymentData:{isValid:!1,installmentOptions:[],paymentSystems:[],payments:[],availableAccounts:[]},messages:{couponMessages:[],generalMessages:[]},shipping:{isValid:!1,deliveryOptions:[],pickupOptions:[]}};class f{constructor(){this.queue=new c,this.taskIdMap={},this.listeners={},this.isEmpty=!0,this.queue.on("drained",()=>{this.isEmpty=!0,this.emit("Fulfilled")})}isWaiting(e){return!!this.taskIdMap[e]}enqueue(e,t){this.isEmpty&&(this.isEmpty=!1,this.emit("Pending")),t&&this.taskIdMap[t]&&this.taskIdMap[t].promise.cancel();const n=()=>(t&&this.taskIdMap[t]&&delete this.taskIdMap[t],new Promise((t,n)=>{const i=async()=>{try{const n=await e();t(n)}catch(e){if(!navigator.onLine)return;n(e)}window.removeEventListener("online",i)};window.addEventListener("online",i),navigator.onLine&&i()})),i=this.queue.push(n),r=i.cancel;return i.cancel=()=>r({code:"TASK_CANCELLED",index:this.queue.indexOf(n)}),t&&(this.taskIdMap[t]={task:e,promise:i}),i}listen(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);return()=>{const n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}}emit(e){this.listeners[e]&&this.listeners[e].forEach(e=>e())}}const h=Object(i.createContext)(void 0),m=()=>{const{status:e}=g();return e},v=({children:e})=>{const[t]=Object(i.useState)(()=>new f),n=Object(i.useRef)("Fulfilled");Object(i.useLayoutEffect)(()=>t.listen("Pending",()=>n.current="Pending"),[t]),Object(i.useLayoutEffect)(()=>t.listen("Fulfilled",()=>n.current="Fulfilled"),[t]);const s=Object(i.useMemo)(()=>({enqueue:t.enqueue.bind(t),listen:t.listen.bind(t),isWaiting:t.isWaiting.bind(t),status:n}),[t,n]);return r.a.createElement(h.Provider,{value:s},e)};function g(){const e=Object(i.useContext)(h);if(void 0===e)throw new Error("useOrderQueue must be used within a OrderQueueProvider");return e}var p,T,y,w,b;const k=null!==(b=!("undefined"==typeof window||!window.document||!window.document.createElement)&&(null===(w=null===(y=null===(T=null===(p=window)||void 0===p?void 0:p.__RUNTIME__)||void 0===T?void 0:T.settings)||void 0===y?void 0:y["vtex.store"])||void 0===w?void 0:w.enableOrderFormOptimization))&&void 0!==b&&b,O=Object(i.createContext)({orderForm:d,setOrderForm:()=>{},error:void 0,loading:!1});function E(){const e=Object(i.useContext)(O);if(void 0===e)throw new Error("useOrderForm must be used within a OrderFormProvider");return e}function F(){var e;return"undefined"==typeof document?null:JSON.parse(null!==(e=localStorage.getItem("orderform"))&&void 0!==e?e:"null")}function I(e,t){return"function"==typeof t?{...e,...t({...e,value:-1===e.value?0:e.value})}:{...e,...t}}function _({useOrderFormMessages:e,useGetOrderForm:t,useLogger:n,defaultOrderForm:s}){return{OrderFormProvider:({children:o})=>{var a,l;const{log:u}=null!==(a=null==n?void 0:n())&&void 0!==a?a:{},c="undefined"!=typeof document&&!navigator.onLine,[d,f]=Object(i.useReducer)(I,null!==(l=c?F():s)&&void 0!==l?l:s),{loading:h,data:v,error:g}=t({orderForm:d,setOrderForm:f}),[p,T]=Object(i.useState)(!c),y=m();Object(i.useEffect)(()=>{if(h||g||!v)return;const e=F();if(null!=e&&(!((e,t)=>-1===e.value||k&&e.id!==t.id&&"default-order-form"!==e.id)(e,v.orderForm)||"Fulfilled"!==y.current))return T(!1),void f(t=>t.id!==s.id?t:e);f(v.orderForm),T(!1)},[v,g,h,y]),Object(i.useEffect)(()=>{((e,t)=>{try{localStorage.setItem("orderform",JSON.stringify(e))}catch(e){null==t||t({type:"Error",level:"Critical",event:e,workflowType:"OrderManager",workflowInstance:"save-local-orderform"})}})(d,u)},[u,d]),e(d,f);const w=Object(i.useMemo)(()=>"default-order-form"!==d.id?{error:g,orderForm:{...d,value:-1===d.value?0:d.value,messages:{...d.messages,generalMessages:[]}},initialFetchComplete:!0,setOrderForm:f,loading:p}:{error:g,orderForm:{...d,value:-1===d.value?0:d.value,messages:{...d.messages,generalMessages:[]}},initialFetchComplete:!1,setOrderForm:f,loading:p},[g,d,p]);return r.a.createElement(O.Provider,{value:w},o)}}}function M({useToast:e,useClearOrderFormMessages:t,useGetOrderForm:n,useLogger:r,defaultOrderForm:s}){return _({useOrderFormMessages:(({useClearOrderFormMessages:e,useToast:t})=>(n,r)=>{const[s,o]=Object(i.useState)([]),{showToast:a,toastState:l}=t(),{enqueue:u}=g(),c=m(),d=e();Object(i.useEffect)(()=>{!l.isToastVisible&&s.length&&(a(s[0].text),o(e=>e.slice(1)))},[a,l.isToastVisible,s]),Object(i.useEffect)(()=>{var e,t;if(!(null===(t=null===(e=n.messages)||void 0===e?void 0:e.generalMessages)||void 0===t?void 0:t.length))return;o(e=>{var t,i;return e.concat(null!==(i=null===(t=n.messages)||void 0===t?void 0:t.generalMessages)&&void 0!==i?i:[])}),r(e=>({...e,messages:{...e.messages,generalMessages:[]}}));u(async()=>{const{data:e}=await d({orderFormId:n.id});return e.clearOrderFormMessages}).then(e=>{"Fulfilled"===c.current&&r(e)},e=>{if("TASK_CANCELLED"!==e.code)throw e})},[d,u,n.id,n.messages,c,r])})({useToast:e,useClearOrderFormMessages:t}),useGetOrderForm:n,useLogger:r,defaultOrderForm:s})}}).call(this,n(18).setImmediate)},18:function(e,t,n){var i="undefined"!=typeof global&&global||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(19),t.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate},19:function(e,t,n){(function(e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,s,o,a,l=1,u={},c=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){m(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){m(e.data)},i=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&m(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(o+e,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?"values":"value",' in the props of a component. Please use "phone" and "tablet" in this case.'))}}}(e),{devices:{phone:c(e,["phone","mobile","tablet","desktop"]),tablet:c(e,["tablet","mobile","desktop","phone"]),desktop:c(e,["desktop","tablet","phone","mobile"])},queries:n}},l=function(e){var t=[],n=new Set;return Object.keys(e).forEach((function(o){var i=s(e[o]);Object.keys(i.queries).forEach((function(e){return n.add(e)})),t.push([o,i])})),{inputList:t,queryList:Object(o.a)(n)}}},,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.responsive-values@0.4.2");var o=Object(t.register)((function(){return n(15)}),e,"vtex.responsive-values@0.4.2","vtex.responsive-values@0.x","useResponsiveValue");o.renderHotReload,o.setupHMR}.call(this,n(11)(e))},function(e,t,n){"use strict";n.r(t);var o=n(5),i=n.n(o),r=n(6),u=n(2);t.default=function(e){var t=i()().device,n=Object(r.a)(e),o=n.devices,a=n.queries,c=Object.keys(a),s=Object(u.b)(c).mediaQueries;if(c.length>0){var l=Object(u.a)(s);if(l)return a[l]}return o[t]}}],[[14,"common"]]]); },function(){ (window.webpackJsonpvtex_responsive_values_0_4_2=window.webpackJsonpvtex_responsive_values_0_4_2||[]).push([["useResponsiveValues"],[,,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(4),i=n(0),r=n(3),u={};function c(e){return u[e]||"function"!=typeof(null===window||void 0===window?void 0:window.matchMedia)||(u[e]=window.matchMedia(e)),u[e]}function a(e){var t=Object(r.useState)((function(){var t={};return e.forEach((function(e){var n;t[e]=Boolean(null===(n=c(e))||void 0===n?void 0:n.matches)})),t})),n=Object(i.a)(t,2),u=n[0],a=n[1];return Object(r.useLayoutEffect)((function(){if("function"==typeof(null===window||void 0===window?void 0:window.matchMedia)&&0!==e.length){var t=e.map((function(e){var t=!0,n=c(e);void 0!==u[e]&&null!==u[e]||a((function(t){return Object.assign(Object.assign({},t),Object(o.a)({},e,Boolean(null==n?void 0:n.matches)))}));var i=function(n){t&&a((function(t){return Object.assign(Object.assign({},t),Object(o.a)({},e,n.matches))}))};return null==n||n.addListener(i),function(){t=!1,null==n||n.removeListener(i)}}));return function(){t.forEach((function(e){return e()}))}}}),[JSON.stringify(e),a]),{mediaQueries:Object.entries(u)}}var s=function(e){var t=e.find((function(e){return Object(i.a)(e,2)[1]}));if(t)return Object(i.a)(t,1)[0]}},function(e,t){e.exports=React},,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var o=n(10),i=n(9),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i1?"values":"value",' in the props of a component. Please use "phone" and "tablet" in this case.'))}}}(e),{devices:{phone:a(e,["phone","mobile","tablet","desktop"]),tablet:a(e,["tablet","mobile","desktop","phone"]),desktop:a(e,["desktop","tablet","phone","mobile"])},queries:n}},l=function(e){var t=[],n=new Set;return Object.keys(e).forEach((function(o){var i=s(e[o]);Object.keys(i.queries).forEach((function(e){return n.add(e)})),t.push([o,i])})),{inputList:t,queryList:Object(o.a)(n)}}},,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.responsive-values@0.4.2");var o=Object(t.register)((function(){return n(17)}),e,"vtex.responsive-values@0.4.2","vtex.responsive-values@0.x","useResponsiveValues");o.renderHotReload,o.setupHMR}.call(this,n(11)(e))},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n(5),r=n.n(i),u=n(6),c=n(2);t.default=function(e){var t=r()().device,n=Object(u.b)(e),i=n.inputList,a=n.queryList,s=Object(c.b)(a).mediaQueries,l={};return i.forEach((function(e){var n=Object(o.a)(e,2),i=n[0],r=n[1];if(Object.keys(r.queries).length>0){var u=Object(c.a)(s);if(u)return void(l[i]=r.queries[u])}l[i]=r.devices[t]})),l}}],[[16,"common"]]]); },function(){ !function(e){function n(n){for(var r,u,c=n[0],a=n[1],l=n[2],p=0,s=[];p