enqueueScripts([function(){ (window.webpackJsonpvtex_login_2_65_0=window.webpackJsonpvtex_login_2_65_0||[]).push([["Wrapper"],{0:function(n,t){n.exports=React},191:function(n,t,e){"use strict";e.r(t),function(n){var t=e(25);e.p=Object(t.getPublicPath)("vtex.login@2.65.0");var r=Object(t.register)((function(){return e(194)}),n,"vtex.login@2.65.0","vtex.login@2.x","Wrapper");r.renderHotReload,r.setupHMR}.call(this,e(56)(n))},194:function(n,t,e){"use strict";e.r(t),e.d(t,"default",(function(){return i}));var r=e(0),o=e.n(r),i=function(n){var t=n.children;return o.a.createElement(o.a.Fragment,null,t)}}},[[191,"common"]]]); },function(){ (window.webpackJsonpvtex_menu_2_35_1=window.webpackJsonpvtex_menu_2_35_1||[]).push([["MenuItem"],[function(e,t){e.exports=React},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},function(e,t){e.exports=__RENDER_8_RUNTIME__},,,function(e,t){e.exports=ReactIntl},function(e,t){e.exports=Classnames},,,,function(e,t){e.exports=ReactApollo},,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/formatIOMessage"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/applyModifiers"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/Icon"]},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.menu@2.35.1");var _=Object(t.register)((function(){return n(17)}),e,"vtex.menu@2.35.1","vtex.menu@2.x","MenuItem");_.renderHotReload,_.setupHMR}.call(this,n(7)(e))}],[[28,"common",0]]]); },function(){ (window.webpackJsonpvtex_menu_2_35_1=window.webpackJsonpvtex_menu_2_35_1||[]).push([["Submenu"],{0:function(e,n){e.exports=React},1:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},30:function(e,n,t){"use strict";t.r(n),function(e){var n=t(3);t.p=Object(n.getPublicPath)("vtex.menu@2.35.1");var i=Object(n.register)((function(){return t(31)}),e,"vtex.menu@2.35.1","vtex.menu@2.x","Submenu");i.renderHotReload,i.setupHMR}.call(this,t(7)(e))},31:function(e,n,t){"use strict";t.r(n);var i,a=t(0),s=t.n(a),u=t(6),o=t.n(u),r=t(5),c=t(1),l=t.n(c),d=["submenu","submenuWrapper","submenuContainer"],m=function(e,n){if(!e)return 0;var t="string"==typeof e?parseInt(e,10):e;return isNaN(t)||String(t)!==String(e)||t<0||t>11?(n&&console.warn("Invalid ".concat(n," value. It should be an integer between 0 and ").concat(11,".")),0):t},b=function(e){var n=e.isOpen,t=e.width,a=e.children,u=e.classes,r=e.orientation,c=void 0===r?i.horizontal:r,b=e.paddingTop,p=void 0===b?4:b,v=e.paddingBottom,f=void 0===v?4:v,h=l()(d,{classes:u}),x=h.handles,w=h.withModifiers;return s.a.createElement("div",{className:"".concat(x.submenuContainer," ").concat("100%"===t?"":"relative")},s.a.createElement("div",{className:o()(w("submenuWrapper",n?"isOpen":"isClosed"),"absolute left-0 bg-base pt".concat(m(p,"paddingTop")," pb").concat(m(f,"paddingBottom")," bw1 bb b--muted-3 z-2"),n?"flex":"dn",{"100%":"w-100",auto:"w-auto ml6"}[t])},s.a.createElement("section",{className:o()(x.submenu,"w-100 flex justify-center",c===i.vertical&&"flex-column")},a)))};!function(e){e.horizontal="horizontal",e.vertical="vertical"}(i||(i={}));var p=Object(r.defineMessages)({submenuTitle:{id:"admin/editor.menu.submenu.title"},submenuWidthTitle:{id:"admin/editor.menu.item.submenuWidth.title"}});b.getSchema=function(){return{title:p.submenuTitle.id}},n.default=b},5:function(e,n){e.exports=ReactIntl},6:function(e,n){e.exports=Classnames}},[[30,"common"]]]); },function(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,p=[];st.length)&&(n=t.length);for(var e=0,r=new Array(n);e0&&"not-empty"===c||"always"===c;return o.a.createElement(_.a,{icon:o.a.createElement("span",{className:"".concat(v.minicartIconContainer," gray relative")},o.a.createElement(i,null),g&&o.a.createElement("span",{style:{userSelect:"none"},className:"".concat(v.minicartQuantityBadge," ").concat(C.a.minicartQuantityBadgeDefault," c-on-emphasis absolute t-mini bg-emphasis br4 w1 h1 pa1 flex justify-center items-center lh-solid")},N)),variation:"tertiary",onMouseEnter:"hover"===E?function(){return h({type:"OPEN_MINICART"})}:void 0,onClick:function(){if(O)return"popupWithLink"===u&&P(w),"hover"===E?void h({type:"SET_OPEN_BEHAVIOR",value:"click"}):(h({type:"CLOSE_MINICART"}),void h({type:"SET_OPEN_BEHAVIOR",value:"hover"}));h({type:x?"CLOSE_MINICART":"OPEN_MINICART"})}})},P=function(e){var t=e.children,n=e.quantityDisplay,a=e.Icon,i=e.itemCountMode,r=e.customPixelEventId,c=e.customPixelEventName,u=e.variation,l=Object(I.useMinicartState)(),s=l.open,d=l.openBehavior,p=l.hasBeenOpened,m=l.openOnHoverProp,f=Object(I.useMinicartDispatch)(),E=y().handles;x()({eventId:r,eventName:c,handler:function(){f({type:"OPEN_MINICART"})}});return o.a.createElement("div",{onMouseLeave:"hover"===d?function(){f({type:"CLOSE_MINICART"})}:void 0},o.a.createElement(w,{variation:u,Icon:a,itemCountMode:i,quantityDisplay:n}),s&&o.a.createElement(v.a,null,"click"===d&&o.a.createElement("div",{className:"fixed top-0 left-0 w-100 h-100",onClick:function(){m&&f({type:"SET_OPEN_BEHAVIOR",value:"hover"}),f({type:"CLOSE_MINICART"})}}),o.a.createElement("div",{className:"".concat(E.popupWrapper," ").concat(C.a.popupBoxPosition," absolute z-max flex flex-column")},o.a.createElement("div",{className:"".concat(E.popupContentContainer," w-100 shadow-3 bg-base")},o.a.createElement("div",{className:"".concat(E.arrowUp," ").concat(C.a.popupArrowUp," absolute top-0 bg-base h1 w1 pa4 rotate-45")}),o.a.createElement("div",{className:"".concat(E.popupChildrenContainer," mt3 bg-base relative flex flex-column ph5 pv3")},p&&t)))))},g=n(56),R=n.n(g),j=function(e){var t=e.Icon,n=e.children,a=e.maxDrawerWidth,i=e.quantityDisplay,r=e.itemCountMode,c=e.drawerSlideDirection,u=e.backdropMode,l=void 0===u?"visible":u,s=e.customPixelEventId,d=e.customPixelEventName,p=e.onVisibilityChanged,m=y().handles;return o.a.createElement(R.a,{maxWidth:a,backdropMode:l,slideDirection:c,customPixelEventId:s,customPixelEventName:d,onVisibilityChanged:p,customIcon:o.a.createElement(w,{Icon:t,itemCountMode:r,quantityDisplay:i})},o.a.createElement("div",{className:"".concat(m.minicartSideBarContentWrapper," flex flex-column w-100 h-100"),style:{height:window.innerHeight-58}},n))},D=n(33),S=n(34),k=[].concat(Object(i.a)(["popupWrapper","popupContentContainer","arrowUp","popupChildrenContainer"]),Object(i.a)(["minicartSideBarContentWrapper"]),Object(i.a)(["minicartIconContainer","minicartQuantityBadge"]),["minicartWrapperContainer","minicartContainer"]),T=function(e){var t=e.children,n=e.backdropMode,i=e.linkVariationUrl,c=e.maxDrawerWidth,d=void 0===c?400:c,m=e.MinicartIcon,v=void 0===m?u.a:m,f=e.quantityDisplay,x=void 0===f?"not-empty":f,E=e.itemCountMode,_=void 0===E?"distinct":E,O=e.drawerSlideDirection,C=void 0===O?"rightToLeft":O,h=e.customPixelEventId,b=e.customPixelEventName,y=e.classes,M=p()(k,{classes:y}),g=M.handles,R=M.withModifiers,D=Object(l.useOrderForm)().orderForm,T=Object(I.useMinicartState)(),B=T.variation,U=T.open,A=Object(r.useState)(null!=U&&U),H=Object(a.a)(A,2),W=H[0],q=H[1],L=Object(s.useCheckoutURL)().url,V=Object(r.useCallback)((function(e){q(e)}),[q]);return Object(S.a)("drawer"===B?W:U,null==D?void 0:D.items),"link"===B?o.a.createElement("aside",{className:"".concat(g.minicartWrapperContainer," relative fr flex items-center")},o.a.createElement("div",{className:"".concat(g.minicartContainer," flex flex-column")},o.a.createElement("a",{href:null!=i?i:L},o.a.createElement(N,{handles:g,withModifiers:R},o.a.createElement(w,{variation:B,Icon:v,itemCountMode:_,quantityDisplay:x}))))):"block"===B?o.a.createElement("aside",{className:"".concat(g.minicartWrapperContainer," relative fr flex items-center")},o.a.createElement("div",{className:"".concat(g.minicartContainer," flex flex-column")},t)):o.a.createElement("aside",{className:"".concat(g.minicartWrapperContainer," relative fr flex items-center")},o.a.createElement("div",{className:"".concat(g.minicartContainer," flex flex-column")},o.a.createElement(N,{handles:g,withModifiers:R},"drawer"===B?o.a.createElement(j,{Icon:v,backdropMode:n,itemCountMode:_,maxDrawerWidth:d,quantityDisplay:x,drawerSlideDirection:C,customPixelEventId:h,customPixelEventName:b,onVisibilityChanged:V},t):o.a.createElement(P,{Icon:v,itemCountMode:_,quantityDisplay:x,customPixelEventId:h,customPixelEventName:b,variation:B},t))))},B=function(){var e=Object(l.useOrderForm)(),t=e.orderForm,n=!e.loading&&t?t.id:void 0;return Object(D.a)(n),null};t.default=function(e){return o.a.createElement(I.MinicartContextProvider,{variation:e.variation,openOnHover:e.openOnHover},o.a.createElement(B,null),o.a.createElement(T,e))}},12:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixel"]},14:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},15:function(e,t,n){"use strict";n.r(t),n.d(t,"MinicartStateContext",(function(){return u})),n.d(t,"MinicartContextProvider",(function(){return p})),n.d(t,"useMinicartDispatch",(function(){return v})),n.d(t,"useMinicartState",(function(){return m}));var a=n(13),i=n(0),r=n.n(i),o=n(21),c=n.n(o),u=Object(i.createContext)(void 0),l=Object(i.createContext)(void 0);function s(e,t){switch(t.type){case"OPEN_MINICART":return Object.assign(Object.assign({},e),{open:!0,hasBeenOpened:!0});case"CLOSE_MINICART":return Object.assign(Object.assign({},e),{open:!1});case"SET_OPEN_BEHAVIOR":return Object.assign(Object.assign({},e),{openBehavior:t.value});default:return e}}var d=function(e){return"popup"===e||"popupWithLink"===e},p=function(e){var t=e.variation,n=void 0===t?"drawer":t,o=e.openOnHover,p=void 0!==o&&o,m=e.children,v=c()().isMobile,f=d(n)&&(v||window&&window.innerWidth<=480)?"drawer":n,x=Object(i.useReducer)(s,{variation:f,open:!1,hasBeenOpened:!1,openOnHoverProp:p,openBehavior:d(f)&&p?"hover":"click"}),E=Object(a.a)(x,2),_=E[0],O=E[1];return r.a.createElement(u.Provider,{value:_},r.a.createElement(l.Provider,{value:O},m))};function m(){var e=Object(i.useContext)(u);if(void 0===e)throw new Error("useMinicartState must be used within a MinicartContextProvider");return e}function v(){var e=Object(i.useContext)(l);if(void 0===e)throw new Error("useMinicartDispatch must be used within a MinicartContextProvider");return e}},19:function(e,t,n){e.exports={drawerStyles:"vtex-minicart-2-x-drawerStyles",popupStyles:"vtex-minicart-2-x-popupStyles",minicartEmptyStateContainerDefault:"vtex-minicart-2-x-minicartEmptyStateContainerDefault",minicartQuantityBadgeDefault:"vtex-minicart-2-x-minicartQuantityBadgeDefault",popupBoxPosition:"vtex-minicart-2-x-popupBoxPosition",popupArrowUp:"vtex-minicart-2-x-popupArrowUp"}},21:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},22:function(e,t){function n(e,t,n){var a,i,r,o,c;function u(){var l=Date.now()-o;l=0?a=setTimeout(u,t-l):(a=null,n||(c=e.apply(r,i),r=i=null))}null==t&&(t=100);var l=function(){r=this,i=arguments,o=Date.now();var l=n&&!a;return a||(a=setTimeout(u,t)),l&&(c=e.apply(r,i),r=i=null),c};return l.clear=function(){a&&(clearTimeout(a),a=null)},l.flush=function(){a&&(c=e.apply(r,i),r=i=null,clearTimeout(a),a=null)},l}n.debounce=n,e.exports=n},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(6),i=n(3);function r(){var e=Object(a.useCheckoutURL)(),t=e.url,n=e.major,r=Object(i.useRuntime)(),o=r.navigate,c=r.rootPath,u=void 0===c?"":c;return function(e){n>0&&e===t?o({to:e}):window.location.href="".concat(u).concat(e)}}},26:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconCart"]},27:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},28:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ButtonWithIcon"]},3:function(e,t){e.exports=__RENDER_8_RUNTIME__},33:function(e,t,n){"use strict";var a=n(0),i=n(12),r=n.n(i);t.a=function(e){var t=r()().push;Object(a.useEffect)((function(){e&&t({event:"cartId",cartId:e})}),[t,e])}},34:function(e,t,n){"use strict";var a=n(0),i=n(12),r=n.n(i),o=n(22),c=n(8);t.a=function(e,t){var n=r()().push,i=Object(c.c)(t),u=Object(a.useCallback)(Object(o.debounce)((function(e){n({event:"viewCart",items:e})}),1e3),[n]);Object(a.useEffect)((function(){e&&u(i)}),[u,e,i])}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},54:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},55:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/createCssHandlesContext"]},56:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-drawer@0.x/Drawer"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.checkout-resources@0.x/Utils"]},77:function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("vtex.minicart@2.68.0");var a=Object(t.register)((function(){return n(103)}),e,"vtex.minicart@2.68.0","vtex.minicart@2.x","Minicart");a.renderHotReload,a.setupHMR}.call(this,n(20)(e))},8:function(e,t,n){"use strict";function a(e){var t;return{skuId:e.id,variant:e.skuName,price:e.sellingPrice,priceIsInt:!0,name:o(e),quantity:e.quantity,productId:e.productId,productRefId:e.productRefId,brand:e.additionalInfo?e.additionalInfo.brandName:"",category:c(e),detailUrl:e.detailUrl,imageUrl:e.imageUrls?r(e.imageUrls.at3x):null!==(t=e.imageUrl)&&void 0!==t?t:"",referenceId:e.refId}}function i(e){var t=e.category?e.category.slice(1,-1):"";return{skuId:e.id,variant:e.skuName,price:e.sellingPrice,priceIsInt:!0,name:e.name,quantity:e.quantity,productId:e.productId,productRefId:e.productRefId,brand:e.brand,category:t,detailUrl:e.detailUrl,imageUrl:e.imageUrl,referenceId:e.refId}}function r(e){return e&&0!==e.indexOf("http")?"https:".concat(e):e}function o(e){if((null==e?void 0:e.name)&&!e.name.includes(e.skuName)||e.name===e.skuName)return e.name;var t=1+e.skuName.length;return e.name.slice(0,e.name.length-t)}function c(e){try{return e.productCategoryIds.split("/").filter((function(e){return e.length})).map((function(t){return e.productCategories[t]})).join("/")}catch(e){return""}}function u(e){return e&&e.length?e.map((function(e){return a(e)})):[]}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u}))}},[[77,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_175_1=window.webpackJsonpvtex_store_components_3_175_1||[]).push([["BackToTopButton"],{0:function(t,e){t.exports=React},123:function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/Icon"]},161:function(t,e,o){"use strict";o.r(e),function(t){var e=o(3);o.p=Object(e.getPublicPath)("vtex.store-components@3.175.1");var n=Object(e.register)((function(){return o(240)}),t,"vtex.store-components@3.175.1","vtex.store-components@3.x","BackToTopButton");n.renderHotReload,n.setupHMR}.call(this,o(15)(t))},240:function(t,e,o){"use strict";o.r(e);var n=o(9),c=o(0),a=o.n(c),s=o(29),r=o.n(s),i=o(4),u=o(123),p=o.n(u),l=o(81),d=o.n(l),b=function(){window.scroll({top:0,left:0,behavior:"smooth"})},v=function(t){var e=t.displayThreshold,o=void 0===e?600:e,s=t.display,u=void 0===s?"button":s,l=Object(c.useState)(!1),v=Object(n.a)(l,2),T=v[0],f=v[1],m=Object(c.useState)(0),x=Object(n.a)(m,2),_=x[0],k=x[1],E="".concat(d.a.backToTopButtonContainer," z-999 fixed bottom-2 right-2 ")+"".concat(T?d.a.backToTopButtonActive:d.a.backToTopButtonHidden);function w(){k(window.pageYOffset)}return Object(c.useEffect)((function(){return window.addEventListener("scroll",w),function(){window.removeEventListener("scroll",w)}}),[]),Object(c.useEffect)((function(){f(_>o)}),[_,o]),T?"button"===u?a.a.createElement("div",{className:E},a.a.createElement(r.a,{onClick:b,size:"regular"},a.a.createElement(i.FormattedMessage,{id:"store/back-to-top.label"}))):a.a.createElement("div",{className:E},a.a.createElement(r.a,{onClick:b,size:"regular"},a.a.createElement(p.a,{id:"nav-caret--up",size:"16"}))):null};e.default=v},29:function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},4:function(t,e){t.exports=ReactIntl},81:function(t,e,o){t.exports={backToTopButtonContainer:"vtex-store-components-3-x-backToTopButtonContainer",backToTopButtonHidden:"vtex-store-components-3-x-backToTopButtonHidden",backToTopButtonActive:"vtex-store-components-3-x-backToTopButtonActive"}}},[[161,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_175_1=window.webpackJsonpvtex_store_components_3_175_1||[]).push([["Logo"],{0:function(e,t){e.exports=React},130:function(e,t){e.exports=ReactAMPHTML},172:function(e,t,i){"use strict";i.r(t),function(e){var t=i(3);i.p=Object(t.getPublicPath)("vtex.store-components@3.175.1");var o=Object(t.register)((function(){return i(244)}),e,"vtex.store-components@3.175.1","vtex.store-components@3.x","Logo");o.renderHotReload,o.setupHMR}.call(this,i(15)(e))},244:function(e,t,i){"use strict";i.r(t);var o=i(0),n=i.n(o),l=i(8),r=i(7),a=i.n(r),s=i(130);function c(e){var t=e.width,i=e.height,o=e.title;return n.a.createElement("svg",{width:t,height:i,viewBox:"0 0 142 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.a.createElement("title",null,o),n.a.createElement("rect",{width:"142",height:"80",fill:"#F2F4F5",stroke:"#E3E4E6"}),n.a.createElement("path",{d:"M84.8156 47.5402L77.8157 33.9407C77.5479 33.4222 77.0282 33.0703 76.4349 33.0108C75.8434 32.9445 75.2572 33.1876 74.8844 33.6381L68.8854 40.9206L64.9707 38.386C64.5717 38.1293 64.08 38.0392 63.6162 38.1412C63.149 38.2432 62.7447 38.5271 62.4997 38.9249L57.2497 47.4246C56.9242 47.9499 56.9172 48.6026 57.227 49.1381C57.5367 49.6719 58.1195 50 58.7495 50H83.2494C83.8567 50 84.4184 49.694 84.7386 49.1925C85.0589 48.691 85.0851 48.0655 84.8156 47.5402Z",fill:"#CACBCC"}),n.a.createElement("path",{d:"M67.5 33C69.433 33 71 31.433 71 29.5C71 27.567 69.433 26 67.5 26C65.567 26 64 27.567 64 29.5C64 31.433 65.567 33 67.5 33Z",fill:"#CACBCC"}),n.a.createElement("defs",null,n.a.createElement("clipPath",{id:"clip0"},n.a.createElement("rect",{width:"127",height:"65",fill:"white"}))))}var d=Object(o.memo)(c),m=i(98),p=i.n(m),g=["logoLink","logoImage","logoContainer"];function h(e){var t=e.url,i=e.href,o=e.width,r=e.height,c=e.title,m=e.mobileWidth,h=e.mobileHeight,u=e.classes,w=Object(l.useRuntime)(),b=w.amp,C=w.account,f=w.hints.mobile,E=a()(g,{classes:u}).handles,_="store-logo ".concat(E.logoContainer," ").concat(f?p.a.sizeMobile:p.a.sizeDesktop),v=f&&m?m:o,x=f&&h?h:r,L=null==t?void 0:t.replace(/{{account}}/g,C),y=null;b&&t?y=n.a.createElement(s.AmpImg,{specName:"default",width:v,height:x,alt:c,src:L,className:E.logoImage}):t&&(y=n.a.createElement("img",{src:L,width:v,height:x,alt:c,className:E.logoImage}));var M=n.a.createElement("span",{className:"".concat(_," pv4 ph6")},t?y:n.a.createElement(d,{width:o,height:r,title:c}));return i?n.a.createElement(l.Link,{to:i,className:E.logoLink},M):M}h.schema={title:"admin/editor.logo.title",description:"admin/editor.logo.description",type:"object",properties:{href:{title:"admin/editor.logo.href.title",description:"admin/editor.logo.href.description",type:"string"},url:{title:"admin/editor.logo.url.title",description:"admin/editor.logo.url.description",type:"string",widget:{"ui:widget":"image-uploader"}},width:{title:"admin/editor.logo.width.title",description:"admin/editor.logo.width.description",type:"number",isLayout:!0},height:{title:"admin/editor.logo.height.title",description:"admin/editor.logo.height.description",type:"number",isLayout:!0},title:{title:"admin/editor.logo.title.title",description:"admin/editor.logo.title.description",type:"string"},mobileWidth:{title:"admin/editor.logo.mobileWidth.title",description:"admin/editor.logo.mobileWidth.description",type:"number",isLayout:!0},mobileHeight:{title:"admin/editor.logo.mobileHeight.title",description:"admin/editor.logo.mobileHeight.description",type:"number",isLayout:!0}}};t.default=h},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},8:function(e,t){e.exports=__RENDER_8_RUNTIME__},98:function(e,t,i){e.exports={sizeDesktop:"vtex-store-components-3-x-sizeDesktop",sizeMobile:"vtex-store-components-3-x-sizeMobile"}}},[[172,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_175_1=window.webpackJsonpvtex_store_components_3_175_1||[]).push([[10],{104:function(e,t,n){"use strict";e.exports=n(221)},221:function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,c=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,I=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,b=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case c:case p:case u:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case d:case h:case v:case m:case a:return e;default:return t}}case r:return t}}}function x(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=d,t.ContextProvider=a,t.Element=i,t.ForwardRef=h,t.Fragment=u,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||w(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===d},t.isContextProvider=function(e){return w(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===u},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===u||e===p||e===l||e===s||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===a||e.$$typeof===d||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===S||e.$$typeof===I)},t.typeOf=w},56:function(e,t){function n(e,t,n){var o,i,r,u,s;function l(){var a=Date.now()-u;a=0?o=setTimeout(l,t-a):(o=null,n||(s=e.apply(r,i),r=i=null))}null==t&&(t=100);var a=function(){r=this,i=arguments,u=Date.now();var a=n&&!o;return o||(o=setTimeout(l,t)),a&&(s=e.apply(r,i),r=i=null),s};return a.clear=function(){o&&(clearTimeout(o),o=null)},a.flush=function(){o&&(s=e.apply(r,i),r=i=null,clearTimeout(o),o=null)},a}n.debounce=n,e.exports=n},87:function(e,t,n){"use strict";var o=n(40),i=n(13),r=n(103),u=n(32),s=n(2),l=n.n(s),a=n(0);n(104);function d(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function c(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeightt||r>e&&u=t&&s>=n?r-e-o:u>t&&sn?u-t+i:0}var f=0;function g(e){return"function"==typeof e?e:m}function m(){}function v(e,t){null!==e&&function(e,t){var n=window,o=t.scrollMode,i=t.block,r=t.inline,u=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof u?u:function(e){return e!==u};if(!d(e))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,c=[],f=e;d(f)&&l(f);){if((f=f.parentNode)===a){c.push(f);break}f===document.body&&p(f)&&!p(document.documentElement)||p(f,s)&&c.push(f)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,I=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,S=y.width,w=y.top,x=y.right,C=y.bottom,O=y.left,H="start"===i||"nearest"===i?w:"end"===i?C:w+b/2,E="center"===r?O+S/2:"end"===r?x:O,M=[],D=0;D=0&&O>=0&&C<=m&&x<=g&&w>=R&&C<=V&&O>=K&&x<=j)return M;var _=getComputedStyle(P),L=parseInt(_.borderLeftWidth,10),$=parseInt(_.borderTopWidth,10),B=parseInt(_.borderRightWidth,10),W=parseInt(_.borderBottomWidth,10),U=0,N=0,F="offsetWidth"in P?P.offsetWidth-P.clientWidth-L-B:0,z="offsetHeight"in P?P.offsetHeight-P.clientHeight-$-W:0;if(a===P)U="start"===i?H:"end"===i?H-m:"nearest"===i?h(I,I+m,m,$,W,I+H,I+H+b,b):H-m/2,N="start"===r?E:"center"===r?E-g/2:"end"===r?E-g:h(v,v+g,g,L,B,v+E,v+E+S,S),U=Math.max(0,U+I),N=Math.max(0,N+v);else{U="start"===i?H-R-$:"end"===i?H-V+W+z:"nearest"===i?h(R,V,k,$,W+z,H,H+b,b):H-(R+k/2)+z/2,N="start"===r?E-K-L:"center"===r?E-(K+A/2)+F/2:"end"===r?E-j+B+F:h(K,j,A,L,B+F,E,E+S,S);var X=P.scrollLeft,Y=P.scrollTop;H+=Y-(U=Math.max(0,Math.min(Y+U,P.scrollHeight-k+z))),E+=X-(N=Math.max(0,Math.min(X+N,P.scrollWidth-A+F)))}M.push({el:P,top:U,left:N})}return M}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o}))}function I(e,t){return e===t||e.contains&&e.contains(t)}function y(e,t){var n;function o(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,r=new Array(i),u=0;u1?n-1:0),i=1;i=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function D(e,t,n){var o=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var i=t+e;return i<0?i=o:i>o&&(i=0),i}var P=y((function(){k().textContent=""}),500);function T(e,t){var n=k(t);e&&(n.textContent=e,P())}function k(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var A=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),R=function(){var e=function(e){function t(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(f++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==o})),e()}),t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=E(t),n.internalSetState(Object(i.a)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=E(t),n.internalSetState(Object(i.a)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var i=n.items[e];null!=i&&n.selectItem(i,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,r,u={},s="function"==typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,Object(i.a)({},n.getStateAndHelpers(),{},e)),n.setState((function(t){t=n.getState(t);var l=s?e(t):e;l=n.props.stateReducer(t,l),o=l.hasOwnProperty("selectedItem");var a={},d={};return o&&l.selectedItem!==t.selectedItem&&(r=l.selectedItem),l.type=l.type||0,Object.keys(l).forEach((function(e){t[e]!==l[e]&&(u[e]=l[e]),"type"!==e&&(d[e]=l[e],n.isControlledProp(e)||(a[e]=l[e]))})),s&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,Object(i.a)({},n.getStateAndHelpers(),{},l)),a}),(function(){g(t)(),Object.keys(u).length>1&&n.props.onStateChange(u,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==r&&n.props.onChange(r,n.getStateAndHelpers()),n.props.onUserAction(u,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,u=void 0===e?{}:e,s=u.refKey,l=void 0===s?"ref":s,a=u.ref,d=Object(o.a)(u,["refKey","ref"]),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=p;var h=n.getState().isOpen;return Object(i.a)(((r={})[l]=S(a,n.rootRef),r.role="combobox",r["aria-expanded"]=h,r["aria-haspopup"]="listbox",r["aria-owns"]=h?n.menuId:null,r["aria-labelledby"]=n.labelId,r),d)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(D(1,t.getState().highlightedIndex,e),{type:4})}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(D(-1,t.getState().highlightedIndex,e),{type:4})}))},Enter:function(e){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var i=this.items[o],r=this.getItemNodeFromIndex(o);if(null==i||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape:function(e){e.preventDefault(),this.reset({type:5,selectedItem:null,inputValue:""})}},n.buttonKeyDownHandlers=Object(i.a)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=Object(i.a)({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:7})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:8})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,u=(t.onPress,t.onKeyDown),s=t.onKeyUp,l=t.onBlur,a=Object(o.a)(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),d=n.getState().isOpen,c={onClick:b(r,n.buttonHandleClick),onKeyDown:b(u,n.buttonHandleKeyDown),onKeyUp:b(s,n.buttonHandleKeyUp),onBlur:b(l,n.buttonHandleBlur)},p=a.disabled?{}:c;return Object(i.a)({type:"button",role:"button","aria-label":d?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},p,{},a)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=M(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Object(r.a)(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return Object(i.a)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,u=t.onBlur,s=t.onChange,l=t.onInput,a=(t.onChangeText,Object(o.a)(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),d={};var c,p=n.getState(),h=p.inputValue,f=p.isOpen,g=p.highlightedIndex;a.disabled||((c={}).onChange=b(s,l,n.inputHandleChange),c.onKeyDown=b(r,n.inputHandleKeyDown),c.onBlur=b(u,n.inputHandleBlur),d=c);return Object(i.a)({"aria-autocomplete":"list","aria-activedescendant":f&&"number"==typeof g&&g>=0?n.getItemId(g):null,"aria-controls":f?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},d,{},a)},n.inputHandleKeyDown=function(e){var t=M(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Object(r.a)(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,u=void 0===e?{}:e,s=u.refKey,l=void 0===s?"ref":s,a=u.ref,d=Object(o.a)(u,["refKey","ref"]),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=p,Object(i.a)(((r={})[l]=S(a,n.menuRef),r.role="listbox",r["aria-labelledby"]=d&&d["aria-label"]?null:n.labelId,r.id=n.menuId,r),d)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,u=r.onMouseMove,s=r.onMouseDown,l=r.onClick,a=(r.onPress,r.index),d=r.item,c=void 0===d?void 0:d,p=Object(o.a)(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===a?(n.items.push(c),a=n.items.indexOf(c)):n.items[a]=c;var h=l,f=((t={onMouseMove:b(u,(function(){a!==n.getState().highlightedIndex&&(n.setHighlightedIndex(a,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:b(s,(function(e){e.preventDefault()}))}).onClick=b(h,(function(){n.selectItemAtIndex(a,{type:9})})),t),g=p.disabled?{onMouseDown:f.onMouseDown}:f;return Object(i.a)({id:n.getItemId(a),role:"option","aria-selected":n.getState().highlightedIndex===a},g,{},p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=E(e),n.internalSetState((function(t){var o=t.selectedItem;return Object(i.a)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=E(e),n.internalSetState((function(t){var o=t.isOpen;return Object(i.a)({isOpen:!o},o&&{highlightedIndex:n.props.defaultHighlightedIndex},{},e)}),(function(){var o=n.getState(),i=o.isOpen,r=o.highlightedIndex;i&&n.getItemCount()>0&&"number"==typeof r&&n.setHighlightedIndex(r,e),g(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=y((function(){var e=n.getState(),t=n.items[e.highlightedIndex],o=n.getItemCount(),r=n.props.getA11yStatusMessage(Object(i.a)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:o,highlightedItem:t},e));n.previousResultCount=o,T(r,n.props.environment.document)}),200);var u=n.props,s=u.defaultHighlightedIndex,l=u.initialHighlightedIndex,a=void 0===l?s:l,d=u.defaultIsOpen,c=u.initialIsOpen,p=void 0===c?d:c,h=u.initialInputValue,m=void 0===h?"":h,v=u.initialSelectedItem,I=void 0===v?null:v,w=n.getState({highlightedIndex:a,isOpen:p,inputValue:m,selectedItem:I});return null!=w.selectedItem&&void 0===n.props.initialInputValue&&(w.inputValue=n.props.itemToString(w.selectedItem)),n.state=w,n}Object(u.a)(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},n.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce((function(n,o){return n[o]=t.isControlledProp(o)?t.props[o]:e[o],n}),{})},n.isControlledProp=function(e){return void 0!==this.props[e]},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var o=D(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(o,t)}},n.highlightFirstOrLastIndex=function(e,t,n){var o=this.getItemCount()-1;o<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:o,n))},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,i=e.isOpen,r=this.props.itemToString,u=this.id,s=this.getRootProps,l=this.getToggleButtonProps,a=this.getLabelProps,d=this.getMenuProps,c=this.getInputProps,p=this.getItemProps,h=this.openMenu,f=this.closeMenu,g=this.toggleMenu,m=this.selectItem,v=this.selectItemAtIndex,I=this.selectHighlightedItem,y=this.setHighlightedIndex,b=this.clearSelection,S=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:a,getMenuProps:d,getInputProps:c,getItemProps:p,reset:this.reset,openMenu:h,closeMenu:f,toggleMenu:g,selectItem:m,selectItemAtIndex:v,selectHighlightedItem:I,setHighlightedIndex:y,clearSelection:b,clearItems:S,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:r,id:u,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:o}},n.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var o=e.props.environment.document;return[e._rootNode,e._menuNode].some((function(e){return e&&(I(e,t)||n&&I(e,o.activeElement))}))},n=function(){e.isMouseDown=!0},o=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},i=function(){e.isTouchMove=!1},r=function(){e.isTouchMove=!0},u=function(n){var o=t(n.target,!1);e.isTouchMove||o||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},s=this.props.environment;s.addEventListener("mousedown",n),s.addEventListener("mouseup",o),s.addEventListener("touchstart",i),s.addEventListener("touchmove",r),s.addEventListener("touchend",u),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),s.removeEventListener("mousedown",n),s.removeEventListener("mouseup",o),s.removeEventListener("touchstart",i),s.removeEventListener("touchmove",r),s.removeEventListener("touchend",u)}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,o=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==o},n.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=x(this.props.children,m);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=x(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:C(t)?Object(a.cloneElement)(t,this.getRootProps(O(t))):void 0:null},t}(a.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:w,itemToString:function(e){return null==e?"":String(e)},onStateChange:m,onInputValueChange:m,onUserAction:m,onChange:m,onSelect:m,onOuterClick:m,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:v},e.stateChangeTypes=A,e}();l.a.array.isRequired,l.a.func,l.a.func,l.a.func,l.a.bool,l.a.number,l.a.number,l.a.number,l.a.bool,l.a.bool,l.a.bool,l.a.any,l.a.any,l.a.any,l.a.string,l.a.string,l.a.string,l.a.func,l.a.string,l.a.func,l.a.func,l.a.func,l.a.func,l.a.func,l.a.shape({addEventListener:l.a.func,removeEventListener:l.a.func,document:l.a.shape({getElementById:l.a.func,activeElement:l.a.any,body:l.a.any})});"undefined"==typeof window||window;t.a=R}}]); },function(){ (window.webpackJsonpvtex_store_components_3_175_1=window.webpackJsonpvtex_store_components_3_175_1||[]).push([[4],{112:function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Autocomplete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"maxRows"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-components@3.175.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autocomplete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"maxRows"},value:{kind:"Variable",name:{kind:"Name",value:"maxRows"}}},{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"inputValue"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"1d8d0b80d8a476e22e86c786977763079766cec66fb3ee50c9fba9de135fdff3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemsReturned"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"thumb"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"criteria"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:437}};t.loc.source={body:'query Autocomplete($maxRows: Int, $inputValue: String) @context(sender: "vtex.store-components@3.175.1") {\n autocomplete(maxRows: $maxRows, searchTerm: $inputValue) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "1d8d0b80d8a476e22e86c786977763079766cec66fb3ee50c9fba9de135fdff3") {\n itemsReturned {\n thumb\n name\n href\n productId\n criteria\n slug\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t0;){var m=s;s=new Set,m.forEach((function(e){l.has(e)||(l.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return l.forEach((function(n){var a=i(e,n);a&&t.definitions.push(a)})),t}(t,"Autocomplete")},157:function(e,n,t){e.exports={resultsList:"vtex-store-components-3-x-resultsList",resultsItemImage:"vtex-store-components-3-x-resultsItemImage"}},91:function(e,n,t){"use strict";t.r(n);var a=t(11),i=t(9),r=t(0),l=t.n(r),s=t(6),m=t.n(s),c=t(4),o=t(23),u=t(92),d=t.n(u),v=t(8),f=t(7),p=t.n(f),k=(t(157),t(112)),h=t.n(k),g=["resultsItem","resultsList","searchTerm","resultsItemImage","spinnerContainer","spinnerInnerContainer","resultsItemName"],b=function(e){var n,t=null!==(n=e.match(/https?:(.*?)"/g))&&void 0!==n?n:[""];return Object(i.a)(t,1)[0].replace(/https?:/,"").replace(/-25-25/g,"-50-50")};n.default=function(e){var n,t,i=e.parentContainer,s=e.isOpen,u=e.inputValue,f=e.closeMenu,k=e.onClearInput,x=e.getItemProps,N=e.getMenuProps,I=e.highlightedIndex,w=e.attemptPageTypeSearch,y=e.customSearchPageUrl,E=e.classes,S=Object(o.useQuery)(h.a,{skip:!u,variables:{inputValue:u}}),_=S.data,V=S.loading,F=null!==(t=null===(n=null==_?void 0:_.autocomplete)||void 0===n?void 0:n.itemsReturned)&&void 0!==t?t:[],D=Object(v.useRuntime)().hints.mobile,R=p()(g,{classes:E}).handles,j=encodeURIComponent(u),C=Object(r.useMemo)((function(){var e,n;return{width:Math.max(320,null!==(n=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.offsetWidth)&&void 0!==n?n:0)}}),[i]),O=m()(R.resultsList,"z-max w-100 bl-ns bb br-ns bw1 b--muted-4 bg-base c-on-base t-body left-0 list pv4 ph0 mv0 list overflow-y-auto",D?"fixed":"absolute",(!s||!u)&&"dn"),T=function(){k(),f()};function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.itemIndex,t=void 0===n?-1:n,a=e.highlightedIndex,i=e.hasThumb,r=a===t?"bg-muted-5":"";return"pointer pa4 outline-0 ".concat(R.resultsItem," ").concat(r," ").concat(i?"flex justify-start":"db w-100")}var q=function(){return l.a.createElement("div",{className:"w-100 flex justify-center ".concat(R.spinnerContainer)},l.a.createElement("div",{className:"".concat(R.spinnerInnerContainer," w3 ma0")},l.a.createElement(d.a,null)))},L=l.a.createElement(c.FormattedMessage,{id:"store/search.searchFor",values:{term:l.a.createElement("span",{className:R.searchTerm},'"'.concat(u,'"'))}});return l.a.createElement("div",{style:C},l.a.createElement("ul",Object(a.a)({className:O},N()),s?V?l.a.createElement("div",{className:A({})},l.a.createElement(q,null)):l.a.createElement(r.Fragment,null,l.a.createElement("li",x({key:"ft".concat(u),item:{term:j},index:0,onClick:T}),w?l.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},className:A({itemIndex:0,highlightedIndex:I})},L):function(e){return y?l.a.createElement(v.Link,{className:A({itemIndex:0,highlightedIndex:I}),to:y.replace(/\$\{term\}/g,e)},L):l.a.createElement(v.Link,{page:"store.search",params:{term:e},query:"map=ft",className:A({itemIndex:0,highlightedIndex:I})},L)}(j)),F.map((function(e,n){return l.a.createElement("li",x({key:"".concat(e.name).concat(n),index:n+1,item:e,onClick:T}),l.a.createElement(v.Link,Object(a.a)({},function(e){var n=e.slug.split("/");if(e.criteria){var t="&_c=".concat(n[0]);return{page:"store.search",params:{term:n.join("/")},query:"map=c,ft".concat(t)}}return{page:"store.product",params:{slug:e.slug,id:e.productId},query:""}}(e),{className:A({itemIndex:n+1,highlightedIndex:I,hasThumb:!!e.thumb})}),e.thumb&&l.a.createElement("img",{width:50,height:50,alt:e.name,className:"".concat(R.resultsItemImage," mr4"),src:b(e.thumb)}),l.a.createElement("div",{className:"".concat(R.resultsItemName," flex justify-start items-center")},e.name)))}))):null))}}}]); },function(){ (window.webpackJsonpvtex_store_components_3_175_1=window.webpackJsonpvtex_store_components_3_175_1||[]).push([["SearchBar"],{0:function(e,t){e.exports=React},147:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalContext"]},148:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},149:function(e,t,n){e.exports={searchBarContainer:"vtex-store-components-3-x-searchBarContainer",compactMode:"vtex-store-components-3-x-compactMode",paddingInput:"vtex-store-components-3-x-paddingInput",searchMobile:"vtex-store-components-3-x-searchMobile","vtex-button":"vtex-store-components-3-x-vtex-button"}},150:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/InputSearch"]},151:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconSearch"]},152:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconClose"]},17:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/formatIOMessage"]},2:function(e,t){e.exports=PropTypes},220:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store-components@3.175.1");var a=Object(t.register)((function(){return n(233)}),e,"vtex.store-components@3.175.1","vtex.store-components@3.x","SearchBar");a.renderHotReload,a.setupHMR}.call(this,n(15)(e))},23:function(e,t){e.exports=ReactApollo},233:function(e,t,n){"use strict";n.r(t),n.d(t,"SEARCH_BAR_CSS_HANDLES",(function(){return $}));var a=n(9),o=n(20),r=n(0),c=n.n(r),s=n(4),l=n(147),i=n.n(l),u=n(8),p=n(7),d=n.n(p),m=n(70),h=n.n(m),f=n(11),b=n(6),v=n.n(b),O=n(87),g=n(56),x=n.n(g),_=n(148),E=n.n(_),C=n(17),M=n.n(C),I=n(149),S=n.n(I),y=n(91),N=n(54),j=n.n(N),P=n(150),T=n.n(P),R=n(151),B=n.n(R),k=n(152),w=n.n(k),A=n(46),D=n.n(A)()($),F=D.CssHandlesProvider,L=D.useContextCssHandles,W=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o0,y="clear-button"===I&&!S||"search-button"===I,N="search-and-clear-buttons"===I,P=("clear-button"===I&&S||"search-and-clear-buttons"===I)&&c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(E("searchBarIcon","clear")," flex items-center pointer bn bg-transparent outline-0 pv0 pl0 pr3"),style:{visibility:S?"visible":"hidden"},"aria-label":M.formatMessage({id:"store/search.clear-input"}),onClick:function(){return t()}},c.a.createElement(q,null)),R=y&&c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(E("searchBarIcon","search")," flex items-center pointer bn bg-transparent outline-0 pv0 pl0 pr3"),onClick:function(){return S&&u()},"aria-label":M.formatMessage({id:"store/search.submit-search"})},c.a.createElement(U,null)),B=N&&c.a.createElement("div",{className:"".concat(_.externalSearchButtonWrapper," bw1 bl b--muted-4 flex items-center ")},c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(E("searchBarIcon","external-search")," flex items-center h-100 pointer pv0 nr5 ph5 bn c-link"),onClick:u,"aria-label":M.formatMessage({id:"store/search.submit-search"})},c.a.createElement(U,null))),k=c.a.createElement("div",{className:"".concat(_.suffixWrapper," flex h-100")},P,R,B),w=c.a.createElement("span",{className:"".concat(l," ").concat(E("searchBarIcon","prefix")," ")},c.a.createElement(U,null)),A=v()("w-100 flex",n&&_.compactMode);return"search"===O?c.a.createElement("form",{action:"#",onSubmit:function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},className:_.autoCompleteOuterContainer},c.a.createElement("div",{className:A},c.a.createElement(T.a,Object(f.a)({ref:C,size:"large",value:a},g,{error:Boolean(h),errorMessage:h,onSubmit:u})))):c.a.createElement("div",{className:_.autoCompleteOuterContainer},c.a.createElement("div",{className:A},c.a.createElement(j.a,Object(f.a)({ref:C,size:"large",value:a,prefix:o&&w,suffix:k},g,{error:Boolean(h),errorMessage:h}))))},V=Object(s.defineMessages)({searchTermTooShort:{id:"store/search.search-term-too-short"}});var z=function(e){var t=e.placeholder,n=e.onInputChange,o=e.onGoToSearchPage,l=e.onClearInput,i=e.inputValue,p=e.compactMode,d=e.hasIconLeft,m=e.iconClasses,h=e.iconBlockClass,b=e.autoFocus,g=e.maxWidth,_=e.attemptPageTypeSearch,C=e.customSearchPageUrl,I=e.autocompleteAlignment,N=e.openAutocompleteOnFocus,j=e.blurOnSubmit,P=e.submitOnIconClick,T=e.displayMode,R=e.minSearchTermLength,B=e.autocompleteFullWidth,k=e.inputType,w=e.containerMode,A=void 0===w?"overlay":w,D=e.disableBlurAndTouchEndHandler,F=L().withModifiers,W=Object(s.useIntl)(),H=Object(r.useRef)(null),q=Object(u.useRuntime)().navigate,U=Object(r.useState)(i),z=Object(a.a)(U,2),J=z[0],$=z[1],K=Object(r.useState)(),Q=Object(a.a)(K,2),X=Q[0],Y=Q[1],Z=Object(r.useCallback)(x()((function(e){$(e)}),1e3),[]);Object(r.useEffect)((function(){Z(i)}),[Z,i]);var ee=Object(r.useCallback)((function(e){if(e){if(e.term)return _?void(window.location.href="/".concat(e.term)):C?void q({to:C.replace(/\$\{term\}/g,e.term)}):void q({page:"store.search",params:{term:e.term},query:"map=ft"});var t="store.product",n={slug:e.slug,id:e.productId},a="",o=e.slug.split("/");if(e.criteria){var r="&_c=".concat(o[0]);t="store.search",n={term:o.join("/")},a="map=c,ft".concat(r)}q({page:t,params:n,query:a})}}),[q,_,C]),te=c.a.createElement(G,{placeholder:M()({id:t,intl:W}),onInputChange:n,inputValue:i,hasIconLeft:d,iconClasses:m,iconBlockClass:h,inputErrorMessage:X,onGoToSearchPage:o,onClearInput:l}),ne=Boolean(Object(u.useChildBlock)({id:"autocomplete-result-list"})),ae=Object(r.useMemo)((function(){if(ne){return function(e){return c.a.createElement(u.ExtensionPoint,Object(f.a)({id:"autocomplete-result-list"},e))}}return function(e){return c.a.createElement(y.default,e)}}),[ne]),oe=Object(r.useRef)(null);return c.a.createElement("div",{ref:H,className:v()("w-100 mw7 pv4",S.a.searchBarContainer),style:Object.assign({},g&&{maxWidth:"number"==typeof g?"".concat(g,"px"):g})},c.a.createElement(u.NoSSR,{onSSR:te},c.a.createElement(O.a,{onSelect:ee,stateReducer:function(e,t){var n=t.type;return n!==O.a.stateChangeTypes.blurInput&&n!==O.a.stateChangeTypes.touchEnd||!D?t:Object.assign(Object.assign({},t),{isOpen:e.isOpen})}},(function(e){var a,r=e.getInputProps,s=e.getItemProps,u=e.getMenuProps,h=e.selectedItem,v=e.highlightedIndex,O=e.isOpen,g=e.closeMenu,x=e.openMenu;return c.a.createElement("div",{className:"relative-m w-100 ".concat(F("searchBarInnerContainer",[O?"opened":"",i?"filled":""]))},c.a.createElement(G,Object(f.a)({autoFocus:b,compactMode:p,hasIconLeft:d,iconClasses:m,openAutocompleteOnFocus:N,submitOnIconClick:P,displayMode:T,inputType:k,openMenu:x,inputErrorMessage:X},r({onKeyDown:function(e){if("Enter"===e.key&&null===v){var t=R&&i.length3&&void 0!==arguments[3]?arguments[3]:"/",i="";if(n&&n>0){var o=new Date;o.setTime((new Date).getTime()+n),i="expires=".concat(o.toUTCString(),";")}document.cookie="".concat(e,"=").concat(encodeURIComponent(t),";").concat(i,"path=").concat(r)}var f=function(){function e(t){Object(a.a)(this,e),this.client=t,this.historyKey="biggy-search-history"}var t,n,r;return Object(s.a)(e,[{key:"topSearches",value:(r=Object(o.a)(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.query({query:d.a}));case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"suggestionSearches",value:(n=Object(o.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.query({query:p.a,variables:{fullText:t}}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"suggestionProducts",value:(t=Object(o.a)(i.a.mark((function e(t,n,r){var o,a,s,c,l,p,m,d=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>3&&void 0!==d[3]&&d[3],a=d.length>4&&void 0!==d[4]?d[4]:"default",s=d.length>5&&void 0!==d[5]&&d[5],c=d.length>6?d[6]:void 0,l=d.length>7?d[7]:void 0,p=d.length>8?d[8]:void 0,m=d.length>9?d[9]:void 0,e.abrupt("return",this.client.query({query:u.a,variables:{simulationBehavior:a,advertisementOptions:m,hideUnavailableItems:s,orderBy:c,fullText:t,facetKey:n,facetValue:r,productOriginVtex:o,count:l,shippingOptions:p,variant:h("sp-variant")},fetchPolicy:"network-only"}));case 8:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"searchHistory",value:function(){return(h(this.historyKey)||"").split(",").filter((function(e){return!!e}))}},{key:"prependSearchHistory",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(null!=e&&""!==e.trim()){var n=this.searchHistory();n.indexOf(e)<0&&(n.unshift(e),n=n.slice(0,t)),v(this.historyKey,n.join(","))}}}]),e}()},,,function(e,t){e.exports=regeneratorRuntime},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClose"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClock"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-list-context@0.x/ProductListContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/withDevice"]},function(e,t){function n(e,t,n){var r,i,o,a,s;function c(){var u=Date.now()-a;u=0?r=setTimeout(c,t-u):(r=null,n||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var u=function(){o=this,i=arguments,a=Date.now();var u=n&&!r;return r||(r=setTimeout(c,t)),u&&(s=e.apply(o,i),o=i=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},u}n.debounce=n,e.exports=n},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary@2.x/ProductSummaryCustom"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-price@1.x/SellingPrice"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-price@1.x/ListPrice"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductContextProvider"]},,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("vtex.search@2.18.1");var r=Object(t.register)((function(){return n(46)}),e,"vtex.search@2.18.1","vtex.search@2.x","Autocomplete");r.renderHotReload,r.setupHMR}.call(this,n(16)(e))},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r),o=n(5),a=n(9),s=n(10),c=n(23),u=n(22),l=n(13),p=n(0),m=n.n(p),d=n(7),h=n(3),v=n(25),f=n.n(v),g=n(26),x=n.n(g),y=n(27),E=n.n(y),_=n(28),b=n.n(_),k=n(29),S=n.n(k),L=n(30),O=n(21),P=n(14),N=n.n(P),T=n(2),w=n(31),C=n.n(w),I=n(32),M=n.n(I),R=n(11),H=n.n(R),j=n(33),D=n.n(j),F=n(34),V=n.n(F),q=n(35),A=n.n(q),W=n(12),U=n.n(W),B=function(e){var t,n,r,i,o=e.product,a=e.onClick,s=null==o?void 0:o.sku,c=null===(r=null===(n=null===(t=null==s?void 0:s.sellers)||void 0===t?void 0:t[0])||void 0===n?void 0:n.commertialOffer)||void 0===r?void 0:r.taxPercentage;return m.a.createElement("div",null,m.a.createElement(T.Link,{params:{slug:null==o?void 0:o.linkText,id:null==o?void 0:o.productId},page:"store.product",className:"no-underline",onClick:a},m.a.createElement("article",{className:"".concat(U.a.element," flex flex-row justify-start items-center pa3 bg-animate hover-bg-light-gray")},m.a.createElement("div",{className:"".concat(U.a.imageContainer," h3")},m.a.createElement("img",{className:"".concat(U.a.image," h-100 w-auto mw-none"),src:null===(i=null==s?void 0:s.image)||void 0===i?void 0:i.imageUrl})),m.a.createElement("div",{className:"".concat(U.a.information," flex flex-column justify-between items-start ml4")},m.a.createElement("div",{className:U.a.productNameContainer},m.a.createElement("span",{className:"".concat(U.a.productBrand," f5 c-on-base")},o.productName)),m.a.createElement("div",{className:U.a.priceContainer},m.a.createElement(A.a,{product:o,query:{skuId:null==s?void 0:s.itemId}},m.a.createElement("span",{className:"db f7 c-muted-2"},m.a.createElement(V.a,{message:c?"{listPriceWithTax}":"{listPriceValue}"})),m.a.createElement("span",{className:"dib t-small c-muted-2"},m.a.createElement(D.a,{message:c?"{sellingPriceWithTax}":"{sellingPriceValue}"}))))))))},z=function(e){var t=e.term,n=e.title,r=e.products,i=e.showTitle,o=e.totalProducts,a=e.layout,s=e.isLoading,c=e.onProductClick,u=e.onSeeAllClick,l=e.HorizontalProductSummary,p=e.customPage;return 0!==r.length||s?m.a.createElement("section",{className:H.a.tileList},i?m.a.createElement("p",{className:"".concat(H.a.tileListTitle," c-on-base")},n):null,s?m.a.createElement("div",{className:H.a.tileListSpinner},m.a.createElement(C.a,null)):m.a.createElement(m.a.Fragment,null,m.a.createElement("ul",{className:H.a.tileListList,style:{flexDirection:a===re.Horizontal?"column":"row"}},r.map((function(e,n){var r=M.a.mapCatalogProductToProductSummary(e);return m.a.createElement("li",{key:e.productId,className:H.a.tileListItem},a===re.Horizontal?l?m.a.createElement(l,{product:r,placement:"autocomplete",actionOnClick:function(){c(r.productId,n,t)}}):m.a.createElement(B,{product:r,onClick:function(){c(r.productId,n,t)}}):m.a.createElement(T.ExtensionPoint,{id:"product-summary",product:r,placement:"autocomplete",actionOnClick:function(){c(r.productId,n,t)}}))}))),m.a.createElement("footer",{className:H.a.tileListFooter},o>0?m.a.createElement(T.Link,{query:"map=ft&_q=".concat(t),params:{term:t},page:p||"store.search",className:H.a.tileListSeeMore,onClick:function(){return u(t)}},m.a.createElement(h.FormattedMessage,{id:"store/seeMore",values:{count:o}})):null))):null};var Q=n(6),K=n.n(Q),J=function(e){var t;return(null===(t=e.item)||void 0===t?void 0:t.attributes)?m.a.createElement("ul",{className:K.a.itemListSubList},e.item.attributes.map((function(t,n){return m.a.createElement("li",{key:n,className:"".concat(K.a.itemListSubItem," c-on-base pointer"),onMouseOver:function(n){return e.onMouseOver(n,t)},onFocus:function(n){return e.onMouseOver(n,t)},onMouseOut:function(){return e.onMouseOut()},onBlur:function(){return e.onMouseOut()}},m.a.createElement(T.Link,{className:"".concat(K.a.itemListSubItemLink," c-on-base"),to:"/".concat(e.item.value,"/").concat(t.value),query:"map=ft,".concat(t.key),onClick:function(){e.closeModal(),e.onItemClick(t.label,n)}},t.label))}))):null};function $(e){var t=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(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var i=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var G=function(e){Object(c.a)(n,e);var t=$(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).state={currentTimeoutId:null},e.handleMouseOver=function(t,n){if(t.stopPropagation(),!e.state.currentTimeoutId){var r=setTimeout((function(){e.props.onItemHover&&e.props.onItemHover(n),e.setState({currentTimeoutId:null})}),100);e.setState({currentTimeoutId:r})}},e.handleMouseOut=function(){var t=e.state.currentTimeoutId;t&&(clearTimeout(t),e.setState({currentTimeoutId:null}))},e}return Object(s.a)(n,[{key:"render",value:function(){var e=this;if(0===this.props.items.length&&!this.props.showTitleOnEmpty)return null;var t=this.props.modifier?K.a["itemList--".concat(this.props.modifier)]:"";return p.createElement("article",{className:"".concat(K.a.itemList," ").concat(t)},this.props.showTitle?p.createElement("p",{className:"".concat(K.a.itemListTitle," c-on-base")},this.props.title):null,p.createElement("ol",{className:K.a.itemListList},this.props.items.map((function(t,n){var r;return p.createElement("li",{key:t.value,className:"".concat(K.a.itemListItem),onMouseOver:function(n){return e.handleMouseOver(n,t)},onFocus:function(n){return e.handleMouseOver(n,t)},onMouseOut:function(){return e.handleMouseOut()},onBlur:function(){return e.handleMouseOut()}},p.createElement(T.Link,{page:null!==(r=e.props.customPage)&&void 0!==r?r:"store.search",params:{term:t.value},query:"map=ft&_q=".concat(t.value),onClick:function(){return e.props.onItemClick(t.value,n)},className:K.a.itemListLink},t.icon?p.createElement("span",{className:K.a.itemListIcon},t.icon):null,t.prefix?p.createElement("span",{className:K.a.itemListPrefix},t.prefix):null,p.createElement("span",{className:"".concat(K.a.itemListLinkTitle," c-on-base")},t.label)),p.createElement(J,{item:t,onMouseOver:e.handleMouseOver,onMouseOut:e.handleMouseOut,closeModal:e.props.closeModal,onItemClick:e.props.onItemClick}))}))))}}]),n}(p.Component),X=n(36);var Z;function Y(e,t,n){return function(r,i){e({page:t,event:"autocomplete",eventType:n,search:{term:r,position:i}})}}function ee(e,t,n,r,i){try{e({event:"autocomplete",eventType:Z.Search,search:{operator:t,misspelled:n,text:decodeURI(i),match:r}})}catch(o){e({event:"autocomplete",eventType:Z.Search,search:{operator:t,misspelled:n,text:i,match:r}})}}!function(e){e.ProductClick="product_click",e.SearchSuggestionClick="search_suggestion_click",e.TopSearchClick="top_search_click",e.HistoryClick="history_click",e.Search="search",e.SeeAllClick="see_all_click"}(Z||(Z={}));var te=function(){var e=Object(o.a)(i.a.mark((function e(t){var n,r,o,a,s,c,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new Headers).append("Content-Type","application/json"),s={method:"GET",headers:a,redirect:"follow"},e.next=5,fetch("".concat(t||"","/api/sessions?items=public.shippingOption"),s);case 5:return c=e.sent,e.next=8,c.json();case 8:if(u=e.sent,null===(o=null===(r=null===(n=null==u?void 0:u.namespaces)||void 0===n?void 0:n.public)||void 0===r?void 0:r.shippingOption)||void 0===o?void 0:o.value){e.next=11;break}return e.abrupt("return",null);case 11:return e.abrupt("return",JSON.parse(u.namespaces.public.shippingOption.value));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function ne(e){var t=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(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var i=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var re;!function(e){e.Horizontal="HORIZONTAL",e.Vertical="VERTICAL"}(re||(re={}));var ie,oe=E.a.ProductListProvider,ae=function(e){Object(c.a)(l,e);var t,n,r,u=ne(l);function l(e){var t;return Object(a.a)(this,l),(t=u.call(this,e)).state={topSearchedItems:[],history:[],products:[],suggestionItems:[],totalProducts:0,queryFromHover:{},dynamicTerm:"",isProductsLoading:!1,currentHeightWhenOpen:0},t.handleItemHover=function(e){"groupValue"in e?(t.setState({dynamicTerm:e.groupValue,queryFromHover:{key:e.key,value:e.value}}),t.updateProducts(e.groupValue)):(t.setState({dynamicTerm:e.value,queryFromHover:{key:void 0,value:void 0}}),t.updateProducts(e.value))},t.getProductLayout=function(){var e=t.props,n=e.productLayout,r=e.isMobile;return void 0!==n?n:r?re.Horizontal:re.Vertical},t.client=new O.a(t.props.client),t.autocompleteRef=m.a.createRef(),t.isIOS=navigator&&!!navigator.userAgent.match(/(iPod|iPhone|iPad)/),t}return Object(s.a)(l,[{key:"fitAutocompleteInWindow",value:function(){if(window&&this.autocompleteRef.current&&this.props.isMobile&&!this.isIOS){var e=window.innerHeight,t=this.autocompleteRef.current.getBoundingClientRect().y,n=this.autocompleteRef.current.offsetHeight,r=n-(t+n-e);this.autocompleteRef.current.style.maxHeight="".concat(r,"px")}}},{key:"addEvents",value:function(){window.addEventListener("resize",S()(this.fitAutocompleteInWindow.bind(this),100))}},{key:"componentDidMount",value:function(){this.updateTopSearches(),this.updateHistory(),this.addEvents()}},{key:"shouldUpdate",value:function(e){return e.inputValue!==this.props.inputValue||!e.isOpen&&this.props.isOpen}},{key:"addTermToHistory",value:function(){var e=window.location.href.split("_q=");if(e[1]){var t=e[1].split("&")[0];try{return this.client.prependSearchHistory(decodeURI(t))}catch(e){return this.client.prependSearchHistory(t)}}}},{key:"closeModal",value:function(){this.props.closeMenu&&this.props.closeMenu()}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.shouldUpdate(e)){this.addTermToHistory(),this.fitAutocompleteInWindow();var n=this.props.inputValue;this.setState({dynamicTerm:n,queryFromHover:void 0}),null===n||""===n?(this.updateTopSearches(),this.updateHistory(),this.setState({suggestionItems:[],products:[]})):this.updateSuggestions().then((function(){return t.fitAutocompleteInWindow(),t.updateProducts(n)})).then((function(){return t.fitAutocompleteInWindow()}))}}},{key:"highlightTerm",value:function(e,t){var n=e.split(t);return m.a.createElement(m.a.Fragment,null,n.map((function(e,r){return m.a.createElement(m.a.Fragment,null,e,r!==n.length-1?m.a.createElement("span",{className:"b"},t):null)})))}},{key:"updateSuggestions",value:(r=Object(o.a)(i.a.mark((function e(){var t,n,r,o,a,s,c=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.suggestionSearches(this.props.inputValue);case 2:t=e.sent,n=t.data.autocompleteSearchSuggestions.searches,r=this.props.maxSuggestedTerms,o=void 0===r?5:r,a=n.slice(0,o).map((function(e){var t=e.attributes||[];return{term:e.term,attributes:t.map((function(t){return{label:t.labelValue,value:t.value,link:"/".concat(e.term,"/").concat(t.value,"/?map=ft,").concat(t.key),groupValue:e.term,key:t.key}}))}})),s=a.map((function(e){return{label:c.highlightTerm(e.term.toLowerCase(),c.props.inputValue.toLocaleLowerCase()),value:e.term,groupValue:e.term,link:"/".concat(e.term,"?map=ft"),attributes:e.attributes}})),this.setState({suggestionItems:s});case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"updateProducts",value:(n=Object(o.a)(i.a.mark((function e(t){var n,r,o,a,s,c,u,l,p,m,d,h,v,f,g,x,y,E,_,b,k,S;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t,o=this.props,a=o.__unstableProductOrigin,s=o.__unstableProductOriginVtex,c=void 0!==s&&s,u=o.simulationBehavior,l=void 0===u?"default":u,p=o.hideUnavailableItems,m=void 0!==p&&p,d=o.orderBy,h=this.state.queryFromHover,r){e.next=6;break}return this.setState({products:[],totalProducts:0}),e.abrupt("return");case 6:return a&&console.warn("The prop `__unstableProductOrigin` has been deprecated. Use the boolean prop `__unstableProductOriginVtex` instead."),this.setState({isProductsLoading:!0}),e.next=10,te(this.props.runtime.rootPath);case 10:return v=e.sent,f=null!==(n=null==v?void 0:v.map((function(e){return e.value})))&&void 0!==n?n:[],g={showSponsored:!0,sponsoredCount:2,repeatSponsoredProducts:!1,advertisementPlacement:"autocomplete"},e.next=15,this.client.suggestionProducts(r,h?h.key:void 0,h?h.value:void 0,"VTEX"===a||c,l,m,d,this.props.maxSuggestedProducts||3,f,g);case 15:x=e.sent,h||(y=x.data.productSuggestions,E=y.count,_=y.operator,b=y.misspelled,ee(this.props.push,_,b,E,r)),this.setState({isProductsLoading:!1}),k=x.data.productSuggestions,S=k.products.slice(0,this.getProductCount()),this.setState({products:S,totalProducts:k.count});case 21:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"updateTopSearches",value:(t=Object(o.a)(i.a.mark((function e(){var t,n,r,o,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.topSearches();case 2:t=e.sent,n=t.data.topSearches.searches,r=this.props.maxTopSearches,o=void 0===r?10:r,a=n.slice(0,o).map((function(e,t){return{prefix:m.a.createElement(m.a.Fragment,null,"".concat(t+1),m.a.createElement(h.FormattedMessage,{id:"store/ordinalNumber"})),value:e.term,label:e.term,link:"/".concat(e.term,"?map=ft")}})),this.setState({topSearchedItems:a});case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"updateHistory",value:function(){var e=this.client.searchHistory().slice(0,this.props.maxHistory||5).map((function(e){return{label:(t=e,t.replace(/\$2F/gi,"/")),value:e,link:"/".concat(e,"?map=ft"),icon:m.a.createElement(x.a,null)};var t}));this.setState({history:e})}},{key:"renderSuggestions",value:function(){var e=this,t=!!this.state.suggestionItems&&this.state.suggestionItems.length>0,n=t?m.a.createElement(h.FormattedMessage,{id:"store/suggestions"}):m.a.createElement(h.FormattedMessage,{id:"store/emptySuggestion"});return m.a.createElement(G,{title:n,items:this.state.suggestionItems||[],modifier:"suggestion",showTitle:!t||!this.props.hideTitles,onItemHover:this.handleItemHover,showTitleOnEmpty:0!==this.props.maxSuggestedTerms,onItemClick:function(t,n){Y(e.props.push,e.props.runtime.page,Z.SearchSuggestionClick)(t,n),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()}})}},{key:"contentWhenQueryIsEmpty",value:function(){var e=this;return m.a.createElement("div",{className:N.a["history-and-top-wrapper"],style:{flexDirection:this.props.historyFirst?"row-reverse":"row"}},!this.props.isMobile||this.props.isMobile&&!this.props.historyFirst||0===this.state.history.length?m.a.createElement(G,{modifier:"top-search",title:m.a.createElement(h.FormattedMessage,{id:"store/topSearches"}),items:this.state.topSearchedItems||[],showTitle:!this.props.hideTitles,onItemClick:function(t,n){Y(e.props.push,e.props.runtime.page,Z.TopSearchClick)(t,n),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()}}):null,!this.props.isMobile||this.props.isMobile&&this.props.historyFirst?m.a.createElement(G,{modifier:"history",title:m.a.createElement(h.FormattedMessage,{id:"store/history"}),items:this.state.history||[],showTitle:!this.props.hideTitles,onItemClick:function(t,n){Y(e.props.push,e.props.runtime.page,Z.HistoryClick)(t,n),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()}}):null)}},{key:"contentWhenQueryIsNotEmpty",value:function(){var e=this,t=this.state,n=t.products,r=t.totalProducts,i=t.isProductsLoading,o=this.props,a=o.hideTitles,s=o.push,c=o.runtime,u=o.inputValue,l=u.replace(/\//gi,"$2F");return m.a.createElement(m.a.Fragment,null,this.renderSuggestions(),m.a.createElement(z,{term:l||"",customPage:this.props.customPage,shelfProductCount:this.getProductCount(),title:m.a.createElement(h.FormattedMessage,{id:"store/suggestedProducts",values:{term:u}}),products:n||[],showTitle:!a,totalProducts:r||0,layout:this.getProductLayout(),isLoading:i,onProductClick:function(t,n,r){!function(e,t){return function(n,r,i){return e({page:t,event:"autocomplete",eventType:Z.ProductClick,product:{productId:n,position:r},term:i})}}(s,c.page)(t,n,r),e.closeModal()},onSeeAllClick:function(t){!function(e,t){return function(n){return e({page:t,event:"autocomplete",eventType:Z.SeeAllClick,search:{term:n}})}}(s,c.page)(t),e.closeModal()},HorizontalProductSummary:this.props.HorizontalProductSummary}))}},{key:"renderContent",value:function(){var e=this.props.inputValue.trim();return e&&""!==e?this.contentWhenQueryIsNotEmpty():this.contentWhenQueryIsEmpty()}},{key:"hasContent",value:function(){var e=this.state,t=e.topSearchedItems,n=e.suggestionItems,r=e.history,i=e.products;return t.length>0||n.length>0||r.length>0||i.length>0}},{key:"getProductCount",value:function(){var e=this.props,t=e.customBreakpoints,n=e.isMobile,r=e.maxSuggestedProducts,i=void 0===r?3:r;if(!window||n||!t)return i;var o=window.innerWidth;return t.md&&t.lg&&t.xlg?o>=t.xlg.width?t.xlg.maxSuggestedProducts:o>=t.lg.width?t.lg.maxSuggestedProducts:o>=t.md.width?t.md.maxSuggestedProducts:i:i}},{key:"render",value:function(){var e=this,t=this.props.isOpen&&this.hasContent()?"":N.a["biggy-js-container--hidden"];return m.a.createElement("div",{className:N.a["biggy-autocomplete-wrapper"],style:{width:this.props.autocompleteWidth?"".concat(this.props.autocompleteWidth,"vw"):void 0}},m.a.createElement("section",{ref:this.autocompleteRef,className:"".concat(N.a["biggy-autocomplete"]," ").concat(t," w-100"),style:{flexDirection:this.getProductLayout()===re.Horizontal?"column":"row"}},m.a.createElement(oe,{listName:"autocomplete-result-list"},this.renderContent(),this.props.isMobile?m.a.createElement("button",{onClick:function(){return e.closeModal()},className:N.a["close-btn"]},m.a.createElement(f.a,null)):null)))}}]),l}(m.a.Component),se=Object(L.withPixel)(b()(Object(d.withApollo)((ie=ae,function(e){return m.a.createElement(ie,Object(X.a)({},e,{runtime:Object(T.useRuntime)()}))}))));t.default=se}],[[40,"common"]]]); },function(){ (window.webpackJsonpfloria_geolocation_0_1_6=window.webpackJsonpfloria_geolocation_0_1_6||[]).push([["SelectedDependencyBox"],{0:function(e,t){e.exports=React},10:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/applyModifiers"]},13:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},14:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},24:function(e,t,o){e.exports={dependencySelectedBox:"floria-geolocation-0-x-dependencySelectedBox",dsbIcon:"floria-geolocation-0-x-dsbIcon",dsbIconImg:"floria-geolocation-0-x-dsbIconImg",dsbIconSvg:"floria-geolocation-0-x-dsbIconSvg",dsbContent:"floria-geolocation-0-x-dsbContent",dsbTitle:"floria-geolocation-0-x-dsbTitle",dsbValue:"floria-geolocation-0-x-dsbValue",loadingSpinnerOuterContainer:"floria-geolocation-0-x-loadingSpinnerOuterContainer"}},25:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValue"]},26:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/Icon"]},3:function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/ramdaCore"]},4:function(e,t){e.exports=__RENDER_8_RUNTIME__},5:function(e,t){e.exports=ReactIntl},71:function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("floria.geolocation@0.1.6");var n=Object(t.register)((function(){return o(78)}),e,"floria.geolocation@0.1.6","floria.geolocation@0.x","SelectedDependencyBox");n.renderHotReload,n.setupHMR}.call(this,o(12)(e))},78:function(e,t,o){"use strict";o.r(t);var n=o(0),i=o.n(n),c=o(10),a=o.n(c),l=o(25),s=o.n(l),r=o(26),d=o.n(r),_=o(11),p=o(7),u=o(24),x=o.n(u),f=o(5),b=Object(f.defineMessages)({blockTitle:{id:"admin/editor.selected-dependency-box.blockTitle"},title:{id:"admin/editor.selected-dependency-box.title"},icon:{id:"admin/editor.selected-dependency-box.icon"}}),g=Object(n.memo)((function(e){var t=e.title,o=e.icon,n=e.blockClass,c=Object(p.c)(),l=s()(Object(_.d)(null==e?void 0:e.showOnlyIcon)),r="string"==typeof o;if(!c)return null;var u=c.selectedDependency,f=c.openModal,b=c.setShowCloseBtn,g=(null==u?void 0:u.key)||"Seleccionar";return i.a.createElement("div",{className:a()(x.a.dependencySelectedBox,n),onClick:function(){return b(!0),void f(!0)}},i.a.createElement("div",{className:a()(x.a.dsbIcon,n)},r&&i.a.createElement("img",{className:a()(x.a.dsbIconImg,n),src:o}),!r&&i.a.createElement(d.a,{id:o.id,size:o.size,activeClassName:a()(x.a.dsbIconSvg,n)})),!l&&i.a.createElement("div",{className:a()(x.a.dsbContent,n)},i.a.createElement("p",{className:a()(x.a.dsbTitle,n)},t),i.a.createElement("p",{className:a()(x.a.dsbValue,n)},g)))}));g.defaultProps={title:"Cambiar la ciudad de entrega",icon:{id:"inf-pin-geolocation"}},g.getSchema=function(e){return{title:e.__editorItemTitle||b.blockTitle.id,type:"object",properties:{title:{title:b.title.id,type:"string"},icon:{title:b.icon.id,type:"string",widget:{"ui:widget":"image-uploader"}}}}};var E=g;t.default=E},8:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},9:function(e,t){e.exports=__RENDER_8_COMPONENTS__["chefcompany.store-utils@0.x/RxEvent"]}},[[71,"common",0]]]); },function(){ (window.webpackJsonpfloria_store_theme_1_1_24=window.webpackJsonpfloria_store_theme_1_1_24||[]).push([["HeaderFloriaRecordar"],{2:function(e,r){e.exports=__RENDER_8_RUNTIME__},26:function(e,r,o){"use strict";o.r(r),function(e){var r=o(1);o.p=Object(r.getPublicPath)("floria.store-theme@1.1.24");var t=Object(r.register)((function(){return o(41)}),e,"floria.store-theme@1.1.24","floria.store-theme@1.x","HeaderFloriaRecordar");t.renderHotReload,t.setupHMR}.call(this,o(5)(e))},4:function(e,r){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},41:function(e,r,o){"use strict";o.r(r),o.d(r,"default",(function(){return u}));var t=o(2),n=o(4),i=o.n(n);function u(e){var r,o,n=e.children,u=Object(t.useRuntime)().route,l=i()().product,d="grupo-recordar"===(null===(r=null==u?void 0:u.params)||void 0===r?void 0:r.department),c=null===(o=null==l?void 0:l.categoryTree)||void 0===o?void 0:o.find((function(e){return 19==e.id})),a=null==n?void 0:n.filter((function(e){var r;return"sticky-layout#desktop"===(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.id)})),s=null==n?void 0:n.filter((function(e){var r;return"sticky-layout#desktop-recordar"===(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.id)}));return React.createElement("div",null,d||19===(null==c?void 0:c.id)?s:a)}}},[[26,"common"]]]); },function(){ (window.webpackJsonpfloria_store_theme_1_1_24=window.webpackJsonpfloria_store_theme_1_1_24||[]).push([["AdCookie"],{0:function(e,t){e.exports=React},10:function(e,t,o){e.exports={adCookies:"floria-store-theme-1-x-adCookies"}},18:function(e,t,o){"use strict";o.r(t),function(e){var t=o(1);o.p=Object(t.getPublicPath)("floria.store-theme@1.1.24");var i=Object(t.register)((function(){return o(35)}),e,"floria.store-theme@1.1.24","floria.store-theme@1.x","AdCookie");i.renderHotReload,i.setupHMR}.call(this,o(5)(e))},35:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return u}));var i=o(6),a=o(0),c=o(9),n=o.n(c),r=o(10),s=o.n(r);function u(){var e=Object(a.useState)(null),t=Object(i.a)(e,2),o=t[0],c=t[1];return Object(a.useEffect)((function(){var e=sessionStorage.getItem("activeCookiePolitic");c("activo"!==e)}),[]),o?React.createElement("div",{className:"".concat(s.a.adCookies)},React.createElement("p",null,"Este sitio cuenta con uso de cookies propias y de terceros para el registro de datos estadisticos. Si acepta su uso, haga clic en aceptar. Para obtener más información, consulte nuestra"," ",React.createElement(n.a,{href:"/politica-cookies"},"politica de cookies")),React.createElement("button",{onClick:function(){sessionStorage.setItem("activeCookiePolitic","activo"),c(!1)}},"Aceptar")):null}},9:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Link"]}},[[18,"common"]]]); }], document.currentScript.dataset.index)