enqueueScripts([function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryProducts"],{97:function(e,r,t){"use strict";t.r(r),function(e){var r=t(0);t.p=Object(r.getPublicPath)("vtex.store-resources@0.104.3");var s=Object(r.register)((function(){return t(98)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryProducts");s.renderHotReload,s.setupHMR}.call(this,t(2)(e))},98:function(e,r,t){"use strict";t.r(r);var s=t(25),o=t.n(s);r.default=o.a}},[[97,"common",8]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryItemsWithSimulation"],{37:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"itemsWithSimulation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"items"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ItemInput"}}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemsWithSimulation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"items"},value:{kind:"Variable",name:{kind:"Name",value:"items"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"abb57d42211b568850c5f079dca14cec570c9b02d69538069650e942dd86c63b",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemId"},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:"commertialOffer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"AvailableQuantity"},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:"PriceValidUntil"},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:"__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:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:602}};i.loc.source={body:'query itemsWithSimulation($items: [ItemInput]) @context(sender: "vtex.store-resources@0.104.3") {\n itemsWithSimulation(items: $items) @runtimeMeta(hash: "abb57d42211b568850c5f079dca14cec570c9b02d69538069650e942dd86c63b") {\n itemId\n sellers {\n sellerId\n commertialOffer {\n AvailableQuantity\n Price\n ListPrice\n PriceValidUntil\n Installments {\n Value\n InterestRate\n TotalValuePlusInterestRate\n NumberOfInstallments\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function a(e,n){for(var i=0;i0;){var l=s;s=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(i,"itemsWithSimulation")},80:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var t=Object(n.register)((function(){return i(81)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryItemsWithSimulation");t.renderHotReload,t.setupHMR}.call(this,i(2)(e))},81:function(e,n,i){"use strict";i.r(n);var t=i(37),a=i.n(t);n.default=a.a}},[[80,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryAutocompleteSearchSuggestions"],{34:function(e,n){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"autocompleteSearchSuggestions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullText"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchState"}},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-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autocompleteSearchSuggestions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullText"},value:{kind:"Variable",name:{kind:"Name",value:"fullText"}}},{kind:"Argument",name:{kind:"Name",value:"searchState"},value:{kind:"Variable",name:{kind:"Name",value:"searchState"}}}],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:"069177eb2c038ccb948b55ca406e13189adcb5addcb00c25a8400450d20e0108",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:"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:501}};a.loc.source={body:'query autocompleteSearchSuggestions($fullText: String!, $searchState: String) @context(sender: "vtex.store-resources@0.104.3") {\n autocompleteSearchSuggestions(fullText: $fullText, searchState: $searchState) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "069177eb2c038ccb948b55ca406e13189adcb5addcb00c25a8400450d20e0108") {\n searches {\n term\n attributes {\n key\n value\n labelValue\n __typename\n }\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var a=0;a0;){var o=u;u=new Set,o.forEach((function(e){d.has(e)||(d.add(e),(i[e]||new Set).forEach((function(e){u.add(e)})))}))}return d.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(a,"autocompleteSearchSuggestions")},70:function(e,n,a){"use strict";a.r(n),function(e){var n=a(0);a.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var i=Object(n.register)((function(){return a(71)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryAutocompleteSearchSuggestions");i.renderHotReload,i.setupHMR}.call(this,a(2)(e))},71:function(e,n,a){"use strict";a.r(n);var i=a(34),t=a.n(i);n.default=t.a}},[[70,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QuerySuggestionProducts"],{115:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var a=Object(n.register)((function(){return i(116)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QuerySuggestionProducts");a.renderHotReload,a.setupHMR}.call(this,i(2)(e))},116:function(e,n,i){"use strict";i.r(n);var a=i(44),t=i.n(a);n.default=t.a},44:function(e,n){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Product"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"advertisement"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adResponseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{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:"categoryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"releaseDate"},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:"originalName"},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:"originalName"},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:"skuSpecifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalName"},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:"clusterHighlights"},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:"FragmentDefinition",name:{kind:"Name",value:"ItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SKU"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],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:"FragmentDefinition",name:{kind:"Name",value:"SellerFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Seller"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],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:"sellerDefault"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CommertialOfferFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Offer"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],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:"Price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ListPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Tax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"spotPrice"},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:"FragmentDefinition",name:{kind:"Name",value:"InstallmentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Installment"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],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:"PaymentSystemName"},arguments:[],directives:[]}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"productSuggestions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullText"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"facetKey"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"facetValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"origin"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productOriginVtex"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"simulationBehavior"}},type:{kind:"NamedType",name:{kind:"Name",value:"SimulationBehavior"}},defaultValue:{kind:"EnumValue",value:"default"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hideUnavailableItems"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"count"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shippingOptions"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"variant"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"advertisementOptions"}},type:{kind:"NamedType",name:{kind:"Name",value:"AdvertisementOptions"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productSuggestions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullText"},value:{kind:"Variable",name:{kind:"Name",value:"fullText"}}},{kind:"Argument",name:{kind:"Name",value:"facetKey"},value:{kind:"Variable",name:{kind:"Name",value:"facetKey"}}},{kind:"Argument",name:{kind:"Name",value:"facetValue"},value:{kind:"Variable",name:{kind:"Name",value:"facetValue"}}},{kind:"Argument",name:{kind:"Name",value:"origin"},value:{kind:"Variable",name:{kind:"Name",value:"origin"}}},{kind:"Argument",name:{kind:"Name",value:"productOriginVtex"},value:{kind:"Variable",name:{kind:"Name",value:"productOriginVtex"}}},{kind:"Argument",name:{kind:"Name",value:"simulationBehavior"},value:{kind:"Variable",name:{kind:"Name",value:"simulationBehavior"}}},{kind:"Argument",name:{kind:"Name",value:"hideUnavailableItems"},value:{kind:"Variable",name:{kind:"Name",value:"hideUnavailableItems"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}},{kind:"Argument",name:{kind:"Name",value:"count"},value:{kind:"Variable",name:{kind:"Name",value:"count"}}},{kind:"Argument",name:{kind:"Name",value:"shippingOptions"},value:{kind:"Variable",name:{kind:"Name",value:"shippingOptions"}}},{kind:"Argument",name:{kind:"Name",value:"variant"},value:{kind:"Variable",name:{kind:"Name",value:"variant"}}},{kind:"Argument",name:{kind:"Name",value:"advertisementOptions"},value:{kind:"Variable",name:{kind:"Name",value:"advertisementOptions"}}}],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:"3eca26a431d4646a8bbce2644b78d3ca734bf8b4ba46afe4269621b64b0fb67d",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"misspelled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"operator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ItemFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"sellers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SellerFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"commertialOffer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CommertialOfferFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"Installments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InstallmentFragment"},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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedProperties"},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:"rule"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"specification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"searchId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:3792}};i.loc.source={body:'fragment ProductFragment on Product @context(sender: "vtex.store-resources@0.104.3") {\n advertisement {\n adId\n adResponseId\n adRequestId\n __typename\n }\n cacheId\n productId\n description\n productName\n productReference\n linkText\n brand\n brandId\n link\n categories\n categoryId\n releaseDate\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 originalName\n specifications {\n name\n originalName\n values\n __typename\n }\n __typename\n }\n skuSpecifications {\n field {\n name\n originalName\n __typename\n }\n values {\n name\n originalName\n __typename\n }\n __typename\n }\n productClusters {\n id\n name\n __typename\n }\n clusterHighlights {\n id\n name\n __typename\n }\n properties {\n name\n values\n __typename\n }\n}\n\nfragment ItemFragment on SKU @context(sender: "vtex.store-resources@0.104.3") {\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}\n\nfragment SellerFragment on Seller @context(sender: "vtex.store-resources@0.104.3") {\n sellerId\n sellerName\n sellerDefault\n}\n\nfragment CommertialOfferFragment on Offer @context(sender: "vtex.store-resources@0.104.3") {\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 Price\n ListPrice\n Tax\n taxPercentage\n spotPrice\n PriceWithoutDiscount\n RewardValue\n PriceValidUntil\n AvailableQuantity\n}\n\nfragment InstallmentFragment on Installment @context(sender: "vtex.store-resources@0.104.3") {\n Value\n InterestRate\n TotalValuePlusInterestRate\n NumberOfInstallments\n Name\n PaymentSystemName\n}\n\nquery productSuggestions($fullText: String!, $facetKey: String, $facetValue: String, $origin: String, $productOriginVtex: Boolean = false, $simulationBehavior: SimulationBehavior = default, $hideUnavailableItems: Boolean = false, $orderBy: String, $count: Int, $shippingOptions: [String], $variant: String, $advertisementOptions: AdvertisementOptions) @context(sender: "vtex.store-resources@0.104.3") {\n productSuggestions(fullText: $fullText, facetKey: $facetKey, facetValue: $facetValue, origin: $origin, productOriginVtex: $productOriginVtex, simulationBehavior: $simulationBehavior, hideUnavailableItems: $hideUnavailableItems, orderBy: $orderBy, count: $count, shippingOptions: $shippingOptions, variant: $variant, advertisementOptions: $advertisementOptions) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "3eca26a431d4646a8bbce2644b78d3ca734bf8b4ba46afe4269621b64b0fb67d") {\n count\n misspelled\n operator\n products {\n ...ProductFragment\n items {\n ...ItemFragment\n sellers {\n ...SellerFragment\n commertialOffer {\n ...CommertialOfferFragment\n Installments {\n ...InstallmentFragment\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n selectedProperties {\n key\n value\n __typename\n }\n rule {\n id\n __typename\n }\n specification\n __typename\n }\n searchId\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 r=l;l=new Set,r.forEach((function(e){m.has(e)||(m.add(e),(a[e]||new Set).forEach((function(e){l.add(e)})))}))}return m.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"productSuggestions")}},[[115,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["QueryTopSearches"],{117:function(e,n,a){"use strict";a.r(n),function(e){var n=a(0);a.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var i=Object(n.register)((function(){return a(118)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","QueryTopSearches");i.renderHotReload,i.setupHMR}.call(this,a(2)(e))},118:function(e,n,a){"use strict";a.r(n);var i=a(45),t=a.n(i);n.default=t.a},45:function(e,n){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"topSearches"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchState"}},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-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"topSearches"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchState"},value:{kind:"Variable",name:{kind:"Name",value:"searchState"}}}],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:"2bc9eefece58aa409f8d03dd582af43cb9acbb052fe4aa44a185e763782da88c",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:333}};a.loc.source={body:'query topSearches($searchState: String) @context(sender: "vtex.store-resources@0.104.3") {\n topSearches(searchState: $searchState) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "2bc9eefece58aa409f8d03dd582af43cb9acbb052fe4aa44a185e763782da88c") {\n searches {\n term\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function t(e,n){for(var a=0;a0;){var s=c;c=new Set,s.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){c.add(e)})))}))}return o.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(a,"topSearches")}},[[117,"common"]]]); },function(){ (window.webpackJsonpvtex_store_resources_0_104_3=window.webpackJsonpvtex_store_resources_0_104_3||[]).push([["PWAContext"],{26:function(e,n){e.exports=__RENDER_8_RUNTIME__},3:function(e,n){e.exports=React},31:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},32:function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"pwaData"},variableDefinitions:[],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-resources@0.104.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pwaSettings"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"cf216ceff62d3aacc6d96ad5caa8c5e90fb83f0243ed2af38b5a07a25ccd90ff",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"disablePrompt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promptOnCustomEvent"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"manifest"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"b83069a8591cf0289246fc3f5c8991a94a202127608b153cc9f0807a1f20330f",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme_color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"iOSIcons"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"4e049edf189618d06ad4e5f2cba3adfe92d1944150ebcd6b48248c484938ab51",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"src"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sizes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"splashes"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"9ba79f3217e0e9a3548b24328a4e78a871b5a83dc7318b2cba728c7c8531ff6c",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"src"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sizes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:658}};t.loc.source={body:'query pwaData @context(sender: "vtex.store-resources@0.104.3") {\n pwaSettings @runtimeMeta(hash: "cf216ceff62d3aacc6d96ad5caa8c5e90fb83f0243ed2af38b5a07a25ccd90ff") {\n disablePrompt\n promptOnCustomEvent\n __typename\n }\n manifest @runtimeMeta(hash: "b83069a8591cf0289246fc3f5c8991a94a202127608b153cc9f0807a1f20330f") {\n theme_color\n __typename\n }\n iOSIcons @runtimeMeta(hash: "4e049edf189618d06ad4e5f2cba3adfe92d1944150ebcd6b48248c484938ab51") {\n src\n type\n sizes\n __typename\n }\n splashes @runtimeMeta(hash: "9ba79f3217e0e9a3548b24328a4e78a871b5a83dc7318b2cba728c7c8531ff6c") {\n src\n type\n sizes\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 o=s;s=new Set,o.forEach((function(e){c.has(e)||(c.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return c.forEach((function(n){var a=i(e,n);a&&t.definitions.push(a)})),t}(t,"pwaData")},62:function(e,n,t){"use strict";t.r(n),function(e){var n=t(0);t.p=Object(n.getPublicPath)("vtex.store-resources@0.104.3");var a=Object(n.register)((function(){return t(63)}),e,"vtex.store-resources@0.104.3","vtex.store-resources@0.x","PWAContext");a.renderHotReload,a.setupHMR}.call(this,t(2)(e))},63:function(e,n,t){"use strict";t.r(n);var a=t(27),i=t(28),r=t(3),c=t.n(r),s=t(26),o=t(7),u=t(31),d=t(32),l=t.n(d),m=c.a.createContext(null);n.default={PWAContext:m,PWAProvider:Object(o.graphql)(l.a,{options:function(){return{ssr:!1}}})((function(e){var n=e.rootPath,t=e.children,o=e.data,d=void 0===o?{}:o,l=d.manifest,f=d.iOSIcons,v=d.splashes,p=d.pwaSettings,k=d.loading,b=d.error,h=Object(u.usePixel)().push,g=Object(s.useRuntime)().workspace,S=Object(r.useRef)(null),_=Object(r.useRef)(!1),N=Object(r.useState)(!1),w=Object(i.a)(N,2),O=w[0],x=w[1],E=Object(r.useState)(!1),P=Object(i.a)(E,2),D=P[0],j=P[1];Object(r.useEffect)((function(){var e=function(e){var n=p.promptOnCustomEvent,t=p.disablePrompt;return!("default"!==n&&!_.current)||(e.preventDefault(),t||(S.current=e,_.current=!0),!1)};return window.addEventListener("beforeinstallprompt",e),function(){return window.removeEventListener("beforeinstallprompt",e)}}),[_,p]),Object(r.useEffect)((function(){var e=localStorage.getItem("webAppInstalled");e&&x(e);var n=localStorage.getItem("webAppInstallDismissed");n&&j(n)}),[]);var y=Object(r.useCallback)((function(){var e=S.current;e&&(e.prompt(),e.userChoice.then((function(e){"accepted"===e.outcome?localStorage.setItem("webAppInstalled","true"):localStorage.setItem("webAppInstallDismissed","true"),h({event:"installWebApp",userChoice:e.outcome}),S.current=null})))}),[]),F=Object(r.useMemo)((function(){if(p){var e=p.disablePrompt,n=p.promptOnCustomEvent,t=navigator&&!!navigator.userAgent.match(/(iPod|iPhone|iPad)/);return{showInstallPrompt:y,settings:{promptOnCustomEvent:e||t||D||O?"":n}}}}),[y,p,O]),A=!k&&l&&!b,C="master"===g?"":"?workspace=".concat(g);return c.a.createElement(m.Provider,{value:F},A&&c.a.createElement(s.Helmet,{meta:[{name:"theme-color",content:l.theme_color},{name:"apple-mobile-web-app-capable",content:"yes"}],link:[{rel:"manifest",href:"".concat(n,"/pwa/manifest.json").concat(C)}].concat(Object(a.a)(f?f.map((function(e){return{rel:"apple-touch-icon",sizes:e.sizes,href:"".concat(n).concat(e.src)}})):[]),Object(a.a)(v?v.map((function(e){return{href:"".concat(n).concat(e.src),sizes:e.sizes,rel:"apple-touch-startup-image"}})):[])).filter(Boolean)}),t)})),usePWA:function(){return Object(r.useContext)(m)}}},7:function(e,n){e.exports=ReactApollo}},[[62,"common"]]]); },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);nthis.cancelTask(n,e)},resolve:void 0,reject:void 0};n.args.push(n.cancellationToken),this.queue.push(n),this.scheduler.schedule(()=>this.next());const i=new Promise((e,t)=>{n.resolve=e,n.reject=t});return i.cancel=e=>n.cancellationToken.cancel(e),i}cancel(){this.currentTask&&this.cancelTask(this.currentTask,s.cancel);const e=this.queue.splice(0);return e.length&&(e.forEach(e=>this.cancelTask(e,s.cancel)),this.emit(o)),this.wait()}indexOf(e){var t;if((null===(t=this.currentTask)||void 0===t?void 0:t.callback)===e)return 0;const n=this.queue.filter(e=>{var t;return!(null===(t=e.cancellationToken)||void 0===t?void 0:t.cancelled)}).findIndex(t=>t.callback===e);return n<0?n:n+(void 0!==this.currentTask?1:0)}close(e){return!this._isClosed&&(this._isClosed=!0,e)?this.cancel():this.wait()}async wait(){return this.currentTask||0!==this.queue.length?new Promise(e=>{this.waiters.push(e)}):Promise.resolve()}on(e,t){var n;this.events=null!==(n=this.events)&&void 0!==n?n:{},(this.events[e]||(this.events[e]=[])).push(t)}once(e,t){const n=(...i)=>{this.removeListener(e,n),t.apply(this,i)};this.on(e,n)}removeListener(e,t){if(this.events){const n=this.events[e];if(n){let e=0;for(;ee.apply(this,t))}catch(t){console.error(`${this.name}: Exception in '${e}' event handler`,t)}}next(){if(!this.currentTask){let t=this.queue.shift();for(;null==t?void 0:t.cancellationToken.cancelled;)t=this.queue.shift();if(t)try{this.currentTask=t,t.timeout&&(t.timeoutHandle=setTimeout(()=>{this.emit(l),this.cancelTask(t,s.timeout)},t.timeout));const n=t.callback.apply(void 0,t.args);n&&((e=n)&&"function"==typeof e.then)?n.then(e=>{t.result=e,this.doneTask(t)},e=>{this.doneTask(t,e)}):(t.result=n,this.doneTask(t))}catch(e){this.doneTask(t,e)}else this.callWaiters()}var e}cancelTask(e,t){e.cancellationToken.cancelled=!0,e.cancellationToken.reason=t,this.doneTask(e)}doneTask(e,t){e.timeoutHandle&&clearTimeout(e.timeoutHandle),e.cancellationToken.cancel=u,t?(this.emit(a,t),e.reject.call(void 0,t)):e.cancellationToken.cancelled?e.reject.call(void 0,e.cancellationToken.reason):e.resolve.call(void 0,e.result),this.currentTask===e&&(this.currentTask=void 0,this.queue.length?this.scheduler.schedule(()=>this.next()):(this.emit(o),this.callWaiters()))}callWaiters(){this.waiters.splice(0).forEach(e=>e())}}c.defaultScheduler={schedule:e=>setTimeout(()=>e(),0)},c.defaultScheduler={schedule:"function"==typeof e?t=>e(()=>t()):e=>setTimeout(()=>e(),0)};const d={id:"default-order-form",items:[],value:-1,totalizers:[],marketingData:{},canEditData:!1,loggedIn:!1,paymentData:{isValid:!1,installmentOptions:[],paymentSystems:[],payments:[],availableAccounts:[]},messages:{couponMessages:[],generalMessages:[]},shipping:{isValid:!1,deliveryOptions:[],pickupOptions:[]}};class f{constructor(){this.queue=new c,this.taskIdMap={},this.listeners={},this.isEmpty=!0,this.queue.on("drained",()=>{this.isEmpty=!0,this.emit("Fulfilled")})}isWaiting(e){return!!this.taskIdMap[e]}enqueue(e,t){this.isEmpty&&(this.isEmpty=!1,this.emit("Pending")),t&&this.taskIdMap[t]&&this.taskIdMap[t].promise.cancel();const n=()=>(t&&this.taskIdMap[t]&&delete this.taskIdMap[t],new Promise((t,n)=>{const i=async()=>{try{const n=await e();t(n)}catch(e){if(!navigator.onLine)return;n(e)}window.removeEventListener("online",i)};window.addEventListener("online",i),navigator.onLine&&i()})),i=this.queue.push(n),r=i.cancel;return i.cancel=()=>r({code:"TASK_CANCELLED",index:this.queue.indexOf(n)}),t&&(this.taskIdMap[t]={task:e,promise:i}),i}listen(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);return()=>{const n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}}emit(e){this.listeners[e]&&this.listeners[e].forEach(e=>e())}}const h=Object(i.createContext)(void 0),m=()=>{const{status:e}=g();return e},v=({children:e})=>{const[t]=Object(i.useState)(()=>new f),n=Object(i.useRef)("Fulfilled");Object(i.useLayoutEffect)(()=>t.listen("Pending",()=>n.current="Pending"),[t]),Object(i.useLayoutEffect)(()=>t.listen("Fulfilled",()=>n.current="Fulfilled"),[t]);const s=Object(i.useMemo)(()=>({enqueue:t.enqueue.bind(t),listen:t.listen.bind(t),isWaiting:t.isWaiting.bind(t),status:n}),[t,n]);return r.a.createElement(h.Provider,{value:s},e)};function g(){const e=Object(i.useContext)(h);if(void 0===e)throw new Error("useOrderQueue must be used within a OrderQueueProvider");return e}var p,T,y,w,b;const k=null!==(b=!("undefined"==typeof window||!window.document||!window.document.createElement)&&(null===(w=null===(y=null===(T=null===(p=window)||void 0===p?void 0:p.__RUNTIME__)||void 0===T?void 0:T.settings)||void 0===y?void 0:y["vtex.store"])||void 0===w?void 0:w.enableOrderFormOptimization))&&void 0!==b&&b,O=Object(i.createContext)({orderForm:d,setOrderForm:()=>{},error:void 0,loading:!1});function E(){const e=Object(i.useContext)(O);if(void 0===e)throw new Error("useOrderForm must be used within a OrderFormProvider");return e}function F(){var e;return"undefined"==typeof document?null:JSON.parse(null!==(e=localStorage.getItem("orderform"))&&void 0!==e?e:"null")}function I(e,t){return"function"==typeof t?{...e,...t({...e,value:-1===e.value?0:e.value})}:{...e,...t}}function _({useOrderFormMessages:e,useGetOrderForm:t,useLogger:n,defaultOrderForm:s}){return{OrderFormProvider:({children:o})=>{var a,l;const{log:u}=null!==(a=null==n?void 0:n())&&void 0!==a?a:{},c="undefined"!=typeof document&&!navigator.onLine,[d,f]=Object(i.useReducer)(I,null!==(l=c?F():s)&&void 0!==l?l:s),{loading:h,data:v,error:g}=t({orderForm:d,setOrderForm:f}),[p,T]=Object(i.useState)(!c),y=m();Object(i.useEffect)(()=>{if(h||g||!v)return;const e=F();if(null!=e&&(!((e,t)=>-1===e.value||k&&e.id!==t.id&&"default-order-form"!==e.id)(e,v.orderForm)||"Fulfilled"!==y.current))return T(!1),void f(t=>t.id!==s.id?t:e);f(v.orderForm),T(!1)},[v,g,h,y]),Object(i.useEffect)(()=>{((e,t)=>{try{localStorage.setItem("orderform",JSON.stringify(e))}catch(e){null==t||t({type:"Error",level:"Critical",event:e,workflowType:"OrderManager",workflowInstance:"save-local-orderform"})}})(d,u)},[u,d]),e(d,f);const w=Object(i.useMemo)(()=>"default-order-form"!==d.id?{error:g,orderForm:{...d,value:-1===d.value?0:d.value,messages:{...d.messages,generalMessages:[]}},initialFetchComplete:!0,setOrderForm:f,loading:p}:{error:g,orderForm:{...d,value:-1===d.value?0:d.value,messages:{...d.messages,generalMessages:[]}},initialFetchComplete:!1,setOrderForm:f,loading:p},[g,d,p]);return r.a.createElement(O.Provider,{value:w},o)}}}function M({useToast:e,useClearOrderFormMessages:t,useGetOrderForm:n,useLogger:r,defaultOrderForm:s}){return _({useOrderFormMessages:(({useClearOrderFormMessages:e,useToast:t})=>(n,r)=>{const[s,o]=Object(i.useState)([]),{showToast:a,toastState:l}=t(),{enqueue:u}=g(),c=m(),d=e();Object(i.useEffect)(()=>{!l.isToastVisible&&s.length&&(a(s[0].text),o(e=>e.slice(1)))},[a,l.isToastVisible,s]),Object(i.useEffect)(()=>{var e,t;if(!(null===(t=null===(e=n.messages)||void 0===e?void 0:e.generalMessages)||void 0===t?void 0:t.length))return;o(e=>{var t,i;return e.concat(null!==(i=null===(t=n.messages)||void 0===t?void 0:t.generalMessages)&&void 0!==i?i:[])}),r(e=>({...e,messages:{...e.messages,generalMessages:[]}}));u(async()=>{const{data:e}=await d({orderFormId:n.id});return e.clearOrderFormMessages}).then(e=>{"Fulfilled"===c.current&&r(e)},e=>{if("TASK_CANCELLED"!==e.code)throw e})},[d,u,n.id,n.messages,c,r])})({useToast:e,useClearOrderFormMessages:t}),useGetOrderForm:n,useLogger:r,defaultOrderForm:s})}}).call(this,n(18).setImmediate)},18:function(e,t,n){var i="undefined"!=typeof global&&global||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(19),t.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate},19:function(e,t,n){(function(e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,s,o,a,l=1,u={},c=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){m(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){m(e.data)},i=function(e){s.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&m(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(o+e,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},42: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);n4&&d.shift(),o=[].concat(Object(r.a)(d),[{name:a}]),e.abrupt("return",o);case 9:return e.abrupt("return",[{name:a}]);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=Object(d.a)(t.a.mark((function e(){var i;return t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,l();case 4:return i=e.sent,e.next=7,a({variables:{storeName:n,navigation:JSON.stringify(i)}});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(u.useEffect)((function(){k()}),[]),s.a.createElement(s.a.Fragment,null)}}},[[94,"common"]]]); },function(){ (window.webpackJsonpcarajas_avantivtexio_structured_data_2_0_8=window.webpackJsonpcarajas_avantivtexio_structured_data_2_0_8||[]).push([["GetOrganizationInfo"],{0:function(e,a){e.exports=React},12:function(e,a){e.exports=ReactApollo},16:function(e,a){e.exports=__RENDER_8_RUNTIME__},22:function(e,a){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"navigation"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organization"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postalAddress"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"website"}},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:"carajas.avantivtexio-structured-data@2.0.8",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"8be1d134315df007cee2eb581cc046e162dee4da25caac7e0adeee1c67bee831",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateStructuredData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storeName"},value:{kind:"Variable",name:{kind:"Name",value:"storeName"}}},{kind:"Argument",name:{kind:"Name",value:"navigation"},value:{kind:"Variable",name:{kind:"Name",value:"navigation"}}},{kind:"Argument",name:{kind:"Name",value:"organization"},value:{kind:"Variable",name:{kind:"Name",value:"organization"}}},{kind:"Argument",name:{kind:"Name",value:"postalAddress"},value:{kind:"Variable",name:{kind:"Name",value:"postalAddress"}}},{kind:"Argument",name:{kind:"Name",value:"website"},value:{kind:"Variable",name:{kind:"Name",value:"website"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"navigation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:503}};n.loc.source={body:'mutation ($storeName: String, $navigation: String, $organization: String, $postalAddress: String, $website: String) @context(sender: "carajas.avantivtexio-structured-data@2.0.8") @runtimeMeta(hash: "8be1d134315df007cee2eb581cc046e162dee4da25caac7e0adeee1c67bee831") {\n updateStructuredData(storeName: $storeName, navigation: $navigation, organization: $organization, postalAddress: $postalAddress, website: $website) {\n navigation\n organization\n postalAddress\n website\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};n.definitions.forEach((function(e){if(e.name){var a=new Set;!function e(a,n){if("FragmentSpread"===a.kind)n.add(a.name.value);else if("VariableDefinition"===a.kind){var i=a.type;"NamedType"===i.kind&&n.add(i.name.value)}a.selectionSet&&a.selectionSet.selections.forEach((function(a){e(a,n)})),a.variableDefinitions&&a.variableDefinitions.forEach((function(a){e(a,n)})),a.definitions&&a.definitions.forEach((function(a){e(a,n)}))}(e,a),i[e.name.value]=a}})),e.exports=n},23:function(e,a){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeName"}},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:"carajas.avantivtexio-structured-data@2.0.8",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getStructuredData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storeName"},value:{kind:"Variable",name:{kind:"Name",value:"storeName"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"546053f25fcbd9c63fb2e6941ac3cc216f8c14ad13206c1b0c23e18dd5b4c600",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"navigation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:321}};n.loc.source={body:'query ($storeName: String) @context(sender: "carajas.avantivtexio-structured-data@2.0.8") {\n getStructuredData(storeName: $storeName) @runtimeMeta(hash: "546053f25fcbd9c63fb2e6941ac3cc216f8c14ad13206c1b0c23e18dd5b4c600") {\n storeName\n navigation\n organization\n postalAddress\n website\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};n.definitions.forEach((function(e){if(e.name){var a=new Set;!function e(a,n){if("FragmentSpread"===a.kind)n.add(a.name.value);else if("VariableDefinition"===a.kind){var i=a.type;"NamedType"===i.kind&&n.add(i.name.value)}a.selectionSet&&a.selectionSet.selections.forEach((function(a){e(a,n)})),a.variableDefinitions&&a.variableDefinitions.forEach((function(a){e(a,n)})),a.definitions&&a.definitions.forEach((function(a){e(a,n)}))}(e,a),i[e.name.value]=a}})),e.exports=n},43:function(e,a){e.exports=regeneratorRuntime},96:function(e,a,n){"use strict";n.r(a),function(e){var a=n(10);n.p=Object(a.getPublicPath)("carajas.avantivtexio-structured-data@2.0.8");var i=Object(a.register)((function(){return n(97)}),e,"carajas.avantivtexio-structured-data@2.0.8","carajas.avantivtexio-structured-data@2.x","GetOrganizationInfo");i.renderHotReload,i.setupHMR}.call(this,n(26)(e))},97:function(e,a,n){"use strict";n.r(a);var i=n(14),t=n.n(i),r=n(21),d=n(7),o=n(0),s=n.n(o),u=n(16),c=n(12),l=n(23),m=n.n(l),v=n(22),k=n.n(v);a.default=function(){var e=Object(u.useRuntime)().account,a=Object(c.useMutation)(k.a),n=Object(d.a)(a,1)[0],i=Object(c.useQuery)(m.a,{variables:{storeName:e},ssr:!1}),l=function(){var a=Object(r.a)(t.a.mark((function a(){var r,d,o,s,u;return t.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i.refetch();case 2:return a.next=4,a.sent.data.getStructuredData.organization;case 4:if("string"==typeof(r=a.sent)){a.next=7;break}return a.abrupt("return");case 7:return d=JSON.parse(r),o=d.organizationStore,s=d.contactPoint,u={organizationStore:{url:document.location.origin,logo:o.logo||(t=void 0,t=document.querySelector(".vtex-store-components-3-x-logoImage"),t?String(t.getAttribute("src")):""),name:o.name||"",email:o.email||"",facebook:o.facebook||"",instagram:o.instagram||"",youtube:o.youtube||""},contactPoint:{telephone:s.telephone||"",contactType:s.contactType||"",availableLanguage:s.availableLanguage||"",areaServed:s.areaServed||""}},a.next=11,n({variables:{storeName:e,organization:JSON.stringify(u)}});case 11:case"end":return a.stop()}var t}),a)})));return function(){return a.apply(this,arguments)}}();return Object(o.useEffect)((function(){l()}),[]),s.a.createElement(s.a.Fragment,null)}}},[[96,"common"]]]); },function(){ (window.webpackJsonpcarajas_avantivtexio_structured_data_2_0_8=window.webpackJsonpcarajas_avantivtexio_structured_data_2_0_8||[]).push([["SetScript"],{0:function(e,t){e.exports=React},105:function(e,t,a){"use strict";a.r(t),function(e){var t=a(10);a.p=Object(t.getPublicPath)("carajas.avantivtexio-structured-data@2.0.8");var n=Object(t.register)((function(){return a(108)}),e,"carajas.avantivtexio-structured-data@2.0.8","carajas.avantivtexio-structured-data@2.x","SetScript");n.renderHotReload,n.setupHMR}.call(this,a(26)(e))},108:function(e,t,a){"use strict";a.r(t);var n=a(7),i=a(0),r=a.n(i),o=a(16),d=a(72),c=a.n(d),s=a(73),l=a.n(s),u=a(12),m=function(e,t){var a=e.find((function(e){return e.name===t}));return null==a?void 0:a.values[0]},v=function(e,t){var a,i=null===(a=e.find((function(e){return e.name===t})))||void 0===a?void 0:a.values[0],r=null==i?void 0:i.match(/(\d*,?\d+)\s*(g|kg)/);if(r){var o=Object(n.a)(r,3);return{value:o[1],unit:o[2]}}return{value:"",unit:""}},f=a(37),p=function(e){return{"@type":"ListItem",position:e.position,name:e.name,item:{type:"Thing","@id":e.item.id}}},g=function(e){return{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:e}},k=a(56),b=a.n(k),h=a(74),y=a.n(h),S=a(23),N=a.n(S),_=/store\.custom#.*$/,x=["store.search#department","store.search#category","store.search#subcategory","store.search#brand"],w=Object(u.graphql)(N.a,{options:function(){return{ssr:!0}}})((function(e){var t,a,d,s,k,h,S=Object(o.useRuntime)().page,N=c()(),w=null!==(a=null===(t=window.location)||void 0===t?void 0:t.origin)&&void 0!==a?a:"",D=null!==(s=null===(d=null==N?void 0:N.product)||void 0===d?void 0:d.linkText)&&void 0!==s?s:"",O=function(e,t,a,n){var i,r=[],o=null!==(i=null==t?void 0:t.map((function(t,a){var n=t.href,i=t.name,r="".concat(e).concat(n);return p({position:a+1,name:i,item:{id:r}})})))&&void 0!==i?i:[],d="".concat(e,"/").concat(null!=a?a:"","/p");return r.push.apply(r,Object(f.a)(o).concat([p({position:r.length+1,name:null!=n?n:"",item:{id:d}})])),r}(w,null===(k=null==N?void 0:N.product)||void 0===k?void 0:k.categoryTree,D,null===(h=null==N?void 0:N.product)||void 0===h?void 0:h.productName),P=Object(i.useState)({mustBeImplemented:!0,mustGenerateBreadcrumbListInPDP:!0}),A=Object(n.a)(P,2),E=A[0],j=A[1],L=Object(u.useQuery)(b.a,{ssr:!1,variables:{appSetting:"mustBeImplemented"}}),F=Object(u.useQuery)(b.a,{ssr:!1,variables:{appSetting:"mustGenerateBreadcrumbListInPDP"}}),V=Object(u.useLazyQuery)(y.a,{ssr:!1}),I=Object(n.a)(V,2),T=I[0],R=I[1].data;Object(i.useEffect)((function(){var e,t;if("store.home"!==S&&!_.test(S)&&("store.product"!==S||E.mustGenerateBreadcrumbListInPDP))try{var a=(null===(t=null===(e=window.location)||void 0===e?void 0:e.pathname)||void 0===t?void 0:t.split("/"))||[],n=("store.search#brand"===S?[{key:"brand",value:a[1]}]:[{key:"category-1",value:a[1]},{key:"category-2",value:a[2]},{key:"category-3",value:a[3]}]).filter((function(e){return e.value}));n.length>0&&T({variables:{facets:n}})}catch(e){console.error(e)}}),[S,E.mustGenerateBreadcrumbListInPDP,T]),Object(i.useEffect)((function(){if(L.data&&F.data){var e=L.data.getAppSettings,t=F.data.getAppSettings;j({mustBeImplemented:Boolean("true"===e),mustGenerateBreadcrumbListInPDP:Boolean("true"===t)})}}),[null==L?void 0:L.data,null==F?void 0:F.data]);return E.mustBeImplemented||!_.test(S)&&!x.includes(S)?r.a.createElement(l.a,null,r.a.createElement("script",{type:"application/ld+json",id:"avantivtexio-structured-data-script-tag"},"".concat(JSON.stringify(function(){var t,a,i,r,o,d,c,s,l;try{var u=e.data.getStructuredData,f=(l=u,Object.entries(l).filter((function(e){return"__typename"!==Object(n.a)(e,1)[0]})).reduce((function(e,t){var a=Object(n.a)(t,2),i=a[0],r=a[1];try{e[i]=JSON.parse(r)}catch(t){e[i]=r}return e}),{})),k=f.organization,b=f.website,h=f.navigation,y=f.postalAddress,x={};if(k)try{var P=k.organizationStore,A=P.facebook,j=P.youtube,L=P.instagram,F=P.name,V=P.url,I=P.logo,T=P.email,B=k.contactPoint,C=B.telephone,q=B.contactType,z=B.areaServed,G=B.availableLanguage;x.organization={"@context":"http://schema.org","@type":"Organization",name:F,url:V,logo:I,address:{"@type":"PostalAddress",addressLocality:null!==(t=null==y?void 0:y.addressLocality)&&void 0!==t?t:"",postalCode:null!==(a=null==y?void 0:y.postalCode)&&void 0!==a?a:"",streetAddress:null!==(i=null==y?void 0:y.streetAddress)&&void 0!==i?i:""},email:T,sameAs:[A,j,L],contactPoint:{"@type":"ContactPoint",telephone:C,contactType:q,areaServed:z,availableLanguage:G}}}catch(e){console.error(e)}if("store.home"!==S)try{if("store.product"===S||_.test(S))if(_.test(S)){var M=null!==(s=(null!==(c=null===(d=null===(o=window.location)||void 0===o?void 0:o.pathname)||void 0===d?void 0:d.split("/"))&&void 0!==c?c:[])[1])&&void 0!==s?s:"",U="".concat(w,"/").concat(M),Q=p({position:1,name:M,item:{id:U}});x.breadcrumbList=g([Q])}else E.mustGenerateBreadcrumbListInPDP&&(x.breadcrumbList=g(O));else x.breadcrumbList=g(null!==(r=null==R?void 0:R.facets.breadcrumb.map((function(e,t){var a=e.href,n=e.name,i="".concat(w).concat(a);return p({position:t+1,name:n,item:{id:i}})})))&&void 0!==r?r:[])}catch(e){console.error(e)}if(b)try{var $="https://".concat(b.websiteUrl,"/{search_term_string}?_q={search_term_string}&map=ft");x.website={"@context":"http://schema.org/","@type":"WebSite",url:b.websiteUrl,potentialAction:{"@type":b.potentialAction,target:{"@type":"EntryPoint",urlTemplate:$},"query-input":"required name=search_term_string"}}}catch(e){console.error(e)}if(h)try{x.navigation={"@context":"http://schema.org","@type":"ItemList",itemListElement:h.map((function(e,t){var a=e.name;return{"@type":"ListItem",position:t+1,item:{"@id":a,name:a}}}))}}catch(e){console.error(e)}if(y)try{x.postalAddress={"@context":"http://schema.org/","@type":"Place",address:{"@type":"PostalAddress",addressLocality:(null==y?void 0:y.addressLocality)||"",addressRegion:(null==y?void 0:y.addressRegion)||"",postalCode:(null==y?void 0:y.postalCode)||"",streetAddress:(null==y?void 0:y.streetAddress)||""}}}catch(e){console.error(e)}if("store.product"===S)try{var J=function(e,t){var a,n,i,r,o,d,c=e.product,s=e.selectedItem,l=t.organization,u=t.navigation,f=JSON.parse(l).url,p=JSON.parse(u).name;return{productInfo:{name:c.productName||"",image:s.images[0].imageUrl||"",category:c.categories[0]||"",url:null!=p?p:"",itemCondition:"",sku:s.itemId||"",color:m(s.variations,"Cor")||"",weight:v(s.variations,"Peso"),size:m(s.variations,"Tamanho")||"",age_group:"",gender:"",gtin:s.ean||""},brand:{type:"Thing",url:"".concat(f,"/").concat(c.brand.replace(/\s+/g,"-").toLowerCase()),name:c.brand.replace(/\s+/g,"-").toLowerCase()||""},offer:{availability:(null===(n=null===(a=s.sellers[0])||void 0===a?void 0:a.commertialOffer)||void 0===n?void 0:n.AvailableQuantity)>0,price:null!==(i=c.priceRange.sellingPrice.lowPrice)&&void 0!==i?i:null===(r=s.sellers[0])||void 0===r?void 0:r.commertialOffer.Price,priceCurrency:"BRL",url:c.link||"",priceValidUntil:(null===(d=null===(o=s.sellers[0])||void 0===o?void 0:o.commertialOffer)||void 0===d?void 0:d.PriceValidUntil)||"",aggregateRating:"",description:s.name},aggregateOffer:{lowPrice:c.priceRange.sellingPrice.lowPrice||"",priceCurrency:"BRL"},review:{datePublished:"",description:"",name:"",type:"",ratingValue:""}}}(N,u),H=J.offer,W=H.description,K=H.availability,X=H.price,Y=H.priceCurrency,Z=H.priceValidUntil,ee=J.productInfo,te=ee.sku,ae=ee.gtin,ne=ee.name,ie=ee.image,re=ee.color,oe=ee.size,de=ee.weight,ce="".concat(w,"/").concat(D,"/p");x.product={"@context":"https://schema.org","@type":"Product","@id":ce,description:W,sku:te,gtin:ae,name:ne,image:ie,color:re,size:oe,weight:de.value?{"@type":"Weight",unitText:de.unit,value:de.value}:"",offers:{"@type":"Offer",price:X,priceCurrency:Y,availability:K?"https://schema.org/InStock":"https://schema.org/OutOfStock",priceValidUntil:Z}}}catch(e){console.error(e)}return x}catch(e){return{}}}())))):null}));t.default=w},12:function(e,t){e.exports=ReactApollo},16:function(e,t){e.exports=__RENDER_8_RUNTIME__},23:function(e,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeName"}},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:"carajas.avantivtexio-structured-data@2.0.8",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getStructuredData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storeName"},value:{kind:"Variable",name:{kind:"Name",value:"storeName"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"546053f25fcbd9c63fb2e6941ac3cc216f8c14ad13206c1b0c23e18dd5b4c600",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"navigation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:321}};a.loc.source={body:'query ($storeName: String) @context(sender: "carajas.avantivtexio-structured-data@2.0.8") {\n getStructuredData(storeName: $storeName) @runtimeMeta(hash: "546053f25fcbd9c63fb2e6941ac3cc216f8c14ad13206c1b0c23e18dd5b4c600") {\n storeName\n navigation\n organization\n postalAddress\n website\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};a.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,a){if("FragmentSpread"===t.kind)a.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&a.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,a)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,a)})),t.definitions&&t.definitions.forEach((function(t){e(t,a)}))}(e,t),n[e.name.value]=t}})),e.exports=a},56:function(e,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAppSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"appSetting"}},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:"carajas.avantivtexio-structured-data@2.0.8",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAppSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"appSetting"},value:{kind:"Variable",name:{kind:"Name",value:"appSetting"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"avantivtexio.avantivtexio-structured-data",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"b02a0b08a409498790dbba172cd23a9ee9d4bf47cea3caa9a6351cd208a6bab6",block:!1}}]}]}]}}],loc:{start:0,end:303}};a.loc.source={body:'query getAppSettings($appSetting: String!) @context(sender: "carajas.avantivtexio-structured-data@2.0.8") {\n getAppSettings(appSetting: $appSetting) @context(provider: "avantivtexio.avantivtexio-structured-data") @runtimeMeta(hash: "b02a0b08a409498790dbba172cd23a9ee9d4bf47cea3caa9a6351cd208a6bab6")\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var a=0;a0;){var c=d;d=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){d.add(e)})))}))}return o.forEach((function(t){var n=i(e,t);n&&a.definitions.push(n)})),a}(a,"getAppSettings")},72:function(e,t){e.exports=__RENDER_8_COMPONENTS__["carajas.product-context@0.x/useProduct"]},73:function(e,t){e.exports=ReactHelmet},74:function(e,t){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getFacets"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"facets"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SelectedFacetInput"}}}}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"carajas.avantivtexio-structured-data@2.0.8",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"facets"},arguments:[{kind:"Argument",name:{kind:"Name",value:"selectedFacets"},value:{kind:"Variable",name:{kind:"Name",value:"facets"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"86f2865da1f80af044ea90afafa7062af4388af8320fb272cef1f882e07addb6",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"breadcrumb"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:320}};a.loc.source={body:'query getFacets($facets: [SelectedFacetInput!]!) @context(sender: "carajas.avantivtexio-structured-data@2.0.8") {\n facets(selectedFacets: $facets) @runtimeMeta(hash: "86f2865da1f80af044ea90afafa7062af4388af8320fb272cef1f882e07addb6") {\n breadcrumb {\n name\n href\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var a=0;a0;){var c=d;d=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){d.add(e)})))}))}return o.forEach((function(t){var n=i(e,t);n&&a.definitions.push(n)})),a}(a,"getFacets")}},[[105,"common"]]]); },function(){ (window.webpackJsonpcarajas_avantivtexio_structured_data_2_0_8=window.webpackJsonpcarajas_avantivtexio_structured_data_2_0_8||[]).push([["FaleConoscoCustom"],{0:function(t,a){t.exports=React},109:function(t,a,e){"use strict";e.r(a);var n=e(7),o=e(0),r=e.n(o),c=e(30),s=e.n(c),i=function(){var t=Object(o.useState)(!1),a=Object(n.a)(t,2),e=a[0],c=a[1],i=Object(o.useState)(!1),u=Object(n.a)(i,2),d=u[0],l=u[1];Object(o.useEffect)((function(){var t=document.querySelector(".carajas-avantivtexio-structured-data-2-x-faleConoscoText"),a=document.querySelector(".vtex-flex-layout-0-x-flexRow--container-dropdown-menu-items"),n=document.querySelector(".vtex-flex-layout-0-x-flexRowContent--container-dropdown-menu-items-contact img");n instanceof HTMLElement&&(n.style.position="relative",n.style.zIndex="1"),t instanceof HTMLElement&&t.addEventListener("click",(function(t){t.preventDefault(),c(!e),l(!e),a instanceof HTMLElement&&(a.style.marginTop=e?"0px":"100px")}));var o=function(t){var e=document.querySelector(".".concat(s.a.dropdownMenu));e&&!e.contains(t.target)&&(c(!1),l(!1),a instanceof HTMLElement&&(a.style.marginTop="0px"))};return document.addEventListener("click",o),function(){t&&t.removeEventListener("click",(function(){return c(!e)})),document.removeEventListener("click",o)}}),[e]);var m=function(){return r.a.createElement("div",{className:s.a.customTextContainer},r.a.createElement("img",{className:s.a.customTextIcon,src:"https://carajas.vtexassets.com/assets/vtex.file-manager-graphql/images/259d96e9-f215-478c-88b5-d3a7a52130dd___513989dabf09e5d157a55f1a593cfb35.svg",alt:""}),r.a.createElement("span",{className:s.a.customText},"Fale conosco"))};return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"vtex-flex-layout-0-x-flexRowContent--container-dropdown-menu-items-contact"},d?r.a.createElement(m,null):r.a.createElement("span",{className:s.a.faleConoscoText},"Fale conosco")),e&&r.a.createElement("div",{className:s.a.dropdownMenu},r.a.createElement("a",{href:"https://www.carajaslabs.com.br/sac/#/atendimento",className:s.a.dropdownItem},"Via formulário"),r.a.createElement("a",{href:"https://api.whatsapp.com/send/?phone=551140032020&text&type=phone_number&app_absent=0",className:s.a.dropdownItem},"Via chat")))};a.default=i},30:function(t,a,e){t.exports={dropdownContainer:"carajas-avantivtexio-structured-data-2-x-dropdownContainer",iconeFaleConosco:"carajas-avantivtexio-structured-data-2-x-iconeFaleConosco",dropdownTrigger:"carajas-avantivtexio-structured-data-2-x-dropdownTrigger",dropdownMenu:"carajas-avantivtexio-structured-data-2-x-dropdownMenu",dropdownItem:"carajas-avantivtexio-structured-data-2-x-dropdownItem",linksContainer:"carajas-avantivtexio-structured-data-2-x-linksContainer",linksWrapper:"carajas-avantivtexio-structured-data-2-x-linksWrapper",linkItem:"carajas-avantivtexio-structured-data-2-x-linkItem",originalContent:"carajas-avantivtexio-structured-data-2-x-originalContent",customText:"carajas-avantivtexio-structured-data-2-x-customText",customTextIcon:"carajas-avantivtexio-structured-data-2-x-customTextIcon",faleConoscoText:"carajas-avantivtexio-structured-data-2-x-faleConoscoText"}},91:function(t,a,e){"use strict";e.r(a),function(t){var a=e(10);e.p=Object(a.getPublicPath)("carajas.avantivtexio-structured-data@2.0.8");var n=Object(a.register)((function(){return e(109)}),t,"carajas.avantivtexio-structured-data@2.0.8","carajas.avantivtexio-structured-data@2.x","FaleConoscoCustom");n.renderHotReload,n.setupHMR}.call(this,e(26)(t))}},[[91,"common"]]]); },function(){ !function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=9)}([function(e,n){e.exports=React},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/applyModifiers"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["carajas.product-context@0.x/useProduct"]},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPublicPath=n.register=void 0;var i="__RENDER_8_RUNTIME__",r="__RENDER_8_COMPONENTS__",a=!("undefined"==typeof window||!window.document);a&&!window.global&&(window.global=window),window[r]=window[r]||{},n.register=function(e,n,t,a,o){var l="".concat(t,"/").concat(o),u="".concat(a,"/").concat(o),d=function(){return function(e,n){try{var t=e();return t.__esModule?t.default:t.default||t}catch(e){throw new Error("An error happened while requiring the app ".concat(n,", please check your app's code.\\n").concat(e.stack))}}(e,l)};if(window[i]&&window[i].registerComponent){var c=!!window.__RENDER_LAZY__;window[i].registerComponent(n,c?d:d(),t,o,c)}else{var v=d();window[i]&&window[i].withHMR?window[r][l]=window[r][u]=window[i].withHMR(n,v):window[r][l]=window[r][u]=v}return{}},n.getPublicPath=function(e){var n=window.__hostname__,t="/_v/public/assets/v1/published/";return a&&window.__RUNTIME__&&(n=__RUNTIME__.assetServerPublishedHost||window.location.hostname,t=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+n+t+"".concat(e,"/public/react/")}},function(e,n){e.exports=__RENDER_8_COMPONENTS__["carajas.global-context@0.x/CustomFlagsContext"]},function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},function(e,n){e.exports=__RENDER_8_RUNTIME__},function(e,n){e.exports=ReactApollo},function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"identifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProductUniqueIdentifier"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"carajas.custom-flags@1.0.32",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"product"},arguments:[{kind:"Argument",name:{kind:"Name",value:"identifier"},value:{kind:"Variable",name:{kind:"Name",value:"identifier"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"carajas.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"b604a7a8a9377da1a4da08876c7af85d3fab96eff38d06a1aca19b494426df5e",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"benefits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"featured"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teaserType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"benefitSKUIds"},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:485}};t.loc.source={body:'query getProduct($identifier: ProductUniqueIdentifier) @context(sender: "carajas.custom-flags@1.0.32") {\n product(identifier: $identifier) @context(provider: "carajas.search-graphql") @runtimeMeta(hash: "b604a7a8a9377da1a4da08876c7af85d3fab96eff38d06a1aca19b494426df5e") {\n benefits {\n featured\n id\n name\n teaserType\n items {\n minQuantity\n discount\n benefitSKUIds\n __typename\n }\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,n){for(var t=0;t0;){var u=l;l=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){l.add(e)})))}))}return o.forEach((function(n){var i=r(e,n);i&&t.definitions.push(i)})),t}(t,"getProduct")},function(e,n,t){"use strict";t.r(n),function(e){var n=t(3);t.p=Object(n.getPublicPath)("carajas.custom-flags@1.0.32");var i=Object(n.register)((function(){return t(11)}),e,"carajas.custom-flags@1.0.32","carajas.custom-flags@1.x","CustomFlags");i.renderHotReload,i.setupHMR}.call(this,t(10)(e))},function(e,n){e.exports=function(e){if(!e.webpackPolyfill){var n=Object.create(e);n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),Object.defineProperty(n,"exports",{enumerable:!0}),n.webpackPolyfill=1}return n}},function(e,n,t){"use strict";t.r(n);var i=t(0),r=t.n(i),a=t(1),o=t.n(a),l=t(4),u=t.n(l),d=t(2),c=t.n(d);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t0,l=(null===(t=null==a?void 0:a.imageContent)||void 0===t?void 0:t.length)>0;return o?r.a.createElement(C,{quadrant:i,flag:a}):l?r.a.createElement(N,{quadrant:i,flag:a}):r.a.createElement("div",null,"FlagContent")},O=t(7),x=t(8),j=t.n(x),D=function(e){var n=e.itemId,t=e.promotionName,i=e.children,a=Object(O.useApolloClient)().query,o=s(r.a.useState([]),2),l=o[0],u=o[1],d=b();r.a.useLayoutEffect((function(){n&&a({query:j.a,variables:{identifier:{field:"sku",value:n}}}).then((function(e){var n,t,i,r=null!==(i=null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.product)||void 0===t?void 0:t.benefits)&&void 0!==i?i:null;r&&u(r)}))}),[n]);var c=l.filter((function(e){return e.id===t}));return!c||c.length<=0?null:r.a.createElement("span",{className:d.buyButton},i)};function R(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,o=!0,l=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(l)throw a}}}}function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);tS)return null;if(O&&new Date(e.endDate)1&&void 0!==arguments[1]?arguments[1]:"all-pages";if("all-pages"===n)return!0;var t="pdp"===e,i="shelf"===e;return t?"product-page"===n:!i||"shelf"===n},G=function(e,n){return e.filter((function(e){return $(n,null==e?void 0:e.pageVisibility)}))},Q=function(e,n){var t=[];return null==e||e.forEach((function(e){if(e){var i=e.flagsList;if(void 0!==i){var r=i.filter((function(e){return L(e,n)}));if(!((null==r?void 0:r.length)<=0)){var a=Object.assign(Object.assign({},e),{flagsList:r});t.push(a)}}}})),t},K={quadrants:[],type:"hide"};n.default=function(e){var n=e.quadrantsFilter,t=void 0===n?K:n,i=e.page,a=b(),l=c()(),d=u.a.useCustomFlags(),v=z(t),s=G(null!=d?d:[],i),p=Q(s,l),g=v(f(null!=p?p:[],"quadrant"));return r.a.createElement("div",{className:a.container},null==g?void 0:g.map((function(e){var n,t=e.key,i=r.a.Fragment,l=r.a.Fragment;return r.a.createElement(i,null,r.a.createElement("div",{style:{},className:o()(a.flagGroup,t)},null===(n=null==e?void 0:e.items)||void 0===n?void 0:n.map((function(e){var n;return r.a.createElement(l,null,r.a.createElement("div",{className:o()(a.flagItemContainer,m(null!==(n=null==e?void 0:e.__editorItemTitle)&&void 0!==n?n:""))},r.a.createElement(H,{quadrant:t,flags:null==e?void 0:e.flagsList})))}))))})))}}]); },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}));return Boolean(r)}var i=n.regionalAvailability;if(null!=i)return i;var l=n.sellers,a=null==l?void 0:l.some((function(e){return e.commertialOffer.AvailableQuantity>0}));return Boolean(a)},hasMoreSellersThan:function(e){var n=e.values,t=e.args,r=n.sellers,i=null==r?void 0:r.filter((function(e){return e.commertialOffer.AvailableQuantity>0}));return(null==i?void 0:i.length)>(null==t?void 0:t.quantity)},hasBestPrice:function(e){var n,t,r,i=e.values,l=e.args,a=(null!==(t=null===(n=i.sellers)||void 0===n?void 0:n.find((function(e){return e.sellerDefault})))&&void 0!==t?t:i.sellers[0]).commertialOffer;return a.ListPrice!==a.Price===(null===(r=null==l?void 0:l.value)||void 0===r||r)},sellerId:function(e){var n=e.values,t=e.args,r=n.sellers,i=null==r?void 0:r.filter((function(e){return e.commertialOffer.AvailableQuantity>0}));return null==i?void 0:i.some((function(e){var n;return null===(n=null==t?void 0:t.ids)||void 0===n?void 0:n.includes(e.sellerId)}))}},p=function(e){var n,t,l,u,p,g,m,y,h,b,I=e.Else,S=e.Then,_=e.matchType,j=e.conditions,E=e.children,O=null!==(n=a()())&&void 0!==n?n:{},w=O.product,x=O.selectedItem,T=O.skuSelector,P=(T=void 0===T?{}:T).areAllVariationsSelected,R=void 0!==P&&P,A=null!=w?w:{},C=A.productId,L=A.categoryId,B=A.brandId,k=A.productClusters,M=A.categoryTree,N=A.properties,D=null!=x?x:{},Q=D.itemId,V=D.sellers,H=(t=Q,l=Object(r.useState)(null),u=Object(d.a)(l,2),p=u[0],g=u[1],m=Object(r.useState)(!1),y=Object(d.a)(m,2),h=y[0],b=y[1],Object(r.useEffect)((function(){var e;if(v.canUseDOM)if(window.location.pathname.includes("/p")){var n=new URLSearchParams(window.location.search).get("region_id");if(n)if(t){b(!0);try{var r=document.getElementById("sku-id-google-merchant");if(!r)return g(null),void b(!1);var i=null===(e=r.textContent)||void 0===e?void 0:e.trim();if(!i||String(i)!==String(t))return g(null),void b(!1);!function(){var e=Object(s.a)(c.a.mark((function e(){var r,i,l,a,o,u,s,d;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/dataentities/CF/search?_fields=cep&_where=regionid=".concat(n));case 3:return l=e.sent,e.next=6,l.json();case 6:if((a=e.sent)&&a.length&&a[0].cep){e.next=11;break}return g(null),b(!1),e.abrupt("return");case 11:return o=a[0].cep,e.next=14,fetch("/api/io/_v/regionalization/simulation?itemId=".concat(t,"&postalCode=").concat(o));case 14:return u=e.sent,e.next=17,u.json();case 17:s=e.sent,d="available"===(null===(i=null===(r=null==s?void 0:s.items)||void 0===r?void 0:r[0])||void 0===i?void 0:i.availability),g(d),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(0),console.error("[ConditionLayout] Erro ao verificar disponibilidade regional:",e.t0),g(null);case 26:return e.prev=26,b(!1),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[0,22,26,29]])})));return function(){return e.apply(this,arguments)}}()()}catch(e){console.error("[ConditionLayout] Erro ao processar elemento do produto principal:",e),g(null),b(!1)}}else g(null);else g(null)}else g(null)}),[t]),{availability:p,isLoading:h}),U=H.availability,F=H.isLoading,J=Object(r.useMemo)((function(){return{productId:C,categoryId:L,brandId:B,productClusters:k,categoryTree:M,selectedItemId:Q,specificationProperties:N,areAllVariationsSelected:R,sellers:V,regionalAvailability:U,isRegionalLoading:F}}),[B,L,M,k,C,Q,N,R,V,U,F]);return null==J.selectedItemId||null==J.productId?null:i.a.createElement(o.default,{Else:I,Then:S,matchType:_,conditions:j,values:J,handlers:f},E)};p.schema={title:"admin/editor.condition-layout.wrapper.product"};n.default=p},3:function(e,n){e.exports=__RENDER_8_RUNTIME__},7:function(e,n){e.exports=__RENDER_8_COMPONENTS__["carajas.product-context@0.x/useProduct"]}},[[15,"common"]]]); }], document.currentScript.dataset.index)