enqueueScripts([function(){ (window.webpackJsonpvtex_render_runtime_8_134_8=window.webpackJsonpvtex_render_runtime_8_134_8||[]).push([["ExtensionContainer"],{50:function(e,n){e.exports=__RENDER_8_RUNTIME__},553:function(e,n,t){"use strict";t.r(n),function(e){var n=t(27);t.p=Object(n.getPublicPath)("vtex.render-runtime@8.134.8");var r=Object(n.register)((function(){return t(554)}),e,"vtex.render-runtime@8.134.8","vtex.render-runtime@8.x","ExtensionContainer");r.renderHotReload,r.setupHMR}.call(this,t(42)(e))},554:function(e,n,t){"use strict";t.r(n);var r=t(50);n.default=r.ExtensionContainer}},[[553,"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_56_2=window.webpackJsonpvtex_admin_pages_4_56_2||[]).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.56.2");var i=Object(t.register)((function(){return n(1132)}),e,"vtex.admin-pages@4.56.2","vtex.admin-pages@4.x","HighlightOverlay");i.renderHotReload,i.setupHMR}.call(this,n(49)(e))}},[[645,"common",6,18]]]); },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);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;return fetch(t,r).then((function(o){if(500!==o.status)return o.json();if(n>0)return e(t,r,n-1);throw new Error("OcurriĆ³ un problema al procesar tu solicitud. Revisa los datos y vuelve a intentarlo.")}))};function l(){return window.gaProtocol||{}}function f(e){return p.apply(this,arguments)}function p(){return(p=Object(i.a)(o.a.mark((function e(t){var r,n,i,a,s,d,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.orderformId,n=t.sessionId,i=t.clientId,a=t.timestamp,s=t.device,e.prev=1,d=JSON.stringify({orderformId:r,clientId:i,sessionId:n,timestamp:a,device:s}),e.next=5,u("/_v/order-feed/ga-session-data",{method:"POST",body:d});case 5:(null==(c=e.sent)?void 0:c.status)&&localStorage.setItem("GA_SESSION_DATA",d),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.error("error seding GA Session Data",e.t0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}function v(){var e=setInterval((function(){var t,r,n=JSON.parse(null!==(t=localStorage.getItem("orderform"))&&void 0!==t?t:"{}");if(n&&"default-order-form"!==n.id){var o=d(),i=c();if(o&&i){var a=JSON.parse(null!==(r=localStorage.getItem("GA_SESSION_DATA"))&&void 0!==r?r:"{}");if(a&&n.id===a.orderformId&&o===a.sessionId&&i===a.clientId)clearInterval(e);else{var s,u=(s=navigator.userAgent,/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(s)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(s)?"mobile":"desktop");clearInterval(e),f({orderformId:n.id,clientId:i,sessionId:o,timestamp:Date.now().toString(),device:u})}}}}),500)}},,,,,function(e,t){e.exports=regeneratorRuntime},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t,r){"use strict";r.r(t),function(e){var t=r(3);r.p=Object(t.getPublicPath)("jumpdigital.orders-feed@1.0.27");var n=Object(t.register)((function(){return r(9)}),e,"jumpdigital.orders-feed@1.0.27","jumpdigital.orders-feed@1.x","index");n.renderHotReload,n.setupHMR}.call(this,r(5)(e))},function(e,t,r){"use strict";r.r(t),r.d(t,"handleEvents",(function(){return d}));var n=r(0),o=r.n(n),i=r(2),a=r(7),s=r(1);function d(e){return c.apply(this,arguments)}function c(){return(c=Object(i.a)(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.data.eventName,e.next="vtex:orderPlaced"===e.t0?3:"vtex:pageView"===e.t0?5:7;break;case 3:return Object(s.retryFetch)("/_v/order-feed/purchase",{method:"POST",body:JSON.stringify({orderId:t.data.transactionId,clientId:Object(s.getGoogleAnalyticsClientId)(),sessionId:Object(s.getGoogleAnalyticsSessionId)()})}),e.abrupt("break",7);case 5:return Object(s.sendGASessionDataWrapper)(),e.abrupt("break",7);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}a.canUseDOM&&window.addEventListener("message",d)}],[[8,"common"]]]); },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(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){e.exports=r(5)},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__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[a]=window[a]||{},t.register=function(e,t,r,i,o){var c="".concat(r,"/").concat(o),u="".concat(i,"/").concat(o),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,o,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 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(1);r.p=Object(t.getPublicPath)("vtex.google-tag-manager@3.5.4");var n=Object(t.register)((function(){return r(6)}),e,"vtex.google-tag-manager@3.5.4","vtex.google-tag-manager@3.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 ce}));var n=r(2),a=r(0),i=r.n(a);function o(e,t,r,n,a,i,o){try{var c=e[i](o),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 i=e.apply(t,r);function c(e){o(i,n,a,c,u,"next",e)}function u(e){o(i,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(i.a.mark((function e(t){return i.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 m(){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||(i=e.expires,o=s(),o-i>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 i,o;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 p=!0;function f(e){var t=m(),r=t.location,n=t.referrer,a=t.origin,i=e;(p||"fresh"===a)&&(p=!1,i=Object.assign(Object.assign({},e),{originalLocation:r,originalReferrer:n})),window.dataLayer.push(i)}function v(e,t){f({ecommerce:null,ecommerceV2:null}),t.event?f(t):f(Object.assign({event:e},t))}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?1:0}function R(e){if(!e.commertialOffer.PriceWithoutDiscount)return 0;var t,r=e.commertialOffer,n=r.Price,a=r.PriceWithoutDiscount;if(a<=n)return 0;try{t=a-n}catch(e){t=0}return t}function j(e){var t;if(e&&e.length)return null==(t=e[0])?void 0:t.replace(/^\/|\/$/g,"")}function N(e){if(e)return e.split("/")}function P(e){return{affiliation:e.transactionAffiliation,coupon:e.coupon?e.coupon:null,id:e.orderGroup,revenue:e.transactionTotal,shipping:e.transactionShipping,tax:e.transactionTax}}function S(e,t){var r=e.lastIndexOf(t);return-1===r||0===r?e:e.substring(0,r-1)}function V(e){var t=e.name,r=e.skuName,n=e.id,a=e.brand,i=e.sku,o=e.price,c=e.quantity,u=e.categoryTree,d=e.productRefId,s=e.skuRefId,l=S(t,r);return Object.assign(Object.assign({item_id:n,item_name:l,item_brand:a,item_variant:i,price:o,quantity:c},x([u.join("/")])),y({productReference:d,skuReference:s,skuName:r,quantity:c}))}function q(e,t){var r=0;return e.length?{items:e.map((function(e){var n,a,i=S(e.name,e.skuName),o=(null!==(n=e.priceIsInt)&&void 0!==n?n:null==t?void 0:t.dividePrice)?e.price/100:e.price,c=e.brand?e.brand:null===(a=e.additionalInfo)||void 0===a?void 0:a.brandName,u=N(e.productCategoryIds),d=e.category?x([e.category]):function(e,t){if(!t||!t.length||!e)return[];var r=[],n={};return t.forEach((function(t){t&&r.push(e[t])})),r.forEach((function(e,t){I(n,e,t)})),n}(e.productCategories,u);return r+=o*e.quantity,Object.assign(Object.assign({item_id:e.productId,item_brand:c,item_name:i,item_variant:e.skuId,quantity:e.quantity,price:o},d),y({productReference:e.productRefId,skuReference:e.referenceId,skuName:e.variant,quantity:e.quantity}))})),totalValue:r}:{items:[],totalValue:r}}function C(e){return e.map(V)}function E(){var e;return Boolean(null===(e=null===window||void 0===window?void 0:window.__gtm__)||void 0===e?void 0:e.sendGA4Events)}function T(e){if(E()){var t=e.currency,r=e.product,n=e.list,a=r.selectedSku,i=r.productName,o=r.productId,c=r.productReference,u=r.categories,d=r.brand,s=a.itemId,l=w(a.sellers),m=k(l),p=x(u),f=R(l),b=O(l);v("view_item",{ecommerce:{currency:t,value:m,items:[Object.assign(Object.assign({item_id:o,item_name:i,item_list_name:n,item_brand:d,item_variant:s,discount:f,quantity:b,price:m},p),y({productReference:c,skuReference:h(r),skuName:a.name,quantity:b}))]}})}}function M(e){if(E()){v("view_item_list",{ecommerce:{item_list_name:e.list,items:function(e){return e&&e.length?e.map((function(e){var t=e.product,r=e.position,n=t.productName,a=t.productId,i=t.productReference,o=t.sku,c=t.brand,u=t.categories,d=o.itemId,s=o.seller,l=o.referenceId,m=o.name,p=k(s),f=R(s),v=O(s),b=x(u);return Object.assign(Object.assign({item_id:a,item_name:n,item_variant:d,item_brand:c,index:r,discount:f,price:p,quantity:v},b),y({productReference:i,skuReference:null==l?void 0:l.Value,skuName:m,quantity:v}))})):[]}(e.impressions)}})}}function A(e){if(E()){var t=e.product,r=e.list,n=e.position,a=t.sku,i=t.productName,o=t.productId,c=t.productReference,u=t.categories,d=t.brand,s=a.itemId,l=a.referenceId,m=a.name,p=w(a.sellers),f=k(p),b=x(u),g=R(p),_=O(p);v("select_item",{ecommerce:{item_list_name:r,items:[Object.assign(Object.assign({item_id:o,item_name:i,item_list_name:r,item_brand:d,item_variant:s,index:n,price:f,quantity:_,discount:g},b),y({productReference:c,skuReference:null==l?void 0:l.Value,skuName:m,quantity:_}))]}})}}function D(e){if(E()){var t=g(e.promotions,1)[0];v("select_promotion",{ecommerce:{creative_name:t.creative,creative_slot:t.position,promotion_id:t.id,promotion_name:t.name}})}}function U(e){if(E()){var t=g(e.promotions,1)[0],r=t.creative,n=t.position,a=t.id,i=t.name,o=t.products,c=[];(null==o?void 0:o.length)&&(c=o.map((function(e){return{item_id:e.productId,item_name:e.productName}}))),v("view_promotion",{ecommerce:{creative_name:r,creative_slot:n,promotion_id:a,promotion_name:i,items:c}})}}function F(e){if(E()){var t=e.items,r=e.currency,n=q(t);v("add_to_cart",{ecommerce:{items:n.items,currency:r,value:n.totalValue}})}}function L(e){if(E()){var t=e.items,r=e.currency,n=q(t);v("remove_from_cart",{ecommerce:{items:n.items,currency:r,value:n.totalValue}})}}function H(e){if(E()){var t=P(e),r=t.id,n=t.revenue,a=t.tax,i=t.shipping,o=t.coupon,c=e.transactionProducts,u=e.currency;v("purchase",{ecommerce:{transaction_id:r,value:n,tax:a,shipping:i,coupon:o,items:C(c),currency:u}})}}function W(e){var t=e.currency,r=e.payment,n=e.items;v("add_payment_info",{ecommerce:{currency:t,value:r.value/100,payment_type:r.group,items:q(n).items}})}function G(e){var t=e.currency,r=q(e.items),n=r.items;v("begin_checkout",{ecommerce:{currency:t,value:r.totalValue,items:n}})}function J(e){var t=e.currency,r=e.items,n=e.shippingTier;v("add_shipping_info",{ecommerce:{currency:t,value:e.value,items:q(r).items,shipping_tier:n}})}function Q(e){var t=e.currency,r=q(e.items,{dividePrice:!0}),n=r.items;v("view_cart",{ecommerce:{currency:t,value:r.totalValue,items:n}})}function $(e){var t=e.currency,r=e.items,n=e.list,a=r.product,i=a.sku,o=a.productName,c=a.productId,u=a.categories,d=a.brand,s=a.productReference,l=i?i.itemId:r.selectedItem.itemId,m=w(i?i.sellers:r.selectedItem.sellers),p=k(m),f=x(u),b=R(m),g=O(m);v("add_to_wishlist",{ecommerce:{currency:t,value:p,items:[Object.assign(Object.assign({item_id:c,item_name:o,item_list_name:n,item_brand:d,item_variant:l,discount:b,quantity:g,price:p},f),y({productReference:s,skuReference:i?i.referenceId.Value:r.selectedItem.referenceId,skuName:i?i.name:r.selectedItem.name,quantity:g}))]}})}function B(e){var t=e.currency,r=e.order,n=r.tax,a=r.shipping,i=r.value;v("refund",{ecommerce:{transaction_id:r.transactionId,value:i,tax:n,shipping:a,items:C(r.items),currency:t}})}function Y(e){v("login",{ecommerce:{method:e.method}})}function Z(e){v("sign_up",{ecommerce:{method:e.method}})}function z(e){v("search",{ecommerce:{search_term:e.term}})}function K(e){v("share",{ecommerce:{method:e.method,content_type:e.contentType,item_id:e.itemId}})}function X(){return(X=c(i.a.mark((function e(t){var r,n,a,o,c,u,d,s,l,m,p,f,b,g,y,k,I,x,O,R,N,S,V,q,C,E,X,ne,ae,ie,oe,ce,ue,de,se,le,me,pe,fe,ve,be,ge,ye,_e,he,we;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.data.eventName,e.next="vtex:productView"===e.t0?3:"vtex:productClick"===e.t0?12:"vtex:addToCart"===e.t0?20:"vtex:removeFromCart"===e.t0?25:"vtex:orderPlaced"===e.t0?30:"vtex:productImpression"===e.t0?36:"vtex:cartLoaded"===e.t0?42:"vtex:promoView"===e.t0?46:"vtex:promotionClick"===e.t0?51:"vtex:addPaymentInfo"===e.t0?56:"vtex:beginCheckout"===e.t0?58:"vtex:addShippingInfo"===e.t0?60:"vtex:viewCart"===e.t0?62:"vtex:login"===e.t0?64:"vtex:signUp"===e.t0?66:"vtex:refund"===e.t0?68:"vtex:addToWishlist"===e.t0?70:"vtex:search"===e.t0?72:"vtex:share"===e.t0?74:76;break;case 3:c=t.data.product,u=c.productId,d=c.productReference,s=c.selectedSku,l=c.productName,m=c.brand,p=c.categories,f=w(s.sellers).commertialOffer.AvailableQuantity,b=_(f),g=t.data.list?{actionField:{list:t.data.list}}:{};try{y=w(s.sellers).commertialOffer.Price}catch(e){y=void 0}return k={ecommerce:{detail:Object.assign(Object.assign({},g),{products:[{brand:m,category:j(p),id:u,variant:s.itemId,name:l,dimension1:null!=d?d:"",dimension2:null!==(r=h(t.data.product))&&void 0!==r?r:"",dimension3:s.name,dimension4:b,price:y}]})},event:"productDetail"},T(t.data),v("productDetail",k),e.abrupt("return");case 12:I=t.data,x=I.product,O=I.position,R=x.productName,N=x.brand,S=x.categories,V=x.sku,q=x.productId,C=x.productReference,E=t.data.list?{actionField:{list:t.data.list}}:{};try{X=w(null!==(n=null==V?void 0:V.sellers)&&void 0!==n?n:x.items[0].sellers).commertialOffer.Price}catch(e){X=void 0}return ne={event:"productClick",ecommerce:{click:Object.assign(Object.assign({},E),{products:[{brand:N,category:j(S),id:q,variant:V.itemId,name:R,dimension1:null!=C?C:"",dimension2:null!==(o=null===(a=V.referenceId)||void 0===a?void 0:a.Value)&&void 0!==o?o:"",dimension3:V.name,price:X,position:O}]})}},A(t.data),v("productClick",ne),e.abrupt("return");case 20:return ae=t.data.items,ie={ecommerce:{add:{products:ae.map((function(e){var t,r;return{brand:e.brand,category:e.category,id:e.productId,variant:e.skuId,name:e.name,price:!0===e.priceIsInt?"".concat(e.price/100):"".concat(e.price),quantity:e.quantity,dimension1:null!==(t=e.productRefId)&&void 0!==t?t:"",dimension2:null!==(r=e.referenceId)&&void 0!==r?r:"",dimension3:e.variant}}))},currencyCode:t.data.currency},event:"addToCart"},F(t.data),v("addToCart",ie),e.abrupt("return");case 25:return oe=t.data.items,ce={ecommerce:{currencyCode:t.data.currency,remove:{products:oe.map((function(e){var t,r;return{brand:e.brand,category:e.category,id:e.productId,variant:e.skuId,name:e.name,price:!0===e.priceIsInt?"".concat(e.price/100):"".concat(e.price),quantity:e.quantity,dimension1:null!==(t=e.productRefId)&&void 0!==t?t:"",dimension2:null!==(r=e.referenceId)&&void 0!==r?r:"",dimension3:e.variant}}))}},event:"removeFromCart"},L(t.data),v("removeFromCart",ce),e.abrupt("return");case 30:return ue=t.data,de={purchase:{actionField:P(ue),products:ue.transactionProducts.map((function(e){return ee(e)}))}},se=Object.assign(Object.assign({event:"orderPlaced"},ue),{ecommerce:de,ecommerceV2:{ecommerce:de}}),H(ue),v("orderPlaced",se),e.abrupt("return");case 36:return le=t.data,me=le.currency,pe=le.list,fe=le.impressions,ve=(fe||[]).map(te(pe)),be={event:"productImpression",ecommerce:{currencyCode:me,impressions:ve}},M(t.data),v("productImpression",be),e.abrupt("return");case 42:return ge=t.data.orderForm,v("checkout",{event:"checkout",ecommerce:{checkout:{actionField:{step:1},products:ge.items.map(re)}}}),e.abrupt("break",77);case 46:return ye=t.data.promotions,_e={event:"promoView",ecommerce:{promoView:{promotions:ye}}},U(t.data),v("promoView",_e),e.abrupt("break",77);case 51:return he=t.data.promotions,we={event:"promotionClick",ecommerce:{promoClick:{promotions:he}}},D(t.data),v("promotionClick",we),e.abrupt("break",77);case 56:return W(t.data),e.abrupt("break",77);case 58:return G(t.data),e.abrupt("break",77);case 60:return J(t.data),e.abrupt("break",77);case 62:return Q(t.data),e.abrupt("break",77);case 64:return Y(t.data),e.abrupt("break",77);case 66:return Z(t.data),e.abrupt("break",77);case 68:return B(t.data),e.abrupt("break",77);case 70:return $(t.data),e.abrupt("break",77);case 72:return z(t.data),e.abrupt("break",77);case 74:return K(t.data),e.abrupt("break",77);case 76:return e.abrupt("break",77);case 77:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(e){var t,r,n,a=S(e.name,e.skuName);return{brand:e.brand,category:null===(t=e.categoryTree)||void 0===t?void 0:t.join("/"),id:e.id,variant:e.sku,name:a,price:e.price,quantity:e.quantity,dimension1:null!==(r=e.productRefId)&&void 0!==r?r:"",dimension2:null!==(n=e.skuRefId)&&void 0!==n?n:"",dimension3:e.skuName}}function te(e){return function(t){var r,n,a,i=t.product,o=t.position;return{brand:i.brand,category:j(i.categories),id:i.productId,variant:i.sku.itemId,list:e,name:i.productName,position:o,price:"".concat(i.sku.seller.commertialOffer.Price),dimension1:null!==(r=i.productReference)&&void 0!==r?r:"",dimension2:null!==(a=null===(n=i.sku.referenceId)||void 0===n?void 0:n.Value)&&void 0!==a?a:"",dimension3:i.sku.name}}}function re(e){var t,r,n,a,i,o=S(e.name,e.skuName);return{id:e.productId,variant:e.id,name:o,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:"",price:e.sellingPrice/100,quantity:e.quantity,dimension1:null!==(a=e.productRefId)&&void 0!==a?a:"",dimension2:null!==(i=e.referenceId)&&void 0!==i?i:"",dimension3:e.skuName}}function ne(e){return ae.apply(this,arguments)}function ae(){return(ae=c(i.a.mark((function e(t){var r,n,a,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(new TextEncoder).encode(t),e.next=3,crypto.subtle.digest("SHA-256",r);case 3:return n=e.sent,a=Array.from(new Uint8Array(n)),o=a.map((function(e){return e.toString(16).padStart(2,"0")})).join(""),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ie(){return(ie=c(i.a.mark((function e(t){var r,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.data.eventName,e.next="vtex:pageView"===e.t0?3:"vtex:userData"===e.t0?5:18;break;case 3:return f(Object.assign({event:"pageView",location:t.data.pageUrl,page:t.data.pageUrl.replace(t.origin,""),referrer:t.data.referrer},t.data.pageTitle&&{title:t.data.pageTitle})),e.abrupt("return");case 5:if((r=t.data).isAuthenticated){e.next=8;break}return e.abrupt("return");case 8:if(!r.email){e.next=14;break}return e.next=11,ne(r.email);case 11:e.t1=e.sent,e.next=15;break;case 14:e.t1=void 0;case 15:return n=e.t1,f({event:"userData",userId:r.id,emailHash:n}),e.abrupt("break",19);case 18:return e.abrupt("break",19);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(){return(oe=c(i.a.mark((function e(t){var r,n,a,o,c,u,d,s,l,m,p,v,b,g;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.data.eventName,e.next="vtex:pageInfo"===e.t0?3:23;break;case 3:p=t.data.eventType,e.t1=p,e.next="homeView"===e.t1?7:"categoryView"===e.t1?9:"departmentView"===e.t1?12:"emptySearchView"===e.t1||"internalSiteSearchView"===e.t1?15:"productView"===e.t1?18:20;break;case 7:return f({event:"homeView"}),e.abrupt("break",22);case 9:return v=t.data,f({event:"categoryView",departmentId:null===(r=v.department)||void 0===r?void 0:r.id,departmentName:null===(n=v.department)||void 0===n?void 0:n.name,categoryId:null===(a=v.category)||void 0===a?void 0:a.id,categoryName:null===(o=v.category)||void 0===o?void 0:o.name}),e.abrupt("break",22);case 12:return b=t.data,f({event:"departmentView",departmentId:null===(c=b.department)||void 0===c?void 0:c.id,departmentName:null===(u=b.department)||void 0===u?void 0:u.name}),e.abrupt("break",22);case 15:return g=t.data,f({event:"internalSiteSearchView",siteSearchTerm:null===(d=g.search)||void 0===d?void 0:d.term,siteSearchForm:window.location.href,siteSearchCategory:null===(l=null===(s=g.search)||void 0===s?void 0:s.category)||void 0===l?void 0:l.id,siteSearchResults:null===(m=g.search)||void 0===m?void 0:m.results}),e.abrupt("break",22);case 18:return f({event:"productView"}),e.abrupt("break",22);case 20:return f({event:"otherView"}),e.abrupt("break",22);case 22:case 23:return e.abrupt("break",24);case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.default=function(){return null};function ce(e){!function(e){X.apply(this,arguments)}(e),function(e){ie.apply(this,arguments)}(e),function(e){oe.apply(this,arguments)}(e)}n.canUseDOM&&window.addEventListener("message",ce)}]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],l=e[2],s=0,p=[];st.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},71:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPublicPath=e.register=void 0;var r="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[o]=window[o]||{},e.register=function(t,e,n,i,u){var c="".concat(n,"/").concat(u),a="".concat(i,"/").concat(u),l=function(){return function(t,e){try{var n=t();return n.__esModule?n.default:n.default||n}catch(t){throw new Error("An error happened while requiring the app ".concat(e,", please check your app's code.\\n").concat(t.stack))}}(t,c)};if(window[r]&&window[r].registerComponent){var f=!!window.__RENDER_LAZY__;window[r].registerComponent(e,f?l:l(),n,u,f)}else{var s=l();window[r]&&window[r].withHMR?window[o][c]=window[o][a]=window[r].withHMR(e,s):window[o][c]=window[o][a]=s}return{}},e.getPublicPath=function(t){var e=window.__hostname__,n="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(e=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+e+n+"".concat(t,"/public/react/")}},90:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}}}); },function(){ (window.webpackJsonpvtexbr_tiktok_tbp_1_6_2=window.webpackJsonpvtexbr_tiktok_tbp_1_6_2||[]).push([["TbpPixel"],{130:function(t,e){t.exports=regeneratorRuntime},191:function(t,e){t.exports=__RENDER_8_RUNTIME__},321:function(t,e,n){"use strict";n.r(e),function(t){var e=n(71);n.p=Object(e.getPublicPath)("vtexbr.tiktok-tbp@1.6.2");var r=Object(e.register)((function(){return n(322)}),t,"vtexbr.tiktok-tbp@1.6.2","vtexbr.tiktok-tbp@1.x","TbpPixel");r.renderHotReload,r.setupHMR}.call(this,n(90)(t))},322:function(t,e,n){"use strict";n.r(e);var r=n(15),a=n.n(r),c=n(26),i=n(191);function o(){return(o=Object(c.a)(a.a.mark((function t(e){var n,r,c,i,o,u,l,b,v,k;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e.data.eventName,t.next="vtex:pageView"===t.t0?3:"vtex:orderPlaced"===t.t0?5:"vtex:productView"===t.t0?8:"vtex:addToCart"===t.t0?11:14;break;case 3:return ttq.track("ViewContent"),t.abrupt("break",15);case 5:return n=e.data,r=n.currency,c=n.transactionTotal,i=n.transactionProducts,ttq.track("PlaceAnOrder",p(r,c,i)),t.abrupt("break",15);case 8:return o=e.data,u=o.product,l=o.currency,ttq.track("ViewContent",d(u,l)),t.abrupt("break",15);case 11:return b=e.data,v=b.items,k=b.currency,ttq.track("AddToCart",s(v,k)),t.abrupt("break",15);case 14:return t.abrupt("break",15);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(t){var e,n,r;try{r=null===(n=null===(e=null==t?void 0:t.items[0])||void 0===e?void 0:e.sellers)||void 0===n?void 0:n[0].commertialOffer.Price}catch(t){r=void 0}return r}function p(t,e,n){return{value:e,currency:t,partner_name:"VTEX",contents:n.map((function(t){return{content_id:t.sku,content_type:"product",content_name:t.name,quantity:t.quantity,price:t.sellingPrice}}))}}function d(t,e){return{contents:t.items.map((function(t){var e;return{content_id:t.itemId,content_type:"product",content_name:t.name,price:null===(e=t.seller)||void 0===e?void 0:e.commertialOffer.Price}})),currency:e,partner_name:"VTEX",value:u(t)}}function s(t,e){return{value:t.reduce((function(t,e){return t+e.price*e.quantity}),0)/100,contents:t.map((function(t){return{content_id:t.skuId,quantity:t.quantity,price:t.price/100}})),content_type:"product",currency:e,partner_name:"VTEX"}}i.canUseDOM&&"undefined"!=typeof ttq&&window.tiktokTbp.pixelCode&&window.addEventListener("message",(function(t){return o.apply(this,arguments)}))}},[[321,"common"]]]); },function(){ !function(e){function t(t){for(var r,c,u=t[0],a=t[1],l=t[2],w=0,s=[];we.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_9=window.webpackJsonpvtex_facebook_fbe_1_8_9||[]).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.9");var r=Object(t.register)((function(){return n(94)}),e,"vtex.facebook-fbe@1.8.9","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(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(){ (window.webpackJsonpcolorblue_cbtheme_1_0_59=window.webpackJsonpcolorblue_cbtheme_1_0_59||[]).push([["ScrollComponents"],{0:function(e,c){e.exports=React},21:function(e,c,t){e.exports={scrollContainer:"colorblue-cbtheme-1-x-scrollContainer",scrollHidden:"colorblue-cbtheme-1-x-scrollHidden",scrollActive:"colorblue-cbtheme-1-x-scrollActive"}},40:function(e,c,t){"use strict";t.r(c),function(e){var c=t(1);t.p=Object(c.getPublicPath)("colorblue.cbtheme@1.0.59");var o=Object(c.register)((function(){return t(64)}),e,"colorblue.cbtheme@1.0.59","colorblue.cbtheme@1.x","ScrollComponents");o.renderHotReload,o.setupHMR}.call(this,t(3)(e))},64:function(e,c,t){"use strict";t.r(c);var o=t(2),n=t(0),l=t.n(n),r=t(21),i=t.n(r),s=function(e){var c=e.children,t=e.displayThreshold,r=void 0===t?0:t,s=Object(n.useState)(!1),u=Object(o.a)(s,2),a=u[0],b=u[1],d=Object(n.useState)(0),f=Object(o.a)(d,2),m=f[0],h=f[1],w="".concat(i.a.scrollContainer," ")+"".concat(a?i.a.scrollActive:i.a.scrollHidden);function p(){h(window.pageYOffset)}return Object(n.useEffect)((function(){return window.addEventListener("scroll",p),function(){window.removeEventListener("scroll",p)}}),[]),Object(n.useEffect)((function(){b(m>r)}),[m,r]),Object(n.useEffect)((function(){window.scrollY>1&&b(!0)}),[]),a?l.a.createElement("div",{className:w},c):null};c.default=s}},[[40,"common"]]]); },function(){ (window.webpackJsonpcolorblue_cbtheme_1_0_59=window.webpackJsonpcolorblue_cbtheme_1_0_59||[]).push([["OpenModal"],{0:function(e,t){e.exports=React},36:function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("colorblue.cbtheme@1.0.59");var o=Object(t.register)((function(){return n(57)}),e,"colorblue.cbtheme@1.0.59","colorblue.cbtheme@1.x","OpenModal");o.renderHotReload,o.setupHMR}.call(this,n(3)(e))},57:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var o=n(2),c=n(0),a=n.n(c),l=function(e){var t=e.children,n=Object(c.useState)(!0),l=Object(o.a)(n,2),r=l[0],u=l[1],i=function(){return new Date((new Date).setDate((new Date).getDate()+30))};return Object(c.useEffect)((function(){var e=window.localStorage.getItem("isOpenedModal");if(null===e)u(!1),window.localStorage.setItem("isOpenedModal",i().toString());else{if((new Date).valueOf()>new Date(e).valueOf())return u(!1),void window.localStorage.setItem("isOpenedModal",i().toString());u(!0)}}),[]),r?a.a.createElement("div",null):a.a.createElement("div",null,t[0])}}},[[36,"common"]]]); }], document.currentScript.dataset.index)