enqueueScripts([function(){ (window.webpackJsonpvtex_checkout_resources_0_50_0=window.webpackJsonpvtex_checkout_resources_0_50_0||[]).push([[6],{14:function(e,n){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Address"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Address"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.checkout-resources@0.50.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addressId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"complement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"neighborhood"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"receiverName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reference"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDisposable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"geoCoordinates"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BundleItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Item"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.checkout-resources@0.50.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"additionalInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"brandName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"attachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"attachmentOfferings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"schema"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrls"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"at1x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"at2x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"at3x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"measurementUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"offerings"},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:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attachmentOfferings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"schema"},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:"productCategories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productCategoryIds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productRefId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"skuName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"skuSpecifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fieldName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fieldValues"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"unitMultiplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uniqueId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"refId"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ItemFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Item"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.checkout-resources@0.50.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"additionalInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"brandName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"attachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"attachmentOfferings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"schema"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bundleItems"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BundleItemFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"parentAssemblyBinding"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parentItemIndex"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPriceWithAssemblies"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assemblyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputValues"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assemblyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputValues"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assemblyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inputValues"},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:"availability"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrls"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"at1x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"at2x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"at3x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"listPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"manualPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"measurementUnit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modalType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"offerings"},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:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attachmentOfferings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"schema"},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:"priceTags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPercentual"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rawValue"},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:"productCategories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productCategoryIds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productRefId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"skuName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"skuSpecifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fieldName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fieldValues"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"unitMultiplier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uniqueId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"refId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceTags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPercentual"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rawValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ratesAndBenefitsIdentifier"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"featured"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"matchedParameters"},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:"isGift"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceDefinition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"calculatedSellingPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sellingPrices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"quantity"},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:"FragmentDefinition",name:{kind:"Name",value:"OrderFormFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OrderForm"}},directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.checkout-resources@0.50.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],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:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"canEditData"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"loggedIn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userProfileId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketingData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coupon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utmCampaign"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utmMedium"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utmSource"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utmiCampaign"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utmiPart"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utmiPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totalizers"},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:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"shipping"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countries"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"availableAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Address"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"selectedAddress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Address"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"deliveryOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryChannel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSelected"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pickupOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Address"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"deliveryChannel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"estimate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSelected"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"friendlyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"additionalInfo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"storeDistance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transitTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"businessHours"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dayNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"closed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"closingTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openingTime"},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:"isValid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentSystems"},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:"groupName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validator"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"regex"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardCodeRegex"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardCodeMask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"weights"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"useCvv"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"useExpirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"useCardHolderName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"useBillingAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"stringId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiresDocument"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCustom"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiresAuthentication"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"payments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentSystem"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tokenId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"installments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"referenceValue"},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:"installmentOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentSystem"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"installments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasInterestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"interestRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},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:"availableAccounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentSystem"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentSystemName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isValid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clientProfileData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"document"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"documentType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isValid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clientPreferencesData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"optInNewsletter"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"messages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"couponMessages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"generalMessages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},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:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allowManualPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"customData"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customApps"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"major"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"orderForm"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"refreshOutdatedData"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.checkout-resources@0.50.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderForm"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderFormId"},value:{kind:"Variable",name:{kind:"Name",value:"orderFormId"}}},{kind:"Argument",name:{kind:"Name",value:"refreshOutdatedData"},value:{kind:"Variable",name:{kind:"Name",value:"refreshOutdatedData"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"scope"},value:{kind:"StringValue",value:"private",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"4abf9f6a8b7b60e9479204050bb8c5583868efb578546b5b4d4a4027e1e498ec",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderFormFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:5696}};i.loc.source={body:'fragment Address on Address @context(sender: "vtex.checkout-resources@0.50.0") {\n addressId\n addressType\n city\n complement\n country\n neighborhood\n number\n postalCode\n receiverName\n reference\n state\n street\n isDisposable\n geoCoordinates\n}\n\nfragment BundleItemFragment on Item @context(sender: "vtex.checkout-resources@0.50.0") {\n additionalInfo {\n brandName\n __typename\n }\n attachments {\n name\n content\n __typename\n }\n attachmentOfferings {\n name\n required\n schema\n __typename\n }\n availability\n detailUrl\n id\n imageUrls {\n at1x\n at2x\n at3x\n __typename\n }\n listPrice\n measurementUnit\n name\n offerings {\n id\n name\n price\n type\n attachmentOfferings {\n name\n required\n schema\n __typename\n }\n __typename\n }\n price\n productCategories\n productCategoryIds\n productRefId\n productId\n quantity\n seller\n sellingPrice\n skuName\n skuSpecifications {\n fieldName\n fieldValues\n __typename\n }\n unitMultiplier\n uniqueId\n refId\n}\n\nfragment ItemFragment on Item @context(sender: "vtex.checkout-resources@0.50.0") {\n additionalInfo {\n brandName\n __typename\n }\n attachments {\n name\n content\n __typename\n }\n attachmentOfferings {\n name\n required\n schema\n __typename\n }\n bundleItems {\n ...BundleItemFragment\n __typename\n }\n parentAssemblyBinding\n parentItemIndex\n sellingPriceWithAssemblies\n options {\n assemblyId\n id\n quantity\n seller\n inputValues\n options {\n assemblyId\n id\n quantity\n seller\n inputValues\n options {\n assemblyId\n id\n quantity\n seller\n inputValues\n __typename\n }\n __typename\n }\n __typename\n }\n availability\n detailUrl\n id\n imageUrls {\n at1x\n at2x\n at3x\n __typename\n }\n listPrice\n manualPrice\n measurementUnit\n modalType\n name\n offerings {\n id\n name\n price\n type\n attachmentOfferings {\n name\n required\n schema\n __typename\n }\n __typename\n }\n price\n priceTags {\n identifier\n isPercentual\n name\n rawValue\n value\n __typename\n }\n productCategories\n productCategoryIds\n productRefId\n productId\n quantity\n seller\n sellingPrice\n skuName\n skuSpecifications {\n fieldName\n fieldValues\n __typename\n }\n unitMultiplier\n uniqueId\n refId\n priceTags {\n identifier\n isPercentual\n rawValue\n value\n name\n ratesAndBenefitsIdentifier {\n description\n id\n featured\n name\n matchedParameters\n __typename\n }\n __typename\n }\n isGift\n priceDefinition {\n calculatedSellingPrice\n total\n sellingPrices {\n quantity\n value\n __typename\n }\n __typename\n }\n}\n\nfragment OrderFormFragment on OrderForm @context(sender: "vtex.checkout-resources@0.50.0") {\n id\n items {\n ...ItemFragment\n __typename\n }\n canEditData\n loggedIn\n userProfileId\n userType\n marketingData {\n coupon\n utmCampaign\n utmMedium\n utmSource\n utmiCampaign\n utmiPart\n utmiPage\n __typename\n }\n totalizers {\n id\n name\n value\n __typename\n }\n shipping {\n countries\n availableAddresses {\n ...Address\n __typename\n }\n selectedAddress {\n ...Address\n __typename\n }\n deliveryOptions {\n id\n deliveryChannel\n price\n estimate\n isSelected\n __typename\n }\n pickupOptions {\n id\n address {\n ...Address\n __typename\n }\n deliveryChannel\n price\n estimate\n isSelected\n friendlyName\n additionalInfo\n storeDistance\n transitTime\n businessHours {\n dayNumber\n closed\n closingTime\n openingTime\n __typename\n }\n __typename\n }\n isValid\n __typename\n }\n paymentData {\n paymentSystems {\n id\n name\n groupName\n validator {\n regex\n mask\n cardCodeRegex\n cardCodeMask\n weights\n useCvv\n useExpirationDate\n useCardHolderName\n useBillingAddress\n __typename\n }\n stringId\n requiresDocument\n isCustom\n description\n requiresAuthentication\n dueDate\n __typename\n }\n payments {\n paymentSystem\n bin\n accountId\n tokenId\n installments\n referenceValue\n value\n __typename\n }\n installmentOptions {\n paymentSystem\n installments {\n count\n hasInterestRate\n interestRate\n value\n total\n __typename\n }\n __typename\n }\n availableAccounts {\n accountId\n paymentSystem\n paymentSystemName\n cardNumber\n bin\n __typename\n }\n isValid\n __typename\n }\n clientProfileData {\n email\n firstName\n lastName\n document\n documentType\n phone\n isValid\n __typename\n }\n clientPreferencesData {\n locale\n optInNewsletter\n __typename\n }\n messages {\n couponMessages {\n code\n __typename\n }\n generalMessages {\n code\n text\n status\n __typename\n }\n __typename\n }\n value\n allowManualPrice\n customData {\n customApps {\n fields\n id\n major\n __typename\n }\n __typename\n }\n}\n\nquery orderForm($orderFormId: ID, $refreshOutdatedData: Boolean) @context(sender: "vtex.checkout-resources@0.50.0") {\n orderForm(orderFormId: $orderFormId, refreshOutdatedData: $refreshOutdatedData) @context(scope: "private") @runtimeMeta(hash: "4abf9f6a8b7b60e9479204050bb8c5583868efb578546b5b4d4a4027e1e498ec") {\n ...OrderFormFragment\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function d(e,n){for(var i=0;i0;){var r=s;s=new Set,r.forEach((function(e){m.has(e)||(m.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return m.forEach((function(n){var a=d(e,n);a&&i.definitions.push(a)})),i}(i,"orderForm")}}]); },function(){ (window.webpackJsonpvtex_checkout_resources_0_50_0=window.webpackJsonpvtex_checkout_resources_0_50_0||[]).push([["QueryOrderForm"],{58:function(e,r,c){"use strict";c.r(r),function(e){var r=c(0);c.p=Object(r.getPublicPath)("vtex.checkout-resources@0.50.0");var t=Object(r.register)((function(){return c(59)}),e,"vtex.checkout-resources@0.50.0","vtex.checkout-resources@0.x","QueryOrderForm");t.renderHotReload,t.setupHMR}.call(this,c(1)(e))},59:function(e,r,c){"use strict";c.r(r);var t=c(14),o=c.n(t);r.default=o.a}},[[58,"common",6]]]); },function(){ (window.webpackJsonpvtex_checkout_resources_0_50_0=window.webpackJsonpvtex_checkout_resources_0_50_0||[]).push([["Utils"],{22:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"installedApp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.checkout-resources@0.50.0",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"installedApp"},name:{kind:"Name",value:"installedAppPublic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"c5e5d72c1f41ab3ea9e46058dede8332c20b231846a1b57c10038a405074c11b",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:258}};i.loc.source={body:'query installedApp($slug: String!) @context(sender: "vtex.checkout-resources@0.50.0") {\n installedApp: installedAppPublic(slug: $slug) @runtimeMeta(hash: "c5e5d72c1f41ab3ea9e46058dede8332c20b231846a1b57c10038a405074c11b") {\n version\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function t(e,n){for(var i=0;i0;){var l=c;c=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach((function(e){c.add(e)})))}))}return o.forEach((function(n){var a=t(e,n);a&&i.definitions.push(a)})),i}(i,"installedApp")},6:function(e,n){e.exports=ReactApollo},62:function(e,n,i){"use strict";i.r(n),function(e){var n=i(0);i.p=Object(n.getPublicPath)("vtex.checkout-resources@0.50.0");var a=Object(n.register)((function(){return i(65)}),e,"vtex.checkout-resources@0.50.0","vtex.checkout-resources@0.x","Utils");a.renderHotReload,a.setupHMR}.call(this,i(1)(e))},65:function(e,n,i){"use strict";i.r(n);var a=i(6),t=i(22),r=i.n(t),o="/checkout/#/cart",c="/cart";n.default={useCheckoutURL:function(){var e,n=Object(a.useQuery)(r.a,{ssr:!1,variables:{slug:"vtex.checkout"}}).data,i=null===(e=null==n?void 0:n.installedApp)||void 0===e?void 0:e.version,t=i&&parseInt(i.split(".")[0]);return{url:t>0?c:o,major:t}}}}},[[62,"common"]]]); },function(){ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var r="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[o]=window[o]||{},t.register=function(e,t,n,i,u){var c="".concat(n,"/").concat(u),l="".concat(i,"/").concat(u),a=function(){return function(e,t){try{var n=e();return n.__esModule?n.default:n.default||n}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,c)};if(window[r]&&window[r].registerComponent){var d=!!window.__RENDER_LAZY__;window[r].registerComponent(t,d?a:a(),n,u,d)}else{var s=a();window[r]&&window[r].withHMR?window[o][c]=window[o][l]=window[r].withHMR(t,s):window[o][c]=window[o][l]=s}return{}},t.getPublicPath=function(e){var t=window.__hostname__,n="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+n+"".concat(e,"/public/react/")}},function(e,t){e.exports=React},function(e,t,n){"use strict";n.r(t),function(e){var t=n(0);n.p=Object(t.getPublicPath)("vtex.checkout-splunk@0.1.1");var r=Object(t.register)((function(){return n(4)}),e,"vtex.checkout-splunk@0.1.1","vtex.checkout-splunk@0.x","useSplunk");r.renderHotReload,r.setupHMR}.call(this,n(3)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.r(t);var r=n(1);t.default=function(){return{logSplunk:Object(r.useCallback)((function(e){}),[]),logKpiEvent:Object(r.useCallback)((function(e){}),[])}}}]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];st.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1}));if(a){var p=a.split("="),s=Object(o.a)(p,2)[1];return s&&";"===s[s.length-1]?s.substring(0,s.length-1):s}}}function a(){var t,e=null===(t=window)||void 0===t?void 0:t.__RUNTIME__.segmentToken;if(e)return JSON.parse(atob(e)).countryCode}function p(){var t=localStorage.getItem("orderform");if(t)return JSON.parse(t||"{}").id}},19:function(t,e,n){"use strict";n.r(e),n.d(e,"DELIVER_DRAWER_PIXEL_EVENT_ID",(function(){return o})),n.d(e,"STORE_DRAWER_PIXEL_EVENT_ID",(function(){return i})),n.d(e,"SHIPPING_INFO_COOKIE",(function(){return r})),n.d(e,"SHIPPING_MODAL_PIXEL_EVENT_ID",(function(){return c}));var o="shipping-option-deliver-to",i="shipping-option-store",r="shipping_info",c="shipping-modal-open"},20:function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"c",(function(){return I})),n.d(e,"b",(function(){return y}));var o=n(0),i=n.n(o),r=n(63),c=n(64),a=n(69),p=n(68),s=n(55);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Object(s.a)(t);if(e){var i=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(p.a)(this,n)}}var d=function(t){Object(a.a)(n,t);var e=u(n);function n(){var t;return Object(r.a)(this,n),(t=e.apply(this,arguments)).state={hasError:!1},t}return Object(c.a)(n,[{key:"render",value:function(){return this.state.hasError?this.props.fallback:this.props.children}}],[{key:"getDerivedStateFromError",value:function(t){return{hasError:!0}}}]),n}(o.Component),l=n(16),f=n.n(l),b=n(23),h=n(7),v=n(35),g=n(6),O=n(24),S=n(18),j=n(3),k=function(t){var e=t.children,n=function(){var t=Object(o.useState)(),e=Object(h.a)(t,2),n=e[0],i=e[1],r=Object(o.useState)(!0),c=Object(h.a)(r,2),a=c[0],p=c[1],s=Object(o.useState)(),u=Object(h.a)(s,2),d=u[0],l=u[1],k=Object(o.useState)(),P=Object(h.a)(k,2),_=P[0],m=P[1],E=Object(o.useState)(),I=Object(h.a)(E,2),y=I[0],C=I[1],x=Object(o.useState)([]),z=Object(h.a)(x,2),T=z[0],D=z[1],w=Object(o.useState)(),M=Object(h.a)(w,2),B=M[0],L=M[1],N=Object(o.useState)(),R=Object(h.a)(N,2),A=R[0],F=R[1],H=Object(o.useState)(),J=Object(h.a)(H,2),U=J[0],G=J[1],V=Object(o.useState)(),K=Object(h.a)(V,2),X=K[0],W=K[1],Y=Object(v.useRuntime)().account,Z=Object(v.useSSR)(),q=Object(g.useIntl)(),Q=Object(o.useCallback)(function(){var t=Object(b.a)(f.a.mark((function t(e,n,o,i){var r,c,a,s;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(O.getPickups)(e,n,Y);case 2:if(c=t.sent,D(null!==(r=null==c?void 0:c.items)&&void 0!==r?r:[]),0!==(null==c?void 0:c.items.length)){t.next=7;break}return p(!1),t.abrupt("return");case 7:if(!(a=Object(S.b)("pickupPoint"))){t.next=13;break}return s=c.items.find((function(t){return t.pickupPoint.id===a})),L(s),t.next=13,Object(O.updateSession)(e,n,o,s,i);case 13:p(!1);case 14:case"end":return t.stop()}}),t)})));return function(e,n,o,i){return t.apply(this,arguments)}}(),[Y]);Object(o.useEffect)((function(){if(!Z){var t=Object(S.b)("zip-code"),e=Object(S.a)(),n=Object(S.b)("shipping");if(i(t),W(n),l(e),t)try{Object(O.getAddress)(e,t,Y).then((function(o){C(o.city),F(o.geoCoordinates),Q(e,t,o.geoCoordinates,n)}))}catch(t){p(!1)}else p(!1)}}),[Y,Z,Q]);var $=function(t){m(t),p(!1),setTimeout((function(){m(void 0)}),3e3)},tt=function(){var t=Object(b.a)(f.a.mark((function t(e){var n,o,r,c,a,s=arguments;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!(s.length>1&&void 0!==s[1])||s[1],e){t.next=4;break}return $(q.formatMessage(j.default.postalCodeInputPlaceHolder)),t.abrupt("return");case 4:if(d){t.next=6;break}return t.abrupt("return");case 6:return p(!0),t.prev=7,t.next=10,Object(O.getAddress)(d,e,Y);case 10:if(o=t.sent,r=o.geoCoordinates,c=o.city,0!==r.length){t.next=16;break}return $(q.formatMessage(j.default.postalCodeInputError)),t.abrupt("return");case 16:if(!(a=Object(S.c)())){t.next=20;break}return t.next=20,Object(O.updateOrderForm)(d,e,a);case 20:return C(c),F(r),i(e),t.next=25,Object(O.updateSession)(d,e,r);case 25:return t.next=27,Q(d,e,r,X);case 27:t.next=33;break;case 29:return t.prev=29,t.t0=t.catch(7),$(q.formatMessage(j.default.postalCodeInputError)),t.abrupt("return");case 33:n||p(!1),n&&location.reload();case 35:case"end":return t.stop()}}),t,null,[[7,29]])})));return function(e){return t.apply(this,arguments)}}(),et=function(){var t=Object(b.a)(f.a.mark((function t(e){var o,i=arguments;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!(i.length>1&&void 0!==i[1])||i[1],d&&n&&A){t.next=3;break}return t.abrupt("return");case 3:return L(e),t.next=6,Object(O.updateSession)(d,n,A,e,o?"pickup-in-point":X);case 6:location.reload();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),nt=function(){var t=Object(b.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d&&n&&A){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Object(O.updateSession)(d,n,A,B,"delivery");case 4:location.reload();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(o.useEffect)((function(){G(y?"".concat(y,", ").concat(n):n)}),[n,y]);return{dispatch:function(t){switch(t.type){case"UPDATE_ZIPCODE":var e=t.args,n=e.zipcode,o=e.reload;tt(n,o);break;case"UPDATE_PICKUP":var i=t.args,r=i.pickup,c=i.shouldPersistFacet;et(r,c);break;case"SELECT_DELIVERY_SHIPPING_OPTION":nt()}},state:{zipcode:n,isLoading:a,countryCode:d,submitErrorMessage:_,city:y,pickups:T,selectedPickup:B,geoCoordinates:A,addressLabel:U,shippingOption:X}}}(),r=n.dispatch,c=n.state;return i.a.createElement(_.Provider,{value:c},i.a.createElement(m.Provider,{value:r},e))},P={pickups:[],isLoading:!0},_=Object(o.createContext)(P),m=Object(o.createContext)((function(t){})),E=function(t){var e=t.children;return i.a.createElement(d,{fallback:e},i.a.createElement(k,null,e))},I=function(){return Object(o.useContext)(_)},y=function(){return Object(o.useContext)(m)}},24:function(t,e,n){"use strict";n.r(e),n.d(e,"getAddress",(function(){return p})),n.d(e,"updateSession",(function(){return s})),n.d(e,"getPickups",(function(){return u})),n.d(e,"updateOrderForm",(function(){return d}));var o=n(16),i=n.n(o),r=n(23),c=n(19),a=n(18),p=function(t,e,n){return fetch("/api/checkout/pub/postal-code/".concat(t,"/").concat(e,"?an=").concat(n)).then((function(t){return t.json()}))},s=function(){var t=Object(r.a)(i.a.mark((function t(e,n,o,r,p){var s;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s="zip-code=".concat(n,";country=").concat(e,";coordinates=").concat(o.join(",")).concat(p?";shipping=".concat(p):"").concat(r?";pickupPoint=".concat(r.pickupPoint.id):""),Object(a.d)(c.SHIPPING_INFO_COOKIE,s.replace(/;/g,":")),t.next=4,fetch("/api/sessions",{method:"POST",body:JSON.stringify({public:{facets:{value:s}}}),headers:{"Content-Type":"application/json"}});case 4:case"end":return t.stop()}}),t)})));return function(e,n,o,i,r){return t.apply(this,arguments)}}(),u=function(t,e,n){return fetch("/api/checkout/pub/pickup-points?an=".concat(n,"&countryCode=").concat(t,"&postalCode=").concat(e)).then((function(t){return t.json()}))},d=function(t,e,n){return fetch("/api/checkout/pub/orderForm/".concat(n,"/attachments/shippingData"),{method:"POST",body:'{"selectedAddresses": [{ "postalCode": '.concat(e,', "country": "').concat(t,'" }]}'),headers:{"Content-Type":"application/json"}}).then((function(t){return t.json()}))}},3:function(t,e,n){"use strict";n.r(e);var o=n(6),i=Object(o.defineMessages)({deliverToButtonLabel:{id:"store/shipping-option-zipcode.deliverToButton.label"},deliverToButtonPlaceholder:{id:"store/shipping-option-zipcode.deliverToButton.placeholder"},storeButtonLabel:{id:"store/shipping-option-zipcode.storeButton.label"},storeButtonPlaceHolder:{id:"store/shipping-option-zipcode.storeButton.placeholder"},storeDeliverDrawerTitle:{id:"store/shipping-option-zipcode.deliverDrawer.title"},pickupDrawerTitleEmpty:{id:"store/shipping-option-zipcode.pickupDrawer.title.empty"},pickupDrawerTitleFilled:{id:"store/shipping-option-zipcode.pickupDrawer.title.filled"},postalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.postalCodeInput.placeholder"},postalCodeInputError:{id:"store/shipping-option-zipcode.postalCodeInput.error"},updateButtonLabel:{id:"store/shipping-option-zipcode.updateButton.label"},popoverButtonLabel:{id:"store/shipping-option-zipcode.popoverButton.label"},popoverSubmitButtonLabel:{id:"store/shipping-option-zipcode.deliveryPopover.submitButton.label"},popoverDescription:{id:"store/shipping-option-zipcode.popover.description"},popoverPostalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.deliveryPopover.postalCodeInput.placeholder"},popoverPostalCodeLink:{id:"store/shipping-option-zipcode.popover.postalCodeLink"},locationModalTitle:{id:"store/shipping-option-zipcode.locationModal.title"},locationModalDescription:{id:"store/shipping-option-zipcode.locationModal.description"},noPickupsStateTitle:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.title"},noPickupsStateDescription:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.description"},noPickupsStateButtonLabel:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.button.label"},noStoresStateTitle:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.title"},noStoresStateDescription:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.description"},noStoresStateButton:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.button.label"},shippingSelectionModalTitle:{id:"store/shipping-option-zipcode.shippingSelectionModal.title"},shippingSelectionModalDescription:{id:"store/shipping-option-zipcode.shippingSelectionModal.description"},shippingSelectionModalDeliveryButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.deliveryButton.label"},shippingSelectionModalPickupButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.pickupButton.label"},pickupSelectionTitle:{id:"store/shipping-option-zipcode.pickupSelection.title"}});e.default=i}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_3_0=window.webpackJsonpvtex_shipping_option_components_1_3_0||[]).push([["ShippingOptionContext"],{0:function(n,t){n.exports=React},35:function(n,t){n.exports=__RENDER_8_RUNTIME__},38:function(n,t){n.exports=regeneratorRuntime},6:function(n,t){n.exports=ReactIntl},82:function(n,t,o){"use strict";o.r(t),function(n){var t=o(13);o.p=Object(t.getPublicPath)("vtex.shipping-option-components@1.3.0");var i=Object(t.register)((function(){return o(83)}),n,"vtex.shipping-option-components@1.3.0","vtex.shipping-option-components@1.x","ShippingOptionContext");i.renderHotReload,i.setupHMR}.call(this,o(31)(n))},83:function(n,t,o){"use strict";o.r(t);var i=o(20);t.default={ShippingOptionProvider:i.a,useShippingOptionDispatch:i.b,useShippingOptionState:i.c}}},[[82,"common",0]]]); },function(){ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPath=t.register=void 0;var r="__RENDER_8_RUNTIME__",o="__RENDER_8_COMPONENTS__",i=!("undefined"==typeof window||!window.document);i&&!window.global&&(window.global=window),window[o]=window[o]||{},t.register=function(e,t,n,i,u){var l="".concat(n,"/").concat(u),c="".concat(i,"/").concat(u),a=function(){return function(e,t){try{var n=e();return n.__esModule?n.default:n.default||n}catch(e){throw new Error("An error happened while requiring the app ".concat(t,", please check your app's code.\\n").concat(e.stack))}}(e,l)};if(window[r]&&window[r].registerComponent){var d=!!window.__RENDER_LAZY__;window[r].registerComponent(t,d?a:a(),n,u,d)}else{var s=a();window[r]&&window[r].withHMR?window[o][l]=window[o][c]=window[r].withHMR(t,s):window[o][l]=window[o][c]=s}return{}},t.getPublicPath=function(e){var t=window.__hostname__,n="/_v/public/assets/v1/published/";return i&&window.__RUNTIME__&&(t=__RUNTIME__.assetServerPublishedHost||window.location.hostname,n=__RUNTIME__.assetServerPublishedPath||"/_v/public/assets/v1/published/"),"https://"+t+n+"".concat(e,"/public/react/")}},function(e,t,n){"use strict";n.r(t),function(e){var t=n(0);n.p=Object(t.getPublicPath)("vtex.toggle-layout@0.0.3");var r=Object(t.register)((function(){return n(3)}),e,"vtex.toggle-layout@0.0.3","vtex.toggle-layout@0.x","index");r.renderHotReload,r.setupHMR}.call(this,n(2)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.r(t);var r=function(e){var t=e.renderChildren,n=void 0===t||t,r=e.children;return n?r:null};r.schema={title:"admin/editor.toggle-layout.title",description:"admin/editor.toggle-layout.description",type:"object",properties:{renderChildren:{title:"admin/editor.toggle-layout.renderChildren.title",type:"boolean",default:!0}}},t.default=r}]); },function(){ !function(e){function t(t){for(var n,a,u=t[0],c=t[1],l=t[2],s=0,d=[];se.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})).join(" ").trim();return o.concat(a).join(" ").trim()}},,,function(n,r,t){"use strict";t.r(r),t.d(r,"SYMBOL_CUSTOM_CLASSES",(function(){return o}));var e=t(1),o=Symbol("customClasses");r.default=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=Object(e.useMemo)(n,r);return t.__useCustomClasses=o,t}},function(n,r,t){"use strict";t.r(r);var e=t(2),o=t(12),a=t(1),i=t(8);function s(n,r){return[n].concat(Object(e.a)(r)).filter((function(n){return!!n})).join("/")}var c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.children,t=Object(i.useRuntime)(),e=t.extensions,o=Object(i.useTreePath)(),a=o.treePath,c=r?s(a,Array.isArray(r)?r:[r]):a,u=c&&e[c];return u||null};function u(n){return(n=Array.isArray(n)?n:[n]).filter(Boolean).reduce((function(n,r){var t;if("string"==typeof r)return n.classNames.push(r),n;var o,a=r.name.split(" ");((t=n.classNames).push.apply(t,Object(e.a)(a)),r.applyModifiers)&&(o=n.toApplyModifiers).push.apply(o,Object(e.a)(a));return n}),{toApplyModifiers:[],classNames:[]})}var l=t(3),f=t(6),d=(t(9),/^[^\d][\w-]+$/),p=/([^.]+)\.([^@]+)@(\d+)/,v=function(n){var r=function(n){var r,t=null!==(r=n.match(p))&&void 0!==r?r:[],e=Object(o.a)(t,4);return{vendor:e[1],name:e[2],major:e[3]}}(n),t=r.vendor,e=r.name,a=r.major;return t&&e&&a?"".concat(t,"-").concat(e,"-").concat(a,"-x"):null},m=function(n,r,t){return r.reduce((function(r,e){var o=!!n&&function(n){return d.test(n)}(e),a="".concat(n,"-").concat(e);return r[e]=o?t?Object(f.default)(a,t):a:"",o||console.error('Invalid CSS handle "'.concat(e,'". It should only contain letters or numbers, and should start with a letter.')),r}),{})};r.default=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=c(),o=null!=t?t:{},i=o.content,s=void 0===i?{}:i,f=o.props,d=void 0===f?{}:f,p=o.component,y=void 0===p?"":p,h=d.cssHandle||s.blockClass||d.blockClass,j=r.migrationFrom,b=r.classes,A=Object(a.useMemo)((function(){var r=v(y),t=r?[r]:[],o=new Set(n),a={},i=new Map;if(j){var s=(Array.isArray(j)?j:[j]).map(v).filter((function(n){return!!n&&n!==r}));t.push.apply(t,Object(e.a)(s))}b&&Object.keys(b).forEach((function(n){if("__useCustomClasses"!==n){o.delete(n);var r=u(b[n]);a[n]=r.classNames.join(" "),i.set(n,r)}}));var c=Object(e.a)(o);t.forEach((function(n){var r=m(n,c,h);Object.keys(r).forEach((function(n){a[n]=n in a?"".concat(a[n]," ").concat(r[n]):r[n]}))}));return{handles:a,withModifiers:function(n,r){var t="string"==typeof r?[r]:r;if(!Array.isArray(t))return console.error("Invalid modifier type on `withModifier`. Please use either a string or an array of strings"),a[n];var e=[],o=[],s=i.get(n);s?(e=s.classNames,o=s.toApplyModifiers):(e=a[n].split(" "),o=e);var c=t.map((function(n){return Object(l.a)(n)?o.map((function(r){return"".concat(r,"--").concat(n)})).join(" ").trim():""})).filter((function(n){return n.length>0})).join(" ").trim();return e.concat(c).join(" ").trim()}}}),[h,y,n,j,b]);return A}}]]); },function(){ (window.webpackJsonpvtex_css_handles_1_0_1=window.webpackJsonpvtex_css_handles_1_0_1||[]).push([["useCssHandles"],{1:function(s,e){s.exports=React},18:function(s,e,n){"use strict";n.r(e),function(s){var e=n(0);n.p=Object(e.getPublicPath)("vtex.css-handles@1.0.1");var t=Object(e.register)((function(){return n(10)}),s,"vtex.css-handles@1.0.1","vtex.css-handles@1.x","useCssHandles");t.renderHotReload,t.setupHMR}.call(this,n(4)(s))},8:function(s,e){s.exports=__RENDER_8_RUNTIME__}},[[18,"common",0]]]); },function(){ (window.webpackJsonpvtex_css_handles_1_0_1=window.webpackJsonpvtex_css_handles_1_0_1||[]).push([["createCssHandlesContext"],{1:function(e,t){e.exports=React},16:function(e,t,n){"use strict";n.r(t),function(e){var t=n(0);n.p=Object(t.getPublicPath)("vtex.css-handles@1.0.1");var s=Object(t.register)((function(){return n(17)}),e,"vtex.css-handles@1.0.1","vtex.css-handles@1.x","createCssHandlesContext");s.renderHotReload,s.setupHMR}.call(this,n(4)(e))},17:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return c}));var s=n(1),r=n.n(s);function c(e){var t=Object(s.createContext)(null);return{CssHandlesProvider:function(e){var n=e.withModifiers,c=e.handles,a=e.children,o=Object(s.useMemo)((function(){return{handles:c,withModifiers:n}}),[n,c]);return r.a.createElement(t.Provider,{value:o},a)},useContextCssHandles:function(){return Object(s.useContext)(t)}}}}},[[16,"common"]]]); },function(){ (window.webpackJsonpvtex_css_handles_1_0_1=window.webpackJsonpvtex_css_handles_1_0_1||[]).push([["applyModifiers"],{15:function(n,r,t){"use strict";t.r(r),function(n){var r=t(0);t.p=Object(r.getPublicPath)("vtex.css-handles@1.0.1");var e=Object(r.register)((function(){return t(6)}),n,"vtex.css-handles@1.0.1","vtex.css-handles@1.x","applyModifiers");e.renderHotReload,e.setupHMR}.call(this,t(4)(n))},3:function(n,r,t){"use strict";t.d(r,"a",(function(){return c}));var e=/[^A-z0-9-]/;var i,s,o,a=new Set([]);i=function(){console.error("Invalid CSS modifiers. All modifiers should be strings, and only contain letters, numbers, or -. Found: ".concat(Array.from(a.values()).join(", "))),a.clear()},s=3e3;var c=function(n){return"string"==typeof n&&(""!==n&&!e.test(n))}},6:function(n,r,t){"use strict";t.r(r);var e=t(3);r.default=function(n,r){var t="string"==typeof r?[r]:r;if(!Array.isArray(t))return console.error("Invalid modifier type on `cssHandles.applyModifier`. Please use either a string or an array of strings"),n;var i=n.split(" "),s=t.map((function(n){return Object(e.a)(n)?i.map((function(r){return"".concat(r,"--").concat(n)})).join(" ").trim():""})).filter((function(n){return n.length>0})).join(" ").trim();return i.concat(s).join(" ").trim()}}},[[15,"common"]]]); },function(){ !function(e){function t(t){for(var r,c,u=t[0],a=t[1],l=t[2],p=0,s=[];pe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}))}function l(t,e){var n=e.name,r=e.value;return Boolean(t.variations.find((function(t){return t.name===n&&t.values.some((function(t){return t===r}))})))}var d=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=null!==(e=t.skuId)&&void 0!==e?e:t.idsku;if(s)return s;var i=Object.entries(t).filter((function(t){return Object(r.a)(t,1)[0].startsWith("property__")})).map((function(t){var e=Object(r.a)(t,2),n=e[0],s=e[1];return[n.slice("property__".length),s]}));if(0!==i.length){var a=n.filter((function(t){return i.every((function(e){var n=Object(r.a)(e,2),s=n[0],i=n[1];return l(t,{name:s,value:i})}))}));if(0!==a.length){var c=a.find((function(t){return o(t)}));return c?c.itemId:a[0].itemId}}},O={loadingItem:!1,product:void 0,selectedItem:null,selectedQuantity:1,skuSelector:{selectedImageVariationSKU:null,isVisible:!1,areAllVariationsSelected:!0},buyButton:{clicked:!1},assemblyOptions:{items:{},inputValues:{},areGroupsValid:{}}};function b(t,e){var n,r;switch(e.type){case"SET_QUANTITY":var s=e.args||{};return Object.assign(Object.assign({},t),{selectedQuantity:s.quantity});case"SELECT_IMAGE_VARIATION":var i=e.args||{};return Object.assign(Object.assign({},t),{skuSelector:Object.assign(Object.assign({},t.skuSelector),{selectedImageVariationSKU:i.selectedImageVariationSKU})});case"SKU_SELECTOR_SET_VARIATIONS_SELECTED":var a=e.args||{};return Object.assign(Object.assign({},t),{skuSelector:Object.assign(Object.assign({},t.skuSelector),{areAllVariationsSelected:a.allSelected})});case"SET_BUY_BUTTON_CLICKED":var c=e.args||{};return Object.assign(Object.assign({},t),{buyButton:Object.assign(Object.assign({},t.buyButton),{clicked:c.clicked})});case"SKU_SELECTOR_SET_IS_VISIBLE":var o=e.args||{};return Object.assign(Object.assign({},t),{skuSelector:Object.assign(Object.assign({},t.skuSelector),{isVisible:o.isVisible})});case"SET_SELECTED_ITEM":var l=e.args||{};return Object.assign(Object.assign({},t),{loadingItem:!1,selectedItem:l.item});case"SET_LOADING_ITEM":return Object.assign(Object.assign({},t),{loadingItem:Boolean(e.args.loadingItem)});case"SET_ASSEMBLY_OPTIONS":var d=e.args||{},b=d.groupId,v=void 0===b?"":b,g=d.groupItems,j=void 0===g?[]:g,p=d.groupInputValues,f=void 0===p?{}:p,m=d.isValid,_=void 0!==m&&m;return Object.assign(Object.assign({},t),{assemblyOptions:Object.assign(Object.assign({},t.assemblyOptions),{inputValues:Object.assign(Object.assign({},t.assemblyOptions.inputValues),Object(u.a)({},v,f)),items:Object.assign(Object.assign({},t.assemblyOptions.items),Object(u.a)({},v,j)),areGroupsValid:Object.assign(Object.assign({},t.assemblyOptions.areGroupsValid),Object(u.a)({},v,_))})});case"SET_PRODUCT":var S=e.args||{},E=(null===(n=null==t?void 0:t.product)||void 0===n?void 0:n.linkText)!==(null===(r=null==S?void 0:S.product)||void 0===r?void 0:r.linkText);return Object.assign(Object.assign(Object.assign({},t),E?O:{}),{product:S.product});default:return t}}function v(t,e){var n;return t?e.find((function(e){return e.itemId===t})):null!==(n=e.find(o))&&void 0!==n?n:e[0]}function g(t){var e,n=t.query,r=t.product,s=null!==(e=null==r?void 0:r.items)&&void 0!==e?e:[];return Object.assign(Object.assign({},O),{selectedItem:v(d(n,s),s),product:r})}e.default=function(t){var e=t.query,n=t.product,u=t.children,o=function(t){var e=t.query,n=t.product;return Object(s.useReducer)(b,{query:e,product:n},g)}({query:e,product:n}),l=Object(r.a)(o,2),O=l[0],j=l[1];return function(t,e){Object(s.useEffect)((function(){t&&e({type:"SET_PRODUCT",args:{product:t}})}),[t,e])}(n,j),function(t,e,n){Object(s.useEffect)((function(){var r,s=null!==(r=null==e?void 0:e.items)&&void 0!==r?r:[];t({type:"SET_SELECTED_ITEM",args:{item:v(n,s)}})}),[t,n,e])}(j,n,d(e,null==n?void 0:n.items)),i.a.createElement(a.default.Provider,{value:O},i.a.createElement(c.ProductDispatchContext.Provider,{value:j},u))}},2:function(t,e,n){"use strict";n.r(e);var r=n(0),s=Object(r.createContext)({});e.default=s},3:function(t,e,n){"use strict";n.r(e),n.d(e,"ProductDispatchContext",(function(){return s}));var r=n(0),s=Object(r.createContext)(null);e.default={ProductDispatchContext:s,useProductDispatch:function(){return Object(r.useContext)(s)}}},8:function(t,e,n){"use strict";n.r(e),function(t){var e=n(1);n.p=Object(e.getPublicPath)("vtex.product-context@0.10.1");var r=Object(e.register)((function(){return n(16)}),t,"vtex.product-context@0.10.1","vtex.product-context@0.x","ProductContextProvider");r.renderHotReload,r.setupHMR}.call(this,n(4)(t))}},[[8,"common"]]]); },function(){ (window.webpackJsonpvtex_product_context_0_10_1=window.webpackJsonpvtex_product_context_0_10_1||[]).push([["useProduct"],{0:function(t,e){t.exports=React},12:function(t,e,c){"use strict";c.r(e),function(t){var e=c(1);c.p=Object(e.getPublicPath)("vtex.product-context@0.10.1");var o=Object(e.register)((function(){return c(13)}),t,"vtex.product-context@0.10.1","vtex.product-context@0.x","useProduct");o.renderHotReload,o.setupHMR}.call(this,c(4)(t))},13:function(t,e,c){"use strict";c.r(e);var o=c(0),n=c(2);e.default=function(){return Object(o.useContext)(n.default)}},2:function(t,e,c){"use strict";c.r(e);var o=c(0),n=Object(o.createContext)({});e.default=n}},[[12,"common"]]]); }], document.currentScript.dataset.index)