enqueueScripts([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(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,p=[];s=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},48:function(t,n,e){t.exports=e(89)},5:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))},57:function(t,n,e){"use strict";function r(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}e.d(n,"a",(function(){return r}))},59:function(t,n,e){"use strict";function r(t,n,e,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void e(t)}c.done?n(a):Promise.resolve(a).then(r,o)}function o(t){return function(){var n=this,e=arguments;return new Promise((function(o,i){var u=t.apply(n,e);function c(t){r(u,o,i,c,a,"next",t)}function a(t){r(u,o,i,c,a,"throw",t)}c(void 0)}))}}e.d(n,"a",(function(){return o}))},71:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0||(r[a]=e[a]);return r}(e,["animate","ariaLabel","children","className","height","preserveAspectRatio","primaryColor","primaryOpacity","rtl","secondaryColor","secondaryOpacity","speed","style","uniquekey","width"]),E=v?v+"-idClip":o(),O=v?v+"-idGradient":o(),g=p?["1; -3","2; -2","3; -1"]:["-3; 1","-2; 2","-1; 3"];return Object(n.createElement)("svg",r({role:"img",style:N,className:i,"aria-labelledby":a||null,viewBox:"0 0 "+y+" "+l,preserveAspectRatio:d},b),a?Object(n.createElement)("title",null,a):null,Object(n.createElement)("rect",{x:"0",y:"0",width:y,height:l,clipPath:"url(#"+E+")",style:{fill:"url(#"+O+")"}}),Object(n.createElement)("defs",null,Object(n.createElement)("clipPath",{id:E},c),Object(n.createElement)("linearGradient",{id:O},Object(n.createElement)("stop",{offset:"0%",stopColor:s,stopOpacity:u},t&&Object(n.createElement)("animate",{attributeName:"offset",values:g[0],dur:h+"s",repeatCount:"indefinite"})),Object(n.createElement)("stop",{offset:"50%",stopColor:m,stopOpacity:f},t&&Object(n.createElement)("animate",{attributeName:"offset",values:g[1],dur:h+"s",repeatCount:"indefinite"})),Object(n.createElement)("stop",{offset:"100%",stopColor:s,stopOpacity:u},t&&Object(n.createElement)("animate",{attributeName:"offset",values:g[2],dur:h+"s",repeatCount:"indefinite"})))))},i={animate:!0,ariaLabel:"Loading interface...",height:130,preserveAspectRatio:"xMidYMid meet",primaryColor:"#f0f0f0",primaryOpacity:1,rtl:!1,secondaryColor:"#e0e0e0",secondaryOpacity:1,speed:2,width:400},l=function(e){return Object(n.createElement)("rect",{x:"0",y:"0",rx:"5",ry:"5",width:e.width,height:e.height})},d=function(e){var t=r({},i,e),a=e.children?e.children:Object(n.createElement)(l,t);return Object(n.createElement)(c,t,a)};t.a=d},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},8:function(e,t){e.exports=__RENDER_8_RUNTIME__}},[[190,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([[3],{22:function(e,t,a){e.exports={priceContainer:"vtex-store-components-3-x-priceContainer",listPrice:"vtex-store-components-3-x-listPrice",listPriceLabel:"vtex-store-components-3-x-listPriceLabel",listPriceValue:"vtex-store-components-3-x-listPriceValue",sellingPriceContainer:"vtex-store-components-3-x-sellingPriceContainer",sellingPrice:"vtex-store-components-3-x-sellingPrice",sellingPriceLabel:"vtex-store-components-3-x-sellingPriceLabel",sellingPriceValue:"vtex-store-components-3-x-sellingPriceValue","sellingPriceValue--range":"vtex-store-components-3-x-sellingPriceValue--range",savingPrice:"vtex-store-components-3-x-savingPrice",savingPriceValue:"vtex-store-components-3-x-savingPriceValue",installmentsPrice:"vtex-store-components-3-x-installmentsPrice",interestRatePrice:"vtex-store-components-3-x-interestRatePrice",priceLoaderContainer:"vtex-store-components-3-x-priceLoaderContainer",listPriceLoader:"vtex-store-components-3-x-listPriceLoader",sellingPriceLabelLoader:"vtex-store-components-3-x-sellingPriceLabelLoader",sellingPriceLoader:"vtex-store-components-3-x-sellingPriceLoader",installmentsPriceLoader:"vtex-store-components-3-x-installmentsPriceLoader",savingsPriceLoader:"vtex-store-components-3-x-savingsPriceLoader"}},33:function(e,t,a){"use strict";var i=a(0);function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,["animate","ariaLabel","children","className","height","preserveAspectRatio","primaryColor","primaryOpacity","rtl","secondaryColor","secondaryOpacity","speed","style","uniquekey","width"]),C=v?v+"-idClip":n(),L=v?v+"-idGradient":n(),O=p?["1; -3","2; -2","3; -1"]:["-3; 1","-2; 2","-1; 3"];return Object(i.createElement)("svg",r({role:"img",style:b,className:l,"aria-labelledby":a||null,viewBox:"0 0 "+h+" "+c,preserveAspectRatio:o},f),a?Object(i.createElement)("title",null,a):null,Object(i.createElement)("rect",{x:"0",y:"0",width:h,height:c,clipPath:"url(#"+C+")",style:{fill:"url(#"+L+")"}}),Object(i.createElement)("defs",null,Object(i.createElement)("clipPath",{id:C},s),Object(i.createElement)("linearGradient",{id:L},Object(i.createElement)("stop",{offset:"0%",stopColor:m,stopOpacity:u},t&&Object(i.createElement)("animate",{attributeName:"offset",values:O[0],dur:P+"s",repeatCount:"indefinite"})),Object(i.createElement)("stop",{offset:"50%",stopColor:g,stopOpacity:d},t&&Object(i.createElement)("animate",{attributeName:"offset",values:O[1],dur:P+"s",repeatCount:"indefinite"})),Object(i.createElement)("stop",{offset:"100%",stopColor:m,stopOpacity:u},t&&Object(i.createElement)("animate",{attributeName:"offset",values:O[2],dur:P+"s",repeatCount:"indefinite"})))))},l={animate:!0,ariaLabel:"Loading interface...",height:130,preserveAspectRatio:"xMidYMid meet",primaryColor:"#f0f0f0",primaryOpacity:1,rtl:!1,secondaryColor:"#e0e0e0",secondaryOpacity:1,speed:2,width:400},c=function(e){return Object(i.createElement)("rect",{x:"0",y:"0",rx:"5",ry:"5",width:e.width,height:e.height})},o=function(e){var t=r({},l,e),a=e.children?e.children:Object(i.createElement)(c,t);return Object(i.createElement)(s,t,a)};t.a=o},45:function(e,t,a){"use strict";var i=a(11),r=a(9),n=a(0),s=a.n(n),l=a(6),c=a.n(l),o=a(1),m=a(4),u=a(38),p=a.n(u),g=a(8),d=a(58),P=a.n(d),b=a(7),v=a.n(b),h=a(57),f=a(33),C=a(22),L=a.n(C),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.loaderClass,a=Object(h.a)(e,["loaderClass"]);return s.a.createElement("div",{className:c()(L.a.priceContainer,L.a.priceLoaderContainer,t)},s.a.createElement(f.a,Object(i.a)({style:{width:"100%",height:"100%"},width:300,height:70,preserveAspectRatio:"xMinYMin meet"},a),s.a.createElement("rect",Object(i.a)({height:"0.75em",width:"50%",x:"25%"},e[L.a.listPriceLoader])),s.a.createElement("rect",e[L.a.sellingPriceLabelLoader]),s.a.createElement("rect",Object(i.a)({height:"1em",width:"70%",x:"15%",y:"1.25em"},e[L.a.sellingPriceLoader])),s.a.createElement("rect",Object(i.a)({height:"0.75em",width:"80%",x:"10%",y:"2.75em"},e[L.a.installmentsPriceLoader])),s.a.createElement("rect",e[L.a.savingsPriceLoader])))},y=a(2),w=a.n(y),x=(w.a.arrayOf(w.a.number),w.a.arrayOf(w.a.number),w.a.number,w.a.number,w.a.bool.isRequired,w.a.bool.isRequired,w.a.bool.isRequired,w.a.bool.isRequired,w.a.bool.isRequired,w.a.bool,w.a.string,w.a.string,w.a.arrayOf(w.a.shape({Value:w.a.number.isRequired,InterestRate:w.a.number.isRequired,TotalValuePlusInterestRate:w.a.number,NumberOfInstallments:w.a.number.isRequired,Name:w.a.string})),w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.string,w.a.object,w.a.object.isRequired,Object(m.injectIntl)((function(e){var t=e.showLabels,a=e.installments,i=void 0===a?[]:a,l=e.className,u=e.installmentClass,p=e.interestRateClass,d=e.intl,b=Object(g.useRuntime)().culture;if(!i||Object(o.isEmpty)(i.filter((function(e){return e.NumberOfInstallments>1}))))return null;var v=i.filter((function(e){return!e.InterestRate&&e.NumberOfInstallments>1})),h=(Object(o.isEmpty)(v)?i:v).reduce((function(e,t){return e.NumberOfInstallments>t.NumberOfInstallments?e:t})),f=P()({intl:d,culture:b,value:h.Value}),C=[h.NumberOfInstallments,f,s.a.createElement(n.Fragment,{key:"x"},"x")].map((function(e,t){return s.a.createElement("span",{className:u,key:t},e)})),O=Object(r.a)(C,3),y=O[0],w=O[1],x=O[2];return s.a.createElement("div",{className:c()(L.a.installmentsPrice,l)},t?s.a.createElement(m.FormattedMessage,{id:"store/pricing.installment-display",values:{installments:y,installmentPrice:w,times:x}}):s.a.createElement(n.Fragment,null,y,x," ",w),!h.InterestRate&&s.a.createElement("div",{className:c()(L.a.interestRatePrice,p)},s.a.createElement(m.FormattedMessage,{id:"store/pricing.interest-free"})))}))),R=a(60),E=a.n(R),j=Object(m.injectIntl)((function(e){var t=e.showPriceRange,a=e.priceRange,i=e.price,n=e.rangeContainerClasses,l=e.singleContainerClasses,c=e.intl,o=Object(g.useRuntime)().culture;return t&&a&&function(e){var t=Object(r.a)(e,2),a=t[0],i=t[1];return 2===e.length&&a!==i}(a)?s.a.createElement("span",{className:n},function(e,t,a){return(a||[]).map((function(a){return P()({intl:e,culture:t,value:a})})).join(" - ")}(c,o,a)):s.a.createElement("span",{className:l},s.a.createElement(E.a,{value:i}))})),_=["price_className","price_loader","price_listPriceContainer","price_listPriceLabel","price_listPrice","price_listPriceRange","price_sellingPriceRange","price_sellingPriceContainer","price_sellingPriceLabel","price_sellingPrice","price_savingsContainer","price_savings","price_savings_value","price_installment","price_interestRate","price_installmentContainer"],N=function(e){var t=Object(r.a)(e,2),a=t[0],i=t[1];return 2===e.length&&a!==i},I=function(e){var t=Object(o.sort)((function(e,t){return e-t}),e);return[Object(o.head)(t),Object(o.last)(t)]},V=Object(m.injectIntl)((function(e){var t=e.sellingPriceList,a=e.sellingPrice,r=e.listPrice,n=e.listPriceList,l=e.showListPrice,u=e.showSellingPriceRange,d=e.showListPriceRange,b=e.showInstallments,h=e.showLabels,f=e.showSavings,C=e.labelSellingPrice,y=e.labelListPrice,w=e.className,R=e.loaderClass,E=e.listPriceContainerClass,V=e.listPriceLabelClass,S=e.listPriceClass,q=e.listPriceRangeClass,M=e.sellingPriceRangeClass,k=e.sellingPriceContainerClass,A=e.sellingPriceLabelClass,F=e.sellingPriceClass,G=e.savingsContainerClass,J=e.savingsClass,Y=e.installments,B=e.installmentClass,T=e.interestRateClass,z=e.installmentContainerClass,D=e.styles,H=e.intl,K=Object(g.useRuntime)().culture,Q=v()(_).handles;if(l&&Object(o.isNil)(r)||Object(o.isNil)(a))return s.a.createElement(O,Object(i.a)({loaderClass:"".concat(R," ").concat(Q.price_loader)},D));var U=function(e){var t=e.sellingPriceList,a=e.sellingPrice,i=e.listPrice,r=e.listPriceList,n=e.showListPrice,s=e.showListPriceRange,l=e.showSellingPriceRange;if(!n)return!1;var c=t&&I(t)||[],m=r&&I(r)||[],u=l&&N(c)?c:a,p=s&&N(m)?m:i;return!Object(o.equals)(p,u)}(e),W=t&&I(t),X=n&&I(n);return s.a.createElement("div",{className:c()(L.a.priceContainer,w,Q.price_className)},U&&s.a.createElement("div",{className:c()(L.a.listPrice,E,Q.price_listPriceContainer)},h&&s.a.createElement("div",{className:c()(L.a.listPriceLabel,V,Q.price_listPriceLabel,"dib ph2 t-small-ns t-mini")},s.a.createElement(p.a,{id:y})),s.a.createElement(j,{showPriceRange:d,priceRange:X,price:r,rangeContainerClasses:c()(L.a.listPriceValue,q,Q.price_listPriceRange),singleContainerClasses:c()(L.a.listPriceValue,S,Q.price_listPrice)})),s.a.createElement("div",{className:c()(L.a.sellingPrice,L.a.sellingPriceContainer,k,Q.price_sellingPriceContainer)},h&&U&&s.a.createElement("div",{className:c()(L.a.sellingPriceLabel,A,Q.price_sellingPriceLabel)},s.a.createElement(p.a,{id:C})),s.a.createElement(j,{showPriceRange:u,priceRange:W,price:a,rangeContainerClasses:c()(L.a.sellingPrice,L.a.sellingPriceValue,L.a["sellingPriceValue--range"],M,Q.price_sellingPriceRange),singleContainerClasses:c()(L.a.sellingPrice,L.a.sellingPriceValue,F,Q.price_sellingPrice)})),b&&s.a.createElement(x,{installments:Y,showLabels:h,className:"".concat(z," ").concat(Q.price_installmentContainer),interestRateClass:"".concat(T," ").concat(Q.price_interestRate),installmentClass:"".concat(B," ").concat(Q.price_installment)}),U&&f&&r-a>0&&s.a.createElement("div",{className:c()(L.a.savingPrice,G,Q.price_savingsContainer)},s.a.createElement("div",{className:c()(L.a.savingPriceValue,J,Q.price_savings)},s.a.createElement(m.FormattedMessage,{id:"store/pricing.savings",values:{savings:s.a.createElement("span",{className:Q.price_savings_value},P()({intl:H,culture:K,value:r-a}))}}))))}));V.defaultProps={showSellingPriceRange:!1,showListPriceRange:!1,showListPrice:!0,showLabels:!0,showInstallments:!1,showSavings:!1,labelSellingPrice:null,labelListPrice:null},V.schema={title:"admin/editor.productPrice.title",description:"admin/editor.productPrice.description",type:"object",properties:{showSellingPriceRange:{type:"boolean",title:"admin/editor.productPrice.showSellingPriceRange",default:V.defaultProps.showSellingPriceRange,isLayout:!0},showListPriceRange:{type:"boolean",title:"admin/editor.productPrice.showListPriceRange",default:V.defaultProps.showListPriceRange,isLayout:!0},showListPrice:{type:"boolean",title:"admin/editor.productPrice.showListPrice",default:V.defaultProps.showListPrice,isLayout:!0},showLabels:{type:"boolean",title:"admin/editor.productPrice.showLabels",default:V.defaultProps.showLabels,isLayout:!0},showInstallments:{type:"boolean",title:"admin/editor.productPrice.showInstallments",default:V.defaultProps.showInstallments,isLayout:!0},showSavings:{type:"boolean",title:"admin/editor.productPrice.showSavings",default:V.defaultProps.showSavings,isLayout:!0}}};t.a=V}}]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([["ProductPrice"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=R},192:function(e,t,s){"use strict";s.r(t),function(e){var t=s(3);s.p=Object(t.getPublicPath)("vtex.store-components@3.178.0");var i=Object(t.register)((function(){return s(237)}),e,"vtex.store-components@3.178.0","vtex.store-components@3.x","ProductPrice");i.renderHotReload,i.setupHMR}.call(this,s(15)(e))},2:function(e,t){e.exports=PropTypes},237:function(e,t,s){"use strict";s.r(t);var i=s(5),l=s(57),r=s(0),n=s.n(r),a=s(47),o=s.n(a),c=s(1),u=s(8),d=s(34),p=s(45);function P(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function b(e){for(var t=1;t0},f=function(e){var t=e.labelSellingPrice,s=e.showListPrice,i=e.showInstallments,a=e.showLabels,P=e.showSavings,f=Object(l.a)(e,["labelSellingPrice","showListPrice","showInstallments","showLabels","showSavings"]),g=Object(r.useContext)(o.a),w=function(e){var t,s,i=Object(u.useRuntime)(),l=e.selectedItem,r=null===(t=null==i?void 0:i.getSettings)||void 0===t?void 0:t.call(i,"vtex.store");return(null==r?void 0:r.enableDefaultSeller)?null===(s=Object(d.a)(null==l?void 0:l.sellers))||void 0===s?void 0:s.commertialOffer:(console.warn("In feature releases the enableDefaultSeller setting will be removed, and the commercialOffer will be calculated only by defaultSeller"),Object(c.path)(["sellers",0,"commertialOffer"],l))}(g),v=f.className,_=f.listPriceContainerClass,O=f.listPriceLabelClass,y=f.listPriceClass,C=f.sellingPriceContainerClass,x=f.sellingPriceLabelClass,L=f.sellingPriceClass,j=f.savingsContainerClass,S=f.savingsClass,R=f.interestRateClass,E=f.installmentContainerClass,N=f.installmentClass,D=f.loaderClass,I=f.listPrice,M=f.sellingPrice,T=f.installments,k=!g||Object(c.isEmpty)(g)||!Object(c.has)("query",f)&&!Object(c.has)("params",f)?b(b({},f),{},{labelSellingPrice:t,showListPrice:s,showInstallments:i,showLabels:a,showSavings:P,showProductPrice:!0}):b(b({},f),{},{styles:f.styles||h,className:v||"",listPriceContainerClass:_||"t-small-s t-small-ns c-muted-2 mb2",sellingPriceLabelClass:x||"t-heading-6-s t-heading-5-ns dib",listPriceLabelClass:O||"dib strike",listPriceClass:y||"ph2 dib strike",sellingPriceContainerClass:C||"pv1 b c-on-base",sellingPriceClass:L||"t-heading-2-s dib ph2",installmentContainerClass:E||"t-mini-s t-small-ns c-on-base",installmentClass:N||"t-body",interestRateClass:R||"dib ph2",savingsContainerClass:j||"c-success mt3",savingsClass:S||"dib t-small",loaderClass:D||"h4-s mw6-s pt2-s",listPrice:I||Object(c.path)(["ListPrice"],w),sellingPrice:M||Object(c.path)(["Price"],w),installments:T||Object(c.path)(["Installments"],w),labelSellingPrice:t,showLabels:a,showInstallments:i,showListPrice:s,showSavings:P,showProductPrice:m(w)}),H=k.showProductPrice,A=Object(l.a)(k,["showProductPrice"]);return H?n.a.createElement(p.a,A):null};f.schema={title:"admin/editor.productPrice.title",description:"admin/editor.productPrice.description",type:"object",properties:{labelSellingPrice:{type:"string",title:"admin/editor.productPrice.labelSellingPrice",default:p.a.defaultProps.labelSellingPrice,isLayout:!1},labelListPrice:{type:"string",title:"admin/editor.productPrice.labelListPrice",default:p.a.defaultProps.labelListPrice,isLayout:!1},showSellingPriceRange:{type:"boolean",title:"admin/editor.productPrice.showSellingPriceRange",default:p.a.defaultProps.showSellingPriceRange,isLayout:!0},showListPriceRange:{type:"boolean",title:"admin/editor.productPrice.showListPriceRange",default:p.a.defaultProps.showListPriceRange,isLayout:!0},showListPrice:{type:"boolean",title:"admin/editor.productPrice.showListPrice",default:p.a.defaultProps.showListPrice,isLayout:!0},showLabels:{type:"boolean",title:"admin/editor.productPrice.showLabels",default:p.a.defaultProps.showLabels,isLayout:!0},showInstallments:{type:"boolean",title:"admin/editor.productPrice.showInstallments",default:p.a.defaultProps.showInstallments,isLayout:!0},showSavings:{type:"boolean",title:"admin/editor.productPrice.showSavings",default:p.a.defaultProps.showSavings,isLayout:!0}}};var g=f;t.default=g},34:function(e,t,s){"use strict";function i(e){if(e&&0!==e.length){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}}s.d(t,"a",(function(){return i}))},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},4:function(e,t){e.exports=ReactIntl},47:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductContext"]},58:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.format-currency@0.x/formatCurrency"]},6:function(e,t){e.exports=Classnames},60:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.format-currency@0.x/FormattedCurrency"]},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},8:function(e,t){e.exports=__RENDER_8_RUNTIME__}},[[192,"common",3]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([["CollectionBadges"],{0:function(e,t){e.exports=React},163:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store-components@3.178.0");var o=Object(t.register)((function(){return n(241)}),e,"vtex.store-components@3.178.0","vtex.store-components@3.x","CollectionBadges");o.renderHotReload,o.setupHMR}.call(this,n(15)(e))},241:function(e,t,n){"use strict";n.r(t);var o=n(0),c=n.n(o),s=n(7),a=n.n(s),i=["collectionContainer","item"],r=function(e){var t=e.collectionBadgesText,n=void 0===t?[]:t,o=e.children,s=a()(i).handles;return c.a.createElement("div",{className:"".concat(s.collectionContainer," relative dib w-100")},o,c.a.createElement("div",{className:"inline-flex justify-end absolute w-100 bottom-0 left-0"},n.map((function(e,t){return c.a.createElement("div",{key:"".concat(e,"-").concat(t),className:"".concat(s.item," mh1 pa2 bg-blue white tc")},e)}))))};t.default=r},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]}},[[163,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([["DiscountBadge"],{0:function(e,t){e.exports=React},165:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store-components@3.178.0");var o=Object(t.register)((function(){return n(242)}),e,"vtex.store-components@3.178.0","vtex.store-components@3.x","DiscountBadge");o.renderHotReload,o.setupHMR}.call(this,n(15)(e))},242:function(e,t,n){"use strict";n.r(t);var o=n(0),a=n.n(o),c=n(4),r=n(38),s=n.n(r),i=n(96),u=n.n(i);var l=function(e){var t=e.listPrice,n=e.sellingPrice,o=e.label,r=void 0===o?"":o,i=e.children,l=function(e,t){return(e-t)/e}(t,n),p=l&&l>=.01;return a.a.createElement("div",{className:"".concat(u.a.discountContainer," relative dib")},p?a.a.createElement("div",{className:"".concat(u.a.discountInsideContainer," t-mini white absolute right-0 pv2 ph3 bg-emphasis z-1")},a.a.createElement(s.a,{id:r},(function(e){return a.a.createElement(a.a.Fragment,null,!e&&"-",a.a.createElement(c.FormattedNumber,{value:l,style:"percent"})," ",e&&" ",e&&a.a.createElement("span",null,e))}))):null,i)};t.default=l},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},4:function(e,t){e.exports=ReactIntl},96:function(e,t,n){e.exports={discountContainer:"vtex-store-components-3-x-discountContainer",discountInsideContainer:"vtex-store-components-3-x-discountInsideContainer"}}},[[165,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([["BuyButton"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=R},115:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/withToast"]},116:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/OrderFormContext"]},117:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/PWAContext"]},118:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductDispatchContext"]},119:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastContext"]},120:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Tooltip"]},121:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"addToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"items"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"MinicartItem"}}},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.178.0",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"55bcac5f117353bb354d6f01bab653324d5bc329d6d5041c9f899c03c27b33a7",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addToCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"items"},value:{kind:"Variable",name:{kind:"Name",value:"items"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:219}};n.loc.source={body:'mutation addToCart($items: [MinicartItem]) @context(sender: "vtex.store-components@3.178.0") @runtimeMeta(hash: "55bcac5f117353bb354d6f01bab653324d5bc329d6d5041c9f899c03c27b33a7") {\n addToCart(items: $items) @client\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(n,"addToCart")},122:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"setMinicartOpen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isOpen"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},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.178.0",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"4f8e4fc685b4aebf4e90a0498d833b4596f3e2949add79c9368f9d6a99bad464",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setMinicartOpen"},arguments:[{kind:"Argument",name:{kind:"Name",value:"isOpen"},value:{kind:"Variable",name:{kind:"Name",value:"isOpen"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:228}};n.loc.source={body:'mutation setMinicartOpen($isOpen: Boolean!) @context(sender: "vtex.store-components@3.178.0") @runtimeMeta(hash: "4f8e4fc685b4aebf4e90a0498d833b4596f3e2949add79c9368f9d6a99bad464") {\n setMinicartOpen(isOpen: $isOpen) @client\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(n,"setMinicartOpen")},123:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"installedAppPublic"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",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.178.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"installedAppPublic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.apps-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"c9015437ba1f8ca982c2939c3a91ab24e442a79abab3f9787d45a86ef351116e",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:289}};n.loc.source={body:'query installedAppPublic($slug: String!) @context(sender: "vtex.store-components@3.178.0") {\n installedAppPublic(slug: $slug) @context(provider: "vtex.apps-graphql") @runtimeMeta(hash: "c9015437ba1f8ca982c2939c3a91ab24e442a79abab3f9787d45a86ef351116e") {\n version\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(n,"installedAppPublic")},161:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store-components@3.178.0");var i=Object(t.register)((function(){return n(227)}),e,"vtex.store-components@3.178.0","vtex.store-components@3.x","BuyButton");i.renderHotReload,i.setupHMR}.call(this,n(15)(e))},18:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},2:function(e,t){e.exports=PropTypes},227:function(e,t,n){"use strict";n.r(t);var i=n(5),a=n(0),r=n.n(a),o=n(18),s=n.n(o),c=n(1),u=n(4),l=n(115),d=n.n(l),m=n(116),f=n(23),p=n(7),v=n.n(p),b=n(45),h=n(48),O=n.n(h),k=n(59),y=n(9),g=n(33),_=n(8),N=n(117),S=n(118),x=n(29),E=n.n(x),w=n(119),P=n.n(w),j=n(120),T=n.n(j),D=function(){var e=Object(a.useState)(void 0),t=Object(y.a)(e,2),n=t[0],i=t[1],r=Object(a.useState)(void 0),o=Object(y.a)(r,2),s=o[0],u=o[1];return Object(a.useEffect)((function(){(window.__RENDER_8_SESSION__&&window.__RENDER_8_SESSION__.sessionPromise?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve(null)).then((function(e){var t=Object(c.pathOr)({},["response","namespaces","public"],e);0!==Object.keys(t).length&&(i(function(e){return{source:Object(c.path)(["utm_source","value"],e),medium:Object(c.path)(["utm_medium","value"],e),campaign:Object(c.path)(["utm_campaign","value"],e)}}(t)),u(function(e){return{campaign:Object(c.path)(["utmi_cp","value"],e),page:Object(c.path)(["utmi_p","value"],e),part:Object(c.path)(["utmi_pc","value"],e)}}(t)))})).catch((function(){}))}),[]),{utmParams:n,utmiParams:s}};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function I(e){for(var t=1;t0,s=f,t=function(){return he({success:s&&s.length>=1,isNewItem:!p})},"addToCart"===de&&ce&&ce(),W&&!x&&m(!0),e.next=34;break;case 30:e.prev=30,e.t1=e.catch(0),console.error(e.t1),t=function(){return he(!1)};case 34:setTimeout((function(){ee(!1),t(),x&&location.assign(Oe),d&&d()}),500);case 35:case"end":return e.stop()}}),e,null,[[0,30]])})));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=Object(k.a)(O.a.mark((function e(t){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ke(t),e.next=3,ye();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();!function(e,t,n){var i=e&&e.loading;Object(a.useEffect)((function(){!i&&t&&n()}),[i])}(b,Z,ye);if(!o)return r.a.createElement(g.a,null);var _e=j||!p,Ne=r.a.createElement(u.FormattedMessage,{id:"store/buyButton-label-unavailable"},(function(e){return r.a.createElement("span",{className:K.buyButtonText},e)})),Se=r.a.createElement(E.a,{block:n,disabled:_e,onClick:function(e){ae&&ae({type:"SET_BUY_BUTTON_CLICKED",args:{clicked:!0}}),ie.areAllVariationsSelected&&L&&(b&&b.loading?ke(e):ge(e))},isLoading:Z},p?w:Ne),xe=function(e){var t=e.showTooltipOnSkuNotSelected,n=e.skuSelector;return t&&!n.areAllVariationsSelected?{showTooltip:!0,labelId:A}:{showTooltip:!1}}({showTooltipOnSkuNotSelected:$,skuSelector:ie}),Ee=xe.showTooltip,we=xe.labelId,Pe=Ee&&r.a.createElement("span",{className:K.errorMessage},r.a.createElement(u.FormattedMessage,{id:we}));return Ee?r.a.createElement(T.a,{trigger:"click",label:Pe},Se):Se};function Q(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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 r,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=[],s=[],c=[],u=Object.keys(i),l=Object.keys(n),d=0,m=l;d=N&&_>0&&s.push({normalizedQuantity:_,extraQuantity:_-N,choiceType:h.choiceType,item:Object.assign({name:h.name,sellingPrice:h.price,quantity:_,sellingPriceWithAssemblies:h.price+G(null!==(t=h.children)&&void 0!==t?t:{}),id:h.id},g?{assemblyOptions:g}:{})}),_0)&&o.push(Object.assign({assemblyId:p,id:h.id,quantity:_*r,seller:h.seller},y&&y.length>0?{options:y}:{}))}}catch(e){b.e(e)}finally{b.f()}}var x,E=Q(u);try{for(E.s();!(x=E.n()).done;){var w=x.value,P=i[w]||{};Object.keys(P).length>0&&o.push({assemblyId:w,inputValues:i[w]})}}catch(e){E.e(e)}finally{E.f()}return{options:o,assemblyOptions:{added:s,removed:c,parentPrice:a}}},z=n(121),H=n.n(z),J=n(122),K=n.n(J),Y=n(123),X=n.n(Y);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ee(e){for(var t=1;t0,R=(j&&j.areGroupsValid&&Object.values(j.areGroupsValid)||[]).every(Boolean),A=E||null!=O?O:!R,M=_&&_.installedAppPublic&&_.installedAppPublic.version,V=M&&parseInt(M.split(".")[0])>0?ie:ne;return r.a.createElement(L,{intl:t,addToCart:n,onAddStart:a,onAddFinish:o,showToast:i,orderFormContext:S,skuItems:D,large:C,available:I,isOneClickBuy:l,shouldOpenMinicart:d,setMinicartOpen:f,disabled:A,customToastURL:y,shouldAddToCart:k,showTooltipOnSkuNotSelected:g,checkoutUrl:V},u&&u.length>0?u:r.a.createElement(ae,{showItemsPrice:p,skuItems:D}))}));ce.mapCatalogItemToCart=function(e){var t=e.product,n=e.selectedItem,i=e.selectedQuantity,a=e.selectedSeller,r=e.assemblyOptions;return t&&n&&a&&a.commertialOffer&&[ee(ee({index:0,quantity:i,detailUrl:"/".concat(t.linkText,"/p"),name:t.productName,brand:t.brand,category:t.categories&&t.categories.length>0?t.categories[0]:"",productRefId:t.productReference,seller:a.sellerId,price:a.commertialOffer.Price,listPrice:a.commertialOffer.ListPrice,variant:n.name,skuId:n.itemId,imageUrl:Object(c.path)(["images","0","imageUrl"],n)},$(Object(c.path)(["items"],r),Object(c.path)(["inputValues"],r),a.commertialOffer.Price,i)),{},{sellingPriceWithAssemblies:a.commertialOffer.Price+G(Object(c.path)(["items"],r)||{})})]};var ue=ce;t.default=ue},23:function(e,t){e.exports=ReactApollo},29:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},4:function(e,t){e.exports=ReactIntl},58:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.format-currency@0.x/formatCurrency"]},6:function(e,t){e.exports=Classnames},60:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.format-currency@0.x/FormattedCurrency"]},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},8:function(e,t){e.exports=__RENDER_8_RUNTIME__},89:function(e,t){e.exports=regeneratorRuntime}},[[161,"common",3]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([[10],{100:function(e,t,n){"use strict";e.exports=n(202)},202: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(99),u=n(32),s=n(2),l=n.n(s),a=n(0);n(100);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_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).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.178.0",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:"c084e0828c679d80c25f65cc583badb3bff37979a33310e3ec639bde39c08472",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.178.0") {\n autocomplete(maxRows: $maxRows, searchTerm: $inputValue) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "c084e0828c679d80c25f65cc583badb3bff37979a33310e3ec639bde39c08472") {\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 c=s;s=new Set,c.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),c=t.n(s),m=t(4),o=t(23),u=t(92),d=t.n(u),v=t(8),p=t(7),f=t.n(p),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,p=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=f()(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=c()(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(),p()};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(m.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_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([["SearchBar"],{0:function(e,t){e.exports=React},139:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalContext"]},140:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},141: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"}},142:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/InputSearch"]},143:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconSearch"]},144: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},201:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store-components@3.178.0");var a=Object(t.register)((function(){return n(233)}),e,"vtex.store-components@3.178.0","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(139),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(140),E=n.n(_),C=n(17),M=n.n(C),I=n(141),S=n.n(I),y=n(91),N=n(54),j=n.n(N),P=n(142),T=n.n(P),R=n(143),B=n.n(R),k=n(144),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,"aria-label":M.formatMessage({id:"store/search.autocompleteInput.aria-label"})})))):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,"aria-label":M.formatMessage({id:"store/search.autocompleteInput.aria-label"})}))))},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.length=n.length?{done:!0}:{done:!1,value:n[e++]}},e:function(n){throw n},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 u,a=!0,c=!1;return{s:function(){r=n[Symbol.iterator]()},n:function(){var n=r.next();return a=n.done,n},e:function(n){c=!0,u=n},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw u}}}}function i(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r0?r[0]:null}(n),"-").concat(t,"-").concat(r):n}function g(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(n){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof r&&(r=Math.min(r,4e3));var e=m(n,t,r),o=e.includes("?")?"&":"?";return"".concat(e).concat(o,"width=").concat(t,"&height=").concat(r,"&aspect=true")}}function j(n){return void 0===n?7:Math.max(Math.min(11,n),0)}},34:function(n,t,r){"use strict";function e(n){if(n&&0!==n.length){var t=n.find((function(n){return n.sellerDefault}));return t||n[0]}}r.d(t,"a",(function(){return e}))}}]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([["SKUSelector"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=R},136:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValue"]},137:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.slider-layout@0.x/SliderLayout"]},138:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Dropdown"]},18:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},198:function(e,t,a){"use strict";a.r(t),function(e){var t=a(3);a.p=Object(t.getPublicPath)("vtex.store-components@3.178.0");var n=Object(t.register)((function(){return a(225)}),e,"vtex.store-components@3.178.0","vtex.store-components@3.x","SKUSelector");n.renderHotReload,n.setupHMR}.call(this,a(15)(e))},225:function(e,t,a){"use strict";a.r(t);var n=a(9),i=a(20),r=a(0),o=a.n(r),s=a(18),l=a.n(s),c=a(73),u=a.n(c),m=a(1),d=a(69),b=a.n(d),v=a(7),f=a.n(v),p=a(5),g=a(8),h=a(136),S=a.n(h),O=a(37),I=a.n(O),y=a(28),E=a(29),k=a.n(E),x=a(38),j=a.n(x),N=a(137),w=a.n(N),_=a(6),C=a.n(_),M=a(62),V=a(4),A=a(46),L=a.n(A)()(pe),U=L.CssHandlesProvider,R=L.useContextCssHandles;var T=function(){var e=R().handles,t="".concat(e.errorMessage," c-danger");return o.a.createElement(V.FormattedMessage,{id:"store/sku-selector.variation.select-an-option"},(function(e){return o.a.createElement(o.a.Fragment,null," ",o.a.createElement("span",{className:t},e))}))},P=a(138),D=a.n(P),B=Object(V.defineMessages)({selectPlaceholder:{id:"store/sku-selector.select.placeholder"}});function z(e){var t=e.disabled,a=e.impossible,n=e.available;if(t){if(a)return!0;if(!a&&!n)return!0}return!1}var H=Object(V.injectIntl)((function(e){var t=e.intl,a=e.selectedItem,n=e.displayOptions,i=n.map((function(e){return{label:e.label,value:e.label,disabled:z({disabled:e.disabled,impossible:e.impossible,available:e.available})}}));return o.a.createElement("div",{className:I.a.skuSelectorSelectContainer},o.a.createElement(D.a,{name:"product-summary-sku-selector",options:i,value:a,onChange:function(e,t){return n.reduce((function(e,t){return e[t.label]=t,e}),{})[t].onSelectItem()},placeholder:t.formatMessage(B.selectPlaceholder)}))}));function W(e){var t=e.isAvailable,a=void 0===t||t,n=e.isSelected,i=void 0!==n&&n,s=e.maxPrice,l=e.price,c=e.onClick,u=e.isImage,m=e.variationValue,d=e.variationValueOriginalName,b=e.imageUrl,v=e.imageLabel,f=e.isImpossible,p=e.imageHeight,g=e.imageWidth,h=e.showBorders,S=void 0===h||h,O=e.variationLabel,I=e.label,E=function(e,t){var a=0;return e&&t&&(a=1-t/e),a}(s,l),k=R(),x=k.handles,j=k.withModifiers,N=Object(r.useMemo)((function(){return C()("relative di pointer flex items-center outline-0 ma2 valueWrapper",j("skuSelectorItem",[Object(y.g)(d),i?"selected":""]),u&&"".concat(x.skuSelectorItemImage),f&&"o-20",!a&&"".concat(x.unavailable))}),[u,a,i,f,d,j,x.skuSelectorItemImage,x.unavailable]),w=Boolean(p||g),_={};u&&w&&b&&(_={height:p||"auto",width:g||"auto",padding:0},b=Object(y.a)(b,g,p));var M=m;return"itemValue"!==O&&"variationAndItemValue"!==O||(M="".concat(I," ").concat(m)),o.a.createElement("div",{role:"button",tabIndex:0,onClick:c,style:_,className:N,onKeyDown:function(e){return"Enter"===e.key&&c(e)}},o.a.createElement("div",{className:C()(x.frameAround,"absolute b--action-primary br3 bw1",i&&"ba")}),o.a.createElement("div",{className:C()(x.skuSelectorInternalBox,"w-100 h-100 b--muted-4 br2 b z-1 c-muted-5 flex items-center overflow-hidden",!i&&!f&&"hover-b--muted-2",S&&"ba")},o.a.createElement("div",{className:C()("absolute absolute--fill",!a&&x.diagonalCross)}),o.a.createElement("div",{className:C()(j("valueWrapper",a?"":"unavailable"),u?"h-100":"".concat(x.skuSelectorItemTextValue," c-on-base center pl5 pr5 z-1 t-body"))},u&&b?o.a.createElement("img",{className:x.skuSelectorItemImageValue,src:b,alt:v}):M)),E>0&&o.a.createElement("span",{className:"".concat(x.skuSelectorBadge," b")},o.a.createElement(V.FormattedNumber,{value:E,style:"percent"})))}var F=Object(r.memo)(W),Y=function(){},J=function(e){var t=e.mode,a=void 0===t?"default":t,i=e.maxItems,s=e.showLabel,c=e.variation,u=e.imageWidth,d=e.imageHeight,b=e.showBorders,v=e.maxSkuPrice,f=e.seeMoreLabel,p=e.selectedItem,g=e.showErrorMessage,h=e.showValueForVariation,S=e.containerClasses,O=e.sliderArrowSize,E=e.sliderDisplayThreshold,x=e.sliderItemsPerPage,N=c.originalName,_=c.name,V=c.options,A=i-2,L=Object(r.useState)((function(){return function(e){return Object(m.findIndex)(Object(m.propEq)("label",e))}(p)(V)>=A})),U=Object(n.a)(L,2),R=U[0],P=U[1],D=l()().buyButton,B=void 0===D?{clicked:!1}:D,z=Object(y.e)(N),W=!R&&V.length>i,J=V.length-A,K=V.slice(0,W?A:V.length),G=Object(r.useCallback)((function(){return P(!0)}),[P]),Z=C()("flex flex-column ".concat(I.a.skuSelectorSubcontainer,"--").concat(Object(y.g)(N)),S,I.a.skuSelectorSubcontainer),q=K.length>E&&"slider"===a,Q={itemsPerPage:x,infinite:!0,showNavigationArrows:"always",showPaginationDots:"never",arrowSize:O,fullWidth:!1},$="",X="variation"===($="boolean"==typeof s?s?"variation":"none":s)||"variationAndItemValue"===$,ee=K.map((function(e){var t;return o.a.createElement(F,{isSelected:e.label===p,key:"".concat(e.label,"-").concat(_),isAvailable:e.available,maxPrice:v,onClick:e.impossible?Y:e.onSelectItem,isImage:z,variationValue:e.label,variationValueOriginalName:e.originalName,imageHeight:d,imageWidth:u,showBorders:b,imageUrl:e.image&&Object(M.c)(Object(y.h)(e.image.imageUrl),M.b),imageLabel:null===(t=e.image)||void 0===t?void 0:t.imageLabel,isImpossible:e.impossible,variationLabel:$,label:_})}));return o.a.createElement("div",{className:Z},o.a.createElement("div",{className:"".concat(I.a.skuSelectorNameContainer," ma1")},o.a.createElement("div",{className:"".concat(I.a.skuSelectorTextContainer," db mb3")},X&&o.a.createElement("span",{className:"".concat(I.a.skuSelectorName," c-muted-1 t-small overflow-hidden")},_,g&&B.clicked&&!p&&o.a.createElement(T,null)),p&&h&&o.a.createElement(r.Fragment,null,o.a.createElement("span",{className:"".concat(I.a.skuSelectorNameSeparator," c-muted-1 t-small")},":"," "),o.a.createElement("span",{className:"".concat(I.a.skuSelectorSelectorImageValue," c-muted-1 t-small")},p))),o.a.createElement("div",{className:"".concat(I.a.skuSelectorOptionsList," w-100 inline-flex flex-wrap ml2 items-center")},"select"!==a||z?q?o.a.createElement(w.a,Q,ee):ee:o.a.createElement(H,{selectedItem:p,displayOptions:K}),!R&&W&&o.a.createElement("div",{className:I.a.seeMoreButton},o.a.createElement(k.a,{variation:"tertiary",onClick:G,size:"small",collapseLeft:!0},o.a.createElement(j.a,{id:f,values:{quantity:J},"data-testid":"seeMoreLabel"}))))))},K=Object(r.memo)(J),G=function(e,t){var a=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!a.current)return e();a.current=!1}),t)},Z=a(34);function q(e,t){var a=Object(y.e)(t);return"all"===e||"image"===e&&a}function Q(e){var t;if(!e)return!1;var a=Object(Z.a)(e.sellers);return!!a&&(null===(t=a.commertialOffer)||void 0===t?void 0:t.AvailableQuantity)>0}var $=function(e){var t=e.possibleItems,a=e.selectedVariations,n=e.variationCount,i=e.isSelected,r=Object(m.filter)(Boolean,a);return Object.keys(r).length===n&&i?Q(Object(y.b)(t,a)):t.some(Q)},X=function(e,t){var a=Q(e),n=Q(t);if(a&&!n)return-1;if(!a&&n)return 1;var i=Object(Z.a)(e.sellers),r=Object(Z.a)(t.sellers),o=i?i.commertialOffer.AvailableQuantity:0;return(r?r.commertialOffer.AvailableQuantity:0)-o},ee=function(e){var t=e.variations,a=e.selectedVariations,r=e.skuItems,o=e.onSelectItemMemo,s=e.imagesMap,l=e.variationCount,c=e.hideImpossibleCombinations,u=e.disableUnavailableSelectOptions,d=e.sortVariationsByLabel;return function(e){var b=e,v=t[e],f=v.values,p=v.originalName,g=f.map(function(e){var t=e.selectedVariations,a=e.variationName,i=e.skuItems,r=e.onSelectItemMemo,o=e.imagesMap,s=e.variationCount,l=e.hideImpossibleCombinations,c=e.disableUnavailableSelectOptions;return function(e){var u,d=t[a]===e.name,b=null===(u=null==o?void 0:o[a])||void 0===u?void 0:u[e.name],v=Object(m.clone)(t);v[a]=d?null:e.name;var f=Object(y.c)(i,v);if(f.length>0){var p=f.length>1?f.sort(X):f,g=Object(n.a)(p,1)[0],h=r({name:a,value:e.name,skuId:g.itemId,isMainAndImpossible:!1,possibleItems:p});return{label:e.name,originalName:e.originalName,onSelectItem:h,image:b,available:$({possibleItems:p,selectedVariations:t,variationCount:s,isSelected:d}),impossible:!1,disabled:c}}return l?null:{label:e.name,originalName:e.originalName,onSelectItem:function(){},image:b,available:!0,impossible:!0,disabled:c}}}({selectedVariations:a,variationName:e,skuItems:r,onSelectItemMemo:o,imagesMap:s,variationCount:l,hideImpossibleCombinations:c,disableUnavailableSelectOptions:u})).filter(Boolean);if(d){var h=g.every((function(e){return!Number.isNaN(Number(e.label))}))?function(e){return e.sort((function(e,t){return parseFloat(e.label)-parseFloat(t.label)}))}(Object(i.a)(g)):function(e){return e.sort((function(e,t){return e.labelt.label?1:0}))}(Object(i.a)(g));g=Object(i.a)(h)}return{name:b,originalName:p,options:g}}},te=function(e){var t=e.variations,a=e.selectedVariations,n=e.imagesMap,i=e.onSelectItemMemo,r=e.skuItems,o=e.hideImpossibleCombinations,s=e.disableUnavailableSelectOptions,l=e.sortVariationsByLabel,c=Object.keys(t).length;return Object.keys(t).map(ee({variations:t,selectedVariations:a,skuItems:r,onSelectItemMemo:i,imagesMap:n,variationCount:c,hideImpossibleCombinations:o,disableUnavailableSelectOptions:s,sortVariationsByLabel:l}))};function ae(e){var t=e.seeMoreLabel,a=e.maxItems,i=e.variations,s=e.skuItems,l=e.onSelectItem,c=e.imagesMap,u=e.imageHeight,m=e.imageWidth,d=e.showBorders,b=e.displayMode,v=e.selectedVariations,f=e.showVariationsLabels,p=e.showValueForVariation,g=e.hideImpossibleCombinations,h=e.disableUnavailableSelectOptions,S=e.showVariationsErrorMessage,O=e.variationsSpacing,E=e.sliderDisplayThreshold,k=e.sliderArrowSize,x=e.sliderItemsPerPage,j=e.sortVariationsByLabel,N=void 0!==j&&j,w=R().handles,_=Object(y.d)(O),C=Object(r.useCallback)((function(e){var t=e.name,a=e.value,n=e.skuId,i=e.isMainAndImpossible,r=e.possibleItems;return function(){return l({name:t,value:a,skuId:n,isMainAndImpossible:i,possibleItems:r})}}),[l]),M=Object(r.useMemo)((function(){return{variations:i,selectedVariations:v,imagesMap:c,onSelectItemMemo:C,skuItems:s,hideImpossibleCombinations:g,disableUnavailableSelectOptions:h,sortVariationsByLabel:N}}),[i,v,c,C,s,g,h,N]),V=Object(r.useState)((function(){return te(M)})),A=Object(n.a)(V,2),L=A[0],U=A[1];G((function(){var e,t=!0;return(e=M,new Promise((function(t){t(te(e))}))).then((function(e){t&&U(e)})),function(){t=!1}}),[M]);var T="mb".concat(_);return o.a.createElement("div",{className:"".concat(I.a.skuSelectorContainer," ").concat(w.skuSelectorContainer)},L.map((function(e,n){var i=v[e.name];return o.a.createElement(K,{mode:b,maxItems:a,imageWidth:m,imageHeight:u,showBorders:d,variation:e,selectedItem:i,seeMoreLabel:t,showLabel:f,containerClasses:T,key:"".concat(e.name,"-").concat(n),showErrorMessage:S,showValueForVariation:q(p,e.name),sliderDisplayThreshold:E,sliderArrowSize:k,sliderItemsPerPage:x})})))}var ne=Object(r.memo)(ae);function ie(e,t){var a;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return re(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 r,o=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a=e.length?{done:!0}:{done:!1,value:e[n++]}},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 r,o=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue"},"vi":{"Đ":"D","đ":"d"}}');function a(a,n){if("string"!=typeof a)throw new Error("slugify: string argument expected");var i=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},r=void 0===n.replacement?"-":n.replacement,o=a.split("").reduce((function(t,a){return t+(i[a]||e[a]||a).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"").trim().replace(new RegExp("[\\s"+r+"]+","g"),r);return n.lower&&(o=o.toLowerCase()),n.strict&&(o=o.replace(new RegExp("[^a-zA-Z0-9"+r+"]","g"),"").replace(new RegExp("[\\s"+r+"]+","g"),r)),o}return a.extend=function(t){for(var a in t)e[a]=t[a]},a},e.exports=n(),e.exports.default=n()}},[[198,"common",5]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_0=window.webpackJsonpvtex_store_components_3_178_0||[]).push([["Logo"],{0:function(e,t){e.exports=React},130:function(e,t){e.exports=ReactAMPHTML},177:function(e,t,i){"use strict";i.r(t),function(e){var t=i(3);i.p=Object(t.getPublicPath)("vtex.store-components@3.178.0");var o=Object(t.register)((function(){return i(244)}),e,"vtex.store-components@3.178.0","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"}}},[[177,"common"]]]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];s=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",(function(){return r}))},13:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},15:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(o.usePixel)(),u=a.push,i=Object(r.useRef)(null),s=i.current;Object(r.useEffect)((function(){if(t&&!n&&s!==t){if(!e||Object(c.isEmpty)(e))return;Array.isArray(e)?e.forEach(u):u(e),i.current=t}}),[e,n,t,s,u])}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},57:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store@2.142.0");var r=Object(t.register)((function(){return n(58)}),e,"vtex.store@2.142.0","vtex.store@2.x","HomeWrapper");r.renderHotReload,r.setupHMR}.call(this,n(9)(e))},58:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),c=n(1),a=n(22),u=n.n(a),i=n(23),s=n.n(i),_=n(4);t.default=function(e){var t=e.children,n=Object(c.useRuntime)(),a=n.account,i=n.route,p=(0,n.getSettings)("vtex.store").searchTermPath,l=Object(r.useMemo)((function(){return c.canUseDOM?[{event:"pageInfo",eventType:"homeView",accountName:a,pageTitle:document.title,pageUrl:location.href,pageCategory:"Home"}]:null}),[a]);return Object(_.a)(l,i.routeId),o.a.createElement(r.Fragment,null,o.a.createElement(u.a,{searchTermPath:p}),o.a.createElement(s.a,null),t)}}},[[57,"common"]]]); },function(){ (window.webpackJsonpvtex_store_2_142_0=window.webpackJsonpvtex_store_2_142_0||[]).push([[0],{16:function(r,e,t){"use strict";const n=t(67),o=t(68),a=t(69),s=t(70),c=Symbol("encodeFragmentIdentifier");function i(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(r,e){return e.encode?e.strict?n(r):encodeURIComponent(r):r}function l(r,e){return e.decode?o(r):r}function p(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function f(r){const e=(r=p(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function y(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function d(r,e){i((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&l(t,r).includes(r.arrayFormatSeparator);t=a?l(t,r):t;const s=o||a?t.split(r.arrayFormatSeparator).map(e=>l(e,r)):null===t?t:l(t,r);n[e]=s};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?l(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map(e=>l(e,r));void 0!==n[e]?n[e]=[].concat(n[e],a):n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),n=Object.create(null);if("string"!=typeof r)return n;if(!(r=r.trim().replace(/^[?#&]/,"")))return n;for(const o of r.split("&")){if(""===o)continue;let[r,s]=a(e.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:l(s,e),t(l(r,e),s,n)}for(const r of Object.keys(n)){const t=n[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=y(t[r],e);else n[r]=y(t,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((r,e)=>{const t=n[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=function r(e){return Array.isArray(e)?e.sort():"object"==typeof e?r(Object.keys(e)).sort((r,e)=>Number(r)-Number(e)).map(r=>e[r]):e}(t):r[e]=t,r},Object.create(null))}e.extract=f,e.parse=d,e.stringify=(r,e)=>{if(!r)return"";i((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],n=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[",o,"]"].join("")]:[...t,[u(e,r),"[",u(o,r),"]=",u(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[]"].join("")]:[...t,[u(e,r),"[]=",u(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[u(t,r),e,u(o,r)].join("")]:[[n,u(o,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,u(e,r)]:[...t,[u(e,r),"=",u(n,r)].join("")]}}(e),o={};for(const e of Object.keys(r))t(e)||(o[e]=r[e]);const a=Object.keys(o);return!1!==e.sort&&a.sort(e.sort),a.map(t=>{const o=r[t];return void 0===o?"":null===o?u(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?u(t,e)+"[]":o.reduce(n(t),[]).join("&"):u(t,e)+"="+u(o,e)}).filter(r=>r.length>0).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=a(r,"#");return Object.assign({url:t.split("?")[0]||"",query:d(f(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,e)}:{})},e.stringifyUrl=(r,t)=>{t=Object.assign({encode:!0,strict:!0,[c]:!0},t);const n=p(r.url).split("?")[0]||"",o=e.extract(r.url),a=e.parse(o,{sort:!1}),s=Object.assign(a,r.query);let i=e.stringify(s,t);i&&(i="?"+i);let l=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(l="#"+(t[c]?u(r.fragmentIdentifier,t):r.fragmentIdentifier)),`${n}${i}${l}`},e.pick=(r,t,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);const{url:o,query:a,fragmentIdentifier:i}=e.parseUrl(r,n);return e.stringifyUrl({url:o,query:s(a,t),fragmentIdentifier:i},n)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}},67:function(r,e,t){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>"%"+r.charCodeAt(0).toString(16).toUpperCase())},68:function(r,e,t){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(r,e){try{return decodeURIComponent(r.join(""))}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],a(t),a(n))}function s(r){try{return decodeURIComponent(r)}catch(o){for(var e=r.match(n),t=1;t{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]}},70:function(r,e,t){"use strict";r.exports=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object(o.usePixel)(),c=i.push,u=Object(n.useRef)(null),s=u.current;Object(n.useEffect)((function(){if(t&&!r&&s!==t){if(!e||Object(a.isEmpty)(e))return;Array.isArray(e)?e.forEach(c):c(e),u.current=t}}),[e,r,t,s,c])}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},,function(e,t){e.exports=ReactApollo},,,function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(0),o=r(1),a=r(4),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=e.cacheKey,i=e.skip,c=Object(o.useRuntime)(),u=c.route,s=c.account,l=null!=r?r:u.routeId,p=Object(n.useMemo)((function(){return!o.canUseDOM||i?null:{event:"pageView",pageTitle:null!=t?t:document.title,pageUrl:location.href,referrer:0===document.referrer.indexOf(location.origin)?void 0:document.referrer,accountName:s,routeId:(null==u?void 0:u.routeId)?u.routeId:""}}),[s,t,o.canUseDOM,l]);Object(a.a)(i?null:p,l)},c=["store.search","store.product"];t.a=function(e){var t=e.title,r=Object(o.useRuntime)().route,n=r&&c.some((function(e){return 0===r.routeId.indexOf(e)}));return i({title:t,skip:n}),null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1);function o(){var e=Object(n.useRuntime)(),t=e.route,r=e.rootPath,o=void 0===r?"":r,a=t.canonicalPath,i=window.__hostname__||window.location&&window.location.hostname;return i&&a?"https://".concat(i).concat(o).concat(a):null}},,,function(e,t,r){"use strict";var n=r(0),o=r.n(n);t.a=function(e){var t=e.children,r=e.className;return o.a.createElement("div",{className:r},o.a.createElement("div",{className:"flex flex-column min-vh-100 w-100"},t))}},,,,,,,function(e,t){e.exports=ReactIntl},,,,,,,,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastProvider"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/PWAContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderQueue"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.shipping-option-components@1.x/ShippingOptionContext"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationAddToCart"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormProfile"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormShipping"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormCheckin"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/OrderFormContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryOrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastContext"]},,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t),function(e){var t=r(3);r.p=Object(t.getPublicPath)("vtex.store@2.142.0");var n=Object(t.register)((function(){return r(73)}),e,"vtex.store@2.142.0","vtex.store@2.x","StoreWrapper");n.renderHotReload,n.setupHMR}.call(this,r(9)(e))},,function(e,t,r){"use strict";r.r(t);var n=r(19),o=r(6),a=r(8),i=r(0),c=r.n(i),u=r(1),s=r(5),l=r(35),p=r.n(l),d=r(36),f=r(37),m=r(38),O=r(39),h=r(40),_=["firstName","lastName","document","id","email","phone","isAuthenticated"];var v=function(){var e=Object(s.usePixel)().push;return Object(i.useEffect)((function(){(window.__RENDER_8_SESSION__&&window.__RENDER_8_SESSION__.sessionPromise?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve(null)).then((function(t){var r,n,o=null===(n=null===(r=null==t?void 0:t.response)||void 0===r?void 0:r.namespaces)||void 0===n?void 0:n.profile;if(o){var a=function(e){return e?_.reduce((function(t,r){var n,o=null===(n=e[r])||void 0===n?void 0:n.value;return o&&(t[r]="isAuthenticated"===r?function(e){return"true"===e.toLowerCase()}(o):o),t}),{}):{}}(o);e(Object.assign({event:"userData"},a))}}))}),[e]),null},b=r(10),g=r(41),E=r(42),x=r(13),j=r(51),y=r(52),N=r(20),R=r(7),w=r(43),S=r.n(w),P=r(44),C=r.n(P),F=r(45),M=r.n(F),T=r(46),D=r.n(T),I=r(47),A=r.n(I),k=r(48),U=r(49),q=r.n(U);function W(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 r,n=Object(N.a)(e);if(t){var o=Object(N.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(y.a)(this,r)}}var L=function(e){Object(j.a)(r,e);var t=W(r);function r(){var e;Object(g.a)(this,r);for(var n=arguments.length,o=new Array(n),i=0;i=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,i=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})),script:[T&&{type:"text/javascript",src:"".concat(C,"/register.js").concat(X).concat(H?"":"&__disableSW=true","&scope=").concat(encodeURIComponent(C)),defer:!0}].filter(Boolean),link:[].concat(Object(n.a)(Z||[]),Object(n.a)(!l&&Y?[{rel:"canonical",href:encodeURI(Y)}]:[])).filter(Boolean)}),c.a.createElement(s.PixelProvider,{currency:x},c.a.createElement(d.PWAProvider,{rootPath:C},c.a.createElement(b.a,{title:J}),c.a.createElement(v,null),c.a.createElement(p.a,{positioning:"window"},c.a.createElement(K,null),L?oe:c.a.createElement(z,null,oe)))),function(){try{return u.canUseDOM&&window.top!==window.self&&window.top.__provideRuntime}catch(e){return!1}}()&&c.a.createElement(u.NoSSR,null,c.a.createElement(u.ExtensionPoint,{id:"highlight-overlay"})))}}],[[71,"common",0]]]); }], document.currentScript.dataset.index)