enqueueScripts([function(){ (window.webpackJsonpvtex_store_icons_0_18_0=window.webpackJsonpvtex_store_icons_0_18_0||[]).push([["IconSearch"],{0:function(e,n){e.exports=React},2:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},3:function(e,n,o){"use strict";var c=o(0),t=o.n(c),r=o(2),a=o.n(r),s=function(e,n){var o={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&n.indexOf(c)<0&&(o[c]=e[c]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(c=Object.getOwnPropertySymbols(e);te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=n||e<0||b&&t-c>=o}function x(){var t=v();if(j(t))return _(t);a=setTimeout(x,function(t){var e=n-(t-f);return b?s(e,o-(t-c)):e}(t))}function _(t){return a=void 0,y&&i?m(t):(i=r=void 0,u)}function h(){var t=v(),e=j(t);if(i=arguments,r=this,f=t,e){if(void 0===a)return w(f);if(b)return a=setTimeout(x,n),m(f)}return void 0===a&&(a=setTimeout(x,n)),u}return n=g(n)||0,d(e)&&(l=!!e.leading,o=(b="maxWait"in e)?p(g(e.maxWait)||0,n):o,y="trailing"in e?!!e.trailing:y),h.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=f=r=a=void 0},h.flush=function(){return void 0===a?u:_(v())},h}function d(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=d(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var a=r.test(t);return a||o.test(t)?u(t.slice(2),a?2:8):i.test(t)?NaN:+t}t.exports=function(t,n,e){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return d(e)&&(i="leading"in e?!!e.leading:i,r="trailing"in e?!!e.trailing:r),b(t,n,{leading:i,maxWait:n,trailing:r})}}}]); },function(){ (window.webpackJsonpvtex_react_portal_0_4_1=window.webpackJsonpvtex_react_portal_0_4_1||[]).push([["Overlay"],[function(e,t){e.exports=React},,function(e,t){e.exports=ReactDOM},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,t,n){"use strict";n.r(t);var r=n(6),a=n(0),i=n.n(a),o=n(2),c=n.n(o),s=n(3),l=n.n(s),u=["portalContainer","portalWrapper"],d=function(e){var t=e.children,n=e.target,r=e.zIndex,a=void 0===r?2147483647:r,o=e.cover,s=l()(u);return n||(n=window&&window.document&&window.document.body),n?c.a.createPortal(i.a.createElement("div",{className:s.portalContainer,style:Object.assign(Object.assign({position:"fixed",top:0,left:0},o?{bottom:0,right:0,pointerEvents:"none"}:{}),{zIndex:a})},i.a.createElement("div",{className:s.portalWrapper,style:{pointerEvents:"auto"}},t)),n):null},v=n(5),f=n.n(v),w=function(e,t){switch(e){case"left":return t.left;case"right":return t.right;case"center":return(t.right+t.left)/2;default:return t.left}},p=function(e){switch(e){case"left":return"justify-start";case"right":return"justify-end";case"center":return"justify-center";default:return"justify-start"}};t.default=function(e){var t=e.children,n=e.fullWindow,o=e.target,c=e.alignment,s=void 0===c?"left":c,l=Object(a.useRef)(null),u=Object(a.useState)(),v=Object(r.a)(u,2),m=v[0],g=v[1],E=Object(a.useCallback)(f()((function(){if(!n&&l.current){var e=l.current.getBoundingClientRect();g({x:w(s,e),y:e.top})}}),200,{leading:!1}),[s,n]);return Object(a.useEffect)((function(){return E(),window&&(window.addEventListener("scroll",E),window.addEventListener("load",E),window.addEventListener("resize",E),window.addEventListener("visibilitychange",E)),function(){window&&(window.removeEventListener("scroll",E),window.removeEventListener("load",E),window.removeEventListener("resize",E),window.removeEventListener("visibilitychange",E))}}),[s,n,E,t]),n?i.a.createElement(d,{target:o,cover:!0},t):i.a.createElement("div",{ref:l,style:{width:"auto",height:1,marginTop:-1}},m&&i.a.createElement(d,{target:o},i.a.createElement("div",{className:"flex ".concat(p(s)),style:{position:"absolute",left:m.x,top:m.y}},i.a.createElement("div",{className:"absolute"},t))))}},,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.react-portal@0.4.1");var r=Object(t.register)((function(){return n(4)}),e,"vtex.react-portal@0.4.1","vtex.react-portal@0.x","Overlay");r.renderHotReload,r.setupHMR}.call(this,n(7)(e))}],[[8,"common",0]]]); },function(){ !function(e){function n(n){for(var r,u,c=n[0],a=n[1],l=n[2],f=0,p=[];fe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;){var s=r;r=new Set,s.forEach((function(e){m.has(e)||(m.add(e),(a[e]||new Set).forEach((function(e){r.add(e)})))}))}return m.forEach((function(n){var a=d(e,n);a&&i.definitions.push(a)})),i}(i,"addItem")}}]); }], document.currentScript.dataset.index)