enqueueScripts([function(){ (window.webpackJsonpvtex_shipping_option_components_1_11_0=window.webpackJsonpvtex_shipping_option_components_1_11_0||[]).push([[1],{19:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return _}));var i=n(0),r=n.n(i),o=n(68),a=n(69),c=n(74),p=n(73),u=n(60);function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Object(u.a)(e);if(t){var r=Object(u.a)(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Object(p.a)(this,n)}}var l=function(e){Object(c.a)(n,e);var t=s(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(a.a)(n,[{key:"render",value:function(){return this.state.hasError?this.props.fallback:this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),n}(i.Component),d=n(8),b=n.n(d),f=n(13),v=n(5),h=n(31),O=n(7),g=n(38),k=n(33),j=n.n(k),m=n(20),S=n(23),I=n(2),y=n(21),P=function(e){var t=e.children,n=function(){var e=Object(i.useState)(),t=Object(v.a)(e,2),n=t[0],r=t[1],o=Object(i.useState)(!0),a=Object(v.a)(o,2),c=a[0],p=a[1],u=Object(i.useState)(),s=Object(v.a)(u,2),l=s[0],d=s[1],k=Object(i.useState)(),P=Object(v.a)(k,2),x=P[0],D=P[1],z=Object(i.useState)(),B=Object(v.a)(z,2),C=B[0],_=B[1],E=Object(i.useState)([]),M=Object(v.a)(E,2),L=M[0],T=M[1],w=Object(i.useState)(),A=Object(v.a)(w,2),N=A[0],U=A[1],R=Object(i.useState)(),F=Object(v.a)(R,2),H=F[0],V=F[1],G=Object(i.useState)(),J=Object(v.a)(G,2),K=J[0],X=J[1],Y=Object(i.useState)(),Z=Object(v.a)(Y,2),q=Z[0],Q=Z[1],W=Object(i.useState)([]),$=Object(v.a)(W,2),ee=$[0],te=$[1],ne=Object(i.useState)(),ie=Object(v.a)(ne,2),re=ie[0],oe=ie[1],ae=Object(i.useState)(),ce=Object(v.a)(ae,2),pe=ce[0],ue=ce[1],se=Object(i.useState)(),le=Object(v.a)(se,2),de=le[0],be=le[1],fe=Object(h.useRuntime)().account,ve=Object(h.useSSR)(),he=Object(O.useIntl)(),Oe=Object(g.useOrderItems)().addItems;j()({eventId:y.SHIPPING_MODAL_PIXEL_EVENT_ID,handler:function(e){oe(e.data.addToCartInfo)}});var ge=Object(i.useCallback)(function(){var e=Object(f.a)(b.a.mark((function e(t,n,i,r){var o,a,c,u,s,l,d=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>4&&void 0!==d[4]&&d[4],e.next=3,Object(m.getPickups)(t,n,fe);case 3:if(a=e.sent,c=null==a?void 0:a.items.filter((function(e){return e.pickupPoint.isActive})),T(null!=c?c:[]),0!==c.length){e.next=9;break}return p(!1),e.abrupt("return");case 9:return u=Object(S.b)("pickupPoint"),s=Object(v.a)(c,1),l=s[0],u&&(l=c.find((function(e){return e.pickupPoint.id===u}))),U(l),e.next=15,Object(m.updateSession)(t,n,i,l,r);case 15:o||p(!1);case 16:case"end":return e.stop()}}),e)})));return function(t,n,i,r){return e.apply(this,arguments)}}(),[fe]);Object(i.useEffect)((function(){if(!ve){var e=Object(S.b)("zip-code"),t=Object(S.a)(),n=Object(S.b)("shipping");if(r(e),Q(n),d(t),e)try{Object(m.getAddress)(t,e,fe).then((function(i){_(i.city),V(i.geoCoordinates),ge(t,e,i.geoCoordinates,n)}))}catch(e){p(!1)}else p(!1)}}),[fe,ve,ge]);var ke=function(e,t){D({code:e,message:t}),p(!1),setTimeout((function(){D(void 0)}),3e3)},je=function(){var e=Object(f.a)(b.a.mark((function e(t){var n,i,r,o,a,c;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.prev=1,n=Object(S.c)(),e.next=5,Object(m.getCartProducts)(n);case 5:return i=e.sent,r=i.map((function(e){return e.id})),e.next=9,t(r);case 9:return o=e.sent,a=o.unavailableProducts,c=i.map((function(e,t){return{cartItemIndex:t,product:e}})).filter((function(e){return a.some((function(t){return t===e.product.id}))})),te(c),p(!1),e.abrupt("return",c);case 17:return e.prev=17,e.t0=e.catch(1),p(!1),te([]),e.abrupt("return",[]);case 22:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=Object(f.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:te([]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=Object(f.a)(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(S.c)(),e.next=3,Object(m.removeCartProductsById)(t,ee.map((function(e){return e.cartItemIndex})));case 3:de&&de();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ie=function(){var e=Object(f.a)(b.a.mark((function e(t){var n,i,o,a,c,u,s=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(s.length>1&&void 0!==s[1])||s[1],t){e.next=4;break}return ke("POSTAL_CODE_NOT_FOUND",he.formatMessage(I.default.postalCodeInputPlaceHolder)),e.abrupt("return");case 4:if(l){e.next=6;break}return e.abrupt("return");case 6:return p(!0),e.prev=7,e.next=10,Object(m.getAddress)(l,t,fe);case 10:if(i=e.sent,o=i.geoCoordinates,a=i.city,0!==o.length){e.next=16;break}return ke("INVALID_POSTAL_CODE",he.formatMessage(I.default.postalCodeInputError)),e.abrupt("return");case 16:return e.next=18,Object(m.getCatalogCount)(t,o);case 18:if(c=e.sent,0!==c.total){e.next=23;break}return ke(y.PRODUCTS_NOT_FOUND_ERROR_CODE,he.formatMessage(I.default.noPickupsStateDescription,{postalCode:" ".concat(t)})),e.abrupt("return");case 23:if(!(u=Object(S.c)())){e.next=27;break}return e.next=27,Object(m.updateOrderForm)(l,t,u);case 27:return _(a),V(o),r(t),e.next=32,Object(m.updateSession)(l,t,o,N,"delivery");case 32:return e.next=34,ge(l,t,o,q,!0);case 34:e.next=40;break;case 36:return e.prev=36,e.t0=e.catch(7),ke("INVALID_POSTAL_CODE",he.formatMessage(I.default.postalCodeInputError)),e.abrupt("return");case 40:Q(void 0),U(void 0),n||p(!1),n&&location.reload();case 44:case"end":return e.stop()}}),e,null,[[7,36]])})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=Object(f.a)(b.a.mark((function e(t){var i,r,o,a=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!(a.length>1&&void 0!==a[1])||a[1],l&&n&&H){e.next=3;break}return e.abrupt("return");case 3:return r="pickup-in-point",o=t,i&&"pickup-in-point"===q&&t.pickupPoint.id===(null==N?void 0:N.pickupPoint.id)&&(r="delivery",o=L[0]),U(o),e.next=9,Object(m.updateSession)(l,n,H,o,r);case 9:location.reload();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pe=function(){var e=Object(f.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l&&n&&H){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Object(m.updateSession)(l,n,H,N,"delivery");case 4:location.reload();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(i.useEffect)((function(){X(C?"".concat(C,", ").concat(n):n)}),[n,C]);var xe=function(){var e=Object(f.a)(b.a.mark((function e(t){var i,r,o,a,c,p;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.type,e.next="UPDATE_ZIPCODE"===e.t0?3:"UPDATE_PICKUP"===e.t0?13:"SELECT_DELIVERY_SHIPPING_OPTION"===e.t0?28:"ABORT_UNAVAILABLE_ITEMS_ACTION"===e.t0?42:"CONTINUE_UNAVAILABLE_ITEMS_ACTION"===e.t0?44:46;break;case 3:return i=t.args,r=i.zipcode,o=i.reload,e.next=6,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailability)(r,l,t,fe));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 6:if(0!==e.sent.length){e.next=10;break}return Ie(r,o),e.abrupt("break",47);case 10:return ue(he.formatMessage(I.default.unavailableItemsModalDescription,{addressLabel:K})),be((function(){return function(){return Ie(r,o)}})),e.abrupt("break",47);case 13:return a=t.args,c=a.pickup,p=a.canUnselect,ue("pickup"),e.next=17,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailabilityByPickup)(c.pickupPoint.id,t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 17:if(0!==e.sent.length){e.next=25;break}if(ye(c,p),!re){e.next=24;break}return e.next=23,Oe(re.skuItems,re.options);case 23:oe(void 0);case 24:return e.abrupt("break",47);case 25:return ue(he.formatMessage(I.default.unavailableItemsModalForPickupDescription,{pickupLabel:null==N?void 0:N.pickupPoint.friendlyName})),be((function(){return function(){return ye(c)}})),e.abrupt("break",47);case 28:return ue("delivery"),e.next=31,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailabilityByDelivery)(n,l,t,fe));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 31:if(0!==e.sent.length){e.next=39;break}if(Pe(),!re){e.next=38;break}return e.next=37,Oe(re.skuItems,re.options);case 37:oe(void 0);case 38:return e.abrupt("break",47);case 39:return ue(he.formatMessage(I.default.unavailableItemsModalForDeliveryDescription,{addressLabel:K})),be((function(){return function(){return Pe()}})),e.abrupt("break",47);case 42:return me(),e.abrupt("break",47);case 44:return Se(),e.abrupt("break",47);case 46:return e.abrupt("break",47);case 47:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),De=ee.length>0;return{dispatch:xe,state:{zipcode:n,isLoading:c,countryCode:l,submitErrorMessage:x,city:C,pickups:L,selectedPickup:N,geoCoordinates:H,addressLabel:K,shippingOption:q,areThereUnavailableCartItems:De,unavailableCartItems:ee,unavailabilityMessage:pe}}}(),o=n.dispatch,a=n.state;return r.a.createElement(D.Provider,{value:a},r.a.createElement(z.Provider,{value:o},t))},x={pickups:[],isLoading:!0,areThereUnavailableCartItems:!1,unavailableCartItems:[]},D=Object(i.createContext)(x),z=Object(i.createContext)((function(e){})),B=function(e){var t=e.children;return r.a.createElement(l,{fallback:t},r.a.createElement(P,null,t))},C=function(){return Object(i.useContext)(D)},_=function(){return Object(i.useContext)(z)}},2:function(e,t,n){"use strict";n.r(t);var i=n(7),r=Object(i.defineMessages)({deliverToButtonLabel:{id:"store/shipping-option-zipcode.deliverToButton.label"},deliverToButtonPlaceholder:{id:"store/shipping-option-zipcode.deliverToButton.placeholder"},storeButtonLabel:{id:"store/shipping-option-zipcode.storeButton.label"},storeButtonPlaceHolder:{id:"store/shipping-option-zipcode.storeButton.placeholder"},storeDeliverDrawerTitle:{id:"store/shipping-option-zipcode.deliverDrawer.title"},pickupDrawerTitleEmpty:{id:"store/shipping-option-zipcode.pickupDrawer.title.empty"},pickupDrawerTitleFilled:{id:"store/shipping-option-zipcode.pickupDrawer.title.filled"},postalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.postalCodeInput.placeholder"},postalCodeInputError:{id:"store/shipping-option-zipcode.postalCodeInput.error"},updateButtonLabel:{id:"store/shipping-option-zipcode.updateButton.label"},popoverButtonLabel:{id:"store/shipping-option-zipcode.popoverButton.label"},popoverSubmitButtonLabel:{id:"store/shipping-option-zipcode.deliveryPopover.submitButton.label"},popoverDescription:{id:"store/shipping-option-zipcode.popover.description"},popoverPostalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.deliveryPopover.postalCodeInput.placeholder"},popoverPostalCodeLink:{id:"store/shipping-option-zipcode.popover.postalCodeLink"},locationModalTitle:{id:"store/shipping-option-zipcode.locationModal.title"},locationModalDescription:{id:"store/shipping-option-zipcode.locationModal.description"},noPickupsStateTitle:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.title"},noPickupsStateDescription:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.description"},noPickupsStateButtonLabel:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.button.label"},noStoresStateTitle:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.title"},noStoresStateDescription:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.description"},noStoresStateButton:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.button.label"},shippingSelectionModalTitle:{id:"store/shipping-option-zipcode.shippingSelectionModal.title"},shippingSelectionModalDescription:{id:"store/shipping-option-zipcode.shippingSelectionModal.description"},shippingSelectionModalDeliveryButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.deliveryButton.label"},shippingSelectionModalPickupButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.pickupButton.label"},pickupSelectionTitle:{id:"store/shipping-option-zipcode.pickupSelection.title"},deliveryAvailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.deliveryAvailable"},deliveryUnavailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.deliveryUnavailable"},pickupUnavailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.pickupUnavailable"},pickupAtBadge:{id:"store/shipping-option-zipcode.availabilityBadge.pickupAt"},unavailableItemsModalRemoveButton:{id:"store/shipping-option-zipcode.unavailableItems.removeItemsButton.label"},unavailableItemsModalRetryButton:{id:"store/shipping-option-zipcode.unavailableItems.retryButton.label"},unavailableItemsModalTitle:{id:"store/shipping-option-zipcode.unavailableItems.title"},unavailableItemsModalDescription:{id:"store/shipping-option-zipcode.unavailableItems.description"},unavailableItemsModalForPickupDescription:{id:"store/shipping-option-zipcode.unavailableItems.forPickup.description"},unavailableItemsModalForDeliveryDescription:{id:"store/shipping-option-zipcode.unavailableItems.forDelivery.description"},LocationDetectorButtonTitle:{id:"store/shipping-option-zipcode.LocationDetectorButton.title"},LocationDetectorButtonLoadingDescription:{id:"store/shipping-option-zipcode.LocationDetectorButtonLoading.description"},LocationDetectorButtonErrorDescription:{id:"store/shipping-option-zipcode.LocationDetectorButtonError.description"}});t.default=r}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_11_0=window.webpackJsonpvtex_shipping_option_components_1_11_0||[]).push([["ShippingOptionContext"],{0:function(t,n){t.exports=React},31:function(t,n){t.exports=__RENDER_8_RUNTIME__},33:function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},37:function(t,n){t.exports=regeneratorRuntime},38:function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},7:function(t,n){t.exports=ReactIntl},90:function(t,n,e){"use strict";e.r(n),function(t){var n=e(14);e.p=Object(n.getPublicPath)("vtex.shipping-option-components@1.11.0");var o=Object(n.register)((function(){return e(91)}),t,"vtex.shipping-option-components@1.11.0","vtex.shipping-option-components@1.x","ShippingOptionContext");o.renderHotReload,o.setupHMR}.call(this,e(32)(t))},91:function(t,n,e){"use strict";e.r(n);var o=e(19);n.default={ShippingOptionProvider:o.a,useShippingOptionDispatch:o.b,useShippingOptionState:o.c}}},[[90,"common",0,1]]]); },function(){ !function(e){function t(t){for(var r,u,c=t[0],a=t[1],f=t[2],s=0,p=[];s3&&void 0!==arguments[3]?arguments[3]:"/",a="";if(r&&r>0){var i=new Date;i.setTime((new Date).getTime()+r),a="expires=".concat(i.toUTCString(),";")}document.cookie="".concat(e,"=").concat(encodeURIComponent(t),";").concat(a,"path=").concat(n)}var v=function(){function e(t){Object(o.a)(this,e),this.client=t,this.historyKey="biggy-search-history"}var t,r,n;return Object(s.a)(e,[{key:"topSearches",value:(n=Object(i.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.query({query:d.a}));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"suggestionSearches",value:(r=Object(i.a)(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.query({query:p.a,variables:{fullText:t}}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"suggestionProducts",value:(t=Object(i.a)(a.a.mark((function e(t,r,n){var i,o,s,c,l,p,m,d=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=d.length>3&&void 0!==d[3]&&d[3],o=d.length>4&&void 0!==d[4]?d[4]:"default",s=d.length>5&&void 0!==d[5]&&d[5],c=d.length>6?d[6]:void 0,l=d.length>7?d[7]:void 0,p=d.length>8?d[8]:void 0,m=d.length>9?d[9]:void 0,e.abrupt("return",this.client.query({query:u.a,variables:{simulationBehavior:o,advertisementOptions:m,hideUnavailableItems:s,orderBy:c,fullText:t,facetKey:r,facetValue:n,productOriginVtex:i,count:l,shippingOptions:p,variant:h("sp-variant")},fetchPolicy:"network-only"}));case 8:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"searchHistory",value:function(){return(h(this.historyKey)||"").split(",").filter((function(e){return!!e}))}},{key:"prependSearchHistory",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(null!=e&&""!==e.trim()){var r=this.searchHistory();r.indexOf(e)<0&&(r.unshift(e),r=r.slice(0,t)),f(this.historyKey,r.join(","))}}}]),e}()},,,function(e,t){e.exports=regeneratorRuntime},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClose"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClock"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["laespumeria.product-list-context@0.x/ProductListContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/withDevice"]},function(e,t){function r(e,t,r){var n,a,i,o,s;function c(){var u=Date.now()-o;u=0?n=setTimeout(c,t-u):(n=null,r||(s=e.apply(i,a),i=a=null))}null==t&&(t=100);var u=function(){i=this,a=arguments,o=Date.now();var u=r&&!n;return n||(n=setTimeout(c,t)),u&&(s=e.apply(i,a),i=a=null),s};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.flush=function(){n&&(s=e.apply(i,a),i=a=null,clearTimeout(n),n=null)},u}r.debounce=r,e.exports=r},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Spinner"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["laespumeria.product-summary@0.x/ProductSummaryCustom"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-price@1.x/SellingPrice"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-price@1.x/ListPrice"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductContextProvider"]},,,,,function(e,t,r){"use strict";r.r(t),function(e){var t=r(4);r.p=Object(t.getPublicPath)("laespumeria.search@0.0.1");var n=Object(t.register)((function(){return r(46)}),e,"laespumeria.search@0.0.1","laespumeria.search@0.x","Autocomplete");n.renderHotReload,n.setupHMR}.call(this,r(16)(e))},,,,,,function(e,t,r){"use strict";r.r(t);var n=r(1),a=r.n(n),i=r(5),o=r(9),s=r(10),c=r(23),u=r(22),l=r(13),p=r(0),m=r.n(p),d=r(7),h=r(3),f=r(25),v=r.n(f),g=r(26),y=r.n(g),x=r(27),E=r.n(x),_=r(28),b=r.n(_),k=r(29),S=r.n(k),L=r(30),O=r(21),P=r(14),N=r.n(P),T=r(2),w=r(31),C=r.n(w),I=r(32),M=r.n(I),R=r(11),H=r.n(R),j=r(33),D=r.n(j),F=r(34),V=r.n(F),q=r(35),A=r.n(q),W=r(12),U=r.n(W),B=function(e){var t,r,n,a,i=e.product,o=e.onClick,s=null==i?void 0:i.sku,c=null===(n=null===(r=null===(t=null==s?void 0:s.sellers)||void 0===t?void 0:t[0])||void 0===r?void 0:r.commertialOffer)||void 0===n?void 0:n.taxPercentage;return m.a.createElement("div",null,m.a.createElement(T.Link,{params:{slug:null==i?void 0:i.linkText,id:null==i?void 0:i.productId},page:"store.product",className:"no-underline",onClick:o},m.a.createElement("article",{className:"".concat(U.a.element," flex flex-row justify-start items-center pa3 bg-animate hover-bg-light-gray")},m.a.createElement("div",{className:"".concat(U.a.imageContainer," h3")},m.a.createElement("img",{className:"".concat(U.a.image," h-100 w-auto mw-none"),src:null===(a=null==s?void 0:s.image)||void 0===a?void 0:a.imageUrl})),m.a.createElement("div",{className:"".concat(U.a.information," flex flex-column justify-between items-start ml4")},m.a.createElement("div",{className:U.a.productNameContainer},m.a.createElement("span",{className:"".concat(U.a.productBrand," f5 c-on-base")},i.productName)),m.a.createElement("div",{className:U.a.priceContainer},m.a.createElement(A.a,{product:i,query:{skuId:null==s?void 0:s.itemId}},m.a.createElement("span",{className:"db f7 c-muted-2"},m.a.createElement(V.a,{message:c?"{listPriceWithTax}":"{listPriceValue}"})),m.a.createElement("span",{className:"dib t-small c-muted-2"},m.a.createElement(D.a,{message:c?"{sellingPriceWithTax}":"{sellingPriceValue}"}))))))))},z=function(e){var t=e.term,r=e.title,n=e.products,a=e.showTitle,i=e.totalProducts,o=e.layout,s=e.isLoading,c=e.onProductClick,u=e.onSeeAllClick,l=e.HorizontalProductSummary,p=e.customPage;return 0!==n.length||s?m.a.createElement("section",{className:H.a.tileList},a?m.a.createElement("p",{className:"".concat(H.a.tileListTitle," c-on-base")},r):null,s?m.a.createElement("div",{className:H.a.tileListSpinner},m.a.createElement(C.a,null)):m.a.createElement(m.a.Fragment,null,m.a.createElement("ul",{className:H.a.tileListList,style:{flexDirection:o===ne.Horizontal?"column":"row"}},n.map((function(e,r){var n=M.a.mapCatalogProductToProductSummary(e);return m.a.createElement("li",{key:e.productId,className:H.a.tileListItem},o===ne.Horizontal?l?m.a.createElement(l,{product:n,placement:"autocomplete",actionOnClick:function(){c(n.productId,r,t)}}):m.a.createElement(B,{product:n,onClick:function(){c(n.productId,r,t)}}):m.a.createElement(T.ExtensionPoint,{id:"product-summary",product:n,placement:"autocomplete",actionOnClick:function(){c(n.productId,r,t)}}))}))),m.a.createElement("footer",{className:H.a.tileListFooter},i>0?m.a.createElement(T.Link,{query:"map=ft&_q=".concat(t),params:{term:t},page:p||"store.search",className:H.a.tileListSeeMore,onClick:function(){return u(t)}},m.a.createElement(h.FormattedMessage,{id:"store/seeMore",values:{count:i}})):null))):null};var Q=r(6),K=r.n(Q),J=function(e){var t;return(null===(t=e.item)||void 0===t?void 0:t.attributes)?m.a.createElement("ul",{className:K.a.itemListSubList},e.item.attributes.map((function(t,r){return m.a.createElement("li",{key:r,className:"".concat(K.a.itemListSubItem," c-on-base pointer"),onMouseOver:function(r){return e.onMouseOver(r,t)},onFocus:function(r){return e.onMouseOver(r,t)},onMouseOut:function(){return e.onMouseOut()},onBlur:function(){return e.onMouseOut()}},m.a.createElement(T.Link,{className:"".concat(K.a.itemListSubItemLink," c-on-base"),to:"/".concat(e.item.value,"/").concat(t.value),query:"map=ft,".concat(t.key),onClick:function(){e.closeModal(),e.onItemClick(t.label,r)}},t.label))}))):null};function $(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u.a)(this,r)}}var G=function(e){Object(c.a)(r,e);var t=$(r);function r(){var e;return Object(o.a)(this,r),(e=t.apply(this,arguments)).state={currentTimeoutId:null},e.handleMouseOver=function(t,r){if(t.stopPropagation(),!e.state.currentTimeoutId){var n=setTimeout((function(){e.props.onItemHover&&e.props.onItemHover(r),e.setState({currentTimeoutId:null})}),100);e.setState({currentTimeoutId:n})}},e.handleMouseOut=function(){var t=e.state.currentTimeoutId;t&&(clearTimeout(t),e.setState({currentTimeoutId:null}))},e}return Object(s.a)(r,[{key:"render",value:function(){var e=this;if(0===this.props.items.length&&!this.props.showTitleOnEmpty)return null;var t=this.props.modifier?K.a["itemList--".concat(this.props.modifier)]:"";return p.createElement("article",{className:"".concat(K.a.itemList," ").concat(t)},this.props.showTitle?p.createElement("p",{className:"".concat(K.a.itemListTitle," c-on-base")},this.props.title):null,this.props.items.length>0&&p.createElement("ol",{className:K.a.itemListList},this.props.items.map((function(t,r){var n;return p.createElement("li",{key:t.value,className:"".concat(K.a.itemListItem),onMouseOver:function(r){return e.handleMouseOver(r,t)},onFocus:function(r){return e.handleMouseOver(r,t)},onMouseOut:function(){return e.handleMouseOut()},onBlur:function(){return e.handleMouseOut()}},p.createElement(T.Link,{page:null!==(n=e.props.customPage)&&void 0!==n?n:"store.search",params:{term:t.value},query:"map=ft&_q=".concat(t.value),onClick:function(){return e.props.onItemClick(t.value,r)},className:K.a.itemListLink},t.icon?p.createElement("span",{className:K.a.itemListIcon},t.icon):null,t.prefix?p.createElement("span",{className:K.a.itemListPrefix},t.prefix):null,p.createElement("span",{className:"".concat(K.a.itemListLinkTitle," c-on-base")},t.label)),p.createElement(J,{item:t,onMouseOver:e.handleMouseOver,onMouseOut:e.handleMouseOut,closeModal:e.props.closeModal,onItemClick:e.props.onItemClick}))}))))}}]),r}(p.Component),X=r(36);var Z;function Y(e,t,r){return function(n,a){e({page:t,event:"autocomplete",eventType:r,search:{term:n,position:a}})}}function ee(e,t,r,n,a){try{e({event:"autocomplete",eventType:Z.Search,search:{operator:t,misspelled:r,text:decodeURI(a),match:n}})}catch(i){e({event:"autocomplete",eventType:Z.Search,search:{operator:t,misspelled:r,text:a,match:n}})}}!function(e){e.ProductClick="product_click",e.SearchSuggestionClick="search_suggestion_click",e.TopSearchClick="top_search_click",e.HistoryClick="history_click",e.Search="search",e.SeeAllClick="see_all_click"}(Z||(Z={}));var te=function(){var e=Object(i.a)(a.a.mark((function e(t){var r,n,i,o,s,c,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new Headers).append("Content-Type","application/json"),s={method:"GET",headers:o,redirect:"follow"},e.next=5,fetch("".concat(t||"","/api/sessions?items=public.shippingOption"),s);case 5:return c=e.sent,e.next=8,c.json();case 8:if(u=e.sent,null===(i=null===(n=null===(r=null==u?void 0:u.namespaces)||void 0===r?void 0:r.public)||void 0===n?void 0:n.shippingOption)||void 0===i?void 0:i.value){e.next=11;break}return e.abrupt("return",null);case 11:return e.abrupt("return",JSON.parse(u.namespaces.public.shippingOption.value));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u.a)(this,r)}}var ne;!function(e){e.Horizontal="HORIZONTAL",e.Vertical="VERTICAL"}(ne||(ne={}));var ae,ie=E.a.ProductListProvider,oe=function(e){Object(c.a)(l,e);var t,r,n,u=re(l);function l(e){var t;return Object(o.a)(this,l),(t=u.call(this,e)).state={topSearchedItems:[],history:[],products:[],suggestionItems:[],totalProducts:0,queryFromHover:{},dynamicTerm:"",isProductsLoading:!1,currentHeightWhenOpen:0},t.handleItemHover=function(e){"groupValue"in e?(t.setState({dynamicTerm:e.groupValue,queryFromHover:{key:e.key,value:e.value}}),t.updateProducts(e.groupValue)):(t.setState({dynamicTerm:e.value,queryFromHover:{key:void 0,value:void 0}}),t.updateProducts(e.value))},t.getProductLayout=function(){var e=t.props,r=e.productLayout,n=e.isMobile;return void 0!==r?r:n?ne.Horizontal:ne.Vertical},t.client=new O.a(t.props.client),t.autocompleteRef=m.a.createRef(),t.isIOS=navigator&&!!navigator.userAgent.match(/(iPod|iPhone|iPad)/),t}return Object(s.a)(l,[{key:"fitAutocompleteInWindow",value:function(){if(window&&this.autocompleteRef.current&&this.props.isMobile&&!this.isIOS){var e=window.innerHeight,t=this.autocompleteRef.current.getBoundingClientRect().y,r=this.autocompleteRef.current.offsetHeight,n=r-(t+r-e);this.autocompleteRef.current.style.maxHeight="".concat(n,"px")}}},{key:"addEvents",value:function(){window.addEventListener("resize",S()(this.fitAutocompleteInWindow.bind(this),100))}},{key:"componentDidMount",value:function(){this.updateTopSearches(),this.updateHistory(),this.addEvents()}},{key:"shouldUpdate",value:function(e){return e.inputValue!==this.props.inputValue||!e.isOpen&&this.props.isOpen}},{key:"addTermToHistory",value:function(){var e=window.location.href.split("_q=");if(e[1]){var t=e[1].split("&")[0];try{return this.client.prependSearchHistory(decodeURI(t))}catch(e){return this.client.prependSearchHistory(t)}}}},{key:"closeModal",value:function(){this.props.closeMenu&&this.props.closeMenu()}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.shouldUpdate(e)){this.addTermToHistory(),this.fitAutocompleteInWindow();var r=this.props.inputValue;this.setState({dynamicTerm:r,queryFromHover:void 0}),null===r||""===r?(this.updateTopSearches(),this.updateHistory(),this.setState({suggestionItems:[],products:[]})):this.updateSuggestions().then((function(){return t.fitAutocompleteInWindow(),t.updateProducts(r)})).then((function(){return t.fitAutocompleteInWindow()}))}}},{key:"highlightTerm",value:function(e,t){var r=e.split(t);return m.a.createElement(m.a.Fragment,null,r.map((function(e,n){return m.a.createElement(m.a.Fragment,null,e,n!==r.length-1?m.a.createElement("span",{className:"b"},t):null)})))}},{key:"updateSuggestions",value:(n=Object(i.a)(a.a.mark((function e(){var t,r,n,i,o,s,c=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.suggestionSearches(this.props.inputValue);case 2:t=e.sent,r=t.data.autocompleteSearchSuggestions.searches,n=this.props.maxSuggestedTerms,i=void 0===n?5:n,o=r.slice(0,i).map((function(e){var t=e.attributes||[];return{term:e.term,attributes:t.map((function(t){return{label:t.labelValue,value:t.value,link:"/".concat(e.term,"/").concat(t.value,"/?map=ft,").concat(t.key),groupValue:e.term,key:t.key}}))}})),s=o.map((function(e){return{label:c.highlightTerm(e.term.toLowerCase(),c.props.inputValue.toLocaleLowerCase()),value:e.term,groupValue:e.term,link:"/".concat(e.term,"?map=ft"),attributes:e.attributes}})),this.setState({suggestionItems:s});case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"updateProducts",value:(r=Object(i.a)(a.a.mark((function e(t){var r,n,i,o,s,c,u,l,p,m,d,h,f,v,g,y,x,E,_,b,k,S;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,i=this.props,o=i.__unstableProductOrigin,s=i.__unstableProductOriginVtex,c=void 0!==s&&s,u=i.simulationBehavior,l=void 0===u?"default":u,p=i.hideUnavailableItems,m=void 0!==p&&p,d=i.orderBy,h=this.state.queryFromHover,n){e.next=6;break}return this.setState({products:[],totalProducts:0}),e.abrupt("return");case 6:return o&&console.warn("The prop `__unstableProductOrigin` has been deprecated. Use the boolean prop `__unstableProductOriginVtex` instead."),this.setState({isProductsLoading:!0}),e.next=10,te(this.props.runtime.rootPath);case 10:return f=e.sent,v=null!==(r=null==f?void 0:f.map((function(e){return e.value})))&&void 0!==r?r:[],g={showSponsored:!0,sponsoredCount:2,repeatSponsoredProducts:!1,advertisementPlacement:"autocomplete"},e.next=15,this.client.suggestionProducts(n,h?h.key:void 0,h?h.value:void 0,"VTEX"===o||c,l,m,d,this.props.maxSuggestedProducts||3,v,g);case 15:y=e.sent,h||(x=y.data.productSuggestions,E=x.count,_=x.operator,b=x.misspelled,ee(this.props.push,_,b,E,n)),this.setState({isProductsLoading:!1}),k=y.data.productSuggestions,S=k.products.slice(0,this.getProductCount()),this.setState({products:S,totalProducts:k.count});case 21:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"updateTopSearches",value:(t=Object(i.a)(a.a.mark((function e(){var t,r,n,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.topSearches();case 2:t=e.sent,r=t.data.topSearches.searches,n=this.props.maxTopSearches,i=void 0===n?10:n,o=r.slice(0,i).map((function(e,t){return{prefix:m.a.createElement(m.a.Fragment,null,"".concat(t+1),m.a.createElement(h.FormattedMessage,{id:"store/ordinalNumber"})),value:e.term,label:e.term,link:"/".concat(e.term,"?map=ft")}})),this.setState({topSearchedItems:o});case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"updateHistory",value:function(){var e=this.client.searchHistory().slice(0,this.props.maxHistory||5).map((function(e){return{label:(t=e,t.replace(/\$2F/gi,"/")),value:e,link:"/".concat(e,"?map=ft"),icon:m.a.createElement(y.a,null)};var t}));this.setState({history:e})}},{key:"renderSuggestions",value:function(){var e=this,t=!!this.state.suggestionItems&&this.state.suggestionItems.length>0,r=t?m.a.createElement(h.FormattedMessage,{id:"store/suggestions"}):m.a.createElement(h.FormattedMessage,{id:"store/emptySuggestion"});return m.a.createElement(G,{title:r,items:this.state.suggestionItems||[],modifier:"suggestion",showTitle:!t||!this.props.hideTitles,onItemHover:this.handleItemHover,showTitleOnEmpty:0!==this.props.maxSuggestedTerms,onItemClick:function(t,r){Y(e.props.push,e.props.runtime.page,Z.SearchSuggestionClick)(t,r),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()}})}},{key:"contentWhenQueryIsEmpty",value:function(){var e=this;return m.a.createElement("div",{className:N.a["history-and-top-wrapper"],style:{flexDirection:this.props.historyFirst?"row-reverse":"row"}},!this.props.isMobile||this.props.isMobile&&!this.props.historyFirst||0===this.state.history.length?m.a.createElement(G,{modifier:"top-search",title:m.a.createElement(h.FormattedMessage,{id:"store/topSearches"}),items:this.state.topSearchedItems||[],showTitle:!this.props.hideTitles,onItemClick:function(t,r){Y(e.props.push,e.props.runtime.page,Z.TopSearchClick)(t,r),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()}}):null,!this.props.isMobile||this.props.isMobile&&this.props.historyFirst?m.a.createElement(G,{modifier:"history",title:m.a.createElement(h.FormattedMessage,{id:"store/history"}),items:this.state.history||[],showTitle:!this.props.hideTitles,onItemClick:function(t,r){Y(e.props.push,e.props.runtime.page,Z.HistoryClick)(t,r),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()}}):null)}},{key:"contentWhenQueryIsNotEmpty",value:function(){var e=this,t=this.state,r=t.products,n=t.totalProducts,a=t.isProductsLoading,i=this.props,o=i.hideTitles,s=i.push,c=i.runtime,u=i.inputValue,l=u.replace(/\//gi,"$2F");return m.a.createElement(m.a.Fragment,null,this.renderSuggestions(),m.a.createElement(z,{term:l||"",customPage:this.props.customPage,shelfProductCount:this.getProductCount(),title:m.a.createElement(h.FormattedMessage,{id:"store/suggestedProducts",values:{term:u}}),products:r||[],showTitle:!o,totalProducts:n||0,layout:this.getProductLayout(),isLoading:a,onProductClick:function(t,r,n){!function(e,t){return function(r,n,a){return e({page:t,event:"autocomplete",eventType:Z.ProductClick,product:{productId:r,position:n},term:a})}}(s,c.page)(t,r,n),e.closeModal()},onSeeAllClick:function(t){!function(e,t){return function(r){return e({page:t,event:"autocomplete",eventType:Z.SeeAllClick,search:{term:r}})}}(s,c.page)(t),e.closeModal()},HorizontalProductSummary:this.props.HorizontalProductSummary}))}},{key:"renderContent",value:function(){var e=this.props.inputValue.trim();return e&&""!==e?this.contentWhenQueryIsNotEmpty():this.contentWhenQueryIsEmpty()}},{key:"hasContent",value:function(){var e=this.state,t=e.topSearchedItems,r=e.suggestionItems,n=e.history,a=e.products;return t.length>0||r.length>0||n.length>0||a.length>0}},{key:"getProductCount",value:function(){var e=this.props,t=e.customBreakpoints,r=e.isMobile,n=e.maxSuggestedProducts,a=void 0===n?3:n;if(!window||r||!t)return a;var i=window.innerWidth;return t.md&&t.lg&&t.xlg?i>=t.xlg.width?t.xlg.maxSuggestedProducts:i>=t.lg.width?t.lg.maxSuggestedProducts:i>=t.md.width?t.md.maxSuggestedProducts:a:a}},{key:"render",value:function(){var e=this,t=this.props.isOpen&&this.hasContent()?"":N.a["biggy-js-container--hidden"];return m.a.createElement("div",{className:N.a["biggy-autocomplete-wrapper"],style:{width:this.props.autocompleteWidth?"".concat(this.props.autocompleteWidth,"vw"):void 0}},m.a.createElement("section",{ref:this.autocompleteRef,className:"".concat(N.a["biggy-autocomplete"]," ").concat(t," w-100"),style:{flexDirection:this.getProductLayout()===ne.Horizontal?"column":"row"}},m.a.createElement(ie,{listName:"autocomplete-result-list"},this.renderContent(),this.props.isMobile?m.a.createElement("button",{onClick:function(){return e.closeModal()},className:N.a["close-btn"]},m.a.createElement(v.a,null)):null)))}}]),l}(m.a.Component),se=Object(L.withPixel)(b()(Object(d.withApollo)((ae=oe,function(e){return m.a.createElement(ae,Object(X.a)({},e,{runtime:Object(T.useRuntime)()}))}))));t.default=se}],[[40,"common"]]]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];s=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",(function(){return r}))},14:function(t,e,n){t.exports=n(28)},15:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},19:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(o.usePixel)(),u=a.push,i=Object(r.useRef)(null),s=i.current;Object(r.useEffect)((function(){if(t&&!n&&s!==t){if(!e||Object(c.isEmpty)(e))return;Array.isArray(e)?e.forEach(u):u(e),i.current=t}}),[e,n,t,s,u])}},67:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store@2.145.0");var r=Object(t.register)((function(){return n(68)}),e,"vtex.store@2.145.0","vtex.store@2.x","HomeWrapper");r.renderHotReload,r.setupHMR}.call(this,n(9)(e))},68:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),c=n(1),a=n(29),u=n.n(a),i=n(30),s=n.n(i),_=n(6);t.default=function(e){var t=e.children,n=Object(c.useRuntime)(),a=n.account,i=n.route,p=(0,n.getSettings)("vtex.store").searchTermPath,l=Object(r.useMemo)((function(){return c.canUseDOM?[{event:"pageInfo",eventType:"homeView",accountName:a,pageTitle:document.title,pageUrl:location.href,pageCategory:"Home"}]:null}),[a]);return Object(_.a)(l,i.routeId),o.a.createElement(r.Fragment,null,o.a.createElement(u.a,{searchTermPath:p}),o.a.createElement(s.a,null),t)}},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]}},[[67,"common"]]]); },function(){ (window.webpackJsonpvtex_store_2_145_0=window.webpackJsonpvtex_store_2_145_0||[]).push([[1],{24:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var o=r(0),n=r.n(o),i=r(40),s=r.n(i),a=((()=>{const t=async(t,e,r,o)=>{const n=new URL(e,t).toString(),i=o?{"content-type":"application/json"}:void 0;return s()(n,{body:o?JSON.stringify(o):void 0,method:r,headers:{accept:"application/json",...i}}).then(t=>{if(!t.ok)throw console.error({description:"HTTP error",response:t}),new Error("HTTP error! status: "+t.status);return t.json()})}})(),"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),h=Symbol.for("vtex.ads.react.context"),u=a[h],f=null!=u?u:function(){const t=Object(o.createContext)(void 0);return a[h]=t,t}();function c({identity:t,hydrationStrategy:e,children:r}){if(!t||!e)throw new Error("AdsProvider requires both identity and hydrationStrategy props");return n.a.createElement(f.Provider,{value:{identity:t,hydrationStrategy:{fetcher:e.fetcher,matcher:e.matcher,key:e.key}}},r)}},40:function(t,e){var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global,o=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r=void 0!==t&&t||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},o="URLSearchParams"in r,n="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function y(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function b(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function w(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=w(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=w(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=y(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,o,n,i=y(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),o=/charset=([A-Za-z0-9_-]+)/.exec(t.type),n=o?o[1]:"utf-8",e.readAsText(t,n),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}})),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var _=[301,302,303,307,308];T.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new T(null,{status:e,headers:{location:t}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function A(t,o){return new Promise((function(n,s){var h=new g(t,o);if(h.signal&&h.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}if(u.onload=function(){var t,e,r={statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();try{e.append(o,n)}catch(t){console.warn("Response "+t.message)}}})),e)};0===h.url.indexOf("file://")&&(u.status<200||u.status>599)?r.status=200:r.status=u.status,r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new T(o,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){s(new e.DOMException("Aborted","AbortError"))}),0)},u.open(h.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(h.url),!0),"include"===h.credentials?u.withCredentials=!0:"omit"===h.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&(u.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof l||r.Headers&&o.headers instanceof r.Headers)){var y=[];Object.getOwnPropertyNames(o.headers).forEach((function(t){y.push(f(t)),u.setRequestHeader(t,c(o.headers[t]))})),h.headers.forEach((function(t,e){-1===y.indexOf(e)&&u.setRequestHeader(e,t)}))}else h.headers.forEach((function(t,e){u.setRequestHeader(e,t)}));h.signal&&(h.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&h.signal.removeEventListener("abort",d)}),u.send(void 0===h._bodyInit?null:h._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=l,r.Request=g,r.Response=T),e.Headers=l,e.Request=g,e.Response=T,e.fetch=A}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var n=r.fetch?r:o;(e=n.fetch).default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e}}]); },function(){ (window.webpackJsonpvtex_store_2_145_0=window.webpackJsonpvtex_store_2_145_0||[]).push([[0],{20:function(r,e,t){"use strict";const n=t(75),o=t(76),a=t(77),s=t(78),c=Symbol("encodeFragmentIdentifier");function i(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(r,e){return e.encode?e.strict?n(r):encodeURIComponent(r):r}function l(r,e){return e.decode?o(r):r}function p(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function f(r){const e=(r=p(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function y(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function d(r,e){i((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&l(t,r).includes(r.arrayFormatSeparator);t=a?l(t,r):t;const s=o||a?t.split(r.arrayFormatSeparator).map(e=>l(e,r)):null===t?t:l(t,r);n[e]=s};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?l(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map(e=>l(e,r));void 0!==n[e]?n[e]=[].concat(n[e],a):n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),n=Object.create(null);if("string"!=typeof r)return n;if(!(r=r.trim().replace(/^[?#&]/,"")))return n;for(const o of r.split("&")){if(""===o)continue;let[r,s]=a(e.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:l(s,e),t(l(r,e),s,n)}for(const r of Object.keys(n)){const t=n[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=y(t[r],e);else n[r]=y(t,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((r,e)=>{const t=n[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=function r(e){return Array.isArray(e)?e.sort():"object"==typeof e?r(Object.keys(e)).sort((r,e)=>Number(r)-Number(e)).map(r=>e[r]):e}(t):r[e]=t,r},Object.create(null))}e.extract=f,e.parse=d,e.stringify=(r,e)=>{if(!r)return"";i((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],n=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[",o,"]"].join("")]:[...t,[u(e,r),"[",u(o,r),"]=",u(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[]"].join("")]:[...t,[u(e,r),"[]=",u(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[u(t,r),e,u(o,r)].join("")]:[[n,u(o,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,u(e,r)]:[...t,[u(e,r),"=",u(n,r)].join("")]}}(e),o={};for(const e of Object.keys(r))t(e)||(o[e]=r[e]);const a=Object.keys(o);return!1!==e.sort&&a.sort(e.sort),a.map(t=>{const o=r[t];return void 0===o?"":null===o?u(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?u(t,e)+"[]":o.reduce(n(t),[]).join("&"):u(t,e)+"="+u(o,e)}).filter(r=>r.length>0).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=a(r,"#");return Object.assign({url:t.split("?")[0]||"",query:d(f(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,e)}:{})},e.stringifyUrl=(r,t)=>{t=Object.assign({encode:!0,strict:!0,[c]:!0},t);const n=p(r.url).split("?")[0]||"",o=e.extract(r.url),a=e.parse(o,{sort:!1}),s=Object.assign(a,r.query);let i=e.stringify(s,t);i&&(i="?"+i);let l=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(l="#"+(t[c]?u(r.fragmentIdentifier,t):r.fragmentIdentifier)),`${n}${i}${l}`},e.pick=(r,t,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);const{url:o,query:a,fragmentIdentifier:i}=e.parseUrl(r,n);return e.stringifyUrl({url:o,query:s(a,t),fragmentIdentifier:i},n)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}},75:function(r,e,t){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>"%"+r.charCodeAt(0).toString(16).toUpperCase())},76:function(r,e,t){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(r,e){try{return decodeURIComponent(r.join(""))}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],a(t),a(n))}function s(r){try{return decodeURIComponent(r)}catch(o){for(var e=r.match(n),t=1;t{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]}},78:function(r,e,t){"use strict";r.exports=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object(o.usePixel)(),c=i.push,u=Object(n.useRef)(null),s=u.current;Object(n.useEffect)((function(){if(t&&!r&&s!==t){if(!e||Object(a.isEmpty)(e))return;Array.isArray(e)?e.forEach(c):c(e),u.current=t}}),[e,r,t,s,c])}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=["firstName","lastName","document","id","email","phone","isAuthenticated"],o=function(){return window.__RENDER_8_SESSION__&&window.__RENDER_8_SESSION__.sessionPromise?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve(null)};function a(e){return e?n.reduce((function(t,r){var n,o=null===(n=e[r])||void 0===n?void 0:n.value;return o&&(t[r]="isAuthenticated"===r?function(e){return"true"===e.toLowerCase()}(o):o),t}),{}):{}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(0),o=r(1),a=r(6),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=e.cacheKey,i=e.skip,c=Object(o.useRuntime)(),u=c.route,s=c.account,l=null!=r?r:u.routeId,d=Object(n.useMemo)((function(){return!o.canUseDOM||i?null:{event:"pageView",pageTitle:null!=t?t:document.title,pageUrl:location.href,referrer:0===document.referrer.indexOf(location.origin)?void 0:document.referrer,accountName:s,routeId:(null==u?void 0:u.routeId)?u.routeId:""}}),[s,t,o.canUseDOM,l]);Object(a.a)(i?null:d,l)},c=["store.search","store.product"];t.a=function(e){var t=e.title,r=Object(o.useRuntime)().route,n=r&&c.some((function(e){return 0===r.routeId.indexOf(e)}));return i({title:t,skip:n}),null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1);function o(){var e=Object(n.useRuntime)(),t=e.route,r=e.rootPath,o=void 0===r?"":r,a=t.canonicalPath,i=window.__hostname__||window.location&&window.location.hostname;return i&&a?"https://".concat(i).concat(o).concat(a):null}},,,,function(e,t,r){"use strict";var n=r(0),o=r.n(n);t.a=function(e){var t=e.children,r=e.className;return o.a.createElement("div",{className:r},o.a.createElement("div",{className:"flex flex-column min-vh-100 w-100"},t))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var n=r(14),o=r.n(n),a=r(23),i=r(4),c=r(0),u=r.n(c),s=r(24),l=r(18),d=r.n(l),p=r(5),f=r(1),m=r(10),O=function(e,t){var r=e.items.find((function(e){return e.itemId===t.skuId&&e.sellers.some((function(e){return e.sellerId===t.sellerId}))}));if(void 0===r)return!1;var n=r.sellers.find((function(e){return e.sellerId===t.sellerId}));return!!n&&(r.sellers=[n],e.items=[r],!0)},v=function(e){var t,r=e.children,n=Object(f.useRuntime)(),l=n.account,v=null===(t=(0,n.getSettings)("vtex.store"))||void 0===t?void 0:t.publisherId,h=Object(c.useState)(void 0),_=Object(i.a)(h,2),b=_[0],g=_[1],x=Object(c.useState)("session-id"),E=Object(i.a)(x,2),j=E[0],y=E[1];Object(c.useEffect)((function(){Object(m.a)().then((function(e){var t,r,n,o,a=null===(r=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.namespaces)||void 0===r?void 0:r.profile;if(a){y(null!==(o=null===(n=e.response)||void 0===n?void 0:n.id)&&void 0!==o?o:"session-id");var i=Object(m.b)(a);g(i.id)}})).catch((function(){}))}),[]);var N=Object(p.useApolloClient)(),R=function(){var e=Object(a.a)(o.a.mark((function e(t){var r,n,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return",[]);case 2:return e.prev=2,n=t.map((function(e){return e.skuId})).join(";"),e.next=6,N.query({query:d.a,variables:{fullText:"sku.id:".concat(n)}});case 6:return a=e.sent,i=a.data,e.abrupt("return",null!==(r=null==i?void 0:i.productSearch.products)&&void 0!==r?r:[]);case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}();return v?u.a.createElement(s.a,{identity:{accountName:l,publisherId:v,userId:b,sessionId:j,channel:"site"},hydrationStrategy:{fetcher:R,matcher:O,key:"sf"}},r):r}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryProductSearchV3"]},,,,,,,,,function(e,t){e.exports=ReactIntl},function(e,t){e.exports=regeneratorRuntime},,,,,,,,,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastProvider"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/PWAContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderQueue"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.shipping-option-components@1.x/ShippingOptionContext"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationAddToCart"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormProfile"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormShipping"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormCheckin"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/OrderFormContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryOrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastContext"]},,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t),function(e){var t=r(3);r.p=Object(t.getPublicPath)("vtex.store@2.145.0");var n=Object(t.register)((function(){return r(81)}),e,"vtex.store@2.145.0","vtex.store@2.x","StoreWrapper");n.renderHotReload,n.setupHMR}.call(this,r(9)(e))},,function(e,t,r){"use strict";r.r(t);var n=r(25),o=r(4),a=r(8),i=r(0),c=r.n(i),u=r(1),s=r(7),l=r(43),d=r.n(l),p=r(44),f=r(45),m=r(46),O=r(47),v=r(48),h=r(10),_=function(){var e=Object(s.usePixel)().push;return Object(i.useEffect)((function(){Object(h.a)().then((function(t){var r,n,o=null===(n=null===(r=null==t?void 0:t.response)||void 0===r?void 0:r.namespaces)||void 0===n?void 0:n.profile;if(o){var a=Object(h.b)(o);e(Object.assign({event:"userData"},a))}}))}),[e]),null},b=r(11),g=r(49),x=r(50),E=r(15),j=r(59),y=r(60),N=r(26),R=r(5),S=r(51),w=r.n(S),P=r(52),C=r.n(P),F=r(53),M=r.n(F),T=r(54),I=r.n(T),D=r(55),k=r.n(D),A=r(56),q=r(57),U=r.n(q);function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(N.a)(e);if(t){var o=Object(N.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(y.a)(this,r)}}var L=function(e){Object(j.a)(r,e);var t=W(r);function r(){var e;Object(g.a)(this,r);for(var n=arguments.length,o=new Array(n),i=0;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})),script:[T&&{type:"text/javascript",src:"".concat(C,"/register.js").concat(X).concat(B?"":"&__disableSW=true","&scope=").concat(encodeURIComponent(C)),defer:!0}].filter(Boolean),link:[].concat(Object(n.a)(Z||[]),Object(n.a)(!l&&Y?[{rel:"canonical",href:encodeURI(Y)}]:[])).filter(Boolean)}),c.a.createElement(s.PixelProvider,{currency:E},c.a.createElement(p.PWAProvider,{rootPath:C},c.a.createElement(b.a,{title:V}),c.a.createElement(_,null),c.a.createElement(d.a,{positioning:"window"},c.a.createElement(K,null),L?ae:c.a.createElement(Q,null,ae)))),function(){try{return u.canUseDOM&&window.top!==window.self&&window.top.__provideRuntime}catch(e){return!1}}()&&c.a.createElement(u.NoSSR,null,c.a.createElement(u.ExtensionPoint,{id:"highlight-overlay"})))}}],[[79,"common",1,0]]]); },function(){ (window.webpackJsonpvtex_store_2_145_0=window.webpackJsonpvtex_store_2_145_0||[]).push([["DefaultChallenge"],{63:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store@2.145.0");var r=Object(t.register)((function(){return n(64)}),e,"vtex.store@2.145.0","vtex.store@2.x","DefaultChallenge");r.renderHotReload,r.setupHMR}.call(this,n(9)(e))},64:function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.children}}},[[63,"common"]]]); }], document.currentScript.dataset.index)