enqueueScripts([function(){ !function(e){function t(t){for(var r,u,c=t[0],a=t[1],f=t[2],s=0,p=[];s3&&void 0!==arguments[3]?arguments[3]:"/",t="";if(i&&i>0){var d=new Date;d.setTime((new Date).getTime()+i),t="expires=".concat(d.toUTCString(),";")}document.cookie="".concat(e,"=").concat(encodeURIComponent(n),";").concat(t,"path=").concat(a)}var s=i(28),u=i.n(s),c=i(29),v=i.n(c),o=i(30),k=i.n(o),g=function(){function e(n){Object(r.a)(this,e),this.client=n,this.historyKey="biggy-search-history"}var n,i,a;return Object(m.a)(e,[{key:"topSearches",value:(a=Object(d.a)(t.a.mark((function e(){return t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.query({query:k.a}));case 1:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"suggestionSearches",value:(i=Object(d.a)(t.a.mark((function e(n){return t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.query({query:v.a,variables:{term:n}}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"suggestionProducts",value:(n=Object(d.a)(t.a.mark((function e(n,i,a){var d,r,m=arguments;return t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=m.length>3&&void 0!==m[3]?m[3]:"BIGGY",r=m.length>4&&void 0!==m[4]?m[4]:"API",e.abrupt("return",this.client.query({query:u.a,variables:{term:n,attributeKey:i,attributeValue:a,productOrigin:d,indexingType:r},fetchPolicy:"network-only"}));case 3:case"end":return e.stop()}}),e,this)}))),function(e,i,a){return n.apply(this,arguments)})},{key:"searchHistory",value:function(){return(function(e){var n=new RegExp("(^|;)[ ]*".concat(e,"=([^;]*)")).exec(document.cookie);if(!n)return null;try{return decodeURIComponent(n[2])}catch(e){return n[2]}}(this.historyKey)||"").split(",").filter((function(e){return!!e}))}},{key:"prependSearchHistory",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(null!=e&&""!==e.trim()){var i=this.searchHistory();i.indexOf(e)<0&&(i.unshift(e),i=i.slice(0,n)),l(this.historyKey,i.join(","))}}}]),e}()},28:function(e,n){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Product"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search",block:!1}},{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.search@1.5.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productReference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"linkText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brand"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brandId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceRange"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"specificationGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"specifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nameComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"complementName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ean"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"referenceId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurementUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unitMultiplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cacheId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageTag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sellers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sellerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellerName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"commertialOffer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountHighlights"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"teasers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conditions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimumQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parameters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"effects"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"parameters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Installments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"InterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"TotalValuePlusInterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"NumberOfInstallments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ListPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PriceWithoutDiscount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RewardValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PriceValidUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"AvailableQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productClusters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"properties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"suggestionProducts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"term"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributeKey"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributeValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productOrigin"}},type:{kind:"NamedType",name:{kind:"Name",value:"Origin"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"indexingType"}},type:{kind:"NamedType",name:{kind:"Name",value:"IndexingType"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.search@1.5.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestionProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"term"},value:{kind:"Variable",name:{kind:"Name",value:"term"}}},{kind:"Argument",name:{kind:"Name",value:"attributeKey"},value:{kind:"Variable",name:{kind:"Name",value:"attributeKey"}}},{kind:"Argument",name:{kind:"Name",value:"attributeValue"},value:{kind:"Variable",name:{kind:"Name",value:"attributeValue"}}},{kind:"Argument",name:{kind:"Name",value:"indexingType"},value:{kind:"Variable",name:{kind:"Name",value:"indexingType"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"704c20442c5227eb5d8c75bfd410cb86d3b07c1fc719fbd960239f04586728e0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"products"},arguments:[{kind:"Argument",name:{kind:"Name",value:"origin"},value:{kind:"Variable",name:{kind:"Name",value:"productOrigin"}}},{kind:"Argument",name:{kind:"Name",value:"indexingType"},value:{kind:"Variable",name:{kind:"Name",value:"indexingType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Product"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:2510}};i.loc.source={body:'fragment Product on Product @context(provider: "vtex.search", sender: "vtex.search@1.5.1") {\n cacheId\n productId\n description\n productName\n productReference\n linkText\n brand\n brandId\n link\n categories\n priceRange {\n sellingPrice {\n highPrice\n lowPrice\n __typename\n }\n listPrice {\n highPrice\n lowPrice\n __typename\n }\n __typename\n }\n specificationGroups {\n name\n specifications {\n name\n values\n __typename\n }\n __typename\n }\n items {\n itemId\n name\n nameComplete\n complementName\n ean\n variations {\n name\n values\n __typename\n }\n referenceId {\n Key\n Value\n __typename\n }\n measurementUnit\n unitMultiplier\n images {\n cacheId\n imageId\n imageLabel\n imageTag\n imageUrl\n imageText\n __typename\n }\n sellers {\n sellerId\n sellerName\n commertialOffer {\n discountHighlights {\n name\n __typename\n }\n teasers {\n name\n conditions {\n minimumQuantity\n parameters {\n name\n value\n __typename\n }\n __typename\n }\n effects {\n parameters {\n name\n value\n __typename\n }\n __typename\n }\n __typename\n }\n Installments {\n Value\n InterestRate\n TotalValuePlusInterestRate\n NumberOfInstallments\n Name\n __typename\n }\n Price\n ListPrice\n taxPercentage\n PriceWithoutDiscount\n RewardValue\n PriceValidUntil\n AvailableQuantity\n __typename\n }\n __typename\n }\n __typename\n }\n productClusters {\n id\n name\n __typename\n }\n properties {\n name\n values\n __typename\n }\n}\n\nquery suggestionProducts($term: String!, $attributeKey: String, $attributeValue: String, $productOrigin: Origin, $indexingType: IndexingType) @context(sender: "vtex.search@1.5.1") {\n suggestionProducts(term: $term, attributeKey: $attributeKey, attributeValue: $attributeValue, indexingType: $indexingType) @context(provider: "vtex.search") @runtimeMeta(hash: "704c20442c5227eb5d8c75bfd410cb86d3b07c1fc719fbd960239f04586728e0") {\n count\n products(origin: $productOrigin, indexingType: $indexingType) {\n ...Product\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function t(e,n){for(var i=0;i0;){var l=m;m=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){m.add(e)})))}))}return r.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"suggestionProducts")},29:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"suggestionSearches"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"term"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.search@1.5.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestionSearches"},arguments:[{kind:"Argument",name:{kind:"Name",value:"term"},value:{kind:"Variable",name:{kind:"Name",value:"term"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"079eeedd920fdb9a4dd750a2cf5a62c66ddb09e15657053363287f92eacf1594",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searches"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"term"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labelKey"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labelValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:416}};i.loc.source={body:'query suggestionSearches($term: String!) @context(sender: "vtex.search@1.5.1") {\n suggestionSearches(term: $term) @context(provider: "vtex.search") @runtimeMeta(hash: "079eeedd920fdb9a4dd750a2cf5a62c66ddb09e15657053363287f92eacf1594") {\n searches {\n term\n attributes {\n key\n value\n labelKey\n labelValue\n __typename\n }\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function t(e,n){for(var i=0;i0;){var l=m;m=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){m.add(e)})))}))}return r.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"suggestionSearches")},30:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"topSearches"},variableDefinitions:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.search@1.5.1",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"topSearches"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"3716a7e9b7fc6fa498d6f6007175b1d948abc31c5291347add48a7f9fa74bbb0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searches"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"term"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:265}};i.loc.source={body:'query topSearches @context(sender: "vtex.search@1.5.1") {\n topSearches @context(provider: "vtex.search") @runtimeMeta(hash: "3716a7e9b7fc6fa498d6f6007175b1d948abc31c5291347add48a7f9fa74bbb0") {\n searches {\n term\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function t(e,n){for(var i=0;i0;){var l=m;m=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){m.add(e)})))}))}return r.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"topSearches")}}]); },function(){ (window.webpackJsonpvtex_search_1_5_1=window.webpackJsonpvtex_search_1_5_1||[]).push([["Autocomplete"],[function(t,e){t.exports=React},function(t,e){t.exports=__RENDER_8_RUNTIME__},function(t,e){t.exports=ReactIntl},,,,function(t,e){t.exports=ReactApollo},function(t,e,r){t.exports={itemList:"vtex-search-1-x-itemList",itemListList:"vtex-search-1-x-itemListList",itemListTitle:"vtex-search-1-x-itemListTitle",itemListItem:"vtex-search-1-x-itemListItem",itemListSubItem:"vtex-search-1-x-itemListSubItem",itemListPrefix:"vtex-search-1-x-itemListPrefix",itemListIcon:"vtex-search-1-x-itemListIcon","itemList--suggestion":"vtex-search-1-x-itemList--suggestion","itemList--history":"vtex-search-1-x-itemList--history","itemList--top-search":"vtex-search-1-x-itemList--top-search"}},,,,,,,function(t,e,r){t.exports={clearLink:"vtex-search-1-x-clearLink",element:"vtex-search-1-x-element",imageContainer:"vtex-search-1-x-imageContainer",image:"vtex-search-1-x-image",information:"vtex-search-1-x-information",productNameContainer:"vtex-search-1-x-productNameContainer",productBrand:"vtex-search-1-x-productBrand",priceContainer:"vtex-search-1-x-priceContainer",priceOld:"vtex-search-1-x-priceOld",priceNew:"vtex-search-1-x-priceNew",discount:"vtex-search-1-x-discount"}},function(t,e,r){t.exports={tileList:"vtex-search-1-x-tileList",tileListTitle:"vtex-search-1-x-tileListTitle",tileListItem:"vtex-search-1-x-tileListItem",tileListSeeMore:"vtex-search-1-x-tileListSeeMore",tileListSpinner:"vtex-search-1-x-tileListSpinner"}},function(t,e,r){t.exports={"biggy-autocomplete-wrapper":"vtex-search-1-x-biggy-autocomplete-wrapper","biggy-autocomplete":"vtex-search-1-x-biggy-autocomplete","close-btn":"vtex-search-1-x-close-btn","history-and-top-wrapper":"vtex-search-1-x-history-and-top-wrapper","biggy-js-container--hidden":"vtex-search-1-x-biggy-js-container--hidden"}},,,,,function(t,e){t.exports=regeneratorRuntime},function(t,e){t.exports=R},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.product-price@1.x/SellingPrice"]},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.product-price@1.x/ListPrice"]},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductContextProvider"]},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.product-summary@2.x/ProductSummaryCustom"]},,,,function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClose"]},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClock"]},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.product-list-context@0.x/ProductListContext"]},function(t,e){t.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/withDevice"]},function(t,e){function r(t,e,r){var n,i,s,a,o;function c(){var u=Date.now()-a;u=0?n=setTimeout(c,e-u):(n=null,r||(o=t.apply(s,i),s=i=null))}null==e&&(e=100);var u=function(){s=this,i=arguments,a=Date.now();var u=r&&!n;return n||(n=setTimeout(c,e)),u&&(o=t.apply(s,i),s=i=null),o};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.flush=function(){n&&(o=t.apply(s,i),s=i=null,clearTimeout(n),n=null)},u}r.debounce=r,t.exports=r},,,,function(t,e,r){"use strict";r.r(e),function(t){var e=r(3);r.p=Object(e.getPublicPath)("vtex.search@1.5.1");var n=Object(e.register)((function(){return r(45)}),t,"vtex.search@1.5.1","vtex.search@1.x","Autocomplete");n.renderHotReload,n.setupHMR}.call(this,r(18)(t))},,,,,,function(t,e,r){"use strict";r.r(e);var n=r(4),i=r.n(n),s=r(13),a=r(8),o=r(9),c=r(12),u=r(11),l=r(5),p=r(0),m=r.n(p),h=r(6),d=r(7),f=r.n(d),v=r(1),g=function(t){return t.item&&t.item.attributes?m.a.createElement("ul",{className:f.a.itemListSubList},t.item.attributes.map((function(e,r){return m.a.createElement("li",{key:r,className:"".concat(f.a.itemListSubItem," c-on-base pointer"),onMouseOver:function(r){return t.handleMouseOver(r,e)},onMouseOut:function(){return t.handleMouseOut()}},m.a.createElement(v.Link,{className:"c-on-base",to:"/".concat(t.item.value,"/").concat(e.value),query:"map=ft,".concat(e.key)},e.label))}))):null};function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(l.a)(t);if(e){var i=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(u.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=x(r);function r(){var t;return Object(a.a)(this,r),(t=e.apply(this,arguments)).state={currentTimeoutId:null},t}return Object(o.a)(r,[{key:"handleMouseOver",value:function(t,e){var r=this;if(t.stopPropagation(),!this.state.currentTimeoutId){var n=setTimeout((function(){r.props.onItemHover&&r.props.onItemHover(e),r.setState({currentTimeoutId:null})}),100);this.setState({currentTimeoutId:n})}}},{key:"handleMouseOut",value:function(){var t=this.state.currentTimeoutId;t&&(clearTimeout(t),this.setState({currentTimeoutId:null}))}},{key:"render",value:function(){var t=this;if(0===this.props.items.length&&!this.props.showTitleOnEmpty)return null;var e=this.props.modifier?f.a["itemList--".concat(this.props.modifier)]:"";return p.createElement("article",{className:"".concat(f.a.itemList," ").concat(e)},this.props.showTitle?p.createElement("p",{className:"".concat(f.a.itemListTitle," c-on-base")},this.props.title):null,p.createElement("ol",{className:f.a.itemListList},this.props.items.map((function(e){return p.createElement("li",{key:e.value,className:"".concat(f.a.itemListItem),onMouseOver:function(r){return t.handleMouseOver(r,e)},onMouseOut:function(){return t.handleMouseOut()}},p.createElement(v.Link,{to:e.link,query:"map=ft"},e.icon?p.createElement("span",{className:f.a.itemListIcon},e.icon):null,e.prefix?p.createElement("span",{className:f.a.itemListPrefix},e.prefix):null,p.createElement("span",{className:"c-on-base"},e.label)),p.createElement(g,{item:e,handleMouseOver:t.handleMouseOver.bind(t),handleMouseOut:t.handleMouseOut.bind(t)}))}))))}}]),r}(p.Component);var E=r(15),b=r.n(E),O=r(22),_=r(14),L=r.n(_),N=r(23),P=r.n(N),S=r(24),w=r.n(S),T=r(25),R=r.n(T);function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(l.a)(t);if(e){var i=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(u.a)(this,r)}}var k=function(t){Object(c.a)(r,t);var e=I(r);function r(){return Object(a.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"render",value:function(){var t,e,r,n=this.props.product,i=Object(O.path)(["sku"],n),s=null===(r=null===(e=null===(t=null==i?void 0:i.sellers)||void 0===t?void 0:t[0])||void 0===e?void 0:e.commertialOffer)||void 0===r?void 0:r.taxPercentage;return p.createElement("div",null,p.createElement(v.Link,{params:{slug:n&&n.linkText,id:n&&n.productId},page:"store.product",className:"no-underline"},p.createElement("article",{className:"".concat(L.a.element," flex flex-row justify-start items-center pa3 bg-animate hover-bg-light-gray")},p.createElement("div",{className:"".concat(L.a.imageContainer," h3")},p.createElement("img",{className:"".concat(L.a.image," h-100 w-auto mw-none"),src:i.image.imageUrl})),p.createElement("div",{className:"".concat(L.a.information," flex flex-column justify-between items-start ml4")},p.createElement("div",{className:L.a.productNameContainer},p.createElement("span",{className:"".concat(L.a.productBrand," f5 c-on-base")},n.productName)),p.createElement("div",{className:L.a.priceContainer},p.createElement(R.a,{product:n,query:{skuId:i&&i.itemId}},p.createElement("span",{className:"db f7 c-muted-2"},p.createElement(w.a,{message:s?"{listPriceWithTax}":"{listPriceValue}"})),p.createElement("span",{className:"dib t-small c-muted-2"},p.createElement(P.a,{message:s?"{sellingPriceWithTax}":"{sellingPriceValue}"}))))))))}}]),r}(p.Component),M=r(26),C=r.n(M),j=r(27),H=r.n(j),D=r(2);function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(l.a)(t);if(e){var i=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(u.a)(this,r)}}var F=function(t){Object(c.a)(r,t);var e=V(r);function r(){return Object(a.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"render",value:function(){var t=this;return 0!==this.props.products.length||this.props.isLoading?p.createElement("section",{className:b.a.tileList},this.props.showTitle?p.createElement("p",{className:"".concat(b.a.tileListTitle," c-on-base")},this.props.title):null,this.props.isLoading?p.createElement("div",{className:b.a.tileListSpinner},p.createElement(C.a,null)):p.createElement(p.Fragment,null,p.createElement("ul",{className:b.a.tileListList,style:{flexDirection:this.props.layout===tt.Horizontal?"column":"row"}},this.props.products.map((function(e){var r=H.a.mapCatalogProductToProductSummary(e);return p.createElement("li",{key:e.productId,className:b.a.tileListItem},t.props.layout===tt.Horizontal?p.createElement(k,{product:r}):p.createElement(v.ExtensionPoint,{id:"product-summary",product:r}))}))),p.createElement("footer",null,this.props.totalProducts>0?p.createElement(v.Link,{to:"/".concat(this.props.term),query:"map=ft",className:b.a.tileListSeeMore},p.createElement(D.FormattedMessage,{id:"store/seeMore",values:{count:this.props.totalProducts}})):null))):null}}]),r}(p.Component),W=r(16),A=r.n(W),q=r(20),B=r(31),U=r.n(B),z=r(32),Q=r.n(z),G=r(33),J=r.n(G),X=r(34),Y=r.n(X),Z=r(35),K=r.n(Z);function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(l.a)(t);if(e){var i=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(u.a)(this,r)}}var tt;!function(t){t.Horizontal="HORIZONTAL",t.Vertical="VERTICAL"}(tt||(tt={}));var et=J.a.ProductListProvider,rt=function(t){Object(c.a)(l,t);var e,r,n,u=$(l);function l(t){var e;return Object(a.a)(this,l),(e=u.call(this,t)).state={topSearchedItems:[],history:[],products:[],suggestionItems:[],totalProducts:0,queryFromHover:{},dynamicTerm:"",isProductsLoading:!1,currentHeightWhenOpen:0},e.getProductLayout=function(){var t=e.props,r=t.productLayout,n=t.isMobile;return void 0!==r?r:n?tt.Horizontal:tt.Vertical},e.client=new q.a(e.props.client),e.autocompleteRef=m.a.createRef(),e.isIOS=navigator&&!!navigator.userAgent.match(/(iPod|iPhone|iPad)/),e}return Object(o.a)(l,[{key:"fitAutocompleteInWindow",value:function(){if(window&&this.autocompleteRef.current&&this.props.isMobile&&!this.isIOS){var t=window.innerHeight,e=this.autocompleteRef.current.getBoundingClientRect().y,r=this.autocompleteRef.current.offsetHeight,n=r-(e+r-t);this.autocompleteRef.current.style.maxHeight="".concat(n,"px")}}},{key:"addEvents",value:function(){window.addEventListener("resize",K()(this.fitAutocompleteInWindow.bind(this),100))}},{key:"componentDidMount",value:function(){this.updateTopSearches(),this.updateHistory(),this.addEvents()}},{key:"shouldUpdate",value:function(t){return t.inputValue!==this.props.inputValue||!t.isOpen&&this.props.isOpen}},{key:"addTermToHistory",value:function(){var t=window.location.href.split("_q=");if(t[1]){var e=t[1].split("&")[0];try{this.client.prependSearchHistory(decodeURI(e))}catch(t){this.client.prependSearchHistory(e)}}}},{key:"componentDidUpdate",value:function(t){var e=this;if(this.shouldUpdate(t)){this.addTermToHistory(),this.fitAutocompleteInWindow();var r=this.props.inputValue;this.setState({dynamicTerm:r}),null===r||""===r?(this.updateTopSearches(),this.updateHistory(),this.setState({suggestionItems:[],products:[]})):this.updateSuggestions().then((function(){return e.fitAutocompleteInWindow(),e.updateProducts()})).then((function(){return e.fitAutocompleteInWindow()}))}}},{key:"highlightTerm",value:function(t,e){var r=t.split(e);return m.a.createElement(m.a.Fragment,null,r.map((function(t,n){return m.a.createElement(m.a.Fragment,null,t,n!==r.length-1?m.a.createElement("span",{className:"b"},e):null)})))}},{key:"updateSuggestions",value:(n=Object(s.a)(i.a.mark((function t(){var e,r,n,s,a,o,c=this;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.suggestionSearches(this.props.inputValue);case 2:e=t.sent,r=e.data.suggestionSearches.searches,n=this.props.maxSuggestedTerms,s=void 0===n?5:n,a=r.slice(0,s).map((function(t){var e=t.attributes||[];return{term:t.term,attributes:e.map((function(e){return{label:e.labelValue,value:e.value,link:"/".concat(t.term,"/").concat(e.value,"/?map=ft,").concat(e.key),groupValue:t.term,key:e.key}}))}})),o=a.map((function(t){return{label:c.highlightTerm(t.term.toLowerCase(),c.props.inputValue.toLocaleLowerCase()),value:t.term,groupValue:t.term,link:"/".concat(t.term,"?map=ft"),attributes:t.attributes}})),this.setState({suggestionItems:o});case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"updateProducts",value:(r=Object(s.a)(i.a.mark((function t(){var e,r,n,s,a,o,c,u,l,p;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.state.dynamicTerm,r=this.props,n=r.__unstableProductOrigin,s=r.__unstableProductOriginVtex,a=void 0!==s&&s,o=r.__unstableIndexingType,c=this.state.queryFromHover,e){t.next=6;break}return this.setState({products:[],totalProducts:0}),t.abrupt("return");case 6:return n&&console.warn("The prop `__unstableProductOrigin` has been deprecated. Use the boolean prop `__unstableProductOriginVtex` instead."),this.setState({isProductsLoading:!0}),t.next=10,this.client.suggestionProducts(e,c?c.key:void 0,c?c.value:void 0,"VTEX"===n||!0===a?"VTEX":"BIGGY",o);case 10:u=t.sent,this.setState({isProductsLoading:!1}),l=u.data.suggestionProducts,p=l.products.slice(0,this.getProductCount()),this.setState({products:p,totalProducts:l.count});case 15:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"updateTopSearches",value:(e=Object(s.a)(i.a.mark((function t(){var e,r,n,s,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.topSearches();case 2:e=t.sent,r=e.data.topSearches.searches,n=this.props.maxTopSearches,s=void 0===n?10:n,a=r.slice(0,s).map((function(t,e){return{prefix:m.a.createElement(m.a.Fragment,null,"".concat(e+1),m.a.createElement(D.FormattedMessage,{id:"store/ordinalNumber"})),value:t.term,label:t.term,link:"/".concat(t.term,"?map=ft")}})),this.setState({topSearchedItems:a});case 7:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"updateHistory",value:function(){var t=this.client.searchHistory().slice(0,this.props.maxHistory||5).map((function(t){return{label:t,value:t,link:"/".concat(t,"?map=ft"),icon:m.a.createElement(Q.a,null)}}));this.setState({history:t})}},{key:"updateQueryByItemHover",value:function(t){"groupValue"in t?this.setState({dynamicTerm:t.groupValue,queryFromHover:{key:t.key,value:t.value}}):this.setState({dynamicTerm:t.value,queryFromHover:{key:void 0,value:void 0}}),this.updateProducts()}},{key:"renderSuggestions",value:function(){var t=!!this.state.suggestionItems&&this.state.suggestionItems.length>0,e=t?m.a.createElement(D.FormattedMessage,{id:"store/suggestions"}):m.a.createElement(D.FormattedMessage,{id:"store/emptySuggestion"});return m.a.createElement(y,{title:e,items:this.state.suggestionItems||[],modifier:"suggestion",showTitle:!t||!this.props.hideTitles,onItemHover:this.updateQueryByItemHover.bind(this),showTitleOnEmpty:0!==this.props.maxSuggestedTerms})}},{key:"contentWhenQueryIsEmpty",value:function(){return m.a.createElement("div",{className:A.a["history-and-top-wrapper"],style:{flexDirection:this.props.historyFirst?"row-reverse":"row"}},!this.props.isMobile||this.props.isMobile&&!this.props.historyFirst||0===this.state.history.length?m.a.createElement(y,{modifier:"top-search",title:m.a.createElement(D.FormattedMessage,{id:"store/topSearches"}),items:this.state.topSearchedItems||[],showTitle:!this.props.hideTitles}):null,!this.props.isMobile||this.props.isMobile&&this.props.historyFirst?m.a.createElement(y,{modifier:"history",title:m.a.createElement(D.FormattedMessage,{id:"store/history"}),items:this.state.history||[],showTitle:!this.props.hideTitles}):null)}},{key:"contentWhenQueryIsNotEmpty",value:function(){return m.a.createElement(m.a.Fragment,null,this.renderSuggestions(),m.a.createElement(F,{term:this.props.inputValue||"",shelfProductCount:this.getProductCount(),title:m.a.createElement(D.FormattedMessage,{id:"store/suggestedProducts",values:{term:this.props.inputValue}}),products:this.state.products||[],showTitle:!this.props.hideTitles,totalProducts:this.state.totalProducts||0,layout:this.getProductLayout(),isLoading:this.state.isProductsLoading}))}},{key:"renderContent",value:function(){var t=this.props.inputValue.trim();return t&&""!==t?this.contentWhenQueryIsNotEmpty():this.contentWhenQueryIsEmpty()}},{key:"hasContent",value:function(){var t=this.state,e=t.topSearchedItems,r=t.suggestionItems,n=t.history,i=t.products;return e.length>0||r.length>0||n.length>0||i.length>0}},{key:"getProductCount",value:function(){var t=this.props,e=t.customBreakpoints,r=t.isMobile,n=t.maxSuggestedProducts,i=void 0===n?3:n;if(!window||r||!e)return i;var s=window.innerWidth;return e.md&&e.lg&&e.xlg?s>=e.xlg.width?e.xlg.maxSuggestedProducts:s>=e.lg.width?e.lg.maxSuggestedProducts:s>=e.md.width?e.md.maxSuggestedProducts:i:i}},{key:"render",value:function(){var t=this.props.isOpen&&this.hasContent()?"":A.a["biggy-js-container--hidden"];return m.a.createElement("div",{className:A.a["biggy-autocomplete-wrapper"],style:{width:this.props.autocompleteWidth?"".concat(this.props.autocompleteWidth,"vw"):void 0}},m.a.createElement("section",{ref:this.autocompleteRef,className:"".concat(A.a["biggy-autocomplete"]," ").concat(t," w-100"),style:{flexDirection:this.getProductLayout()===tt.Horizontal?"column":"row"}},m.a.createElement(et,{listName:"autocomplete-result-list"},this.renderContent(),this.props.isMobile?m.a.createElement("button",{className:A.a["close-btn"]},m.a.createElement(U.a,null)):null)))}}]),l}(m.a.Component),nt=Y()(Object(h.withApollo)(rt));e.default=nt}],[[39,"common",0]]]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];s=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",(function(){return r}))},13:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},15:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0})).join("/").replace(/\/\//g,"/"),W=function(){var e=K;V?e=L.queryField:m?e=m:N&&N.length>0&&(e="".concat(K,"/").concat(N.replace(",","/")));try{return decodeURI(e)}catch(t){return e}}(),X=m?f:$,Y="undefined"!=typeof sessionStorage&&sessionStorage.getItem("searchState")||T;return c.a.createElement(l.a,{maxItemsPerPage:d,query:W,map:X,orderBy:F,priceRange:q,hideUnavailableItems:g,facetsBehavior:h,categoryTreeBehavior:P,pageQuery:I,skusFilter:S,simulationBehavior:x,installmentCriteria:_,excludedPaymentSystems:w,includedPaymentSystems:j,operator:z,fuzzy:U,searchState:Y,__unstableProductOriginVtex:M,sponsoredProductsBehavior:R},(function(e,t){return c.a.cloneElement(k,{searchQuery:y(y({},e),{},{data:y(y({},e.data||{}),{},{products:Object(o.path)(["data","productSearch","products"],e)}),facets:Object(o.path)(["data","facets"],e),products:Object(o.path)(["data","productSearch","products"],e),recordsFiltered:Object(o.path)(["data","productSearch","recordsFiltered"],e)}),searchContext:A,pagesPath:r,map:$,orderBy:F,priceRange:q,page:t.page,from:t.from,to:t.to,facetsLoading:t.facetsLoading,maxItemsPerPage:d,rest:N,lazyItemsRemaining:t.lazyItemsRemaining})}))};f.schema={title:"admin/editor.product-search.title",type:"object",properties:{maxItemsPerPage:{title:"admin/editor.product-search.maxItemsPerPage",type:"number"},queryField:{title:"Query",type:"string"},mapField:{title:"Map",type:"string"},orderByField:{title:"Order by field",type:"string",default:u[0].value,enum:u.map((function(e){return e.value})),enumNames:u.map((function(e){return e.label}))},hideUnavailableItems:{title:"admin/editor.product-search.hideUnavailableItems",type:"boolean",default:!1},sponsoredProductsBehavior:{title:"Sponsored products behavior",type:"string",default:"sync"}}};t.default=f}},[[65,"common"]]]); },function(){ (window.webpackJsonpvtex_store_2_142_0=window.webpackJsonpvtex_store_2_142_0||[]).push([[0],{16:function(r,e,t){"use strict";const n=t(67),o=t(68),a=t(69),s=t(70),c=Symbol("encodeFragmentIdentifier");function i(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(r,e){return e.encode?e.strict?n(r):encodeURIComponent(r):r}function l(r,e){return e.decode?o(r):r}function p(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function f(r){const e=(r=p(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function y(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function d(r,e){i((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&l(t,r).includes(r.arrayFormatSeparator);t=a?l(t,r):t;const s=o||a?t.split(r.arrayFormatSeparator).map(e=>l(e,r)):null===t?t:l(t,r);n[e]=s};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?l(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map(e=>l(e,r));void 0!==n[e]?n[e]=[].concat(n[e],a):n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),n=Object.create(null);if("string"!=typeof r)return n;if(!(r=r.trim().replace(/^[?#&]/,"")))return n;for(const o of r.split("&")){if(""===o)continue;let[r,s]=a(e.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:l(s,e),t(l(r,e),s,n)}for(const r of Object.keys(n)){const t=n[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=y(t[r],e);else n[r]=y(t,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((r,e)=>{const t=n[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=function r(e){return Array.isArray(e)?e.sort():"object"==typeof e?r(Object.keys(e)).sort((r,e)=>Number(r)-Number(e)).map(r=>e[r]):e}(t):r[e]=t,r},Object.create(null))}e.extract=f,e.parse=d,e.stringify=(r,e)=>{if(!r)return"";i((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],n=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[",o,"]"].join("")]:[...t,[u(e,r),"[",u(o,r),"]=",u(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[]"].join("")]:[...t,[u(e,r),"[]=",u(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[u(t,r),e,u(o,r)].join("")]:[[n,u(o,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,u(e,r)]:[...t,[u(e,r),"=",u(n,r)].join("")]}}(e),o={};for(const e of Object.keys(r))t(e)||(o[e]=r[e]);const a=Object.keys(o);return!1!==e.sort&&a.sort(e.sort),a.map(t=>{const o=r[t];return void 0===o?"":null===o?u(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?u(t,e)+"[]":o.reduce(n(t),[]).join("&"):u(t,e)+"="+u(o,e)}).filter(r=>r.length>0).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=a(r,"#");return Object.assign({url:t.split("?")[0]||"",query:d(f(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,e)}:{})},e.stringifyUrl=(r,t)=>{t=Object.assign({encode:!0,strict:!0,[c]:!0},t);const n=p(r.url).split("?")[0]||"",o=e.extract(r.url),a=e.parse(o,{sort:!1}),s=Object.assign(a,r.query);let i=e.stringify(s,t);i&&(i="?"+i);let l=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(l="#"+(t[c]?u(r.fragmentIdentifier,t):r.fragmentIdentifier)),`${n}${i}${l}`},e.pick=(r,t,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);const{url:o,query:a,fragmentIdentifier:i}=e.parseUrl(r,n);return e.stringifyUrl({url:o,query:s(a,t),fragmentIdentifier:i},n)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}},67:function(r,e,t){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>"%"+r.charCodeAt(0).toString(16).toUpperCase())},68:function(r,e,t){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(r,e){try{return decodeURIComponent(r.join(""))}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],a(t),a(n))}function s(r){try{return decodeURIComponent(r)}catch(o){for(var e=r.match(n),t=1;t{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]}},70:function(r,e,t){"use strict";r.exports=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=e.cacheKey,i=e.skip,c=Object(a.useRuntime)(),u=c.route,l=c.account,d=null!=n?n:u.routeId,s=Object(r.useMemo)((function(){return!a.canUseDOM||i?null:{event:"pageView",pageTitle:null!=t?t:document.title,pageUrl:location.href,referrer:0===document.referrer.indexOf(location.origin)?void 0:document.referrer,accountName:l,routeId:(null==u?void 0:u.routeId)?u.routeId:""}}),[l,t,a.canUseDOM,d]);Object(o.a)(i?null:s,d)},c=["store.search","store.product"];t.a=function(e){var t=e.title,n=Object(a.useRuntime)().route,r=n&&c.some((function(e){return 0===n.routeId.indexOf(e)}));return i({title:t,skip:r}),null}},11:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1);function a(){var e=Object(r.useRuntime)(),t=e.route,n=e.rootPath,a=void 0===n?"":n,o=t.canonicalPath,i=window.__hostname__||window.location&&window.location.hostname;return i&&o?"https://".concat(i).concat(a).concat(o):null}},2:function(e,t){e.exports=R},33:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.open-graph@1.x/SearchOpenGraph"]},34:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.structured-data@0.x/ProductList"]},4:function(e,t,n){"use strict";var r=n(0),a=n(5),o=n(2);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object(a.usePixel)(),c=i.push,u=Object(r.useRef)(null),l=u.current;Object(r.useEffect)((function(){if(t&&!n&&l!==t){if(!e||Object(o.isEmpty)(e))return;Array.isArray(e)?e.forEach(c):c(e),u.current=t}}),[e,n,t,l,c])}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},66:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store@2.142.0");var r=Object(t.register)((function(){return n(74)}),e,"vtex.store@2.142.0","vtex.store@2.x","SearchWrapper");r.renderHotReload,r.setupHMR}.call(this,n(9)(e))},74:function(e,t,n){"use strict";n.r(t),n.d(t,"getHelmetLink",(function(){return E}));var r=n(6),a=n(0),o=n.n(a),i=n(1),c=n(33),u=n.n(c),l=n(34),d=n.n(l),s=n(16),v=n.n(s),f=n(4),p=n(10),m=n(2),g=function(e){var t,n;return(null===(n=null===(t=e.facets)||void 0===t?void 0:t.categoriesTrees)||void 0===n?void 0:n.length)?e.facets.categoriesTrees.find((function(e){return e.selected})):function(e){var t,n,r;if(null===(t=null==e?void 0:e.queryArgs)||void 0===t?void 0:t.map.split(",").includes("c")){var a=null===(n=e.specificationFilters)||void 0===n?void 0:n.find((function(e){var t;return"category-1"===(null===(t=e.facets)||void 0===t?void 0:t[0].key)}));return null===(r=null==a?void 0:a.facets)||void 0===r?void 0:r.find((function(e){return e.selected}))}}(e.facets)},h=function(e){if(e&&e.facets&&e.facets.categoriesTrees){var t=g(e);if(t)return{id:t.id,name:t.name}}},_=function(e){if(e&&e.facets&&e.facets.categoriesTrees){var t=g(e);if(t){var n=function e(t,n){var r,a=t.children&&t.children.length>0&&t.children.find((function(e){return e.selected}));return a?e(a):null!==(r=function(e){var t,n,r,a;if(!((null!==(n=null===(t=null==e?void 0:e.queryArgs)||void 0===t?void 0:t.map.split(",").filter((function(e){return"c"===e})).length)&&void 0!==n?n:0)<=1)){var o=null===(r=null==e?void 0:e.specificationFilters)||void 0===r?void 0:r.find((function(e){var t;return"category-2"===(null===(t=e.facets)||void 0===t?void 0:t[0].key)}));return null===(a=null==o?void 0:o.facets)||void 0===a?void 0:a.find((function(e){return e.selected}))}}(n))&&void 0!==r?r:t}(t,e.facets);if(n!==t)return{id:n.id,name:n.name}}}},b=function(e,t,n){var r;if(e&&e.productSearch&&e.facets&&e.facets.queryArgs){var a=e.facets.queryArgs,o=a.query,i=a.map,c=Object(m.zipObj)(i.split(","),o.split("/")).ft,u="";try{u=decodeURIComponent(c||"")}catch(e){u=decodeURIComponent(encodeURIComponent(c||""))}var l=g(e),d=null===(r=null==e?void 0:e.products)||void 0===r?void 0:r.map((function(e){return{productId:e.productId}}));return{term:u||void 0,category:l?{id:l.id,name:l.name}:null,results:e.productSearch.recordsFiltered,operator:e.productSearch.operator,searchState:e.productSearch.searchState,correction:e.productSearch.correction,products:d,page:t,maxItemsPerPage:n}}},y=n(11),O={InternalSiteSearch:"internalSiteSearchView",Category:"categoryView",Department:"departmentView",EmptySearch:"emptySearchView"},x=function(e){try{return decodeURIComponent(e)}catch(t){return e}};function S(e){if(!e||"b"===e||"brand"===e)return!0;var t=e.split(",");return!(t.length>4)&&t.every((function(e){return"c"===e}))}function E(e){var t=e.canonicalLink,n=e.page,r=e.map,a=e.rel,o=e.term;if(!t)return null;var i=0;"canonical"===a?i=n:"next"===a?i=n+1:"prev"===a&&(i=n-1);var c=function(e){var t=e.canonicalLink,n=e.page,r=e.map,a=e.term;if(null!=n&&n<1)return null;var o={page:null!=n&&n>1?n:void 0,map:S(r)?void 0:r,_q:a};return v.a.stringifyUrl({url:decodeURI(t),query:o})}({canonicalLink:t,page:i,map:r,term:o});return c?{rel:a,href:c}:null}function T(e,t,n){return e&&null!=t&&null!=n?t+10?" #".concat(c):"",d=u?"":" - ".concat(r);return n?"".concat(x(n)).concat(l).concat(d):o?"".concat(x(o)).concat(l).concat(d):a?"".concat((t=x(a),t&&t.charAt(0).toUpperCase()+t.slice(1))).concat(l).concat(d):r}({titleTag:j,storeTitle:Y||X,term:t.term,pageTitle:K,pageNumber:$?Number(H):0,removeStoreNameTitle:re}),oe=Object(y.a)(),ie=E({canonicalLink:oe,page:M,map:te?"":m,term:W,rel:"canonical"}),ce={title:ae,description:N||(null==Q?void 0:Q.description),canonical:null==ie?void 0:ie.href},ue=Object(a.useMemo)((function(){var e,r;if(!c||!i.canUseDOM||!c.products||!(null===(r=null===(e=c.data)||void 0===e?void 0:e.facets)||void 0===r?void 0:r.queryArgs)||l)return null;var a=c.products,o=function(e,t){if(!e)return"otherView";var n=function(e,t){if(!e||0===e.length)return"EmptySearch";var n=t.category;return t.term?"InternalSiteSearch":n?"Category":"Department"}(e,t);return O[n]||"otherView"}(a,t);return[{event:"pageInfo",eventType:o,accountName:F,pageTitle:ae,pageUrl:window.location.href,orderBy:n,appliedFilters:null==m?void 0:m.split(",").map((function(e){return{name:e}})),page:H,category:(null==c?void 0:c.data)?_(c.data):null,department:(null==c?void 0:c.data)?h(c.data):null,search:(null==c?void 0:c.data)?b(c.data,M,L):null},{event:o,products:a}]}),[c,l,t,F,ae,n,m,H,M,L]),le=Object(a.useState)(!0),de=Object(r.a)(le,2),se=de[0],ve=de[1],fe=Object(a.useMemo)((function(){return{isParentLoading:G&&se}}),[G,se]),pe=function(e,t,n){var r=e.variables;if(r)return r.query+r.map+(null!=t?t:"")+(null!=n?n:"")}(c,n,H);Object(p.b)({title:ae,cacheKey:pe}),Object(f.a)(ue,pe,G),Object(a.useEffect)((function(){G||ve(!1)}),[G]);var me=null!=C?C:a.Fragment;return o.a.createElement(a.Fragment,null,o.a.createElement(i.Helmet,{title:ae,meta:[t.term&&{name:"robots",content:"noindex,follow"},N&&{name:"description",content:N}].filter(Boolean),link:[ie,E({canonicalLink:oe,page:M,map:m,rel:"prev"}),T(c.products,q,k)?E({canonicalLink:oe,page:M,map:m,rel:"next"}):null].filter(Boolean)}),o.a.createElement(d.a,{products:c.products}),o.a.createElement(u.a,{meta:ce}),o.a.createElement(i.LoadingContextProvider,{value:fe},o.a.createElement(me,null,o.a.cloneElement(D,e))))}}},[[66,"common",0]]]); },function(){ (window.webpackJsonpvtex_store_2_142_0=window.webpackJsonpvtex_store_2_142_0||[]).push([["StoreWrapper"],[function(e,t){e.exports=React},function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t){e.exports=R},,function(e,t,r){"use strict";var n=r(0),o=r(5),a=r(2);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object(o.usePixel)(),c=i.push,u=Object(n.useRef)(null),s=u.current;Object(n.useEffect)((function(){if(t&&!r&&s!==t){if(!e||Object(a.isEmpty)(e))return;Array.isArray(e)?e.forEach(c):c(e),u.current=t}}),[e,r,t,s,c])}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},,function(e,t){e.exports=ReactApollo},,,function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(0),o=r(1),a=r(4),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=e.cacheKey,i=e.skip,c=Object(o.useRuntime)(),u=c.route,s=c.account,l=null!=r?r:u.routeId,p=Object(n.useMemo)((function(){return!o.canUseDOM||i?null:{event:"pageView",pageTitle:null!=t?t:document.title,pageUrl:location.href,referrer:0===document.referrer.indexOf(location.origin)?void 0:document.referrer,accountName:s,routeId:(null==u?void 0:u.routeId)?u.routeId:""}}),[s,t,o.canUseDOM,l]);Object(a.a)(i?null:p,l)},c=["store.search","store.product"];t.a=function(e){var t=e.title,r=Object(o.useRuntime)().route,n=r&&c.some((function(e){return 0===r.routeId.indexOf(e)}));return i({title:t,skip:n}),null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1);function o(){var e=Object(n.useRuntime)(),t=e.route,r=e.rootPath,o=void 0===r?"":r,a=t.canonicalPath,i=window.__hostname__||window.location&&window.location.hostname;return i&&a?"https://".concat(i).concat(o).concat(a):null}},,,function(e,t,r){"use strict";var n=r(0),o=r.n(n);t.a=function(e){var t=e.children,r=e.className;return o.a.createElement("div",{className:r},o.a.createElement("div",{className:"flex flex-column min-vh-100 w-100"},t))}},,,,,,,function(e,t){e.exports=ReactIntl},,,,,,,,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastProvider"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/PWAContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderQueue"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.shipping-option-components@1.x/ShippingOptionContext"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationAddToCart"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormProfile"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormShipping"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormCheckin"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/OrderFormContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryOrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastContext"]},,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t),function(e){var t=r(3);r.p=Object(t.getPublicPath)("vtex.store@2.142.0");var n=Object(t.register)((function(){return r(73)}),e,"vtex.store@2.142.0","vtex.store@2.x","StoreWrapper");n.renderHotReload,n.setupHMR}.call(this,r(9)(e))},,function(e,t,r){"use strict";r.r(t);var n=r(19),o=r(6),a=r(8),i=r(0),c=r.n(i),u=r(1),s=r(5),l=r(35),p=r.n(l),d=r(36),f=r(37),m=r(38),O=r(39),h=r(40),_=["firstName","lastName","document","id","email","phone","isAuthenticated"];var v=function(){var e=Object(s.usePixel)().push;return Object(i.useEffect)((function(){(window.__RENDER_8_SESSION__&&window.__RENDER_8_SESSION__.sessionPromise?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve(null)).then((function(t){var r,n,o=null===(n=null===(r=null==t?void 0:t.response)||void 0===r?void 0:r.namespaces)||void 0===n?void 0:n.profile;if(o){var a=function(e){return e?_.reduce((function(t,r){var n,o=null===(n=e[r])||void 0===n?void 0:n.value;return o&&(t[r]="isAuthenticated"===r?function(e){return"true"===e.toLowerCase()}(o):o),t}),{}):{}}(o);e(Object.assign({event:"userData"},a))}}))}),[e]),null},b=r(10),g=r(41),E=r(42),x=r(13),j=r(51),y=r(52),N=r(20),R=r(7),w=r(43),S=r.n(w),P=r(44),C=r.n(P),F=r(45),M=r.n(F),T=r(46),D=r.n(T),I=r(47),A=r.n(I),k=r(48),U=r(49),q=r.n(U);function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(N.a)(e);if(t){var o=Object(N.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(y.a)(this,r)}}var L=function(e){Object(j.a)(r,e);var t=W(r);function r(){var e;Object(g.a)(this,r);for(var n=arguments.length,o=new Array(n),i=0;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})),script:[T&&{type:"text/javascript",src:"".concat(C,"/register.js").concat(X).concat(H?"":"&__disableSW=true","&scope=").concat(encodeURIComponent(C)),defer:!0}].filter(Boolean),link:[].concat(Object(n.a)(Z||[]),Object(n.a)(!l&&Y?[{rel:"canonical",href:encodeURI(Y)}]:[])).filter(Boolean)}),c.a.createElement(s.PixelProvider,{currency:x},c.a.createElement(d.PWAProvider,{rootPath:C},c.a.createElement(b.a,{title:J}),c.a.createElement(v,null),c.a.createElement(p.a,{positioning:"window"},c.a.createElement(K,null),L?oe:c.a.createElement(z,null,oe)))),function(){try{return u.canUseDOM&&window.top!==window.self&&window.top.__provideRuntime}catch(e){return!1}}()&&c.a.createElement(u.NoSSR,null,c.a.createElement(u.ExtensionPoint,{id:"highlight-overlay"})))}}],[[71,"common",0]]]); },function(){ (window.webpackJsonpvtex_store_2_142_0=window.webpackJsonpvtex_store_2_142_0||[]).push([["DefaultChallenge"],{55:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store@2.142.0");var r=Object(t.register)((function(){return n(56)}),e,"vtex.store@2.142.0","vtex.store@2.x","DefaultChallenge");r.renderHotReload,r.setupHMR}.call(this,n(9)(e))},56:function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.children}}},[[55,"common"]]]); }], document.currentScript.dataset.index)