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(){ (window.webpackJsonpvtex_styleguide_9_146_13=window.webpackJsonpvtex_styleguide_9_146_13||[]).push([[3],{162:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},251:function(t,e,n){"use strict";var o=n(49);e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,s.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var s=o(n(162));t.exports=e.default},252:function(t,e,n){"use strict";function o(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=o(t.className,e):t.setAttribute("class",o(t.className&&t.className.baseVal||"",e))}},396:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};o.get||o.set?Object.defineProperty(e,n,o):e[n]=t[n]}e.default=t}(n(3));var o=i(n(251)),s=i(n(252)),r=i(n(0)),a=i(n(456));n(457);function i(t){return t&&t.__esModule?t:{default:t}}function l(){return(l=Object.assign||function(t){for(var e=1;e=0||(s[n]=t[n]);return s}(e,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(t,o);var r=s.default.Children.only(n);return s.default.cloneElement(r,o)},o}(s.default.Component);function p(){}l.contextTypes={transitionGroup:o.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var u=(0,a.polyfill)(l);e.default=u},457:function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var o;(o=n(3))&&o.__esModule;e.timeoutsShape=null;e.classNamesShape=null},74:function(t,e,n){"use strict";function o(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function s(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function r(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,i=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?i="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==i){var l=t.displayName||t.name,p="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+p+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=o,e.componentWillReceiveProps=s),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=r;var u=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,t,e,o)}}return t}n.r(e),n.d(e,"polyfill",(function(){return a})),o.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0}}]); },function(){ (window.webpackJsonpvtex_styleguide_9_146_13=window.webpackJsonpvtex_styleguide_9_146_13||[]).push([[2],{106:function(t,n){var r="object"==typeof global&&global&&global.Object===Object&&global;t.exports=r},142:function(t,n,r){var o=r(59),e=Object.prototype,i=e.hasOwnProperty,a=e.toString,s=o?o.toStringTag:void 0;t.exports=function(t){var n=i.call(t,s),r=t[s];try{t[s]=void 0;var o=!0}catch(t){}var e=a.call(t);return o&&(n?t[s]=r:delete t[s]),e}},143:function(t,n){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},164:function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},19:function(t,n,r){var o=r(57),e=r(40);t.exports=function(t){if(!e(t))return!1;var n=o(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},200:function(t,n,r){var o=r(76)(r(43),"Map");t.exports=o},201:function(t,n){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},257:function(t,n,r){var o=r(674),e=r(675),i=r(676),a=r(677),s=r(678);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n-1}},678:function(t,n,r){var o=r(258);t.exports=function(t,n){var r=this.__data__,e=o(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this}},684:function(t,n,r){var o=r(685),e=r(257),i=r(200);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(i||e),string:new o}}},685:function(t,n,r){var o=r(686),e=r(687),i=r(688),a=r(689),s=r(690);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++nwindow.innerHeight?t.style.width="calc(100% - "+function(){if(void 0!==n)return n;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),n=t.offsetWidth-t.clientWidth,e.removeChild(t),n}()+"px)":t.style.width="100%",t.style.position="fixed",t.style.top=-o+"px",t.style.overflow="hidden",r=!0}}function a(){if("undefined"!=typeof document&&r){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="",window.scroll(0,o),r=!1}}var s={on:i,off:a,toggle:function(){r?a():i()}};void 0!==e.exports?e.exports=s:t.noScroll=s}(this)},547:function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(3),a=n.n(i),s=n(74),c=n(548),l=n.n(c),u=n(396),p=n.n(u),d=n(13),f=n.n(d),h=n(410),v=n.n(h),y=n(549),m=n.n(y);function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n=t.height;return{width:n?e:e*t.width/t.height,height:n?e*t.height/t.width:e}},c=function(t,e){return"vtex__icon-".concat(t," ").concat(e?"vtex__icon-".concat(t,"--").concat(e):"")}},22:function(t,e){t.exports=ReactDOM},3:function(t,e){t.exports=PropTypes}},[[1408,"common",3,2,4,28,27]]]); },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(910),o=r(913);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(1006);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}},1082:function(t,n,r){t.exports=r(1083)},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}))},1101: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(899)},533:function(t,n,r){t.exports=r(907)},543:function(t,n,r){t.exports=r(982)},545:function(t,n,r){t.exports=r(990)},555:function(t,n,r){t.exports=r(1047)},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)}},628: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)}},629: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(647),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},649: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_3=window.webpackJsonpvtex_admin_pages_4_57_3||[]).push([["HighlightOverlay"],{0:function(e,t){e.exports=React},1133: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(1145),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){},646: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.3");var i=Object(t.register)((function(){return n(1133)}),e,"vtex.admin-pages@4.57.3","vtex.admin-pages@4.x","HighlightOverlay");i.renderHotReload,i.setupHMR}.call(this,n(49)(e))}},[[646,"common",6,18]]]); },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){function n(n){for(var r,c,u=n[0],a=n[1],l=n[2],d=0,w=[];d0)||function(e,t,n){var o=t?new URL(t):null;return!(!o||t===n||o.host===e.host)||e.search.slice(1).split("&").some((function(e){return c.some((function(t){return e.startsWith("".concat(t,"="))}))}))}(window.location,document.referrer,e.referrer))return null;var t,n;return Object.assign(Object.assign({},e),{expires:s()})}(),t="storage";return e||(e={location:window.location.href,referrer:document.referrer,expires:s()},t="fresh"),function(e){d.apply(this,arguments)}(e),Object.assign(Object.assign({},e),{origin:t})}window.dataLayer=window.dataLayer||[];var m=!0;function _(e){var t=p(),n=t.location,o=t.referrer,i=t.origin,l=e;(m||"fresh"===i)&&(m=!1,l=Object.assign(Object.assign({},e),{originalLocation:n,originalReferrer:o})),window.dataLayer.push(l)}function f(e,t){var n=window.dataLayer.findIndex((function(t){return t.event&&t.event===e}));if(n>=0&&window.dataLayer.splice(n,1),Object.keys(t).includes("ecommerce")){var o=window.dataLayer.findIndex((function(e){return null===e.ecommerce}));o>=0&&window.dataLayer.splice(o,1),_({ecommerce:null})}_(t)}function g(e){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}function h(e){var t;if(e&&e.length)return null==(t=e[0])?void 0:t.replace(/^\/|\/$/g,"")}function w(e){return function(t){var n,o,i,l=t.product,r=t.position;return{brand:l.brand,category:h(l.categories),id:l.productId,variant:l.sku.name,list:e,name:l.productName,position:r,price:"".concat(l.sku.seller.commertialOffer.Price),dimension1:null!==(n=l.productReference)&&void 0!==n?n:"",dimension2:null!==(i=null===(o=l.sku.referenceId)||void 0===o?void 0:o.Value)&&void 0!==i?i:"",dimension3:l.sku.name}}}function x(e){var t,n,o,i,l,r=function(e,t){var n=e.lastIndexOf(t);if(-1===n||0===n)return e;return e.substring(0,n-1)}(e.name,e.skuName);return{id:e.productId,variant:e.skuName,name:r,category:Object.keys(null!==(t=e.productCategories)&&void 0!==t?t:{}).reduce((function(e,t){return e?"".concat(e,"/").concat(t):t}),""),brand:null!==(o=null===(n=e.additionalInfo)||void 0===n?void 0:n.brandName)&&void 0!==o?o:"",price:e.sellingPrice/100,quantity:e.quantity,dimension1:null!==(i=e.productRefId)&&void 0!==i?i:"",dimension2:null!==(l=e.referenceId)&&void 0!==l?l:"",dimension3:e.skuName}}function y(e){for(var t="".concat(e,"="),n=decodeURIComponent(document.cookie),o=(null==n?void 0:n.split(";"))||[],i=0;i=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 l,r=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return r=e.done,e},e:function(e){a=!0,l=e},f:function(){try{r||null==n.return||n.return()}finally{if(a)throw l}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0,original_price_item:L/100}]}},window.GA4_CUSTOM_DIMENSION_DATA||{}));case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),e.abrupt("return");case 9:if(Te=S(),Le=Te.section,!(null===(o=null===(n=t.data)||void 0===n?void 0:n.search)||void 0===o?void 0:o.text)||document.querySelector(".vtex-search-2-x-biggy-js-container--hidden")){e.next=18;break}return e.next=13,fetch("/api/io/_v/api/intelligent-search/product_search/null?query=".concat(decodeURIComponent(null===(r=null===(i=t.data)||void 0===i?void 0:i.search)||void 0===r?void 0:r.text),"&simulationBehavior=default&count=").concat(window.innerWidth<641?2:4,"&page=1&hideUnavailableItems=false"));case 13:return Ae=e.sent,e.next=16,Ae.json();case 16:Ee=e.sent,(null===(c=null==Ee?void 0:Ee.products)||void 0===c?void 0:c.length)?(window.dataLayer.push(Object.assign({event:"virtualEventGA4",content_type:"inpage_search",selected_content:"search_found :: ".concat(null===(p=null===(s=t.data)||void 0===s?void 0:s.search)||void 0===p?void 0:p.text),section:"".concat(Le," :: searchResults"),campaign:b(),currency:O(),position_ui:"header :: inpage_search",destination_page:""},window.GA4_CUSTOM_DIMENSION_DATA||{})),window.dataLayer.push(Object.assign({event:"view_item_list",section:"".concat(Le," :: searchResults"),campaign:b(),position_ui:"header :: inpage_search",ecommerce:{currency:O(),affiliation:"",value:null===(m=null==Ee?void 0:Ee.products)||void 0===m?void 0:m.reduce((function(e,t){var n,o;return e+(null===(o=null===(n=null==t?void 0:t.priceRange)||void 0===n?void 0:n.sellingPrice)||void 0===o?void 0:o.highPrice)}),0),items:null===(_=null==Ee?void 0:Ee.products)||void 0===_?void 0:_.map((function(e,n){var o,i,l,r,a,c,d,u,s,v,p,m,_,f,g,h,w,x,y,b,k,S,I,O;return{item_name:null==e?void 0:e.productName,item_id:null!==(l=null===(i=null===(o=null==e?void 0:e.items)||void 0===o?void 0:o[0])||void 0===i?void 0:i.itemId)&&void 0!==l?l:"",item_list_name:"searchResults :: ".concat(null===(a=null===(r=t.data)||void 0===r?void 0:r.search)||void 0===a?void 0:a.text),index:n+1,price:null===(d=null===(c=null==e?void 0:e.priceRange)||void 0===c?void 0:c.sellingPrice)||void 0===d?void 0:d.highPrice,discount:(null===(s=null===(u=null==e?void 0:e.priceRange)||void 0===u?void 0:u.listPrice)||void 0===s?void 0:s.highPrice)-(null===(p=null===(v=null==e?void 0:e.priceRange)||void 0===v?void 0:v.sellingPrice)||void 0===p?void 0:p.highPrice),item_brand:null==e?void 0:e.brand,item_category:null===(_=null===(m=null==e?void 0:e.categories)||void 0===m?void 0:m[0])||void 0===_?void 0:_.replaceAll("/",""),item_variant:(null===(x=null===(w=null===(h=null===(g=null===(f=null==e?void 0:e.items)||void 0===f?void 0:f[0])||void 0===g?void 0:g.variations)||void 0===h?void 0:h[0])||void 0===w?void 0:w.values)||void 0===x?void 0:x[0])||"",quantity:1,flag_discount:(null===(b=null===(y=null==e?void 0:e.priceRange)||void 0===y?void 0:y.listPrice)||void 0===b?void 0:b.highPrice)!==(null===(S=null===(k=null==e?void 0:e.priceRange)||void 0===k?void 0:k.sellingPrice)||void 0===S?void 0:S.highPrice),original_price_item:null===(O=null===(I=null==e?void 0:e.priceRange)||void 0===I?void 0:I.listPrice)||void 0===O?void 0:O.highPrice}}))}},window.GA4_CUSTOM_DIMENSION_DATA||{}))):window.dataLayer.push(Object.assign({event:"virtualEventGA4",content_type:"inpage_search",selected_content:"search_not_found :: ".concat(null===(u=null===(d=t.data)||void 0===d?void 0:d.search)||void 0===u?void 0:u.text),section:"".concat(Le," :: searchResults"),campaign:b(),currency:O(),position_ui:"header :: inpage_search",destination_page:""},window.GA4_CUSTOM_DIMENSION_DATA||{}));case 18:return e.abrupt("return");case 19:Ne=t.data.product,Pe=Ne.productReference,qe=Ne.selectedSku,Me=Ne.productName,Re=Ne.brand,je=Ne.categories,De=JSON.parse(null!==(y=localStorage.getItem("firework-cta-url"))&&void 0!==y?y:"{}"),Ue=De.section,Be=De.url,Ue&&Be&&(window.location.pathname+window.location.search+window.location.hash).startsWith(Be)&&window.dataLayer.push({event:"virtualEvent",category:"ui :: firework :: ".concat(Re," :: ").concat(Ue),action:"click",label:"pdp - ".concat(qe.itemId)}),localStorage.removeItem("firework-cta-url"),Ge=g(qe.sellers).commertialOffer.AvailableQuantity,Ve=Ge>0?"available":"unavailable",Fe=(null!==(I=null===(k=qe.referenceId)||void 0===k?void 0:k[0])&&void 0!==I?I:A).Value;try{ze=g(qe.sellers).commertialOffer.Price}catch(e){ze=void 0}return Je=window.location.pathname.split("/"),We=Je.slice(1)[0].split("-")[0],"set"===Je[Je.length-2].split("-")[0]&&Je.includes("minegocio")&&f("productClick",{ecommerce:{click:{list:"Mi Negocio",currencyCode:t.data.currency,products:[Object.assign(Object.assign({brand:Re,category:h(je),id:null!=Fe?Fe:"",variant:qe.name,name:Me,dimension1:null!=Pe?Pe:"",dimension2:null!=Fe?Fe:"",dimension3:qe.name,dimension4:Ve,price:ze,dimension21:t.data.product.items[0].sellers[0].commertialOffer.AvailableQuantity},We.includes("set")&&{dimension12:Me}),{dimension13:"Mi Negocio"})]}},event:"productClick"}),He=S()||{},Xe=He.section,Ke=null===(L=null==qe?void 0:qe.sellers)||void 0===L?void 0:L.find((function(e){return e.sellerDefault})),null===(E=window.dataLayer)||void 0===E||E.push(Object.assign({event:"view_item",section:Xe,campaign:b(),position_ui:"body",ecommerce:{currency:O(),affiliation:"",value:null===(N=null==Ke?void 0:Ke.commertialOffer)||void 0===N?void 0:N.Price,items:[{item_name:Me,item_id:null!==(P=null==qe?void 0:qe.itemId)&&void 0!==P?P:"",item_list_name:Xe,index:1,price:null===(q=null==Ke?void 0:Ke.commertialOffer)||void 0===q?void 0:q.Price,discount:((null===(M=null==Ke?void 0:Ke.commertialOffer)||void 0===M?void 0:M.ListPrice)||0)-((null===(R=null==Ke?void 0:Ke.commertialOffer)||void 0===R?void 0:R.Price)||0),item_brand:Re,item_category:null===(j=null==je?void 0:je[0])||void 0===j?void 0:j.replace(/\//g,""),item_variant:null===(D=document.querySelector(".vtex-store-components-3-x-skuSelectorSelectorImageValue"))||void 0===D?void 0:D.textContent,quantity:1,flag_discount:((null===(U=null==Ke?void 0:Ke.commertialOffer)||void 0===U?void 0:U.ListPrice)||0)!==((null===(B=null==Ke?void 0:Ke.commertialOffer)||void 0===B?void 0:B.Price)||0),original_price_item:null===(G=null==Ke?void 0:Ke.commertialOffer)||void 0===G?void 0:G.ListPrice}]}},window.GA4_CUSTOM_DIMENSION_DATA||{})),e.abrupt("return");case 34:if($e=t.data.items,Qe=S()||{},Ye=Qe.section,Ze={},Ye.includes("pdp ::")?Ze={item_list_name:Ye}:(Ye.includes("resultado de busqueda")||Ye.includes("categoria ::"))&&(Ze={item_list_name:(null===(V=null==t?void 0:t.data)||void 0===V?void 0:V.list_name)||window.productClickList||"body"}),!(null===(F=t.data)||void 0===F?void 0:F.isBuyTogether)){e.next=59;break}et=[],tt=1,nt=T(null!==(J=null===(z=t.data)||void 0===z?void 0:z.items)&&void 0!==J?J:[]),e.prev=42,it=l.a.mark((function e(){var t,n,o,i;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=ot.value,e.next=3,fetch("/api/catalog_system/pub/products/search?fq=skuId:".concat(t.skuId));case 3:return n=e.sent,e.next=6,n.json();case 6:o=e.sent,i=null===(H=null===(W=o[0])||void 0===W?void 0:W.items)||void 0===H?void 0:H.find((function(e){return e.itemId===t.skuId})),et.push({item_name:null==i?void 0:i.name,item_id:t.skuId,item_list_name:"".concat(C()," - pdp - Cómpralos juntos a un menor precio"),index:tt,price:null===($=null===(K=null===(X=null==i?void 0:i.sellers)||void 0===X?void 0:X[0])||void 0===K?void 0:K.commertialOffer)||void 0===$?void 0:$.Price,discount:(null===(Z=null===(Y=null===(Q=null==i?void 0:i.sellers)||void 0===Q?void 0:Q[0])||void 0===Y?void 0:Y.commertialOffer)||void 0===Z?void 0:Z.ListPrice)-(null===(ne=null===(te=null===(ee=null==i?void 0:i.sellers)||void 0===ee?void 0:ee[0])||void 0===te?void 0:te.commertialOffer)||void 0===ne?void 0:ne.Price),item_brand:null===(oe=o[0])||void 0===oe?void 0:oe.brand,item_category:null===(re=null===(le=null===(ie=o[0])||void 0===ie?void 0:ie.categories)||void 0===le?void 0:le[0])||void 0===re?void 0:re.replaceAll("/",""),item_variant:(null===(ce=i[null===(ae=null==i?void 0:i.variations)||void 0===ae?void 0:ae[0]])||void 0===ce?void 0:ce[0])||"",quantity:t.quantity,flag_discount:(null===(se=null===(ue=null===(de=null==i?void 0:i.sellers)||void 0===de?void 0:de[0])||void 0===ue?void 0:ue.commertialOffer)||void 0===se?void 0:se.ListPrice)!==(null===(me=null===(pe=null===(ve=null==i?void 0:i.sellers)||void 0===ve?void 0:ve[0])||void 0===pe?void 0:pe.commertialOffer)||void 0===me?void 0:me.Price),original_price_item:null===(ge=null===(fe=null===(_e=null==i?void 0:i.sellers)||void 0===_e?void 0:_e[0])||void 0===fe?void 0:fe.commertialOffer)||void 0===ge?void 0:ge.ListPrice}),tt++;case 10:case"end":return e.stop()}}),e)})),nt.s();case 45:if((ot=nt.n()).done){e.next=49;break}return e.delegateYield(it(),"t1",47);case 47:e.next=45;break;case 49:e.next=54;break;case 51:e.prev=51,e.t2=e.catch(42),nt.e(e.t2);case 54:return e.prev=54,nt.f(),e.finish(54);case 57:return null===(he=window.dataLayer)||void 0===he||he.push(Object.assign({event:"add_to_cart",section:"pdp :: Compralos Juntos :: ".concat(null===(we=null==Ye?void 0:Ye.split(" :: "))||void 0===we?void 0:we[1]),campaign:b(),position_ui:"body",ecommerce:{currency:t.data.currency,affiliation:(null===(xe=null==t?void 0:t.data)||void 0===xe?void 0:xe.affiliation)||"",value:null===(ye=t.data)||void 0===ye?void 0:ye.value,items:et}},window.GA4_CUSTOM_DIMENSION_DATA||{})),e.abrupt("return");case 59:return null===(be=window.dataLayer)||void 0===be||be.push(Object.assign({event:"add_to_cart",section:Ye,campaign:b(),position_ui:Ye.includes("categoria ::")?"body :: products":"body",ecommerce:{currency:t.data.currency,affiliation:(null===(ke=null==t?void 0:t.data)||void 0===ke?void 0:ke.affiliation)||"",value:(null==$e?void 0:$e.reduce((function(e,t){return e+t.sellingPrice*t.quantity}),0))/100,items:null==$e?void 0:$e.map((function(e,n){var o,i;return Object.assign({item_name:e.name,item_id:null!==(o=e.skuId)&&void 0!==o?o:"",item_list_name:(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.list_name)||"body",index:Ye.includes("categoria ::")?window.productClickPosition:n+1,price:e.sellingPrice/100,discount:(e.price-e.sellingPrice)/100,item_brand:e.brand,item_category:e.category,item_variant:e.variant,quantity:e.quantity,flag_discount:e.price!==e.sellingPrice,original_price_item:e.price/100},Ze)}))}},window.GA4_CUSTOM_DIMENSION_DATA||{})),e.abrupt("return");case 61:return lt=t.data.items,f("removeFromCart",{ecommerce:{currencyCode:t.data.currency,remove:{products:lt.map((function(e){var t,n;return{brand:e.brand,category:e.category,id:e.productId,variant:e.variant,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!==(n=e.referenceId)&&void 0!==n?n:"",dimension3:e.variant}}))}},event:"removeFromCart"}),e.abrupt("return");case 65:return rt=t.data,e.next=68,fetch("/api/sessions?items=*");case 68:return at=e.sent,e.next=71,at.json();case 71:return ct=e.sent,dt=[],ut=[],st=[],rt.transactionProducts.map((function(e){dt.push(e.sku),ut.push(e.name),0===e.price&&st.push(e.sku)})),vt=S()||{},pt=vt.section,mt=JSON.parse(localStorage.getItem("add_payment_info__".concat(null==rt?void 0:rt.transactionTotal))||""),ft=(_t=mt||{}).discount_coupon,gt=_t.discount_promotional,ht=_t.ecommerce,e.next=81,v();case 81:return window.dataLayer.push(Object.assign({event:"purchase",original_price:(null==rt?void 0:rt.transactionTotal)-(null==rt?void 0:rt.transactionDiscounts),discount_total:-(null==rt?void 0:rt.transactionDiscounts),discount_coupon:ft,discount_promotional:gt,section:pt,campaign:b(),position_ui:"body",ecommerce:{currency:null==rt?void 0:rt.transactionCurrency,transaction_id:null==rt?void 0:rt.transactionId,affiliation:"",value:null==rt?void 0:rt.transactionTotal,tax:null==rt?void 0:rt.transactionTax,shipping:null==rt?void 0:rt.transactionShipping,has_shipping:(null==rt?void 0:rt.transactionShipping)>0,coupon:(null==rt?void 0:rt.coupon)||"",items:null===(Se=null==rt?void 0:rt.transactionProducts)||void 0===Se?void 0:Se.map((function(e,t){var n,o,i;return{item_name:null==e?void 0:e.name,item_id:null==e?void 0:e.sku,index:t+1,price:null==e?void 0:e.sellingPrice,discount:(null==e?void 0:e.originalPrice)-(null==e?void 0:e.sellingPrice),item_brand:null==e?void 0:e.brand,item_category:(null===(n=null==e?void 0:e.categoryTree)||void 0===n?void 0:n[0])||"",item_variant:(null===(i=null===(o=null==ht?void 0:ht.items)||void 0===o?void 0:o.find((function(t){return(null==t?void 0:t.item_id)===(null==e?void 0:e.sku)})))||void 0===i?void 0:i.item_variant)||"",quantity:null==e?void 0:e.quantity,flag_discount:(null==e?void 0:e.originalPrice)!==(null==e?void 0:e.sellingPrice)}}))}},window.GA4_CUSTOM_DIMENSION_DATA||{})),localStorage.removeItem("add_payment_info__".concat(null==rt?void 0:rt.transactionTotal)),f("virtualEvent",{event:"virtualEvent",category:"ui :: "+rt.accountName+" :: intencion de compra",action:ct.namespaces.store.cultureInfo.value.split("-")[1],label:rt.accountName,rccodigoPedido:rt.transactionId,rcskuProductos:dt,rcnombreProductos:ut,rcmedioPago:rt.transactionPaymentType[0].group,rcvalorTotalCompra:rt.transactionTotal.toFixed(2),rcnumeroTotalCompra:rt.transactionProducts.length,rcvalorEnvio:rt.transactionShipping.toFixed(2)}),wt=rt.transactionDiscounts.toFixed(2),f("checkoutConfirmation",{event:"checkout confirmation page viewed","products ids":dt,"cart subtotal price":rt.transactionSubtotal.toFixed(2),"cart total price":rt.transactionTotal.toFixed(2),"cart products quantity":rt.transactionProducts.length,"cart shipment price":rt.transactionShipping.toFixed(2),"cart discount":wt<0?-1*wt:wt,currency:rt.currency,"cart id":rt.transactionId,"presents ids":st,"cart presents quantity":st.length,"is free shipping":0===rt.transactionShipping}),window.dataLayer.push({event:"virtualEvent",category:"ui :: checkout :: paso 3 :: finalizar compra event button",action:"click",label:"button event finalizar compra"}),e.abrupt("return");case 90:return xt=t.data,yt=xt.currency,bt=xt.list,kt=xt.impressions,St=(kt||[]).map(w(bt)),f("productImpression",{event:"productImpression",ecommerce:{currencyCode:yt,impressions:St}}),It=S()||{},Ot=It.section,Ct={"category-plp":"products"},Tt=Ot.includes("categoria ::")?"body :: products":"home"===Ot||"armaTuKit"===Ot||Ot.includes("pdp ::")?"body :: carrusel :: ".concat(bt):"body :: ".concat((null==Ct?void 0:Ct[bt||""])||bt),null===(Ie=window.dataLayer)||void 0===Ie||Ie.push(Object.assign({event:"view_item_list",section:Ot,campaign:b(),position_ui:Tt,ecommerce:{currency:yt,affiliation:"",value:null==kt?void 0:kt.reduce((function(e,t){var n,o,i;return e+(null===(i=null===(o=null===(n=null==t?void 0:t.product)||void 0===n?void 0:n.priceRange)||void 0===o?void 0:o.sellingPrice)||void 0===i?void 0:i.highPrice)}),0),items:null==kt?void 0:kt.map((function(e,t){var n,o,i,l,r,a,c,d,u,s,v,p,m,_,f,g,h,w,x,y,b,k,S,I,O,C,T,L,A,E,N,P;return{item_name:null===(n=null==e?void 0:e.product)||void 0===n?void 0:n.productName,item_id:null!==(l=null===(i=null===(o=null==e?void 0:e.product)||void 0===o?void 0:o.sku)||void 0===i?void 0:i.itemId)&&void 0!==l?l:"",item_list_name:Ot.includes("categoria ::")?"category-plp":bt,index:t+1,price:null===(c=null===(a=null===(r=null==e?void 0:e.product)||void 0===r?void 0:r.priceRange)||void 0===a?void 0:a.sellingPrice)||void 0===c?void 0:c.highPrice,discount:(null===(s=null===(u=null===(d=null==e?void 0:e.product)||void 0===d?void 0:d.priceRange)||void 0===u?void 0:u.listPrice)||void 0===s?void 0:s.highPrice)-(null===(m=null===(p=null===(v=null==e?void 0:e.product)||void 0===v?void 0:v.priceRange)||void 0===p?void 0:p.sellingPrice)||void 0===m?void 0:m.highPrice),item_brand:null===(_=null==e?void 0:e.product)||void 0===_?void 0:_.brand,item_category:null===(h=null===(g=null===(f=null==e?void 0:e.product)||void 0===f?void 0:f.categories)||void 0===g?void 0:g[0])||void 0===h?void 0:h.replaceAll("/",""),item_variant:null===(S=null===(k=null===(b=null===(y=null===(x=null===(w=null==e?void 0:e.product)||void 0===w?void 0:w.items)||void 0===x?void 0:x[0])||void 0===y?void 0:y.variations)||void 0===b?void 0:b[0])||void 0===k?void 0:k.values)||void 0===S?void 0:S[0],quantity:1,flag_discount:(null===(C=null===(O=null===(I=null==e?void 0:e.product)||void 0===I?void 0:I.priceRange)||void 0===O?void 0:O.listPrice)||void 0===C?void 0:C.highPrice)!==(null===(A=null===(L=null===(T=null==e?void 0:e.product)||void 0===T?void 0:T.priceRange)||void 0===L?void 0:L.sellingPrice)||void 0===A?void 0:A.highPrice),original_price_item:null===(P=null===(N=null===(E=null==e?void 0:e.product)||void 0===E?void 0:E.priceRange)||void 0===N?void 0:N.listPrice)||void 0===P?void 0:P.highPrice}}))}},window.GA4_CUSTOM_DIMENSION_DATA||{})),e.abrupt("return");case 99:return Lt=t.data.orderForm,f("checkout",{event:"checkout",ecommerce:{checkout:{actionField:{step:1},products:Lt.items.map(x)}}}),e.abrupt("return");case 103:return At=t.data.promotions,Et=new URL(null===(Oe=At[0])||void 0===Oe?void 0:Oe.creative).pathname,Nt=document.querySelector('[src$="'.concat(Et,'"]')),Pt=null===(Ce=null==Nt?void 0:Nt.closest(".vtex-slider-layout-0-x-imageElementLink"))||void 0===Ce?void 0:Ce.href,setTimeout((function(){var e=(S()||{}).section;window.dataLayer.push(Object.assign({event:"view_promotion",section:e,campaign:b(),position_ui:"body :: main_banner",destination_page:Pt,ecommerce:{currency:O(),items:null==At?void 0:At.map((function(e){return{promotion_name:null==e?void 0:e.name,promotion_id:null==e?void 0:e.id,creative_name:null==e?void 0:e.creative,creative_slot:null==e?void 0:e.position,item_brand:C()}}))}},window.GA4_CUSTOM_DIMENSION_DATA||{}))}),500),e.abrupt("return");case 109:return e.abrupt("return");case 110:case"end":return e.stop()}}),e,null,[[42,51,54,57]])})))).apply(this,arguments)}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&""!==y("consultantUrl")){var C=window.location.hostname.split(".").slice(1).join("."),T=function(e,t){return""!==e&&("false"===e&&(document.cookie="mixta=".concat(!0,";domain=",t)),!0)}(y("mixta"),C),L={codigo_consultora:x[x.length-3],tipo_usuario:z(),id_usuario:y("biggy-anonymous"),idclient:ze,client_id_ga:null===(i=y("_ga"))||void 0===i?void 0:i.split("GA")[1],marca:F(),paisbelcorp:null===(r=null===(l=window.__RUNTIME__.culture.locale)||void 0===l?void 0:l.split("-"))||void 0===r?void 0:r[1],"campaña":x[x.length-2],es_consultora:"Si",idsesionvtex:null!==(a=y("biggy-session-".concat(window.__RUNTIME__.account)))&&void 0!==a?a:"(not available)",canal:S,mixta:T,tipo_pagina:k(t.data.routeId),email_cliente:I};window.dataLayer.push(Object.assign({event:"custom_dimension"},L)),window.GA4_CUSTOM_DIMENSION_DATA=L,y("consultant_code")!==x[3]&&(document.cookie="campana=".concat(x[x.length-2],";domain=").concat(null===(c=Ee.hostname)||void 0===c?void 0:c.split(".").slice(1).join("."),";path=/;max-age=7776000;secure;"),document.cookie="consultant_code=".concat(x[x.length-3],";domain=").concat(null===(d=Ee.hostname)||void 0===d?void 0:d.split(".").slice(1).join("."),";path=/;max-age=7776000;secure;")),0===y("campana").length&&(document.cookie="campana=".concat(x[x.length-2],";domain=").concat(null===(u=Ee.hostname)||void 0===u?void 0:u.split(".").slice(1).join("."),";path=/;max-age=7776000;secure;")),0===y("consultant_code").length&&(document.cookie="consultant_code=".concat(x[x.length-3],";domain=").concat(null===(s=Ee.hostname)||void 0===s?void 0:s.split(".").slice(1).join("."),";path=/;max-age=7776000;secure;")),clearInterval(He)}else if(2===(Be+=1)){Ge=Object.keys(null===(v=y("consultora"))||void 0===v?void 0:v.split(",")).length>1,document.cookie="mixta=".concat(Ge,";domain=").concat(null===(_=null===(m=null===(p=window.location.hostname)||void 0===p?void 0:p.split("."))||void 0===m?void 0:m.slice(1))||void 0===_?void 0:_.join("."));var A={codigo_consultora:"no",tipo_usuario:z(),id_usuario:y("biggy-anonymous"),idclient:ze,client_id_ga:null===(f=y("_ga"))||void 0===f?void 0:f.split("GA")[1],marca:F(),paisbelcorp:null===(h=null===(g=window.__RUNTIME__.culture.locale)||void 0===g?void 0:g.split("-"))||void 0===h?void 0:h[1],"campaña":"",es_consultora:"No",idsesionvtex:null!==(w=y("biggy-session-".concat(window.__RUNTIME__.account)))&&void 0!==w?w:"(not available)",canal:S,mixta:Ge,tipo_pagina:k(t.data.routeId),email_cliente:I};window.dataLayer.push(Object.assign({event:"custom_dimension"},A)),window.GA4_CUSTOM_DIMENSION_DATA=A,clearInterval(He)}V("channel",S)}),1e3),V("country",null===(ae=null===(re=window.__RUNTIME__.culture.locale)||void 0===re?void 0:re.split("-"))||void 0===ae?void 0:ae[1]),V("store_name",window.__RUNTIME__.account),G(B(),F()),V("last_brand",(Xe=JSON.parse("[".concat(y("history"),"]")))[Xe.length-2].current),Ue.includes("ofertas")&&(Ke=!1,window.onscroll=function(){var e=window.location.pathname;Ke||(Ke=!0,setTimeout((function(){e===window.location.pathname&&M({content_type:"scroll",selected_content:"scroll 30 seconds",position_ui:"body",destination_page:""})}),3e4))}),"c"===Ue[Ue.length-1]&&(Ke=!1,window.onscroll=function(){var e=window.location.pathname;Ke||(Ke=!0,setTimeout((function(){e===window.location.pathname&&M({content_type:"scroll",selected_content:"scroll 30 seconds",position_ui:"body",destination_page:""})}),3e4))}),e.t2=t.data.routeId,e.next="store.home"===e.t2?65:"store.product"===e.t2?68:"store.search"===e.t2?71:"store.search#department"===e.t2?74:77;break;case 65:return Ke=!1,window.onscroll=function(){var e=window.location.pathname;Ke||(Ke=!0,setTimeout((function(){e===window.location.pathname&&M({content_type:"scroll",selected_content:"scroll 30 seconds",position_ui:"body",destination_page:""})}),3e4))},e.abrupt("break",78);case 68:return Ke=!1,window.onscroll=function(){var e=window.location.pathname;Ke||(Ke=!0,setTimeout((function(){e===window.location.pathname&&M({content_type:"scroll",selected_content:"scroll 30 seconds",position_ui:"body",destination_page:""})}),3e4))},e.abrupt("break",78);case 71:return Ke=!1,window.onscroll=function(){var e=window.location.pathname;Ke||(Ke=!0,setTimeout((function(){e===window.location.pathname&&M({content_type:"scroll",selected_content:"scroll 30 seconds",position_ui:"body",destination_page:""})}),3e4))},e.abrupt("break",78);case 74:return Ke=!1,window.onscroll=function(){var e=window.location.pathname;Ke||(Ke=!0,setTimeout((function(){e===window.location.pathname&&M({content_type:"scroll",selected_content:"scroll 30 seconds",position_ui:"body",destination_page:""})}),3e4))},e.abrupt("break",78);case 77:return e.abrupt("break",78);case 78:if("c"===Ue[Ue.length-1]||window.location.search.includes("_q=")){for($e=[],Qe=document.querySelectorAll(".vtex-search-result-3-x-selectedFilterItem"),Ye=document.querySelectorAll(".vtex-search-result-3-x-filterPopupTitle")[0],Ze=null===(ce=Ye.innerText)||void 0===ce?void 0:ce.split("por"),et=0;et0)for(q=1;q10&&clearInterval(Ye),Qe++}),500)}(e),window.currentElementClicked=e.target}),!0),document.addEventListener("touchstart",(function(e){window.customTouchStartX=e.touches[0].clientX})),document.addEventListener("touchmove",(function(e){window.customTouchEndX=e.touches[0].clientX})),document.addEventListener("touchend",(function(e){var t,n,o,i,l,r=e.target,a=r.closest(".vtex-flex-layout-0-x-flexRowContent--carousel-wrapper")||r.closest(".vtex-flex-layout-0-x-flexRowContent--product-carousel-wrapper"),c=(null===(t=null==a?void 0:a.querySelector(".vtex-rich-text-0-x-heading--carousel-title"))||void 0===t?void 0:t.textContent)||(null===(n=null==a?void 0:a.querySelector(".vtex-rich-text-0-x-paragraph--carousel-title"))||void 0===n?void 0:n.textContent)||"";if(a&&c){var d=window.customTouchEndX-window.customTouchStartX,u="";Math.abs(d)>50&&(u=d>0?"derecha":"izquierda"),u&&M({content_type:"swipe",selected_content:"swipe :: ".concat(u),position_ui:"body :: carrusel :: ".concat(c),destination_page:""})}else if(null==r?void 0:r.closest(".belcorp-product-images-custom-0-x-productImagesContainer")){var s=null===(o=document.querySelector(".belcorp-product-images-custom-0-x-swiperBullet--active"))||void 0===o?void 0:o.parentElement,v=s?Array.from(s.children):[],p=document.querySelector(".belcorp-product-images-custom-0-x-swiperBullet--active"),m=0;v.length>0&&p&&(m=v.indexOf(p)),M({content_type:"swipe",selected_content:"swipe :: fotos :: ".concat(m+1),position_ui:"body",destination_page:"",product_name:(null===(i=document.querySelector(".vtex-store-components-3-x-productNameContainer"))||void 0===i?void 0:i.innerText)||"",product_id:(null===(l=document.querySelector('[property="product:sku"]'))||void 0===l?void 0:l.getAttribute("content"))||""})}})),window.addEventListener("message",H))}]); },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 n,a,u=t[0],c=t[1],l=t[2],d=0,p=[];de.length)&&(t=e.length);for(var r=0,n=new Array(t);r