enqueueScripts([function(){ (window.webpackJsonpvtex_render_runtime_8_135_1=window.webpackJsonpvtex_render_runtime_8_135_1||[]).push([["ExtensionContainer"],{52:function(e,n){e.exports=__RENDER_8_RUNTIME__},564:function(e,n,t){"use strict";t.r(n),function(e){var n=t(27);t.p=Object(n.getPublicPath)("vtex.render-runtime@8.135.1");var r=Object(n.register)((function(){return t(565)}),e,"vtex.render-runtime@8.135.1","vtex.render-runtime@8.x","ExtensionContainer");r.renderHotReload,r.setupHMR}.call(this,t(43)(e))},565:function(e,n,t){"use strict";t.r(n);var r=t(52);n.default=r.ExtensionContainer}},[[564,"common"]]]); },function(){ !function(t){function n(n){for(var e,i,c=n[0],f=n[1],a=n[2],p=0,l=[];p=0||(u[r]=t[r]);return u}},101:function(t,n,r){var e=r(909),o=r(912);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=e(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&o(t,n)}},102:function(t,n,r){var e=r(532),o=r(1005);t.exports=function(t,n){if(null==t)return{};var r,u,i=o(t,n);if(e){var c=e(t);for(u=0;u=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}},1081:function(t,n,r){t.exports=r(1082)},109:function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},11:function(t,n,r){"use strict";function e(t,n,r,e,o,u,i){try{var c=t[u](i),f=c.value}catch(t){return void r(t)}c.done?n(f):Promise.resolve(f).then(e,o)}function o(t){return function(){var n=this,r=arguments;return new Promise((function(o,u){var i=t.apply(n,r);function c(t){e(i,o,u,c,f,"next",t)}function f(t){e(i,o,u,c,f,"throw",t)}c(void 0)}))}}r.d(n,"a",(function(){return o}))},1100:function(t,n){function r(){return t.exports=r=Object.assign||function(t){for(var n=1;n=0||(o[r]=t[r]);return o}r.d(n,"a",(function(){return e}))},16:function(t,n,r){"use strict";function e(){return(e=Object.assign||function(t){for(var n=1;nt.length)&&(n=t.length);for(var r=0,e=new Array(n);r=0||(o[r]=t[r]);return o}r.d(n,"a",(function(){return e}))},532:function(t,n,r){t.exports=r(898)},533:function(t,n,r){t.exports=r(906)},543:function(t,n,r){t.exports=r(981)},545:function(t,n,r){t.exports=r(989)},555:function(t,n,r){t.exports=r(1046)},6:function(t,n,r){t.exports=r(118)},610:function(t,n,r){"use strict";function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(n,"a",(function(){return e}))},611:function(t,n,r){"use strict";r.d(n,"a",(function(){return o}));var e=r(177);function o(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,Object(e.a)(t,n)}},627:function(t,n,r){"use strict";function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.d(n,"a",(function(){return c}));var o=r(177);function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function i(t,n,r){return(i=u()?Reflect.construct:function(t,n,r){var e=[null];e.push.apply(e,n);var u=new(Function.bind.apply(t,e));return r&&Object(o.a)(u,r.prototype),u}).apply(null,arguments)}function c(t){var n="function"==typeof Map?new Map:void 0;return(c=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,u)}function u(){return i(t,arguments,e(this).constructor)}return u.prototype=Object.create(t.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Object(o.a)(u,t)})(t)}},628:function(t,n,r){"use strict";function e(t){return function(t){if(Array.isArray(t)){for(var n=0,r=new Array(t.length);n1)for(var n=1;n=e||n<0||b&&t-d>=s}function w(){var t=o();if(j(t))return O(t);l=setTimeout(w,function(t){var n=e-(t-y);return b?c(n,s-(t-d)):n}(t))}function O(t){return l=void 0,m&&f?v(t):(f=a=void 0,p)}function A(){var t=o(),n=j(t);if(f=arguments,a=this,y=t,n){if(void 0===l)return h(y);if(b)return clearTimeout(l),l=setTimeout(w,e),v(y)}return void 0===l&&(l=setTimeout(w,e)),p}return e=i(e)||0,r(n)&&(g=!!n.leading,s=(b="maxWait"in n)?u(i(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),A.cancel=function(){void 0!==l&&clearTimeout(l),d=0,f=y=a=l=void 0},A.flush=function(){return void 0===l?p:O(o())},A}},182:function(t,e,n){var r=n(85),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[c]=n:delete t[c]),o}},183:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},392:function(t,e,n){var r=n(65);t.exports=function(){return r.Date.now()}},393:function(t,e,n){var r=n(116),o=n(105),i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,a=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=c.test(t);return n||f.test(t)?a(t.slice(2),n?2:8):u.test(t)?NaN:+t}},394:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},453:function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&e._extend(r,n),h(r.showHidden)&&(r.showHidden=!1),h(r.depth)&&(r.depth=2),h(r.colors)&&(r.colors=!1),h(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),p(r,t,r.depth)}function a(t,e){var n=f.styles[e];return n?"["+f.colors[n][0]+"m"+t+"["+f.colors[n][1]+"m":t}function s(t,e){return t}function p(t,n,r){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return v(o)||(o=p(t,o,r)),o}var i=function(t,e){if(h(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(m(e))return t.stylize(""+e,"number");if(g(e))return t.stylize(""+e,"boolean");if(b(e))return t.stylize("null","null")}(t,n);if(i)return i;var u=Object.keys(n),c=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(u);if(t.showHidden&&(u=Object.getOwnPropertyNames(n)),A(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return l(n);if(0===u.length){if(S(n)){var f=n.name?": "+n.name:"";return t.stylize("[Function"+f+"]","special")}if(j(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return t.stylize(Date.prototype.toString.call(n),"date");if(A(n))return l(n)}var a,s="",w=!1,x=["{","}"];(d(n)&&(w=!0,x=["[","]"]),S(n))&&(s=" [Function"+(n.name?": "+n.name:"")+"]");return j(n)&&(s=" "+RegExp.prototype.toString.call(n)),O(n)&&(s=" "+Date.prototype.toUTCString.call(n)),A(n)&&(s=" "+l(n)),0!==u.length||w&&0!=n.length?r<0?j(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),a=w?function(t,e,n,r,o){for(var i=[],u=0,c=e.length;u=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(a,s,x)):x[0]+s+x[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function y(t,e,n,r,o,i){var u,c,f;if((f=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?c=f.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):f.set&&(c=t.stylize("[Setter]","special")),k(r,o)||(u="["+o+"]"),c||(t.seen.indexOf(f.value)<0?(c=b(n)?p(t,f.value,null):p(t,f.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+c.split("\n").map((function(t){return" "+t})).join("\n")):c=t.stylize("[Circular]","special")),h(u)){if(i&&o.match(/^\d+$/))return c;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+c}function d(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function b(t){return null===t}function m(t){return"number"==typeof t}function v(t){return"string"==typeof t}function h(t){return void 0===t}function j(t){return w(t)&&"[object RegExp]"===x(t)}function w(t){return"object"==typeof t&&null!==t}function O(t){return w(t)&&"[object Date]"===x(t)}function A(t){return w(t)&&("[object Error]"===x(t)||t instanceof Error)}function S(t){return"function"==typeof t}function x(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(n=n.toUpperCase(),!i[n])if(u.test(n)){var r=t.pid;i[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else i[n]=function(){};return i[n]},e.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(646),e.isArray=d,e.isBoolean=g,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=h,e.isRegExp=j,e.types.isRegExp=j,e.isObject=w,e.isDate=O,e.types.isDate=O,e.isError=A,e.types.isNativeError=A,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(468);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),E[t.getMonth()],e].join(" ")}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",B(),e.format.apply(e,arguments))},e.inherits=n(394),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(P&&t[P]){var e;if("function"!=typeof(e=t[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i=0&&"[object Array]"!==o.call(t)&&"[object Function]"===o.call(t.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=u,t.exports=c?i:u},648:function(t,e,n){"use strict";var r=Object.prototype.toString,o=Function.prototype.toString,i=/^\s*(?:function)?\*/,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,c=Object.getPrototypeOf,f=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch(t){}}(),a=f?c(f):{};t.exports=function(t){return"function"==typeof t&&(!!i.test(o.call(t))||(u?c(t)===a:"[object GeneratorFunction]"===r.call(t)))}},65:function(t,e,n){var r=n(155),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},85:function(t,e,n){var r=n(65).Symbol;t.exports=r}}]); },function(){ (window.webpackJsonpvtex_admin_pages_4_57_0=window.webpackJsonpvtex_admin_pages_4_57_0||[]).push([["HighlightOverlay"],{0:function(e,t){e.exports=React},1132:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return R})),n.d(t,"State",(function(){return S.State}));var i=n(3),a=n(0),r=n.n(a),o=n(35),c=n.n(o),l=n(1144),s=n(15),h=n(168);var u=n.n(h)()((function(e){var t;(t=e.getBoundingClientRect()).top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),75);function d(e,t){var n=document.querySelectorAll('[data-extension-point="'.concat(e,'"]')),i=document.querySelector(".render-provider"),a=Array.prototype.slice.call(n),r=(window.innerWidth||document.documentElement.clientWidth)/2,o=a.filter((function(e){var t,n=e.getBoundingClientRect();return n.width>0&&n.height>0&&((t=e.getBoundingClientRect()).left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth))})).sort((function(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=n.left||0+n.width,o=i.left||0+i.width,c=r-a<0?a-r:r-a,l=r-o<0?o-r:r-o;return cl?1:0}))[0],c=t[e]&&t[e].isEditable;return{visibleElement:o,hasValidElement:!!(e&&0!==n.length&&o&&c&&i)}}var g=n(568),v=n(453);var m={x:0,y:0,width:0,height:0},b={height:0,width:0,x:0,y:0};var f=function(e){var t=e.hasValidElement,n=e.highlightTreePath,i=e.visibleElement,a=n&&t&&function(e){var t=document.querySelector(".render-provider"),n=document.querySelector("body"),i=n?{left:parseInt(window.getComputedStyle(n,null).paddingLeft||"0",10),right:parseInt(window.getComputedStyle(n,null).paddingRight||"0",10)}:{left:0,right:0},a=t&&t.getBoundingClientRect()||{x:0,y:0},r=e?e.getBoundingClientRect():b;return r.y+=-a.y,r.x+=-a.x+(i.left+i.right)/2,m=r,r}(i)||m,r=a.x,o=a.y,c=a.width,l=a.height,s=c<122.5,h=l<26,u={height:!h&&o-4<0?l:l+8,left:!s&&c>=document.body.scrollWidth?r:r-4,top:!h&&o-4<0?o:o-4,width:!s&&c>=document.body.scrollWidth?document.body.scrollWidth:c+8},d=u.width/document.body.scrollWidth,g=Object.assign(Object.assign({},u),{boxShadow:"rgb(0, 0, 0) 0px ".concat(60*d,"px ").concat(66*d,"px -").concat(78*d,"px"),pointerEvents:"none",zIndex:9999}),v="".concat(u.left,"px"),f="".concat(u.left+u.width,"px"),p="".concat(u.top,"px"),x="".concat(u.top+u.height,"px"),y={clipPath:"polygon(0% 0%, 0% 100%, ".concat(v," 100%, ").concat(v," ").concat(p,", ").concat(f," ").concat(p,", ")+"".concat(f," ").concat(x,", ").concat(v," ").concat(x,", ").concat(v," 100%, 100% 100%, 100% 0%)")};return{highlightStyle:g,labelStyle:{backgroundColor:"#134CD8",width:90,height:20,transform:"".concat(h||s?"translate(4px, -24px)":"")},maskStyle:y}},p=function(e){var t=e.hasValidElement,n=e.highlightTreePath,i=e.isOverlayMaskActive,r=e.setState,o=e.subscribeToResize,c=e.unsubscribeToResize,l=e.visibleElement,s=Object(a.useCallback)((function(e){var i=e,a=f({hasValidElement:t,highlightTreePath:n,visibleElement:l});r((function(e){return Object.assign(Object.assign(Object.assign({},e),a),{elementHeight:i||e.elementHeight})}))}),[t,n,r,l]);Object(a.useEffect)((function(){function e(e){s(e.clientHeight)}return o(e),s(),function(){c(e)}}),[i,o,c,s,l])},x=n(153),y=n.n(x),E={enter:y.a["overlay-mask-enter"],enterActive:y.a["overlay-mask-enter-active"],enterDone:y.a["overlay-mask-enter-done"],exit:y.a["overlay-mask-exit"],exitActive:y.a["overlay-mask-exit-active"],exitDone:y.a["overlay-mask-exit-done"]},w={enter:300,exit:150};function k(e){var t=e.style,n=e.isActive,i=n?{}:{pointerEvents:"none"};return r.a.createElement(l.a,{mountOnEnter:!0,in:n,timeout:w,classNames:E},r.a.createElement("div",{className:"absolute bg-base h-100 w-100",style:Object.assign(Object.assign({},i),t)}))}var O=n(154),T=n.n(O),j={enter:T.a["highlight-enter"],enterActive:T.a["highlight-enter-active"],enterDone:T.a["highlight-enter-done"],exit:T.a["highlight-exit"],exitActive:T.a["highlight-exit-active"],exitDone:T.a["highlight-exit-done"]},R=function(e){var t=r.a.useState((function(){return{editExtensionPoint:e.editExtensionPoint,editMode:e.editMode,highlightHandler:e.highlightHandler,highlightTreePath:e.highlightTreePath,openBlockTreePath:null,sidebarBlocksMap:{}}})),n=Object(i.a)(t,2),o=n[0],h=n[1],m=o.editMode,b=o.highlightTreePath,f=o.openBlockTreePath,x=o.sidebarBlocksMap,y=function(){var e=Object(a.useRef)(new Set),t=Object(a.useCallback)((function(t){(Object(v.isArray)(t)?t:[t]).forEach((function(t){e.current.add(t)}))}),[]),n=Object(a.useCallback)((function(t){(Object(v.isArray)(t)?t:[t]).forEach((function(t){e.current.delete(t)}))}),[]);return Object(a.useEffect)((function(){var t=document.querySelector("body");if(t){var n=(t.getAttribute("style")||"")+"position: relative;";t.setAttribute("style",n)}var i=t&&Object(g.a)(t,(function(t){e.current.forEach((function(e){e(t)}))}));return function(){if(i&&i.parentNode&&i.parentNode.removeChild(i),t){var e=(t.getAttribute("style")||"").replace("position: relative;","");e?t.setAttribute("style",e):t.removeAttribute("style")}}}),[]),{subscribeToResize:t,unsubscribeToResize:n}}(),E=y.subscribeToResize,w=y.unsubscribeToResize,O=function(e){var t=e.subscribeToResize,n=e.unsubscribeToResize,i=Object(a.useRef)(document.createElement("div"));return Object(a.useEffect)((function(){var e=i.current;e.setAttribute("class","absolute z-9999");var a=document.querySelector(".render-provider"),r=a&&window.getComputedStyle(a)||{height:0,width:0};function o(){if(a){var t=window.getComputedStyle(a);e.setAttribute("style","width: ".concat(t.width,"; height: ").concat(t.height,"; pointer-events: none;"))}}function c(){var t=a&&window.getComputedStyle(a)||{height:0,width:0};e.setAttribute("style","width: ".concat(t.width,"; height: ").concat(t.height,"; pointer-events: none;"))}return e.setAttribute("style","width: ".concat(r.width,"; height: ").concat(r.height,"; pointer-events: none;")),a&&a.prepend(e),t(o),window.addEventListener("load",c),function(){n(o),a&&a.removeChild(e),window.removeEventListener("load",c)}}),[t,n]),i.current}({subscribeToResize:E,unsubscribeToResize:w});!function(e){var t=e.editMode,n=e.editExtensionPoint,i=e.highlightHandler,r=e.highlightTreePath,o=e.sidebarBlocksMap,c=Object(a.useRef)(),l=Object(a.useCallback)((function(e){if(e.currentTarget&&e.currentTarget instanceof HTMLElement){var t=e.currentTarget.getAttribute("data-extension-point");t&&o[t]&&o[t].isEditable&&i(t),clearTimeout(c.current),e.stopPropagation()}}),[i,o]),s=Object(a.useCallback)((function(){c.current&&clearTimeout(c.current),c.current=window.setTimeout((function(){i(null)}),300)}),[i]),h=Object(a.useCallback)((function(e){e.currentTarget&&(e.preventDefault(),e.stopPropagation(),n(r),i(null))}),[n,i,r]);Object(a.useEffect)((function(){var e=Array.from(document.querySelectorAll("[data-extension-point]"));return t&&e.forEach((function(e){var n=e;t&&(n.addEventListener("mouseover",l),n.addEventListener("mouseleave",s),n.addEventListener("click",h),n.style.cursor="pointer")})),function(){t&&e.forEach((function(e){var t=e;t.removeEventListener("mouseover",l),t.removeEventListener("mouseleave",s),t.removeEventListener("click",h),t.style.cursor="default"}))}}),[l,t,s,h])}(o),r.a.useEffect((function(){var e=window;s.canUseDOM&&(e.__setHighlightTreePath=function(e){h((function(t){return Object.assign(Object.assign(Object.assign({},t),e),{sidebarBlocksMap:Object.assign(Object.assign({},t.sidebarBlocksMap),e.sidebarBlocksMap)})}))})}),[h]);var T=b||f,R=function(e,t,n){return Object(a.useMemo)((function(){return e&&d(e,t)||{}}),[e,t,n])}(T,x,o.elementHeight)||{visibleElement:void 0,hasValidElement:!1},S=R.visibleElement,A=R.hasValidElement;!function(e){var t=e.highlightTreePath,n=e.editMode,i=e.visibleElement;Object(a.useEffect)((function(){i&&!n&&u(i)}),[i,n]),Object(a.useEffect)((function(){null===t&&u.cancel()}),[t])}({editMode:m,highlightTreePath:b,visibleElement:S});var P=Boolean(A&&f&&O);p({hasValidElement:A,highlightTreePath:T,isOverlayMaskActive:P,setState:h,subscribeToResize:E,unsubscribeToResize:w,visibleElement:S});var C=b&&A,M=T&&x[T]&&x[T].title;return r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,{in:Boolean(A&&C)||Boolean(A&&f),classNames:j,mountOnEnter:!0,timeout:150},r.a.createElement("div",{"data-testid":"editor-provider-overlay",id:"editor-provider-overlay",style:o.highlightStyle,className:"absolute bw2 ba"},M&&r.a.createElement("p",{className:"absolute white f7 ma0 right-0 ph2 pb2 pt1 truncate tc",style:o.labelStyle,title:M},M))),c.a.createPortal(r.a.createElement(k,{style:o.maskStyle,isActive:P}),O))},S=n(469)},15:function(e,t){e.exports=__RENDER_8_RUNTIME__},153:function(e,t,n){e.exports={"overlay-mask-enter":"vtex-admin-pages-4-x-overlay-mask-enter","overlay-mask-enter-active":"vtex-admin-pages-4-x-overlay-mask-enter-active","overlay-mask-enter-done":"vtex-admin-pages-4-x-overlay-mask-enter-done","overlay-mask-exit":"vtex-admin-pages-4-x-overlay-mask-exit","overlay-mask-exit-active":"vtex-admin-pages-4-x-overlay-mask-exit-active","overlay-mask-exit-done":"vtex-admin-pages-4-x-overlay-mask-exit-done"}},154:function(e,t,n){e.exports={"highlight-enter":"vtex-admin-pages-4-x-highlight-enter","highlight-enter-active":"vtex-admin-pages-4-x-highlight-enter-active","highlight-enter-done":"vtex-admin-pages-4-x-highlight-enter-done","highlight-exit":"vtex-admin-pages-4-x-highlight-exit","highlight-exit-active":"vtex-admin-pages-4-x-highlight-exit-active","highlight-exit-done":"vtex-admin-pages-4-x-highlight-exit-done"}},2:function(e,t){e.exports=PropTypes},35:function(e,t){e.exports=ReactDOM},469:function(e,t){},645:function(e,t,n){"use strict";n.r(t),function(e){var t=n(17);n.p=Object(t.getPublicPath)("vtex.admin-pages@4.57.0");var i=Object(t.register)((function(){return n(1132)}),e,"vtex.admin-pages@4.57.0","vtex.admin-pages@4.x","HighlightOverlay");i.renderHotReload,i.setupHMR}.call(this,n(49)(e))}},[[645,"common",6,18]]]); },function(){ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var r="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",c=!("undefined"==typeof window||!window.document);c&&!window.global&&(window.global=window),window[o]=window[o]||{},t.register=function(e,t,n,c,i){var a="".concat(n,"/").concat(i),u="".concat(c,"/").concat(i),d=function(){return function(e,t){try{var n=e();return n.__esModule?n.default:n.default||n}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,a)};if(window[r]&&window[r].registerComponent){var s=!!window.__RENDER_LAZY__;window[r].registerComponent(t,s?d:d(),n,i,s)}else{var l=d();window[r]&&window[r].withHMR?window[o][a]=window[o][u]=window[r].withHMR(t,l):window[o][a]=window[o][u]=l}return{}},t.getPublicPath=function(e){var t=window.__hostname__,n="/_v/public/assets/v1/published/";return c&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+n+"".concat(e,"/public/react/")}},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t,n){"use strict";n.r(t),function(e){var t=n(0);n.p=Object(t.getPublicPath)("vtex.facebook-pixel@2.2.2");var r=Object(t.register)((function(){return n(4)}),e,"vtex.facebook-pixel@2.2.2","vtex.facebook-pixel@2.x","index");r.renderHotReload,r.setupHMR}.call(this,n(3)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.r(t);var r=n(1);function o(e){var t;try{t=e.items[0].sellers[0].commertialOffer.Price}catch(e){t=void 0}return t}r.canUseDOM&&window.addEventListener("message",(function(e){switch(e.data.eventName){case"vtex:pageView":fbq("track","PageView");break;case"vtex:orderPlaced":var t=e.data,n=t.currency,r=t.transactionTotal,c=t.transactionProducts;fbq("track","Purchase",{value:r,currency:n,content_type:"product",contents:c.map((function(e){return{id:e.sku,quantity:e.quantity,item_price:e.sellingPrice}}))});break;case"vtex:productView":var i=e.data,a=i.product,u=a.productName,d=a.items,s=i.currency;fbq("track","ViewContent",{content_ids:d.map((function(e){return e.itemId})),content_name:u,content_type:"product",currency:s,value:o(e.data.product)});break;case"vtex:addToCart":var l=e.data,f=l.items,p=l.currency;fbq("track","AddToCart",{value:f.reduce((function(e,t){return e+t.price}),0)/100,content_ids:f.map((function(e){return e.skuId})),contents:f.map((function(e){return{id:e.skuId,quantity:e.quantity,item_price:e.price/100}})),content_type:"product",currency:p})}}))}]); },function(){ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var n="__RENDER_8_RUNTIME__",a="__RENDER_8_COMPONENTS__",o=!("undefined"==typeof window||!window.document);o&&!window.global&&(window.global=window),window[a]=window[a]||{},t.register=function(e,t,r,o,i){var c="".concat(r,"/").concat(i),u="".concat(o,"/").concat(i),d=function(){return function(e,t){try{var r=e();return r.__esModule?r.default:r.default||r}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,c)};if(window[n]&&window[n].registerComponent){var s=!!window.__RENDER_LAZY__;window[n].registerComponent(t,s?d:d(),r,i,s)}else{var l=d();window[n]&&window[n].withHMR?window[a][c]=window[a][u]=window[n].withHMR(t,l):window[a][c]=window[a][u]=l}return{}},t.getPublicPath=function(e){var t=window.__hostname__,r="/_v/public/assets/v1/published/";return o&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,r=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+r+"".concat(e,"/public/react/")}},function(e,t,r){e.exports=r(5)},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t,r){"use strict";r.r(t),function(e){var t=r(0);r.p=Object(t.getPublicPath)("vtex.google-tag-manager@2.10.0");var n=Object(t.register)((function(){return r(6)}),e,"vtex.google-tag-manager@2.10.0","vtex.google-tag-manager@2.x","index");n.renderHotReload,n.setupHMR}.call(this,r(4)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){e.exports=regeneratorRuntime},function(e,t,r){"use strict";r.r(t),r.d(t,"handleEvents",(function(){return h}));var n=r(2),a=r(1),o=r.n(a);function i(e,t,r,n,a,o,i){try{var c=e[o](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,a)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function c(e){i(o,n,a,c,u,"next",e)}function u(e){i(o,n,a,c,u,"throw",e)}c(void 0)}))}}var u=["utm_source","utm_medium","utm_campaign","gclid","utm_term","utm_content","utm_id"];function d(){return(d=c(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{window.localStorage.setItem("analytics:session",JSON.stringify(t))}catch(e){console.error("Error while saving original browser location on localStorage storage")}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function s(){return Math.floor(Date.now()/1e3)}function l(){return s()+1800}function p(){var e=function(){var e=function(){var e=null;try{var t=window.localStorage.getItem("analytics:session");e=t?JSON.parse(t):null}catch(e){console.error("Error while fetching original browser location from localStorage storage")}return e}();if(!e||(o=e.expires,i=s(),i-o>0)||(t=window.location,r=document.referrer,n=e.referrer,a=r?new URL(r):null,a&&r!==n&&a.host!==t.host||t.search.slice(1).split("&").some((function(e){return u.some((function(t){return e.startsWith("".concat(t,"="))}))}))))return null;var t,r,n,a;var o,i;return Object.assign(Object.assign({},e),{expires:l()})}(),t="storage";return e||(e={location:window.location.href,referrer:document.referrer,expires:l()},t="fresh"),function(e){d.apply(this,arguments)}(e),Object.assign(Object.assign({},e),{origin:t})}window.dataLayer=window.dataLayer||[];var v=!0;function m(e){var t=p(),r=t.location,n=t.referrer,a=t.origin,o=e;(v||"fresh"===a)&&(v=!1,o=Object.assign(Object.assign({},e),{originalLocation:r,originalReferrer:n})),window.dataLayer.push(o)}function f(e){return{affiliation:e.transactionAffiliation,coupon:e.coupon?e.coupon:null,id:e.orderGroup,revenue:e.transactionTotal,shipping:e.transactionShipping,tax:e.transactionTax}}function g(e){var t;if(e&&e.length)return null==(t=e[0])?void 0:t.replace(/^\/|\/$/g,"")}function w(e){return function(t){var r=t.product,n=t.position;return{brand:r.brand,category:g(r.categories),id:r.sku.itemId,list:e,name:r.productName,position:n,price:"".concat(r.sku.seller.commertialOffer.Price),variant:r.sku.name}}}function b(e){var t,r,n;return{id:e.id,name:e.name,category:Object.keys(null!==(t=e.productCategories)&&void 0!==t?t:{}).reduce((function(e,t){return e?"".concat(e,"/").concat(t):t}),""),brand:null!==(n=null===(r=e.additionalInfo)||void 0===r?void 0:r.brandName)&&void 0!==n?n:"",variant:e.skuName,price:e.sellingPrice/100,quantity:e.quantity}}t.default=function(){return null};function h(e){!function(e){switch(e.data.eventName){case"vtex:productView":var t,r=e.data.product,n=r.selectedSku,a=r.productName,o=r.brand,i=r.categories;try{t=(R=e.data.product.items[0].sellers,E=R.find((function(e){return e.sellerDefault})),E||R[0]).commertialOffer.Price}catch(e){t=void 0}return void m({ecommerce:{detail:{products:[{brand:o,category:g(i),id:n.itemId,name:a,variant:n.name,price:t}]}},event:"productDetail"});case"vtex:productClick":var c,u=e.data.product,d=u.productName,s=u.brand,l=u.categories,p=u.sku,v=e.data.list?{actionField:{list:e.data.list}}:{};try{c=e.data.product.items[0].sellers[0].commertialOffer.Price}catch(e){c=void 0}return void m({event:"productClick",ecommerce:{click:Object.assign(Object.assign({},v),{products:[{brand:s,category:g(l),id:p.itemId,name:d,variant:p.name,price:c}]})}});case"vtex:addToCart":return void m({ecommerce:{add:{products:e.data.items.map((function(e){return{brand:e.brand,category:e.category,id:e.skuId,name:e.name,price:!0===e.priceIsInt?"".concat(e.price/100):"".concat(e.price),quantity:e.quantity,variant:e.variant}}))},currencyCode:e.data.currency},event:"addToCart"});case"vtex:removeFromCart":var h=e.data.items;return void m({ecommerce:{currencyCode:e.data.currency,remove:{products:h.map((function(e){return{brand:e.brand,id:e.skuId,category:e.category,name:e.name,price:!0===e.priceIsInt?"".concat(e.price/100):"".concat(e.price),quantity:e.quantity,variant:e.variant}}))}},event:"removeFromCart"});case"vtex:orderPlaced":var y=e.data,_={purchase:{actionField:f(y),products:y.transactionProducts.map((function(e){return function(e){var t;return{brand:e.brand,category:null===(t=e.categoryTree)||void 0===t?void 0:t.join("/"),id:e.sku,name:e.name,price:e.price,quantity:e.quantity,variant:e.skuName}}(e)}))}};return m(Object.assign(Object.assign({event:"orderPlaced"},y),{ecommerce:_})),void m({ecommerce:_,event:"pageLoaded"});case"vtex:productImpression":var x=e.data,O=x.currency,k=x.list,P=x.impressions,j=x.product,N=x.position,S=null;null!=j&&null!=N&&(S=[w(k)({product:j,position:N})]);var I=(P||[]).map(w(k));return void m({event:"productImpression",ecommerce:{currencyCode:O,impressions:S||I}});case"vtex:cartLoaded":m({event:"checkout",ecommerce:{checkout:{actionField:{step:1},products:e.data.orderForm.items.map(b)}}});break;case"vtex:promoView":m({event:"promoView",ecommerce:{promoView:{promotions:e.data.promotions}}});break;case"vtex:promotionClick":m({event:"promotionClick",ecommerce:{promoClick:{promotions:e.data.promotions}}})}var R,E}(e),function(e){switch(e.data.eventName){case"vtex:pageView":return void m(Object.assign({event:"pageView",location:e.data.pageUrl,page:e.data.pageUrl.replace(e.origin,""),referrer:e.data.referrer},e.data.pageTitle&&{title:e.data.pageTitle}));case"vtex:userData":var t=e.data;if(!t.isAuthenticated)return;m({event:"userData",userId:t.id})}}(e),function(e){var t,r,n,a,o,i,c,u,d,s;switch(e.data.eventName){case"vtex:pageInfo":switch(e.data.eventType){case"homeView":m({event:"homeView"});break;case"categoryView":var l=e.data;m({event:"categoryView",departmentId:null===(t=l.department)||void 0===t?void 0:t.id,departmentName:null===(r=l.department)||void 0===r?void 0:r.name,categoryId:null===(n=l.category)||void 0===n?void 0:n.id,categoryName:null===(a=l.category)||void 0===a?void 0:a.name});break;case"departmentView":var p=e.data;m({event:"departmentView",departmentId:null===(o=p.department)||void 0===o?void 0:o.id,departmentName:null===(i=p.department)||void 0===i?void 0:i.name});break;case"emptySearchView":case"internalSiteSearchView":var v=e.data;m({event:"internalSiteSearchView",siteSearchTerm:null===(c=v.search)||void 0===c?void 0:c.term,siteSearchForm:window.location.href,siteSearchCategory:null===(d=null===(u=v.search)||void 0===u?void 0:u.category)||void 0===d?void 0:d.id,siteSearchResults:null===(s=v.search)||void 0===s?void 0:s.results});break;case"productView":m({event:"productView"});break;default:m({event:"otherView"})}}}(e)}n.canUseDOM&&window.addEventListener("message",h)}]); },function(){ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var n="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[o]=window[o]||{},t.register=function(e,t,r,i,a){var d="".concat(r,"/").concat(a),u="".concat(i,"/").concat(a),c=function(){return function(e,t){try{var r=e();return r.__esModule?r.default:r.default||r}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,d)};if(window[n]&&window[n].registerComponent){var l=!!window.__RENDER_LAZY__;window[n].registerComponent(t,l?c:c(),r,a,l)}else{var s=c();window[n]&&window[n].withHMR?window[o][d]=window[o][u]=window[n].withHMR(t,s):window[o][d]=window[o][u]=s}return{}},t.getPublicPath=function(e){var t=window.__hostname__,r="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,r=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+r+"".concat(e,"/public/react/")}},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t,r){"use strict";r.r(t),function(e){var t=r(0);r.p=Object(t.getPublicPath)("vtex.request-capture@2.3.0");var n=Object(t.register)((function(){return r(4)}),e,"vtex.request-capture@2.3.0","vtex.request-capture@2.x","index");n.renderHotReload,n.setupHMR}.call(this,r(3)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,r){"use strict";r.r(t);var n=r(1);function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 a,d=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return d=e.done,e},e:function(e){u=!0,a=e},f:function(){try{d||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})))[f.length-1],g=null!==(a=null===(i=t.productCategories)||void 0===i?void 0:i[w])&&void 0!==a?a:"",h=[],y=[];f.forEach((function(e){var r;(null===(r=t.productCategories)||void 0===r?void 0:r[e])&&(y.push(e),h.push(t.productCategories[e]))}));var b,_="",I=o(null!==(d=e.sellers)&&void 0!==d?d:[]);try{for(I.s();!(b=I.n()).done;){var P=b.value;t.seller===P.id&&(_=P.name)}}catch(e){I.e(e)}finally{I.f()}return{id:t.productId,name:t.name,sku:t.id,skuName:t.skuName,seller:_,sellerId:t.seller,brand:null!==(c=null===(u=t.additionalInfo)||void 0===u?void 0:u.brandName)&&void 0!==c?c:"",brandId:null!==(s=null===(l=t.additionalInfo)||void 0===l?void 0:l.brandId)&&void 0!==s?s:"",isGift:null!==(v=t.isGift)&&void 0!==v&&v,category:g,categoryId:w,categoryTree:h,categoryIdTree:y,originalPrice:t.price/100,price:t.sellingPrice/100,sellingPrice:t.sellingPrice/100,tax:(null!==(p=t.tax)&&void 0!==p?p:0)/100,quantity:t.quantity,components:null!==(m=t.components)&&void 0!==m?m:[],measurementUnit:t.measurementUnit,unitMultiplier:t.unitMultiplier}}function c(e,t){var r=e.find((function(e){return e.id===t}));return(null==r?void 0:r.value)?r.value/100:null}function l(e){var t,r,n;return{id:e.id,name:e.name,category:Object.keys(null!==(t=e.productCategories)&&void 0!==t?t:{}).reduce((function(e,t){return e?"".concat(e,"/").concat(t):t}),""),brand:null!==(n=null===(r=e.additionalInfo)||void 0===r?void 0:r.brandName)&&void 0!==n?n:"",variant:e.skuName,price:e.sellingPrice/100,quantity:e.quantity}}function s(e){var t,r,n,o,i,a;return[null!==(r=null===(t=e.clientProfileData)||void 0===t?void 0:t.email)&&void 0!==r?r:null,null!==(o=null===(n=e.clientProfileData)||void 0===n?void 0:n.firstName)&&void 0!==o?o:null,null!==(a=null===(i=e.clientProfileData)||void 0===i?void 0:i.lastName)&&void 0!==a?a:null]}function v(e){var t,r,n,o,i,a,d,u,c,l,s,v,p,m,f=null===(r=null===(t=e.shipping)||void 0===t?void 0:t.selectedAddress)||void 0===r?void 0:r.postalCode,w=null===(o=null===(n=e.shipping)||void 0===n?void 0:n.selectedAddress)||void 0===o?void 0:o.street,g=null===(a=null===(i=e.shipping)||void 0===i?void 0:i.selectedAddress)||void 0===a?void 0:a.number,h=null===(u=null===(d=e.shipping)||void 0===d?void 0:d.selectedAddress)||void 0===u?void 0:u.neighborhood,y=null===(l=null===(c=e.shipping)||void 0===c?void 0:c.selectedAddress)||void 0===l?void 0:l.complement,b=null===(v=null===(s=e.shipping)||void 0===s?void 0:s.selectedAddress)||void 0===v?void 0:v.city,_=null===(m=null===(p=e.shipping)||void 0===p?void 0:p.selectedAddress)||void 0===m?void 0:m.state;return[null!=f?f:null,"".concat(w,", ").concat(g," - ").concat(h," - ").concat(y," - ").concat(b," - ").concat(_)]}function p(e){var t,r,n;return null!==(n=null===(r=null===(t=e.shipping)||void 0===t?void 0:t.deliveryOptions)||void 0===r?void 0:r.filter((function(e){return e.isSelected})).map((function(e){return e.id})).filter((function(e,t,r){return r.indexOf(e)!==t})))&&void 0!==n?n:[]}function m(){if(/^\/cart\/?$/.test(window.location.pathname))return 1;if(/^\/checkout\/identification\/?$/.test(window.location.pathname))return 2;if(/^\/checkout\/?$/.test(window.location.pathname))switch(window.location.hash){case"#/profile":return 3;case"#/shipping":return 4;case"#/payment":return 5;case"#/":return 6;default:return}}n.canUseDOM&&window.addEventListener("message",(function(e){var t,r,n,o,i,f,w,g,h,y,b,_,I,P,x,S;if(e.data&&e.data.eventName)switch(e.data.eventName){case"vtex:pageInfo":switch(e.data.eventType){case"homeView":window.vtexrca("sendevent","homeView",{});break;case"categoryView":var k=e.data;window.vtexrca("sendevent","categoryView",{departmentId:null===(t=k.department)||void 0===t?void 0:t.id,departmentName:null===(r=k.department)||void 0===r?void 0:r.name,categoryId:null===(n=k.category)||void 0===n?void 0:n.id,categoryName:null===(o=k.category)||void 0===o?void 0:o.name});break;case"departmentView":var N=e.data;window.vtexrca("sendevent","departmentView",{departmentId:null===(i=N.department)||void 0===i?void 0:i.id,departmentName:null===(f=N.department)||void 0===f?void 0:f.name});break;case"emptySearchView":case"internalSiteSearchView":var O=e.data;window.vtexrca("sendevent","internalSiteSearchView",{siteSearchTerm:null===(w=O.search)||void 0===w?void 0:w.term,siteSearchForm:window.location.href,siteSearchCategory:null===(h=null===(g=O.search)||void 0===g?void 0:g.category)||void 0===h?void 0:h.id,siteSearchResults:null===(y=O.search)||void 0===y?void 0:y.results});break;case"productView":break;default:window.vtexrca("sendevent","otherView",{})}return;case"vtex:orderPlaced":return void window.vtexrca("sendevent","orderPlaced",e.data);case"vtex:productView":var C=e.data,M=C.product.items.reduce((function(e,t){var r=t.sellers.reduce((function(e,t){return e+t.commertialOffer.AvailableQuantity}),0);return e[t.itemId]=r,e}),{}),T=function(e){return Object.keys(e).reduce((function(t,r){return 0===e[r]?t.concat(r):t}),[])}(M),j=function(e){return e.categoryTree[0]}(C.product),E=function(e){return e.categoryTree[e.categoryTree.length-1]}(C.product),D=function(e){return e.selectedSku.sellers.find((function(e){return e.commertialOffer.AvailableQuantity>0}))||e.selectedSku.sellers[0]}(C.product),R={skuStockOutFromProductDetail:T,productId:C.product.productId,productReferenceId:C.product.productReference,productEans:a(C.product),skuStocks:M,productName:C.product.productName,productBrandId:C.product.brandId,productBrandName:C.product.brand,productDepartmentId:j.id,productDepartmentName:j.name,productCategoryId:E.id,productCategoryName:E.name,productListPrice:D.commertialOffer.ListPrice,productPrice:D.commertialOffer.Price,sellerId:D.sellerId,sellerIds:d(C.product).join(",")};window.vtexrca("sendevent","productView",R);break;case"vtex:cartLoaded":var F=e.data.orderForm,A=F.canEditData&&!F.loggedIn?"new customer":"existing customer";window.vtexrca("sendevent","cartLoaded",{orderFormId:F.id,salesChannel:F.salesChannel,ecommerce:{checkout:{actionField:{step:m()},products:F.items.map(l)}},visitorType:A,visitorContactInfo:s(F),visitorDemographicInfo:v(F),orderFormTax:c(F.totalizers,"Tax"),orderFormShipping:c(F.totalizers,"Shipping"),orderFormShippingMethod:p(F),orderFormTotal:F.value,orderFormProducts:F.items.map((function(e){return u(F,e)}))});break;case"vtex:cart":var V=e.data.orderForm;window.vtexrca("sendevent","cart",{orderFormId:V.id,salesChannel:V.salesChannel,campaignName:null===(b=V.marketingData)||void 0===b?void 0:b.utmCampaign,campaignSource:null===(_=V.marketingData)||void 0===_?void 0:_.utmSource,campaignMedium:null===(I=V.marketingData)||void 0===I?void 0:I.utmMedium,internalCampaignName:null===(P=V.marketingData)||void 0===P?void 0:P.utmiCampaign,internalCampaignPart:null===(x=V.marketingData)||void 0===x?void 0:x.utmiPart,ecommerce:{checkout:{actionField:{step:m()},products:V.items.map(l)}},visitorContactInfo:s(V),visitorDemographicInfo:v(V),orderFormTax:c(V.totalizers,"Tax"),orderFormShipping:c(V.totalizers,"Shipping"),orderFormShippingMethod:p(V),orderFormPromoCode:null===(S=V.marketingData)||void 0===S?void 0:S.coupon,orderFormTotal:V.value,orderFormProducts:V.items.map((function(e){return u(V,e)}))})}}))}]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];st.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:c}}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,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=200&&a.status<=299){t.next=9;break}return t.abrupt("return","null-null");case 9:return t.next=11,a.json();case 11:return o=t.sent,i="".concat(o.experiment,"-").concat(o.variant.id),sessionStorage.setItem(n,i),t.abrupt("return",i);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},,,function(t,e){t.exports=regeneratorRuntime},function(t,e){t.exports=__RENDER_8_RUNTIME__},,function(t,e,n){"use strict";n.r(e),function(t){var e=n(6);n.p=Object(e.getPublicPath)("vtex.sae-analytics@2.16.0");var r=Object(e.register)((function(){return n(17)}),t,"vtex.sae-analytics@2.16.0","vtex.sae-analytics@2.x","index");r.renderHotReload,r.setupHMR}.call(this,n(11)(t))},,function(t,e,n){"use strict";n.r(e);var r=n(13),c=n(4),a=n.n(c),o=n(7),i=n(1),u=n(8),s=n(3),f=n(2),l=n(0),p=n(5),d=n(9),v=function(){function t(){var e,n,r,c;Object(i.a)(this,t),this.account=null===(e=null===window||void 0===window?void 0:window.__RUNTIME__)||void 0===e?void 0:e.account,this.url=(null===window||void 0===window?void 0:window.location.href)||"unknown",this.agent=(null===navigator||void 0===navigator?void 0:navigator.userAgent)||"unknown",this.workspace=null===(n=null===window||void 0===window?void 0:window.__RUNTIME__)||void 0===n?void 0:n.workspace,this.locale=null===(c=null===(r=window.__RUNTIME__)||void 0===r?void 0:r.culture)||void 0===c?void 0:c.locale}var e;return Object(u.a)(t,[{key:"send",value:(e=Object(o.a)(a.a.mark((function t(){var e,n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.account&&this.session&&this.anonymous){t.next=2;break}return t.abrupt("return");case 2:if(e=this.workspace,!d.enabled()){t.next=15;break}if(null==(n=p.getCookie("debug-sp-variant"))){t.next=9;break}t.t0=n,t.next=12;break;case 9:return t.next=11,d.variant(this.anonymous);case 11:t.t0=t.sent;case 12:r=t.t0,p.variant(r),e="".concat(r,"-").concat(this.workspace);case 15:return t.abrupt("return",fetch("https://sp.vtex.com/event-api/v1/".concat(this.account,"/event"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign(Object.assign({},this),{ab:e,session:this.session,anonymous:this.anonymous,vtexSession:this.vtexSession})),credentials:"include"}));case 16:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"session",get:function(){return p.session()}},{key:"anonymous",get:function(){return p.anonymous()}},{key:"vtexSession",get:function(){return p.vtexSession()}}]),t}();function h(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var y=function(t){Object(s.a)(n,t);var e=h(n);function n(){var t;return Object(i.a)(this,n),(t=e.apply(this,arguments)).type="session.ping",t}return Object(u.a)(n,[{key:"schedule",value:function(){var t=this;setInterval(Object(o.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.send());case 1:case"end":return e.stop()}}),e)}))),3e5)}}]),n}(v);function b(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var m=function(t){Object(s.a)(n,t);var e=b(n);function n(t){var r;return Object(i.a)(this,n),(r=e.call(this)).type="page.confirmation",r.order=t.transactionId,r.products=t.transactionProducts.map((function(t){return{product:t.id,price:t.sellingPrice,quantity:t.quantity}})),r}return n}(v);function w(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var j=function(t){Object(s.a)(n,t);var e=w(n);function n(t){var r,c,a,o;return Object(i.a)(this,n),(r=e.call(this)).type="search.query",r.text=t.term,r.misspelled=null===(a=null===(c=t.correction)||void 0===c?void 0:c.misspelled)||void 0===a||a,r.match=t.results,r.operator=null!==(o=t.operator)&&void 0!==o?o:"and",r}return n}(v);function O(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var x=function(t){Object(s.a)(n,t);var e=O(n);function n(t){var r;return Object(i.a)(this,n),(r=e.call(this)).type="search.click",r.text=n.text(t),r.product=t.product.productId,r.position=t.position,r}return Object(u.a)(n,null,[{key:"text",value:function(t){var e;if(t.query&&t.map){var n=t.map,r=t.query,c=n.split(",").indexOf("ft");if(-1!==c)return decodeURI(null!==(e=r.split("/").at(c))&&void 0!==e?e:"")}}}]),n}(v);function R(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var g=function(t){Object(s.a)(n,t);var e=R(n);function n(t){var r;return Object(i.a)(this,n),(r=e.call(this)).type="search.autocomplete.query",r.text=t.search.text,r.misspelled=t.search.misspelled,r.match=t.search.match,r.operator=t.search.operator,r}return n}(v);function k(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var _=function(t){Object(s.a)(n,t);var e=k(n);function n(t){var r;return Object(i.a)(this,n),(r=e.call(this)).type="search.autocomplete.click",r.text=t.term,r.product=t.product.productId,r.position=t.product.position,r}return n}(v);function S(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var D=function(t){Object(s.a)(n,t);var e=S(n);function n(t){var r;return Object(i.a)(this,n),(r=e.call(this)).type="page.category",r.match=t.results,r}return n}(v);function I(t){var e=function(){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(t){return!1}}();return function(){var n,r=Object(l.a)(t);if(e){var c=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var P,U=function(t){Object(s.a)(n,t);var e=I(n);function n(t){var r;return Object(i.a)(this,n),(r=e.call(this)).type="page.category.click",r.product=t.product.productId,r.position=t.position,r}return n}(v);if(r.canUseDOM){(P=new URLSearchParams(window.location.search).get("sp-variant"))&&p.debugVariant(P);var T=new y;T.send(),T.schedule(),window.addEventListener("message",(function(t){var e;switch(t.data.eventName){case"vtex:orderPlaced":new m(t.data).send();break;case"vtex:pageInfo":(null===(e=t.data.search)||void 0===e?void 0:e.term)&&""!==t.data.search.term?new j(t.data.search).send():!t.data.search||"categoryView"!==t.data.eventType&&"departmentView"!==t.data.eventType||new D(t.data.search).send();break;case"vtex:productClick":x.text(t.data)?new x(t.data).send():new U(t.data).send();break;case"vtex:autocomplete":"search"===t.data.eventType?new g(t.data).send():"product_click"===t.data.eventType&&new _(t.data).send()}}))}}],[[15,"common"]]]); },function(){ !function(e){function t(t){for(var r,u,c=t[0],a=t[1],l=t[2],s=0,d=[];se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(s)})),e.exports=c}).call(this,r(79))},,,,function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n1)for(var r=1;r=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},function(e,t,r){"use strict";var n=r(9);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(89),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={},s=n.version.split(".");function a(e,t){for(var r=t?t.split("."):s,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(e,t,r){"use strict";var n=r(36);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},,,,,function(e,t,r){"use strict";var n,o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=function(e){return"string"==typeof e&&s.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!a(r))throw TypeError("Stringified UUID is invalid");return r};t.a=function(e,t,r){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return f(n)}}]]); },function(){ (window.webpackJsonpvtex_facebook_fbe_1_8_10=window.webpackJsonpvtex_facebook_fbe_1_8_10||[]).push([["FbePixel"],{24:function(e,t){e.exports=regeneratorRuntime},67:function(e,t){e.exports=__RENDER_8_RUNTIME__},73:function(e,t,n){"use strict";n.r(t),function(e){var t=n(11);n.p=Object(t.getPublicPath)("vtex.facebook-fbe@1.8.10");var r=Object(t.register)((function(){return n(94)}),e,"vtex.facebook-fbe@1.8.10","vtex.facebook-fbe@1.x","FbePixel");r.renderHotReload,r.setupHMR}.call(this,n(18)(e))},94:function(e,t,n){"use strict";n.r(t);var r=n(4),a=n.n(r),o=n(3),c=n(6),i=n(22),u=n.n(i),s=n(67),d=n(97),f=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r,o,c,i,s,d,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.eventName,r=t.email,o=t.payload,c=t.eventId,i=t.eventSourceURL,s=t.userAgent,d=t.fbcCookie,f=t.fbpCookie,e.next=3,u.a.post("/_v/facebook-capi/event",{eventName:n,email:r,payload:o,eventId:c,eventSourceURL:i,userAgent:s,fbcCookie:d,fbpCookie:f});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function l(e){return Array.prototype.map.call(new Uint8Array(e),(function(e){return"00".concat(e.toString(16)).slice(-2)})).join("")}function p(e){return v.apply(this,arguments)}function v(){return(v=Object(c.a)(a.a.mark((function e(t){var n,r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=new TextEncoder,!(r=t?n.encode(t):void 0)){e.next=10;break}return e.t1=l,e.next=6,window.crypto.subtle.digest("SHA-256",r);case 6:e.t2=e.sent,e.t0=(0,e.t1)(e.t2),e.next=11;break;case 10:e.t0=void 0;case 11:return o=e.t0,e.abrupt("return",o);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(){var e;try{return JSON.parse(null!==(e=localStorage.getItem("orderform"))&&void 0!==e?e:"")}catch(e){return}}function m(e,t){return w.apply(this,arguments)}function w(){return(w=Object(c.a)(a.a.mark((function e(t,n){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==(r=null!=n?n:b())?void 0:r.userProfileId)){e.next=3;break}return e.abrupt("return",r.userProfileId);case 3:if(t){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.prev=5,e.next=8,u.a.get("/api/checkout/pub/profiles?email=".concat(encodeURIComponent(t)));case 8:return o=e.sent,e.abrupt("return",null==o?void 0:o.data.userProfileId);case 12:return e.prev=12,e.t0=e.catch(5),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[5,12]])})))).apply(this,arguments)}function k(e){var t={};return document.cookie.split(";").forEach((function(e){var n=e.split("="),r=Object(o.a)(n,2),a=r[0],c=r[1];t[a.trim()]=c})),t[e]}function x(){return(x=Object(c.a)(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.facebookParamsPromise.then(Object(c.a)(a.a.mark((function e(){var n,r,c,i,u,s,l,p,v,m,w,x,y,P,_,I,g,C,S,O,A,D,R,q,j,N,U,V,E,L,T,M,H,J,F,z,B,G,K,Q,W,X;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v=t.path?null===(c=null===(r=null===(n=t.path)||void 0===n?void 0:n[0])||void 0===r?void 0:r.location)||void 0===c?void 0:c.pathname:window.location.pathname,m=navigator,w=m.userAgent,x=Object(d.a)(),y=b(),P=k("_fbc"),_=k("_fbp"),I=k("fbe_consent")||"true",e.t0=t.data.eventName,e.next="vtex:pageView"===e.t0?10:"vtex:emptySearchView"===e.t0?15:"vtex:internalSiteSearchView"===e.t0?22:"vtex:orderPlaced"===e.t0?32:"vtex:productView"===e.t0?36:"vtex:addToCart"===e.t0?43:50;break;case 10:if(fbq("track","PageView",{},{eventID:x,event:"PageView"}),"true"!=I){e.next=14;break}return e.next=14,f({eventName:"PageView",email:null===(i=null==y?void 0:y.clientProfileData)||void 0===i?void 0:i.email,payload:void 0,eventId:x,eventSourceURL:window.location.href,userAgent:w,fbcCookie:P,fbpCookie:_});case 14:return e.abrupt("break",51);case 15:if(g=t.data.currency,C={search_string:v.substring(1),currency:g,contents:[],content_ids:[]},fbq("track","Search",C,{eventID:x,event:"Search"}),"true"!=I){e.next=21;break}return e.next=21,f({eventName:"Search",email:null===(u=null==y?void 0:y.clientProfileData)||void 0===u?void 0:u.email,payload:C,eventId:x,eventSourceURL:window.location.href,userAgent:w,fbcCookie:P,fbpCookie:_});case 21:return e.abrupt("break",51);case 22:if(S=t.data,O=S.currency,A=S.products,D=A.reduce((function(e,t){return t.items.forEach((function(t){var n=t.itemId,r=t.nameComplete,a=t.sellers;e.push({id:n,name:r,price:a[0].commertialOffer.Price,quantity:1})})),e}),[]),R=D.map((function(e){return e.id})),q={search_string:v.substring(1),currency:O,contents:D,content_ids:R},fbq("track","Search",q,{eventID:x,event:"Search"}),D.forEach((function(e){return delete e.name})),"true"!=I){e.next=31;break}return e.next=31,f({eventName:"Search",email:null===(s=null==y?void 0:y.clientProfileData)||void 0===s?void 0:s.email,payload:q,eventId:x,eventSourceURL:window.location.href,userAgent:w,fbcCookie:P,fbpCookie:_});case 31:return e.abrupt("break",51);case 32:return j=t.data,N=j.currency,U=j.transactionTotal,V=j.transactionProducts,E=j.transactionId,L=E.split("-"),T=Object(o.a)(L,1),M=T[0],fbq("track","Purchase",{value:U,currency:N,content_type:"product",content_ids:V.map((function(e){return"".concat(window.fbPixelItemPrefix).concat(e.sku)})),contents:V.map((function(e){return{id:"".concat(window.fbPixelItemPrefix).concat(e.sku),quantity:e.quantity,item_price:e.sellingPrice}}))},{eventID:M,event:"Purchase"}),e.abrupt("break",51);case 36:if(H=t.data,J=H.product,F=J.productName,z=J.items,B=H.currency,G={content_ids:z.map((function(e){var t=e.itemId;return"".concat(window.fbPixelItemPrefix).concat(t)})),content_name:F,content_type:"product",currency:B,value:h(t.data.product)},fbq("track","ViewContent",G,{eventID:x,event:"ViewContent"}),"true"!=I){e.next=42;break}return e.next=42,f({eventName:"ViewContent",email:null===(l=null==y?void 0:y.clientProfileData)||void 0===l?void 0:l.email,payload:G,eventId:x,eventSourceURL:window.location.href,userAgent:w,fbcCookie:P,fbpCookie:_});case 42:return e.abrupt("break",51);case 43:if(K=t.data,Q=K.items,W=K.currency,X={value:Q.reduce((function(e,t){return e+t.price}),0)/100,content_ids:Q.map((function(e){return"".concat(window.fbPixelItemPrefix).concat(e.skuId)})),contents:Q.map((function(e){return{id:"".concat(window.fbPixelItemPrefix).concat(e.skuId),quantity:e.quantity,item_price:e.price/100}})),content_type:"product",currency:W},fbq("track","AddToCart",X,{eventID:x,event:"AddToCart"}),"true"!=I){e.next=49;break}return e.next=49,f({eventName:"AddToCart",email:null===(p=null==y?void 0:y.clientProfileData)||void 0===p?void 0:p.email,payload:X,eventId:x,eventSourceURL:window.location.href,userAgent:w,fbcCookie:P,fbpCookie:_});case 49:case 50:return e.abrupt("break",51);case 51:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){var t;try{t=e.items[0].sellers[0].commertialOffer.Price}catch(e){t=void 0}return t}function y(){return(y=Object(c.a)(a.a.mark((function e(t){var n,r,o,c,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null!=t?t:b()){e.next=3;break}return e.abrupt("return",{});case 3:return c=null===(r=null===(n=o.clientProfileData)||void 0===n?void 0:n.email)||void 0===r?void 0:r.toLowerCase(),e.next=6,m(c,o);case 6:if(!(i=e.sent)&&!c){e.next=27;break}if(!i){e.next=14;break}return e.next=11,p(i);case 11:e.t1=e.sent,e.next=15;break;case 14:e.t1=void 0;case 15:if(e.t2=e.t1,!c){e.next=22;break}return e.next=19,p(c);case 19:e.t3=e.sent,e.next=23;break;case 22:e.t3=void 0;case 23:e.t4=e.t3,e.t0={external_id:e.t2,em:e.t4},e.next=28;break;case 27:e.t0=void 0;case 28:return e.abrupt("return",e.t0);case 29:case"end":return e.stop()}}),e)})))).apply(this,arguments)}s.canUseDOM&&"undefined"!=typeof fbq&&(window.fireEvents?(window.addEventListener("message",(function(e){return x.apply(this,arguments)})),window.facebookParamsPromise=function(e){return y.apply(this,arguments)}().then((function(e){window.facebookMatchingParams=e,fbq("init",window.pixelId,e,{agent:"vtex"})}))):console.warn("Pixel events won't fire until enabled"))}},[[73,"common",1]]]); },function(){ !function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=4)}([function(e,t){e.exports=React},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var r="__RENDER_8_RUNTIME__",n="__RENDER_8_COMPONENTS__",l=!("undefined"==typeof window||!window.document);l&&!window.global&&(window.global=window),window[n]=window[n]||{},t.register=function(e,t,o,l,i){var a="".concat(o,"/").concat(i),d="".concat(l,"/").concat(i),u=function(){return function(e,t){try{var o=e();return o.__esModule?o.default:o.default||o}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,a)};if(window[r]&&window[r].registerComponent){var c=!!window.__RENDER_LAZY__;window[r].registerComponent(t,c?u:u(),o,i,c)}else{var s=u();window[r]&&window[r].withHMR?window[n][a]=window[n][d]=window[r].withHMR(t,s):window[n][a]=window[n][d]=s}return{}},t.getPublicPath=function(e){var t=window.__hostname__,o="/_v/public/assets/v1/published/";return l&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,o=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+o+"".concat(e,"/public/react/")}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("addi.product-page-action@1.0.1");var r=Object(t.register)((function(){return o(6)}),e,"addi.product-page-action@1.0.1","addi.product-page-action@1.x","AddiInfos");r.renderHotReload,r.setupHMR}.call(this,o(5)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,o){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o