enqueueScripts([function(){ (window.webpackJsonpvtex_store_components_3_178_3=window.webpackJsonpvtex_store_components_3_178_3||[]).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.3");var o=Object(t.register)((function(){return n(242)}),e,"vtex.store-components@3.178.3","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_3=window.webpackJsonpvtex_store_components_3_178_3||[]).push([["ProductBrand"],{0:function(e,n){e.exports=React},134:function(e,n){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Brand"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},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.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"brand"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"df500db2f91c85a679a3003aeabb91be70628eec702bf9732e63adc85647cbfb",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:264}};a.loc.source={body:'query Brand($id: Int) @context(sender: "vtex.store-components@3.178.3") {\n brand(id: $id) @context(provider: "vtex.store-graphql") @runtimeMeta(hash: "df500db2f91c85a679a3003aeabb91be70628eec702bf9732e63adc85647cbfb") {\n slug\n imageUrl\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var a=0;a0;){var c=d;d=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){d.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&a.definitions.push(t)})),a}(a,"Brand")},18:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},183:function(e,n,a){"use strict";a.r(n),function(e){var n=a(3);a.p=Object(n.getPublicPath)("vtex.store-components@3.178.3");var t=Object(n.register)((function(){return a(232)}),e,"vtex.store-components@3.178.3","vtex.store-components@3.x","ProductBrand");t.renderHotReload,t.setupHMR}.call(this,a(15)(e))},23:function(e,n){e.exports=ReactApollo},232:function(e,n,a){"use strict";a.r(n),a.d(n,"PRODUCT_BRAND_CSS_HANDLES",(function(){return N}));var t=a(20),r=a(0),i=a.n(r),o=a(23),d=a(18),c=a.n(d),l=a(7),u=a.n(l),s=a(46),m=a.n(s)()(N),v=m.CssHandlesProvider,f=m.useContextCssHandles;var p=function(e){var n=e.brandName,a=e.withLink,t=e.slug,r=f().handles;if(a&&t){var o="/".concat(t);return i.a.createElement("a",{href:o,className:"".concat(r.productBrandNameLink),"data-testid":"name-redirect"},i.a.createElement("span",{className:"".concat(r.productBrandName)},n))}return i.a.createElement("span",{className:"".concat(r.productBrandName)},n)},g=new RegExp(/.+ids\/(\d+)/);new RegExp(/http:\/\//);function h(e,n,a){return e.includes("/arquivos/ids/")?"".concat(function(e){var n=g.exec(e);return n&&n.length>0?n[0]:null}(e),"-").concat(n,"-").concat(a):e}var b=a(134),k=a.n(b),N=["productBrandContainer","productBrandLogo","productBrandLogoWrapper","productBrandLogoLink","productBrandLogoSpacer","productBrandNameSpacer"].concat(Object(t.a)(["productBrandNameLink","productBrandName"]));n.default=function(e){var n,a,t=e.displayMode,r=void 0===t?"logo":t,d=e.fallbackToText,l=void 0===d||d,s=e.loadingPlaceholder,m=void 0===s?"logo":s,f=e.height,g=void 0===f?100:f,b=e.excludeBrands,x=e.logoWithLink,E=e.withLink,_=void 0===E?"none":E,w=e.brandName,S=e.brandId,B=e.classes,y=function(e,n){var a=c()(),t=null==a?void 0:a.product;return e&&n||!t?{brandName:e,brandId:n}:{brandName:t.brand,brandId:Number(t.brandId)}}(w,S),L=y.brandName,D=y.brandId,R=u()(N,{classes:B}),O=R.handles,P=R.withModifiers,C=Object(o.useQuery)(k.a,{variables:{id:Number(D)},ssr:!1}),A=C.data,M=C.loading,T=C.error,I="logo"===_||"logoAndText"===_||Boolean(x),q="text"===_||"logoAndText"===_;if(!L||!D)return null;if(function(e,n,a){return!!Array.isArray(a)&&(a.includes(e)||a.includes(n))}(L,Number(D),b))return null;var H=i.a.createElement(v,{handles:O,withModifiers:P},i.a.createElement(p,{brandName:L,withLink:q,slug:null===(n=null==A?void 0:A.brand)||void 0===n?void 0:n.slug})),V=function(e){var n=e.children;return i.a.createElement("div",{className:"".concat(O.productBrandContainer)},n)};if("text"===r)return i.a.createElement(V,null,H);if(g||console.warn("ProductBrand: It is strongly recommended that the height of the logo should be set, to avoid shifting positions of elements while the logo is loading."),M)return"logo"===m?i.a.createElement(V,null,i.a.createElement("div",{style:{height:g},className:"".concat(O.productBrandLogoSpacer)})):"text"===m&&l?i.a.createElement(V,null,i.a.createElement("span",{className:"".concat(O.productBrandNameSpacer," o-0")},H)):null;if(T||!(null==A?void 0:A.brand))return null;var U=A.brand,F=U.imageUrl,j=U.slug;if(null===F&&l)return i.a.createElement(V,null,H);if(null===F&&!l)return null;var W=null!==(a=null===window||void 0===window?void 0:window.devicePixelRatio)&&void 0!==a?a:1,J="/".concat(j),Q=function(e){var n=e.imageUrl,a=e.width,t=void 0===a?"auto":a,r=e.height,i=void 0===r?"auto":r,o=t,d=i;"number"==typeof t&&(o=Math.min(t,3e3)),"number"==typeof i&&(d=Math.min(i,4e3));var c=h(n,o,d),l=c.includes("?")?"&":"?";return"".concat(c).concat(l,"width=").concat(o,"&height=").concat(d,"&aspect=true")}({imageUrl:"/arquivos/ids".concat(F),height:g?g*W:void 0}),$=i.a.createElement("img",{className:"".concat(O.productBrandLogo),src:Q,alt:L,style:{height:g||"auto"}});return i.a.createElement(V,null,i.a.createElement("div",{style:{height:g},className:"".concat(O.productBrandLogoWrapper)},I?i.a.createElement("a",{href:J,className:"".concat(O.productBrandLogoLink),"data-testid":"logo-redirect"}," ",$," "):$))}},46:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/createCssHandlesContext"]},7:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]}},[[183,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_3=window.webpackJsonpvtex_store_components_3_178_3||[]).push([["ProductName"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=R},18:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},191: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.3");var n=Object(t.register)((function(){return a(192)}),e,"vtex.store-components@3.178.3","vtex.store-components@3.x","ProductName");n.renderHotReload,n.setupHMR}.call(this,a(15)(e))},192:function(e,t,a){"use strict";a.r(t);var n=a(10),r=a(0),o=a.n(r),c=a(1),i=a(18),l=a.n(i),d=a(33),s=a(7),u=a.n(s),p=a(8),m=a(38),f=a.n(m),h=["productNameContainer","sponsoredBadge","productBrand","productSku","productReference","productNameLoader","productNameBrandLoader","productNameSkuLoader","productNameLink"],N=function(e){var t=e.displayMode,a=e.linkProps,c=e.className,i=e.children;return"plainText"===t?o.a.createElement(r.Fragment,null,i):o.a.createElement(p.Link,Object(n.a)({className:c},a),i)};function v(e){var t=e.productReferenceClass,a=e.brandNameClass,n=e.skuNameClass,r=e.loaderClass,c=e.className,i=e.showSku,l=void 0!==i&&i,s=e.showBrandName,p=void 0!==s&&s,m=e.showProductReference,v=void 0!==m&&m,y=e.showSponsoredBadge,b=void 0!==y&&y,E=e.sponsoredBadgeLabel,O=e.tag,g=void 0===O?"div":O,x=e.classes,_=e.name,R=e.skuName,w=e.brandName,k=e.productReference,j=e.displayMode,C=void 0===j?"plainText":j,M=e.productLink,P=e.productId,L=u()(h,{classes:x}).handles;if(!_)return o.a.createElement("div",{className:"".concat(L.productNameContainer," ").concat(L.productNameLoader," ").concat(null!=r?r:"")},o.a.createElement(d.a,{style:{width:"100%",height:"100%"},width:456,height:100,preserveAspectRatio:"xMinYMin meet"},o.a.createElement("rect",{height:"1.125em",width:"75%",x:"15%"}),o.a.createElement("rect",{height:"1.125em",width:"50%",x:"25%",y:"1.75em"})));var B={page:"store.product",params:{slug:M,id:P}};return o.a.createElement(g,{className:"".concat(L.productNameContainer," mv0 ").concat(null!=c?c:"")},o.a.createElement(N,{displayMode:C,className:"".concat(L.productNameLink," pointer c-link hover-c-link active-c-link no-underline underline-hover"),linkProps:B},b&&o.a.createElement("span",{className:"".concat(L.sponsoredBadge," db c-muted-1 t-mini-s")},o.a.createElement(f.a,{id:E})),o.a.createElement("span",{className:"".concat(L.productBrand," ").concat(null!=a?a:"")},_," ",p&&w&&"- ".concat(w)),l&&R&&o.a.createElement("span",{className:"".concat(L.productBrand," ").concat(null!=n?n:"")},R),v&&k&&o.a.createElement("span",{className:"".concat(L.productReference," ").concat(null!=t?t:"")},"REF: ".concat(k))))}function y(e){var t,a,r,i,d,s,u=l()();if(!u||Object(c.isEmpty)(u))return o.a.createElement(v,e);var p=u.product,m=u.selectedItem;return o.a.createElement(v,Object(n.a)({},e,{tag:null!==(t=e.tag)&&void 0!==t?t:"h1",name:null!==(a=e.name)&&void 0!==a?a:null==p?void 0:p.productName,skuName:null!==(r=e.skuName)&&void 0!==r?r:null==m?void 0:m.name,productReference:null!==(i=e.productReference)&&void 0!==i?i:null==p?void 0:p.productReference,brandName:null!==(d=e.brandName)&&void 0!==d?d:null==p?void 0:p.brand,className:null!==(s=e.className)&&void 0!==s?s:"t-heading-4",displayMode:e.displayMode,productLink:null==p?void 0:p.linkText,productId:null==p?void 0:p.productId}))}y.schema={title:"admin/editor.productName.title",description:"admin/editor.productName.description",type:"object",properties:{showBrandName:{type:"boolean",title:"admin/editor.productName.showBrandName.title",default:!1,isLayout:!0},showSku:{type:"boolean",title:"admin/editor.productName.showSku.title",default:!1,isLayout:!0},showProductReference:{type:"boolean",title:"admin/editor.productName.showProductReference.title",default:!1,isLayout:!0},displayMode:{type:"string",title:"admin/editor.productName.displayMode.title",enum:["plainText","linkToProductPage"],enumNames:["admin/editor.productName.displayMode.plainText","admin/editor.productName.displayMode.linkToProductPage"],default:"plainText"}}},t.default=y},33:function(e,t,a){"use strict";var n=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"]),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__}},[[191,"common"]]]); },function(){ (window.webpackJsonpvtex_store_components_3_178_3=window.webpackJsonpvtex_store_components_3_178_3||[]).push([[10],{101: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(100),u=n(32),s=n(2),l=n.n(s),a=n(0);n(101);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_3=window.webpackJsonpvtex_store_components_3_178_3||[]).push([[4],{115: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.3",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:"90d3f4587ca9c961cf18671ebb1d26439708415c178059349aecb75f7969c69e",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.3") {\n autocomplete(maxRows: $maxRows, searchTerm: $inputValue) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "90d3f4587ca9c961cf18671ebb1d26439708415c178059349aecb75f7969c69e") {\n itemsReturned {\n thumb\n name\n href\n productId\n criteria\n slug\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t0;){var m=s;s=new Set,m.forEach((function(e){l.has(e)||(l.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return l.forEach((function(n){var a=i(e,n);a&&t.definitions.push(a)})),t}(t,"Autocomplete")},160: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(10),i=t(9),r=t(0),l=t.n(r),s=t(6),m=t.n(s),c=t(4),o=t(23),u=t(92),d=t.n(u),v=t(8),p=t(7),f=t.n(p),k=(t(160),t(115)),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=m()(R.resultsList,"z-max w-100 bl-ns bb br-ns bw1 b--muted-4 bg-base c-on-base t-body left-0 list pv4 ph0 mv0 list overflow-y-auto",D?"fixed":"absolute",(!s||!u)&&"dn"),T=function(){k(),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(c.FormattedMessage,{id:"store/search.searchFor",values:{term:l.a.createElement("span",{className:R.searchTerm},'"'.concat(u,'"'))}});return l.a.createElement("div",{style:C},l.a.createElement("ul",Object(a.a)({className:O},N()),s?V?l.a.createElement("div",{className:A({})},l.a.createElement(q,null)):l.a.createElement(r.Fragment,null,l.a.createElement("li",x({key:"ft".concat(u),item:{term:j},index:0,onClick:T}),w?l.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},className:A({itemIndex:0,highlightedIndex:I})},L):function(e){return y?l.a.createElement(v.Link,{className:A({itemIndex:0,highlightedIndex:I}),to:y.replace(/\$\{term\}/g,e)},L):l.a.createElement(v.Link,{page:"store.search",params:{term:e},query:"map=ft",className:A({itemIndex:0,highlightedIndex:I})},L)}(j)),F.map((function(e,n){return l.a.createElement("li",x({key:"".concat(e.name).concat(n),index:n+1,item:e,onClick:T}),l.a.createElement(v.Link,Object(a.a)({},function(e){var n=e.slug.split("/");if(e.criteria){var t="&_c=".concat(n[0]);return{page:"store.search",params:{term:n.join("/")},query:"map=c,ft".concat(t)}}return{page:"store.product",params:{slug:e.slug,id:e.productId},query:""}}(e),{className:A({itemIndex:n+1,highlightedIndex:I,hasThumb:!!e.thumb})}),e.thumb&&l.a.createElement("img",{width:50,height:50,alt:e.name,className:"".concat(R.resultsItemImage," mr4"),src:b(e.thumb)}),l.a.createElement("div",{className:"".concat(R.resultsItemName," flex justify-start items-center")},e.name)))}))):null))}}}]); },function(){ (window.webpackJsonpvtex_store_components_3_178_3=window.webpackJsonpvtex_store_components_3_178_3||[]).push([["SearchBar"],{0:function(e,t){e.exports=React},140:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalContext"]},141:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},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.3");var a=Object(t.register)((function(){return n(233)}),e,"vtex.store-components@3.178.3","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(140),i=n.n(l),u=n(8),p=n(7),d=n.n(p),m=n(70),h=n.n(m),f=n(10),b=n(6),v=n.n(b),O=n(87),g=n(56),x=n.n(g),E=n(141),_=n.n(E),C=n(17),M=n.n(C),I=n(99),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,H=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(_("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(_("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(E.externalSearchButtonWrapper," bw1 bl b--muted-4 flex items-center ")},c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(_("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(E.suffixWrapper," flex h-100")},P,R,B),w=c.a.createElement("span",{className:"".concat(l," ").concat(_("searchBarIcon","prefix")," ")},c.a.createElement(U,null)),A=v()("w-100 flex",n&&E.compactMode);return"search"===O?c.a.createElement("form",{action:"#",onSubmit:function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},className:E.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:E.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=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,H=Object(s.useIntl)(),W=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 E?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,E,C]),te=c.a.createElement(G,{placeholder:M()({id:t,intl:H}),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:W,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.getLabelProps,v=e.selectedItem,O=e.highlightedIndex,g=e.isOpen,x=e.closeMenu,y=e.openMenu;return c.a.createElement("div",{className:"relative-m w-100 ".concat(F("searchBarInnerContainer",[g?"opened":"",i?"filled":""]))},c.a.createElement("label",Object(f.a)({},h(),{className:S.a.visuallyHidden}),M()({id:t,intl:H})),c.a.createElement(G,Object(f.a)({autoFocus:b,compactMode:p,hasIconLeft:d,iconClasses:m,openAutocompleteOnFocus:N,submitOnIconClick:P,displayMode:T,inputType:k,openMenu:y,inputErrorMessage:X},r({onKeyDown:function(e){if("Enter"===e.key&&null===O){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_3=window.webpackJsonpvtex_store_components_3_178_3||[]).push([["SKUSelector"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=R},137:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValue"]},138:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.slider-layout@0.x/SliderLayout"]},139: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.3");var n=Object(t.register)((function(){return a(225)}),e,"vtex.store-components@3.178.3","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(137),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(138),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(139),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(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];st.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1}));if(a){var u=a.split("="),p=Object(r.a)(u,2)[1];return p&&";"===p[p.length-1]?p.substring(0,p.length-1):p}}}function a(){var n,t=null===(n=window)||void 0===n?void 0:n.__RUNTIME__.segmentToken;if(t)return JSON.parse(atob(t)).countryCode}function u(){var n=localStorage.getItem("orderform");if(n)return JSON.parse(n||"{}").id}}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([[1],{19:function(e,t,n){"use strict";n.d(t,"a",(function(){return z})),n.d(t,"c",(function(){return B})),n.d(t,"b",(function(){return _}));var r=n(0),i=n.n(r),a=n(66),o=n(67),c=n(72),p=n(71),s=n(58);function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(p.a)(this,n)}}var l=function(e){Object(c.a)(n,e);var t=u(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(o.a)(n,[{key:"render",value:function(){return this.state.hasError?this.props.fallback:this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),n}(r.Component),d=n(9),b=n.n(d),f=n(15),v=n(5),h=n(35),O=n(4),g=n(39),k=n(32),j=n.n(k),m=n(20),S=n(23),I=n(2),y=n(21),x=function(e){var t=e.children,n=function(){var e=Object(r.useState)(),t=Object(v.a)(e,2),n=t[0],i=t[1],a=Object(r.useState)(!0),o=Object(v.a)(a,2),c=o[0],p=o[1],s=Object(r.useState)(),u=Object(v.a)(s,2),l=u[0],d=u[1],k=Object(r.useState)(),x=Object(v.a)(k,2),P=x[0],C=x[1],D=Object(r.useState)(),z=Object(v.a)(D,2),B=z[0],_=z[1],M=Object(r.useState)([]),E=Object(v.a)(M,2),w=E[0],T=E[1],L=Object(r.useState)(),A=Object(v.a)(L,2),N=A[0],R=A[1],U=Object(r.useState)(),F=Object(v.a)(U,2),H=F[0],V=F[1],G=Object(r.useState)(),J=Object(v.a)(G,2),K=J[0],X=J[1],Y=Object(r.useState)(),Z=Object(v.a)(Y,2),q=Z[0],Q=Z[1],W=Object(r.useState)([]),$=Object(v.a)(W,2),ee=$[0],te=$[1],ne=Object(r.useState)(),re=Object(v.a)(ne,2),ie=re[0],ae=re[1],oe=Object(r.useState)(),ce=Object(v.a)(oe,2),pe=ce[0],se=ce[1],ue=Object(r.useState)(),le=Object(v.a)(ue,2),de=le[0],be=le[1],fe=Object(h.useRuntime)().account,ve=Object(h.useSSR)(),he=Object(O.useIntl)(),Oe=Object(g.useOrderItems)().addItems;j()({eventId:y.SHIPPING_MODAL_PIXEL_EVENT_ID,handler:function(e){ae(e.data.addToCartInfo)}});var ge=Object(r.useCallback)(function(){var e=Object(f.a)(b.a.mark((function e(t,n,r,i){var a,o,c,s,u,l=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>4&&void 0!==l[4]&&l[4],e.next=3,Object(m.getPickups)(t,n,fe);case 3:if(c=e.sent,T(null!==(o=null==c?void 0:c.items)&&void 0!==o?o:[]),0!==(null==c?void 0:c.items.length)){e.next=8;break}return p(!1),e.abrupt("return");case 8:if(!(s=Object(S.b)("pickupPoint"))){e.next=14;break}return u=c.items.find((function(e){return e.pickupPoint.id===s})),R(u),e.next=14,Object(m.updateSession)(t,n,r,u,i);case 14:a||p(!1);case 15:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}(),[fe]);Object(r.useEffect)((function(){if(!ve){var e=Object(S.b)("zip-code"),t=Object(S.a)(),n=Object(S.b)("shipping");if(i(e),Q(n),d(t),e)try{Object(m.getAddress)(t,e,fe).then((function(r){_(r.city),V(r.geoCoordinates),ge(t,e,r.geoCoordinates,n)}))}catch(e){p(!1)}else p(!1)}}),[fe,ve,ge]);var ke=function(e,t){C({code:e,message:t}),p(!1),setTimeout((function(){C(void 0)}),3e3)},je=function(){var e=Object(f.a)(b.a.mark((function e(t){var n,r,i,a,o,c;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.prev=1,n=Object(S.c)(),e.next=5,Object(m.getCartProducts)(n);case 5:return r=e.sent,i=r.map((function(e){return e.id})),e.next=9,t(i);case 9:return a=e.sent,o=a.unavailableProducts,c=r.map((function(e,t){return{cartItemIndex:t,product:e}})).filter((function(e){return o.some((function(t){return t===e.product.id}))})),te(c),p(!1),e.abrupt("return",c);case 17:return e.prev=17,e.t0=e.catch(1),p(!1),te([]),e.abrupt("return",[]);case 22:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=Object(f.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:te([]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=Object(f.a)(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(S.c)(),e.next=3,Object(m.removeCartProductsById)(t,ee.map((function(e){return e.cartItemIndex})));case 3:de&&de();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ie=function(){var e=Object(f.a)(b.a.mark((function e(t){var n,r,a,o,c,s,u=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(u.length>1&&void 0!==u[1])||u[1],t){e.next=4;break}return ke("POSTAL_CODE_NOT_FOUND",he.formatMessage(I.default.postalCodeInputPlaceHolder)),e.abrupt("return");case 4:if(l){e.next=6;break}return e.abrupt("return");case 6:return p(!0),e.prev=7,e.next=10,Object(m.getAddress)(l,t,fe);case 10:if(r=e.sent,a=r.geoCoordinates,o=r.city,0!==a.length){e.next=16;break}return ke("INVALID_POSTAL_CODE",he.formatMessage(I.default.postalCodeInputError)),e.abrupt("return");case 16:return e.next=18,Object(m.getCatalogCount)(t,a);case 18:if(c=e.sent,0!==c.total){e.next=23;break}return ke(y.PRODUCTS_NOT_FOUND_ERROR_CODE,he.formatMessage(I.default.noPickupsStateDescription,{postalCode:" ".concat(t)})),e.abrupt("return");case 23:if(!(s=Object(S.c)())){e.next=27;break}return e.next=27,Object(m.updateOrderForm)(l,t,s);case 27:return _(o),V(a),i(t),e.next=32,Object(m.updateSession)(l,t,a);case 32:return e.next=34,ge(l,t,a,q,!0);case 34:e.next=40;break;case 36:return e.prev=36,e.t0=e.catch(7),ke("INVALID_POSTAL_CODE",he.formatMessage(I.default.postalCodeInputError)),e.abrupt("return");case 40:Q(void 0),R(void 0),n||p(!1),n&&location.reload();case 44:case"end":return e.stop()}}),e,null,[[7,36]])})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=Object(f.a)(b.a.mark((function e(t){var r,i=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!(i.length>1&&void 0!==i[1])||i[1],l&&n&&H){e.next=3;break}return e.abrupt("return");case 3:return R(t),e.next=6,Object(m.updateSession)(l,n,H,t,r?"pickup-in-point":q);case 6:location.reload();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xe=function(){var e=Object(f.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l&&n&&H){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Object(m.updateSession)(l,n,H,N,"delivery");case 4:location.reload();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(r.useEffect)((function(){X(B?"".concat(B,", ").concat(n):n)}),[n,B]);var Pe=function(){var e=Object(f.a)(b.a.mark((function e(t){var r,i,a,o,c,p;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.type,e.next="UPDATE_ZIPCODE"===e.t0?3:"UPDATE_PICKUP"===e.t0?13:"SELECT_DELIVERY_SHIPPING_OPTION"===e.t0?28:"ABORT_UNAVAILABLE_ITEMS_ACTION"===e.t0?42:"CONTINUE_UNAVAILABLE_ITEMS_ACTION"===e.t0?44:46;break;case 3:return r=t.args,i=r.zipcode,a=r.reload,e.next=6,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailability)(i,l,t,fe));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 6:if(0!==e.sent.length){e.next=10;break}return Ie(i,a),e.abrupt("break",47);case 10:return se(he.formatMessage(I.default.unavailableItemsModalDescription,{addressLabel:K})),be((function(){return function(){return Ie(i,a)}})),e.abrupt("break",47);case 13:return o=t.args,c=o.pickup,p=o.shouldPersistFacet,se("pickup"),e.next=17,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailabilityByPickup)(c.pickupPoint.id,t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 17:if(0!==e.sent.length){e.next=25;break}if(ye(c,p),!ie){e.next=24;break}return e.next=23,Oe(ie.skuItems,ie.options);case 23:ae(void 0);case 24:return e.abrupt("break",47);case 25:return se(he.formatMessage(I.default.unavailableItemsModalForPickupDescription,{pickupLabel:null==N?void 0:N.pickupPoint.friendlyName})),be((function(){return function(){return ye(c,p)}})),e.abrupt("break",47);case 28:return se("delivery"),e.next=31,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailabilityByDelivery)(n,l,t,fe));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 31:if(0!==e.sent.length){e.next=39;break}if(xe(),!ie){e.next=38;break}return e.next=37,Oe(ie.skuItems,ie.options);case 37:ae(void 0);case 38:return e.abrupt("break",47);case 39:return se(he.formatMessage(I.default.unavailableItemsModalForDeliveryDescription,{addressLabel:K})),be((function(){return function(){return xe()}})),e.abrupt("break",47);case 42:return me(),e.abrupt("break",47);case 44:return Se(),e.abrupt("break",47);case 46:return e.abrupt("break",47);case 47:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ce=ee.length>0;return{dispatch:Pe,state:{zipcode:n,isLoading:c,countryCode:l,submitErrorMessage:P,city:B,pickups:w,selectedPickup:N,geoCoordinates:H,addressLabel:K,shippingOption:q,areThereUnavailableCartItems:Ce,unavailableCartItems:ee,unavailabilityMessage:pe}}}(),a=n.dispatch,o=n.state;return i.a.createElement(C.Provider,{value:o},i.a.createElement(D.Provider,{value:a},t))},P={pickups:[],isLoading:!0,areThereUnavailableCartItems:!1,unavailableCartItems:[]},C=Object(r.createContext)(P),D=Object(r.createContext)((function(e){})),z=function(e){var t=e.children;return i.a.createElement(l,{fallback:t},i.a.createElement(x,null,t))},B=function(){return Object(r.useContext)(C)},_=function(){return Object(r.useContext)(D)}},2:function(e,t,n){"use strict";n.r(t);var r=n(4),i=Object(r.defineMessages)({deliverToButtonLabel:{id:"store/shipping-option-zipcode.deliverToButton.label"},deliverToButtonPlaceholder:{id:"store/shipping-option-zipcode.deliverToButton.placeholder"},storeButtonLabel:{id:"store/shipping-option-zipcode.storeButton.label"},storeButtonPlaceHolder:{id:"store/shipping-option-zipcode.storeButton.placeholder"},storeDeliverDrawerTitle:{id:"store/shipping-option-zipcode.deliverDrawer.title"},pickupDrawerTitleEmpty:{id:"store/shipping-option-zipcode.pickupDrawer.title.empty"},pickupDrawerTitleFilled:{id:"store/shipping-option-zipcode.pickupDrawer.title.filled"},postalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.postalCodeInput.placeholder"},postalCodeInputError:{id:"store/shipping-option-zipcode.postalCodeInput.error"},updateButtonLabel:{id:"store/shipping-option-zipcode.updateButton.label"},popoverButtonLabel:{id:"store/shipping-option-zipcode.popoverButton.label"},popoverSubmitButtonLabel:{id:"store/shipping-option-zipcode.deliveryPopover.submitButton.label"},popoverDescription:{id:"store/shipping-option-zipcode.popover.description"},popoverPostalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.deliveryPopover.postalCodeInput.placeholder"},popoverPostalCodeLink:{id:"store/shipping-option-zipcode.popover.postalCodeLink"},locationModalTitle:{id:"store/shipping-option-zipcode.locationModal.title"},locationModalDescription:{id:"store/shipping-option-zipcode.locationModal.description"},noPickupsStateTitle:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.title"},noPickupsStateDescription:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.description"},noPickupsStateButtonLabel:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.button.label"},noStoresStateTitle:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.title"},noStoresStateDescription:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.description"},noStoresStateButton:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.button.label"},shippingSelectionModalTitle:{id:"store/shipping-option-zipcode.shippingSelectionModal.title"},shippingSelectionModalDescription:{id:"store/shipping-option-zipcode.shippingSelectionModal.description"},shippingSelectionModalDeliveryButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.deliveryButton.label"},shippingSelectionModalPickupButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.pickupButton.label"},pickupSelectionTitle:{id:"store/shipping-option-zipcode.pickupSelection.title"},deliveryAvailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.deliveryAvailable"},deliveryUnavailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.deliveryUnavailable"},pickupUnavailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.pickupUnavailable"},pickupAtBadge:{id:"store/shipping-option-zipcode.availabilityBadge.pickupAt"},unavailableItemsModalRemoveButton:{id:"store/shipping-option-zipcode.unavailableItems.removeItemsButton.label"},unavailableItemsModalRetryButton:{id:"store/shipping-option-zipcode.unavailableItems.retryButton.label"},unavailableItemsModalTitle:{id:"store/shipping-option-zipcode.unavailableItems.title"},unavailableItemsModalDescription:{id:"store/shipping-option-zipcode.unavailableItems.description"},unavailableItemsModalForPickupDescription:{id:"store/shipping-option-zipcode.unavailableItems.forPickup.description"},unavailableItemsModalForDeliveryDescription:{id:"store/shipping-option-zipcode.unavailableItems.forDelivery.description"}});t.default=i}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([["ShippingOptionContext"],{0:function(t,n){t.exports=React},32:function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},35:function(t,n){t.exports=__RENDER_8_RUNTIME__},38:function(t,n){t.exports=regeneratorRuntime},39:function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},4:function(t,n){t.exports=ReactIntl},88:function(t,n,e){"use strict";e.r(n),function(t){var n=e(13);e.p=Object(n.getPublicPath)("vtex.shipping-option-components@1.6.0");var o=Object(n.register)((function(){return e(89)}),t,"vtex.shipping-option-components@1.6.0","vtex.shipping-option-components@1.x","ShippingOptionContext");o.renderHotReload,o.setupHMR}.call(this,e(31)(t))},89:function(t,n,e){"use strict";e.r(n);var o=e(19);n.default={ShippingOptionProvider:o.a,useShippingOptionDispatch:o.b,useShippingOptionState:o.c}}},[[88,"common",0,1]]]); },function(){ !function(e){function t(t){for(var r,u,a=t[0],c=t[1],l=t[2],d=0,s=[];de.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(!O||O===H)?z({to:H}):window.location.assign("".concat(Y).concat(null!=O?O:H));case 14:"toast"===R&&(me.current.toast=window.setTimeout((function(){ve({success:!0})}),500)),"addToCart"===ne&&ae&&ae();case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),be=u.a.createElement("div",{className:"".concat(q.buttonDataContainer," flex justify-center")},t?u.a.createElement("span",{className:q.buttonText},t):u.a.createElement(s.FormattedMessage,{id:"store/add-to-cart.add-to-cart"},(function(e){return u.a.createElement("span",{className:q.buttonText},e)}))),fe=_?u.a.createElement("span",{className:q.buttonText},_):u.a.createElement(s.FormattedMessage,{id:"store/add-to-cart.label-unavailable"},(function(e){return u.a.createElement("span",{className:q.buttonText},e)})),ge=u.a.createElement("span",{className:q.tooltipLabelText},F.formatMessage(C.skuVariations)),Te=u.a.createElement(l.a,{block:!0,isLoading:se||V,disabled:d||!n,onClick:function(e){J&&J({type:"SET_BUY_BUTTON_CLICKED",args:{clicked:!0}}),"disabled"===M&&(e.preventDefault(),e.stopPropagation()),N&&pe()}},n?be:fe);return N?Te:u.a.createElement(v.a,{trigger:"click",label:ge},Te)}}}]); },function(){ (window.webpackJsonpvtex_add_to_cart_button_0_30_2=window.webpackJsonpvtex_add_to_cart_button_0_30_2||[]).push([["Wrapper"],[function(e,t){e.exports=React},,function(e,t){e.exports=ReactIntl},function(e,t,n){"use strict";function i(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 r(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 r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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 l,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=k&&P>0&&v.push({normalizedQuantity:P,extraQuantity:P-k,choiceType:x.choiceType,item:Object.assign({name:x.name,sellingPrice:x.price,quantity:P,sellingPriceWithAssemblies:x.price+o(null!==(t=x.children)&&void 0!==t?t:{}),id:x.id},N?{assemblyOptions:N}:{})}),P0?{options:g}:{}))}}catch(e){O.e(e)}finally{O.f()}}var I,R=i(f);try{for(R.s();!(I=R.n()).done;){var T=I.value,S=u[T]||{};Object.keys(S).length>0&&d.push({assemblyId:T,inputValues:u[T]})}}catch(e){R.e(e)}finally{R.f()}return{options:d,assemblyOptions:{added:v,removed:p,parentPrice:s}}}function a(e){var t,n,i,r,a,u,s=e.product,c=e.selectedItem,d=e.selectedQuantity,v=e.selectedSeller,p=e.assemblyOptions;return s&&c&&v&&v.commertialOffer?[Object.assign(Object.assign({index:0,id:c.itemId,ean:c.ean,productId:null!==(t=s.productId)&&void 0!==t?t:"",quantity:d,uniqueId:"",detailUrl:"/".concat(s.linkText,"/p"),name:null!==(n=s.productName)&&void 0!==n?n:"",brand:null!==(i=s.brand)&&void 0!==i?i:"",category:s.categories&&s.categories.length>0?s.categories[0]:"",productRefId:null!==(r=s.productReference)&&void 0!==r?r:"",seller:v.sellerId,sellerName:v.sellerName,variant:c.name,skuName:c.name,price:100*v.commertialOffer.PriceWithoutDiscount,listPrice:100*v.commertialOffer.ListPrice,sellingPrice:100*v.commertialOffer.Price,sellingPriceWithAssemblies:100*(v.commertialOffer.Price+o(null!==(a=null==p?void 0:p.items)&&void 0!==a?a:{})),measurementUnit:c.measurementUnit,skuSpecifications:[],imageUrl:null===(u=c.images[0])||void 0===u?void 0:u.imageUrl},l({assemblyOptionsItems:null==p?void 0:p.items,inputValues:null==p?void 0:p.inputValues,parentPrice:v.commertialOffer.Price,parentQuantity:d})),{referenceId:c.referenceId})]:[]}n.d(t,"a",(function(){return a}))},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Tooltip"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.checkout-resources@0.x/Utils"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixel"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProductDispatch"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/PWAContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},,,function(e,t){e.exports=regeneratorRuntime},,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/withToast"]},,function(e,t,n){"use strict";n.r(t),function(e){var t=n(1);n.p=Object(t.getPublicPath)("vtex.add-to-cart-button@0.30.2");var i=Object(t.register)((function(){return n(23)}),e,"vtex.add-to-cart-button@0.30.2","vtex.add-to-cart-button@0.x","Wrapper");i.renderHotReload,i.setupHMR}.call(this,n(5)(e))},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n.n(i),o=n(19),l=n.n(o),a=n(20),u=n.n(a),s=n(15),c=n(3);var d=u()((function(e){var t,n,o,a,u=e.isOneClickBuy,d=e.available,v=e.disabled,p=e.customToastUrl,f=e.showToast,m=e.customOneClickBuyLink,_=e.selectedSeller,y=e.unavailableText,b=e.text,O=e.customPixelEventId,x=e.addToCartFeedback,h=void 0===x?"toast":x,E=e.onClickBehavior,g=void 0===E?"add-to-cart":E,N=e.onClickEventPropagation,P=void 0===N?"disabled":N,k=l()(),I=0===Object.keys(null!=k?k:{}).length,R=null==k?void 0:k.product,T=(null!==(n=null===(t=null==R?void 0:R.items)||void 0===t?void 0:t.length)&&void 0!==n?n:0)>1,S=null==k?void 0:k.selectedItem,C=null==k?void 0:k.assemblyOptions,j=null!=_?_:function(e){if(e){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}}(null===(o=null==k?void 0:k.selectedItem)||void 0===o?void 0:o.sellers),w=null!=(null==k?void 0:k.selectedQuantity)?k.selectedQuantity:1,D=Object(i.useMemo)((function(){var t;return null!==(t=e.skuItems)&&void 0!==t?t:Object(c.a)({product:R,selectedItem:S,selectedQuantity:w,selectedSeller:j,assemblyOptions:C})}),[C,R,e.skuItems,S,w,j]),M=function(e,t,n){var i;if(e)return!1;if(null!=n)return n;var r=null===(i=null==t?void 0:t.commertialOffer)||void 0===i?void 0:i.AvailableQuantity;return Boolean(r)}(I,j,d),Q=function(e,t,n){return!!e||(null!=n?n:!((null==t?void 0:t.areGroupsValid)&&Object.values(t.areGroupsValid)||[]).every(Boolean))}(I,C,v),A=Boolean(!I&&(null===(a=null==k?void 0:k.skuSelector)||void 0===a?void 0:a.areAllVariationsSelected)),U={linkText:null==R?void 0:R.linkText,productId:null==R?void 0:R.productId};return r.a.createElement(s.default,{text:b,skuItems:D,isLoading:null==k?void 0:k.loadingItem,disabled:Q,showToast:f,available:M,isOneClickBuy:u,customToastUrl:p,unavailableText:y,customOneClickBuyLink:m,allSkuVariationsSelected:A,productLink:U,onClickBehavior:g,onClickEventPropagation:P,multipleAvailableSKUs:T,customPixelEventId:O,addToCartFeedback:h})}));d.schema={title:"admin/editor.add-to-cart.title"},t.default=d}],[[22,"common",0]]]); },function(){ !function(e){function t(t){for(var n,o,u=t[0],c=t[1],l=t[2],s=0,d=[];s=0||(o[r]=e[r]);return o}},32:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},33:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},6:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},7:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=e.hideEmptyCols,o=void 0!==n&&n,r=t.reduce((function(t,e){var n="grow"===e.width,o="number"==typeof e.width?t.availableWidth-e.width:0;return{availableWidth:n?0:o,remainingColsNum:t.remainingColsNum+(e.hasDefinedWidth?0:1),hasAnyWidthGrow:t.hasAnyWidthGrow||n}}),{availableWidth:100,remainingColsNum:0,hasAnyWidthGrow:!1}),i=r.availableWidth,a=r.remainingColsNum,c=r.hasAnyWidthGrow;if(i<0&&!c){var d=-100/i;t=t.map((function(t){return Object.assign(Object.assign({},t),{width:"number"==typeof t.width?t.width*d:t.width})}))}return t.map((function(t){var e="number"==typeof t.width?"".concat(t.width,"%"):t.width;return{element:t.element,width:t.hasDefinedWidth?e:"".concat(Math.floor(Math.max(0,i)/(o?1:a)),"%"),hasDefinedWidth:t.hasDefinedWidth}}))};var m,w,v,g=n(14),O=n.n(g);!function(t){t.equal="equal",t.auto="auto"}(w||(w={})),function(t){t.between="between",t.around="around",t.left="left",t.right="right",t.center="center"}(v||(v={}));var j=(m={},Object(r.a)(m,v.between,"justify-between"),Object(r.a)(m,v.around,"justify-around"),Object(r.a)(m,v.left,"justify-start"),Object(r.a)(m,v.center,"justify-center"),Object(r.a)(m,v.right,"justify-end"),m),y=["flexRowContent"],W=function(t){var e=t.children,n=t.colGap,r=t.rowGap,i=t.marginTop,c=t.marginBottom,d=t.paddingTop,p=t.paddingBottom,m=t.border,g=t.borderWidth,W=t.borderColor,x=t.preserveLayoutOnMobile,C=t.preventHorizontalStretch,G=t.preventVerticalStretch,k=t.horizontalAlign,R=t.colSizing,E=t.colJustify,D=void 0===E?v.between:E,N=t.experimentalHideEmptyCols,_=void 0!==N&&N,M=Object(u.c)(),A=l()(y),B=Object(f.d)({colGap:null!=n?n:M.colGap,rowGap:null!=r?r:M.rowGap}),L=Object(f.b)({marginTop:i,marginBottom:c}),P=Object(f.c)({paddingTop:d,paddingBottom:p}),T=Object(f.a)({border:m,borderWidth:g,borderColor:W}),S=function(t,e){var n="phone"===h()().device,o=e||{},r=o.preserveLayoutOnMobile,i=void 0!==r&&r,c=o.hideEmptyCols,d=void 0!==c&&c,l=a.a.Children.toArray(t).map((function(t){if(!(e=t)||!e.props)return{element:t,width:0,hasDefinedWidth:!1,isResponsive:!0};var e,o=Object(f.e)(t.props.width||t.props.blockProps&&t.props.blockProps.width);return o&&"object"===Object(s.a)(o)?{element:t,width:n?o.mobile||0:o.desktop||0,hasDefinedWidth:!0,isResponsive:!0}:!i&&n?{element:t,width:0,hasDefinedWidth:!1,isResponsive:!1}:"number"==typeof o||"string"==typeof o?{element:t,width:o,hasDefinedWidth:!0,isResponsive:!1}:{element:t,width:0,hasDefinedWidth:!1,isResponsive:!0}})),u=l.some((function(t){return t.isResponsive})),p=!i&&n&&!u;return{cols:b(l,{hideEmptyCols:d}),breakOnMobile:p}}(e,{preserveLayoutOnMobile:x,hideEmptyCols:_}),I=S.cols,z=S.breakOnMobile,J=R===w.auto,q=J?j[D]:j.left;return null!=k&&(q=j[k]),a.a.createElement(u.a,Object(o.a)({parent:u.b.ROW},B),a.a.createElement("div",{className:"".concat(z?"flex-none flex-ns":"flex"," ").concat(L," ").concat(P," ").concat(T," ").concat(q," ").concat(A.flexRowContent," items-stretch w-100")},I.map((function(t,e){var n=e===I.length-1,o=n?0:B.colGap,r=n?0:B.rowGap;return a.a.createElement("div",{key:e,className:"".concat(z?"pr".concat(o,"-ns pb").concat(r," pb0-ns"):"pr".concat(o)," ").concat(G?"":"items-stretch"," ").concat(C?"":O.a.stretchChildrenWidth," ").concat("grow"===t.width?"flex-grow-1":""," ").concat(_?O.a.col:""," flex"),style:{width:C||J&&!t.hasDefinedWidth?"auto":z?"100%":t.width}},t.element)}))))},x=Object(c.defineMessages)({title:{id:"admin/editor.row.title"},description:{id:"admin/editor.row.description"}});W.schema={title:x.title.id,description:x.description.id};e.default=W},14:function(t,e,n){t.exports={stretchChildrenWidth:"vtex-flex-layout-0-x-stretchChildrenWidth",col:"vtex-flex-layout-0-x-col"}},2:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return d}));var o,r=n(0),i=n.n(r);!function(t){t.NONE="none",t.ROW="row",t.COL="col"}(o||(o={}));var a=i.a.createContext({parent:o.NONE,colGap:0,rowGap:0}),c=function(t){var e=t.parent,n=t.colGap,o=t.rowGap,c=t.children,d=Object(r.useMemo)((function(){return{parent:e,colGap:n,rowGap:o}}),[e,n,o]);return i.a.createElement(a.Provider,{value:d},c)},d=function(){return Object(r.useContext)(a)}},3:function(t,e,n){"use strict";n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var o,r=n(7),i=n(1),a=function(t,e){return t?Object(i.range)(0,12).map(String).includes(String(t))?"string"==typeof t?parseInt(t,10):t:(e&&console.warn("Invalid ".concat(e,' value ("').concat(t,'"). It should be an integer between 0 and ').concat(11,".")),0):0},c=function(t){var e=Object(i.toPairs)(t).map((function(t){var e=Object(r.a)(t,2),n=e[0],o=e[1];return[n,a(o,n)]}));return Object(i.fromPairs)(e)},d=function(t){if("string"!=typeof t)return null;if("grow"===t)return"grow";var e=t.match(new RegExp("(\\d*)(".concat(["%"].join("|"),")")));if(!e)return null;var n=e[1];return null==n?null:parseInt(n,10)},l=(o=d,function(t){return function(t){return t&&null!=t.mobile&&null!=t.desktop}(t)?{mobile:o(t.mobile),desktop:o(t.desktop)}:o(t)}),u=function(t){return function(e){var n=Object(i.pick)(Object.keys(t),e),o=c(n);return Object(i.toPairs)(o).map((function(e){var n=Object(r.a)(e,2),o=n[0],i=n[1];return"".concat(t[o]).concat(i)})).join(" ")}},s=u({paddingTop:"pt",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr"}),p=u({marginTop:"mt",marginBottom:"mb",marginLeft:"ml",marginRight:"mr"}),h={top:"bt",right:"br",bottom:"bb",left:"bl",all:"ba"},f=function(t){var e=t.border,n=t.borderWidth,o=t.borderColor,r=e?[].concat(e).map((function(t){return h[t]})).join(" "):"",i=n?"bw".concat(a(n,"bw")):"",c=o?"b--".concat(o.split(" ")[0]):"";return"".concat(r," ").concat(i," ").concat(c)}}}]); },function(){ (window.webpackJsonpvtex_flex_layout_0_21_5=window.webpackJsonpvtex_flex_layout_0_21_5||[]).push([["FlexLayout"],[function(e,t){e.exports=React},function(e,t){e.exports=R},,,,function(e,t){e.exports=ReactIntl},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValues"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/Container"]},,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("vtex.flex-layout@0.21.5");var o=Object(t.register)((function(){return n(20)}),e,"vtex.flex-layout@0.21.5","vtex.flex-layout@0.x","FlexLayout");o.renderHotReload,o.setupHMR}.call(this,n(10)(e))},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n.n(o),a=n(5),l=n(6),s=n.n(l),r=n(15),c=n.n(r),u=n(9),_=n.n(u),x=n(2),d=n(13),f=["flexRow"],p=function(e){var t=_()(e),n=t.arialabel,o=t.fullWidth,l=t.htmlId,r=Object(x.c)(),u=s()(f),p=Object(a.useIntl)(),v=i.a.createElement(d.default,t),E=r.parent===x.b.NONE,R=!o&&E?i.a.createElement(c.a,null,v):v;return i.a.createElement("div",{className:u.flexRow,id:l,"aria-label":n||p.formatMessage({id:"store/flex-layout.flexLayout-row.aria-label"},{sectionId:null!=l?l:"row"})},R)},v=Object(a.defineMessages)({title:{id:"admin/editor.row.title"},description:{id:"admin/editor.row.description"}});p.schema={title:v.title.id,description:v.description.id},t.default=p}],[[19,"common",0]]]); }], document.currentScript.dataset.index)