enqueueScripts([function(){ (window.webpackJsonpvtex_store_components_3_178_3=window.webpackJsonpvtex_store_components_3_178_3||[]).push([["ProductBrand"],{0:function(e,n){e.exports=React},134:function(e,n){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Brand"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-components@3.178.3",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"brand"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.store-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"df500db2f91c85a679a3003aeabb91be70628eec702bf9732e63adc85647cbfb",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:264}};a.loc.source={body:'query Brand($id: Int) @context(sender: "vtex.store-components@3.178.3") {\n brand(id: $id) @context(provider: "vtex.store-graphql") @runtimeMeta(hash: "df500db2f91c85a679a3003aeabb91be70628eec702bf9732e63adc85647cbfb") {\n slug\n imageUrl\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var a=0;a0;){var c=d;d=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){d.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&a.definitions.push(t)})),a}(a,"Brand")},18:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},183:function(e,n,a){"use strict";a.r(n),function(e){var n=a(3);a.p=Object(n.getPublicPath)("vtex.store-components@3.178.3");var t=Object(n.register)((function(){return a(232)}),e,"vtex.store-components@3.178.3","vtex.store-components@3.x","ProductBrand");t.renderHotReload,t.setupHMR}.call(this,a(15)(e))},23:function(e,n){e.exports=ReactApollo},232:function(e,n,a){"use strict";a.r(n),a.d(n,"PRODUCT_BRAND_CSS_HANDLES",(function(){return N}));var t=a(20),r=a(0),i=a.n(r),o=a(23),d=a(18),c=a.n(d),l=a(7),u=a.n(l),s=a(46),m=a.n(s)()(N),v=m.CssHandlesProvider,f=m.useContextCssHandles;var p=function(e){var n=e.brandName,a=e.withLink,t=e.slug,r=f().handles;if(a&&t){var o="/".concat(t);return i.a.createElement("a",{href:o,className:"".concat(r.productBrandNameLink),"data-testid":"name-redirect"},i.a.createElement("span",{className:"".concat(r.productBrandName)},n))}return i.a.createElement("span",{className:"".concat(r.productBrandName)},n)},g=new RegExp(/.+ids\/(\d+)/);new RegExp(/http:\/\//);function h(e,n,a){return e.includes("/arquivos/ids/")?"".concat(function(e){var n=g.exec(e);return n&&n.length>0?n[0]:null}(e),"-").concat(n,"-").concat(a):e}var b=a(134),k=a.n(b),N=["productBrandContainer","productBrandLogo","productBrandLogoWrapper","productBrandLogoLink","productBrandLogoSpacer","productBrandNameSpacer"].concat(Object(t.a)(["productBrandNameLink","productBrandName"]));n.default=function(e){var n,a,t=e.displayMode,r=void 0===t?"logo":t,d=e.fallbackToText,l=void 0===d||d,s=e.loadingPlaceholder,m=void 0===s?"logo":s,f=e.height,g=void 0===f?100:f,b=e.excludeBrands,x=e.logoWithLink,E=e.withLink,_=void 0===E?"none":E,w=e.brandName,S=e.brandId,B=e.classes,y=function(e,n){var a=c()(),t=null==a?void 0:a.product;return e&&n||!t?{brandName:e,brandId:n}:{brandName:t.brand,brandId:Number(t.brandId)}}(w,S),L=y.brandName,D=y.brandId,R=u()(N,{classes:B}),O=R.handles,P=R.withModifiers,C=Object(o.useQuery)(k.a,{variables:{id:Number(D)},ssr:!1}),A=C.data,M=C.loading,T=C.error,I="logo"===_||"logoAndText"===_||Boolean(x),q="text"===_||"logoAndText"===_;if(!L||!D)return null;if(function(e,n,a){return!!Array.isArray(a)&&(a.includes(e)||a.includes(n))}(L,Number(D),b))return null;var H=i.a.createElement(v,{handles:O,withModifiers:P},i.a.createElement(p,{brandName:L,withLink:q,slug:null===(n=null==A?void 0:A.brand)||void 0===n?void 0:n.slug})),V=function(e){var n=e.children;return i.a.createElement("div",{className:"".concat(O.productBrandContainer)},n)};if("text"===r)return i.a.createElement(V,null,H);if(g||console.warn("ProductBrand: It is strongly recommended that the height of the logo should be set, to avoid shifting positions of elements while the logo is loading."),M)return"logo"===m?i.a.createElement(V,null,i.a.createElement("div",{style:{height:g},className:"".concat(O.productBrandLogoSpacer)})):"text"===m&&l?i.a.createElement(V,null,i.a.createElement("span",{className:"".concat(O.productBrandNameSpacer," o-0")},H)):null;if(T||!(null==A?void 0:A.brand))return null;var U=A.brand,F=U.imageUrl,j=U.slug;if(null===F&&l)return i.a.createElement(V,null,H);if(null===F&&!l)return null;var W=null!==(a=null===window||void 0===window?void 0:window.devicePixelRatio)&&void 0!==a?a:1,J="/".concat(j),Q=function(e){var n=e.imageUrl,a=e.width,t=void 0===a?"auto":a,r=e.height,i=void 0===r?"auto":r,o=t,d=i;"number"==typeof t&&(o=Math.min(t,3e3)),"number"==typeof i&&(d=Math.min(i,4e3));var c=h(n,o,d),l=c.includes("?")?"&":"?";return"".concat(c).concat(l,"width=").concat(o,"&height=").concat(d,"&aspect=true")}({imageUrl:"/arquivos/ids".concat(F),height:g?g*W:void 0}),$=i.a.createElement("img",{className:"".concat(O.productBrandLogo),src:Q,alt:L,style:{height:g||"auto"}});return i.a.createElement(V,null,i.a.createElement("div",{style:{height:g},className:"".concat(O.productBrandLogoWrapper)},I?i.a.createElement("a",{href:J,className:"".concat(O.productBrandLogoLink),"data-testid":"logo-redirect"}," ",$," "):$))}},46:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/createCssHandlesContext"]},7:function(e,n){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]}},[[183,"common"]]]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];st.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1}));if(a){var u=a.split("="),p=Object(r.a)(u,2)[1];return p&&";"===p[p.length-1]?p.substring(0,p.length-1):p}}}function a(){var n,t=null===(n=window)||void 0===n?void 0:n.__RUNTIME__.segmentToken;if(t)return JSON.parse(atob(t)).countryCode}function u(){var n=localStorage.getItem("orderform");if(n)return JSON.parse(n||"{}").id}}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([[1],{19:function(e,t,n){"use strict";n.d(t,"a",(function(){return z})),n.d(t,"c",(function(){return B})),n.d(t,"b",(function(){return _}));var r=n(0),i=n.n(r),a=n(66),o=n(67),c=n(72),p=n(71),s=n(58);function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(p.a)(this,n)}}var l=function(e){Object(c.a)(n,e);var t=u(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(o.a)(n,[{key:"render",value:function(){return this.state.hasError?this.props.fallback:this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),n}(r.Component),d=n(9),b=n.n(d),f=n(15),v=n(5),h=n(35),O=n(4),g=n(39),k=n(32),j=n.n(k),m=n(20),S=n(23),I=n(2),y=n(21),x=function(e){var t=e.children,n=function(){var e=Object(r.useState)(),t=Object(v.a)(e,2),n=t[0],i=t[1],a=Object(r.useState)(!0),o=Object(v.a)(a,2),c=o[0],p=o[1],s=Object(r.useState)(),u=Object(v.a)(s,2),l=u[0],d=u[1],k=Object(r.useState)(),x=Object(v.a)(k,2),P=x[0],C=x[1],D=Object(r.useState)(),z=Object(v.a)(D,2),B=z[0],_=z[1],M=Object(r.useState)([]),E=Object(v.a)(M,2),w=E[0],T=E[1],L=Object(r.useState)(),A=Object(v.a)(L,2),N=A[0],R=A[1],U=Object(r.useState)(),F=Object(v.a)(U,2),H=F[0],V=F[1],G=Object(r.useState)(),J=Object(v.a)(G,2),K=J[0],X=J[1],Y=Object(r.useState)(),Z=Object(v.a)(Y,2),q=Z[0],Q=Z[1],W=Object(r.useState)([]),$=Object(v.a)(W,2),ee=$[0],te=$[1],ne=Object(r.useState)(),re=Object(v.a)(ne,2),ie=re[0],ae=re[1],oe=Object(r.useState)(),ce=Object(v.a)(oe,2),pe=ce[0],se=ce[1],ue=Object(r.useState)(),le=Object(v.a)(ue,2),de=le[0],be=le[1],fe=Object(h.useRuntime)().account,ve=Object(h.useSSR)(),he=Object(O.useIntl)(),Oe=Object(g.useOrderItems)().addItems;j()({eventId:y.SHIPPING_MODAL_PIXEL_EVENT_ID,handler:function(e){ae(e.data.addToCartInfo)}});var ge=Object(r.useCallback)(function(){var e=Object(f.a)(b.a.mark((function e(t,n,r,i){var a,o,c,s,u,l=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>4&&void 0!==l[4]&&l[4],e.next=3,Object(m.getPickups)(t,n,fe);case 3:if(c=e.sent,T(null!==(o=null==c?void 0:c.items)&&void 0!==o?o:[]),0!==(null==c?void 0:c.items.length)){e.next=8;break}return p(!1),e.abrupt("return");case 8:if(!(s=Object(S.b)("pickupPoint"))){e.next=14;break}return u=c.items.find((function(e){return e.pickupPoint.id===s})),R(u),e.next=14,Object(m.updateSession)(t,n,r,u,i);case 14:a||p(!1);case 15:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}(),[fe]);Object(r.useEffect)((function(){if(!ve){var e=Object(S.b)("zip-code"),t=Object(S.a)(),n=Object(S.b)("shipping");if(i(e),Q(n),d(t),e)try{Object(m.getAddress)(t,e,fe).then((function(r){_(r.city),V(r.geoCoordinates),ge(t,e,r.geoCoordinates,n)}))}catch(e){p(!1)}else p(!1)}}),[fe,ve,ge]);var ke=function(e,t){C({code:e,message:t}),p(!1),setTimeout((function(){C(void 0)}),3e3)},je=function(){var e=Object(f.a)(b.a.mark((function e(t){var n,r,i,a,o,c;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.prev=1,n=Object(S.c)(),e.next=5,Object(m.getCartProducts)(n);case 5:return r=e.sent,i=r.map((function(e){return e.id})),e.next=9,t(i);case 9:return a=e.sent,o=a.unavailableProducts,c=r.map((function(e,t){return{cartItemIndex:t,product:e}})).filter((function(e){return o.some((function(t){return t===e.product.id}))})),te(c),p(!1),e.abrupt("return",c);case 17:return e.prev=17,e.t0=e.catch(1),p(!1),te([]),e.abrupt("return",[]);case 22:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=Object(f.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:te([]);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=Object(f.a)(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(S.c)(),e.next=3,Object(m.removeCartProductsById)(t,ee.map((function(e){return e.cartItemIndex})));case 3:de&&de();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ie=function(){var e=Object(f.a)(b.a.mark((function e(t){var n,r,a,o,c,s,u=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(u.length>1&&void 0!==u[1])||u[1],t){e.next=4;break}return ke("POSTAL_CODE_NOT_FOUND",he.formatMessage(I.default.postalCodeInputPlaceHolder)),e.abrupt("return");case 4:if(l){e.next=6;break}return e.abrupt("return");case 6:return p(!0),e.prev=7,e.next=10,Object(m.getAddress)(l,t,fe);case 10:if(r=e.sent,a=r.geoCoordinates,o=r.city,0!==a.length){e.next=16;break}return ke("INVALID_POSTAL_CODE",he.formatMessage(I.default.postalCodeInputError)),e.abrupt("return");case 16:return e.next=18,Object(m.getCatalogCount)(t,a);case 18:if(c=e.sent,0!==c.total){e.next=23;break}return ke(y.PRODUCTS_NOT_FOUND_ERROR_CODE,he.formatMessage(I.default.noPickupsStateDescription,{postalCode:" ".concat(t)})),e.abrupt("return");case 23:if(!(s=Object(S.c)())){e.next=27;break}return e.next=27,Object(m.updateOrderForm)(l,t,s);case 27:return _(o),V(a),i(t),e.next=32,Object(m.updateSession)(l,t,a);case 32:return e.next=34,ge(l,t,a,q,!0);case 34:e.next=40;break;case 36:return e.prev=36,e.t0=e.catch(7),ke("INVALID_POSTAL_CODE",he.formatMessage(I.default.postalCodeInputError)),e.abrupt("return");case 40:Q(void 0),R(void 0),n||p(!1),n&&location.reload();case 44:case"end":return e.stop()}}),e,null,[[7,36]])})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=Object(f.a)(b.a.mark((function e(t){var r,i=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!(i.length>1&&void 0!==i[1])||i[1],l&&n&&H){e.next=3;break}return e.abrupt("return");case 3:return R(t),e.next=6,Object(m.updateSession)(l,n,H,t,r?"pickup-in-point":q);case 6:location.reload();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xe=function(){var e=Object(f.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l&&n&&H){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Object(m.updateSession)(l,n,H,N,"delivery");case 4:location.reload();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(r.useEffect)((function(){X(B?"".concat(B,", ").concat(n):n)}),[n,B]);var Pe=function(){var e=Object(f.a)(b.a.mark((function e(t){var r,i,a,o,c,p;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.type,e.next="UPDATE_ZIPCODE"===e.t0?3:"UPDATE_PICKUP"===e.t0?13:"SELECT_DELIVERY_SHIPPING_OPTION"===e.t0?28:"ABORT_UNAVAILABLE_ITEMS_ACTION"===e.t0?42:"CONTINUE_UNAVAILABLE_ITEMS_ACTION"===e.t0?44:46;break;case 3:return r=t.args,i=r.zipcode,a=r.reload,e.next=6,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailability)(i,l,t,fe));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 6:if(0!==e.sent.length){e.next=10;break}return Ie(i,a),e.abrupt("break",47);case 10:return se(he.formatMessage(I.default.unavailableItemsModalDescription,{addressLabel:K})),be((function(){return function(){return Ie(i,a)}})),e.abrupt("break",47);case 13:return o=t.args,c=o.pickup,p=o.shouldPersistFacet,se("pickup"),e.next=17,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailabilityByPickup)(c.pickupPoint.id,t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 17:if(0!==e.sent.length){e.next=25;break}if(ye(c,p),!ie){e.next=24;break}return e.next=23,Oe(ie.skuItems,ie.options);case 23:ae(void 0);case 24:return e.abrupt("break",47);case 25:return se(he.formatMessage(I.default.unavailableItemsModalForPickupDescription,{pickupLabel:null==N?void 0:N.pickupPoint.friendlyName})),be((function(){return function(){return ye(c,p)}})),e.abrupt("break",47);case 28:return se("delivery"),e.next=31,je(function(){var e=Object(f.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(m.validateProductAvailabilityByDelivery)(n,l,t,fe));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 31:if(0!==e.sent.length){e.next=39;break}if(xe(),!ie){e.next=38;break}return e.next=37,Oe(ie.skuItems,ie.options);case 37:ae(void 0);case 38:return e.abrupt("break",47);case 39:return se(he.formatMessage(I.default.unavailableItemsModalForDeliveryDescription,{addressLabel:K})),be((function(){return function(){return xe()}})),e.abrupt("break",47);case 42:return me(),e.abrupt("break",47);case 44:return Se(),e.abrupt("break",47);case 46:return e.abrupt("break",47);case 47:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ce=ee.length>0;return{dispatch:Pe,state:{zipcode:n,isLoading:c,countryCode:l,submitErrorMessage:P,city:B,pickups:w,selectedPickup:N,geoCoordinates:H,addressLabel:K,shippingOption:q,areThereUnavailableCartItems:Ce,unavailableCartItems:ee,unavailabilityMessage:pe}}}(),a=n.dispatch,o=n.state;return i.a.createElement(C.Provider,{value:o},i.a.createElement(D.Provider,{value:a},t))},P={pickups:[],isLoading:!0,areThereUnavailableCartItems:!1,unavailableCartItems:[]},C=Object(r.createContext)(P),D=Object(r.createContext)((function(e){})),z=function(e){var t=e.children;return i.a.createElement(l,{fallback:t},i.a.createElement(x,null,t))},B=function(){return Object(r.useContext)(C)},_=function(){return Object(r.useContext)(D)}},2:function(e,t,n){"use strict";n.r(t);var r=n(4),i=Object(r.defineMessages)({deliverToButtonLabel:{id:"store/shipping-option-zipcode.deliverToButton.label"},deliverToButtonPlaceholder:{id:"store/shipping-option-zipcode.deliverToButton.placeholder"},storeButtonLabel:{id:"store/shipping-option-zipcode.storeButton.label"},storeButtonPlaceHolder:{id:"store/shipping-option-zipcode.storeButton.placeholder"},storeDeliverDrawerTitle:{id:"store/shipping-option-zipcode.deliverDrawer.title"},pickupDrawerTitleEmpty:{id:"store/shipping-option-zipcode.pickupDrawer.title.empty"},pickupDrawerTitleFilled:{id:"store/shipping-option-zipcode.pickupDrawer.title.filled"},postalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.postalCodeInput.placeholder"},postalCodeInputError:{id:"store/shipping-option-zipcode.postalCodeInput.error"},updateButtonLabel:{id:"store/shipping-option-zipcode.updateButton.label"},popoverButtonLabel:{id:"store/shipping-option-zipcode.popoverButton.label"},popoverSubmitButtonLabel:{id:"store/shipping-option-zipcode.deliveryPopover.submitButton.label"},popoverDescription:{id:"store/shipping-option-zipcode.popover.description"},popoverPostalCodeInputPlaceHolder:{id:"store/shipping-option-zipcode.deliveryPopover.postalCodeInput.placeholder"},popoverPostalCodeLink:{id:"store/shipping-option-zipcode.popover.postalCodeLink"},locationModalTitle:{id:"store/shipping-option-zipcode.locationModal.title"},locationModalDescription:{id:"store/shipping-option-zipcode.locationModal.description"},noPickupsStateTitle:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.title"},noPickupsStateDescription:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.description"},noPickupsStateButtonLabel:{id:"store/shipping-option-zipcode.locationModal.noPickupsState.button.label"},noStoresStateTitle:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.title"},noStoresStateDescription:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.description"},noStoresStateButton:{id:"store/shipping-option-zipcode.pickupSelection.noStoresState.button.label"},shippingSelectionModalTitle:{id:"store/shipping-option-zipcode.shippingSelectionModal.title"},shippingSelectionModalDescription:{id:"store/shipping-option-zipcode.shippingSelectionModal.description"},shippingSelectionModalDeliveryButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.deliveryButton.label"},shippingSelectionModalPickupButton:{id:"store/shipping-option-zipcode.shippingSelectionModal.pickupButton.label"},pickupSelectionTitle:{id:"store/shipping-option-zipcode.pickupSelection.title"},deliveryAvailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.deliveryAvailable"},deliveryUnavailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.deliveryUnavailable"},pickupUnavailableBadge:{id:"store/shipping-option-zipcode.availabilityBadge.pickupUnavailable"},pickupAtBadge:{id:"store/shipping-option-zipcode.availabilityBadge.pickupAt"},unavailableItemsModalRemoveButton:{id:"store/shipping-option-zipcode.unavailableItems.removeItemsButton.label"},unavailableItemsModalRetryButton:{id:"store/shipping-option-zipcode.unavailableItems.retryButton.label"},unavailableItemsModalTitle:{id:"store/shipping-option-zipcode.unavailableItems.title"},unavailableItemsModalDescription:{id:"store/shipping-option-zipcode.unavailableItems.description"},unavailableItemsModalForPickupDescription:{id:"store/shipping-option-zipcode.unavailableItems.forPickup.description"},unavailableItemsModalForDeliveryDescription:{id:"store/shipping-option-zipcode.unavailableItems.forDelivery.description"}});t.default=i}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([["ShippingOptionContext"],{0:function(t,n){t.exports=React},32:function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},35:function(t,n){t.exports=__RENDER_8_RUNTIME__},38:function(t,n){t.exports=regeneratorRuntime},39:function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},4:function(t,n){t.exports=ReactIntl},88:function(t,n,e){"use strict";e.r(n),function(t){var n=e(13);e.p=Object(n.getPublicPath)("vtex.shipping-option-components@1.6.0");var o=Object(n.register)((function(){return e(89)}),t,"vtex.shipping-option-components@1.6.0","vtex.shipping-option-components@1.x","ShippingOptionContext");o.renderHotReload,o.setupHMR}.call(this,e(31)(t))},89:function(t,n,e){"use strict";e.r(n);var o=e(19);n.default={ShippingOptionProvider:o.a,useShippingOptionDispatch:o.b,useShippingOptionState:o.c}}},[[88,"common",0,1]]]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([[2],{57:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=n(51);var l=((o=r)&&o.__esModule?o:{default:o}).default,a=l.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=l.canUseDOM?window.NodeList:{},t.canUseDOM=l.canUseDOM;t.default=a},62:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var o=/^(input|select|textarea|button|object|iframe)$/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),o=n.getPropertyValue("display");return t?"contents"!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===o}catch(e){return console.warn("Failed to inspect element style"),!1}}function l(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&l(e,!n)}e.exports=t.default},63:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=i,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,l=u(e)[Symbol.iterator]();!(t=(r=l.next()).done);t=!0){r.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,o=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,l=u(e)[Symbol.iterator]();!(t=(r=l.next()).done);t=!0){r.value.removeAttribute("aria-hidden")}}catch(e){n=!0,o=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,r=n(81),l=(o=r)&&o.__esModule?o:{default:o},a=n(57);var s=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,l.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},64:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new o};var o=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new o;t.default=r},68:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(77),l=(o=r)&&o.__esModule?o:{default:o};t.default=l.default,e.exports=t.default},77:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t0&&0===(b-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(i.returnFocus(n.props.preventScroll),i.teardownScopedFocus()):i.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(i.setupScopedFocus(n.node),i.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},l=o.base;return n.state.afterOpen&&(l=l+" "+o.afterOpen),n.state.beforeClose&&(l=l+" "+o.beforeClose),"string"==typeof t&&t?l+" "+t:l},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,l=e.parentSelector,a=l&&l().ownerDocument||document;r&&f.add(a.body,r),o&&f.add(a.getElementsByTagName("html")[0],o),n&&(b+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,l=e.defaultStyles,a=e.children,s=n?{}:l.content,i=r?{}:l.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},i,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,a);return this.props.overlayElement(u,f)}}]),t}(a.Component);O.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},O.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=O,e.exports=t.default},79:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,r=n(62),l=(o=r)&&o.__esModule?o:{default:o};var a=[],s=null,i=!1;function u(){i=!0}function c(){if(i){if(i=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,l.default)(s)[0]||s).focus()}),0)}}},80:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,l.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,r=t.shiftKey,a=n[0],s=n[n.length-1],i=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===i){if(!r)return;o=s}s!==i||r||(o=a);a===i&&r&&(o=s);if(o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(i);c>-1&&(c+=r?-1:1);if(void 0===(o=n[c]))return t.preventDefault(),void(o=r?s:a).focus();t.preventDefault(),o.focus()};var o,r=n(62),l=(o=r)&&o.__esModule?o:{default:o};e.exports=t.default},81:function(e,t,n){"use strict";var o=function(){};e.exports=o},82:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in o)l(e,o[t]);var n=document.body;for(var a in r)l(n,r[a]);o={},r={}},t.log=function(){0};var o={},r={};function l(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,l="html"==e.nodeName.toLowerCase()?o:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(l,e),n.add(e)}));var n,l},t.remove=function(e,t){return n=e.classList,l="html"==e.nodeName.toLowerCase()?o:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(l,e),0===l[e]&&n.remove(e)}));var n,l}},83:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},84:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function l(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var i=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=l;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([[3],{22:function(e,t,n){"use strict";var o=n(0),i=n.n(o),a=n(68),p=n.n(a),l=n(8),s=n.n(l),r=n(36),c=n.n(r),C=n(43),m=n.n(C),u=n(44),d=n.n(u),x={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",padding:"40px 40px 64px 40px",transform:"translate(-50%, -50%)",borderRadius:"12px",minHeight:"388px",maxHeight:"640px",width:"unset",minWidth:"unset",display:"flex","flex-direction":"column"},overlay:{backgroundColor:"rgba(3, 4, 78, 0.55)",zIndex:"99999",width:"100vw",height:"100vh"}},v=["modalBackButton","modalCloseButton","shippingMethodModalTitle"],h={cursor:"pointer",backgroundColor:"unset",border:0};t.a=function(e){var t=e.children,n=e.onClose,o=e.isOpen,a=e.title,l=e.onArrowBack,r=e.showArrowBack,C=e.isTopCloseButton,u=e.nonDismissible,g=void 0!==u&&u,f=s()(v);return c()().isMobile?x.content.width="100%":(x.content.width="522px",x.content.minWidth="522px"),x.content.padding=g?"64px 40px":"40px 40px 64px 40px",i.a.createElement(p.a,{style:x,isOpen:o,onRequestClose:g?void 0:n},i.a.createElement("div",{className:"flex justify-between items-center mb3 ".concat(C?"flex-column-reverse":"flex-row")},i.a.createElement("div",{className:"flex items-center self-start flex-row"},r&&l&&i.a.createElement("button",{className:"pa0 mr4 ".concat(f.modalBackButton),onClick:l},i.a.createElement(d.a,null)),i.a.createElement("p",{className:"f3 fw6 ma0 ".concat(f.shippingMethodModalTitle)},a)),!g&&i.a.createElement("div",{className:"flex justify-end self-end"},i.a.createElement("button",{onClick:n,className:f.modalCloseButton,style:h},i.a.createElement(m.a,{size:24})))),t)}},24:function(e,t,n){"use strict";var o=n(0),i=n.n(o),a=n(45),p=n.n(a),l=n(46),s=n.n(l),r=n(8),c=n.n(r),C=(n(52),["postalCodeInputClearButton","postalCodeInputContainer"]),m={backgroundColor:"unset",width:"32px",height:"32px"};t.a=function(e){var t=e.zipcode,n=e.errorMessage,o=e.onSubmit,a=e.onChange,l=e.showClearButton,r=void 0!==l&&l,u=e.placeholder,d=c()(C);return i.a.createElement("div",{className:"w-100 ".concat(d.postalCodeInputContainer)},i.a.createElement(p.a,{autFocus:!0,onChange:function(e){return a(e.target.value.replace(/[^0-9]/g,""))},onKeyDown:function(e){"Enter"===e.key&&o(null!=t?t:"")},value:t,errorMessage:n,placeholder:u,suffix:r?i.a.createElement("button",{style:m,className:"bn pointer flex justify-center items-center pa3 ".concat(d.postalCodeInputClearButton),onClick:function(){a("")}},i.a.createElement(s.a,null)):null}))}},30:function(e,t,n){"use strict";var o=n(0),i=n.n(o),a=n(16),p=n.n(a),l=n(8),s=n.n(l),r=function(e){var t=e.color,n=void 0===t?"#000000":t;return i.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},i.a.createElement("path",{d:"M23.7664 15.0459C24.5882 15.071 25.3638 15.2115 26.1675 15.369C25.5598 16.0586 24.7498 16.75 24.1679 17.3744C23.4998 18 22.5172 18.8882 21.8519 19.5489C21.2853 20.2827 21.4643 20 20.9998 20.5C20.2498 21.3064 19.6865 21.8884 19.3295 22.2511C19.0774 22.5 18.7498 22.75 18.6083 22.8981C18.5271 22.9505 18.4095 22.8972 18.3158 22.8772C18.1166 22.6198 18.046 22.3487 18.0083 22.0288C17.8172 20.4071 18.3674 18.4866 19.3789 17.2097C20.5423 15.741 21.9663 15.2557 23.7664 15.0459Z",fill:n}),i.a.createElement("path",{d:"M22.9762 4.04928C27.2645 3.78994 30.5658 5.19817 34.1785 7.30007C33.5204 8.06057 32.8481 8.80829 32.1616 9.54322C29.1674 7.88762 26.4711 6.80697 22.9727 7.08522C19.1849 7.38647 15.7872 9.06312 13.315 11.9673C10.664 15.0815 9.78313 18.8711 10.1107 22.8784C10.5394 25.3465 11.4575 26.8704 12.4564 29.0893C12.0233 29.5556 11.5917 30.0259 11.1439 30.4782C10.894 30.7305 10.6525 30.9671 10.2895 30.9693C8.63043 29.4154 7.29908 24.8089 7.09848 22.6032C7.07248 22.3226 7.05341 22.0415 7.04128 21.76C7.02914 21.4784 7.02396 21.1968 7.02573 20.915C7.02753 20.6332 7.03626 20.3516 7.05193 20.0702C7.06759 19.7889 7.09019 19.5081 7.11973 19.2278C7.14923 18.9476 7.18564 18.6682 7.22898 18.3898C7.27228 18.1113 7.32243 17.8341 7.37943 17.5581C7.43643 17.2822 7.50019 17.0078 7.57073 16.7349C7.64126 16.4621 7.71848 16.1912 7.80238 15.9222C7.88631 15.6531 7.97681 15.3864 8.07388 15.1218C8.17094 14.8573 8.27448 14.5953 8.38448 14.3358C8.49448 14.0764 8.61081 13.8198 8.73348 13.5661C8.85614 13.3124 8.98499 13.0619 9.12003 12.8145C9.25506 12.5672 9.39611 12.3233 9.54318 12.083C9.69024 11.8426 9.84314 11.606 10.0019 11.3731C10.1606 11.1403 10.325 10.9115 10.4951 10.6868C10.6651 10.4621 10.8406 10.2417 11.0215 10.0256C14.0919 6.35042 18.2676 4.4664 22.9762 4.04928Z",fill:n}),i.a.createElement("path",{d:"M42.272 3.99805C42.731 4.00972 43.2756 4.16659 43.6143 4.48696C43.8071 4.66932 43.9396 4.93067 43.9401 5.19878C43.9436 6.78453 39.5925 10.5183 38.3288 11.764C39.9499 14.7207 41.0528 17.7971 40.9852 21.222C40.8519 27.966 37.2803 31.7061 33.0792 36.3669C31.3086 38.3312 29.5436 40.3725 27.6339 42.2033C26.5703 43.223 25.5411 44.0075 24.0025 43.9686C23.1874 43.948 22.4522 43.7582 21.7523 43.3328C19.771 42.1286 16.1518 37.6712 14.3493 35.7829C13.3088 36.6658 12.3559 37.7473 11.3857 38.7128C10.2639 39.825 7.266 43.1911 6.13045 43.7814C5.66585 44.0229 5.05825 43.9917 4.56951 43.8308C4.21515 43.7142 4.11426 43.529 3.95439 43.2208C3.93392 42.8709 3.97229 42.5795 4.10468 42.2528C4.33516 41.6839 4.73232 41.1596 5.14395 40.7094C6.88785 38.8024 8.83705 37.0321 10.6664 35.2032L22.0461 23.8124L34.6149 11.2408C36.7735 9.08258 38.8869 6.82123 41.1279 4.75121C41.4847 4.42161 41.8217 4.18775 42.272 3.99805ZM35.9544 14.2136C34.0915 15.9561 31.6334 18.1261 30.0889 20.1033C29.8614 22.2626 29.5366 24.2052 27.741 25.6527C26.3547 26.7702 24.7947 26.9772 23.0718 27.0815C21.1476 28.9074 18.0771 31.6868 16.5238 33.6916C18.1168 35.3133 19.5588 37.0745 21.1535 38.6929C21.8361 39.4254 22.9413 40.919 24.0103 40.9502C24.5814 40.9668 25.1597 40.3768 25.5487 40.003C28.3967 37.2665 35.2719 29.9324 36.8446 26.6032C37.5885 25.0283 37.9521 22.9838 37.9819 21.262C38.0071 19.8052 37.3653 15.5263 36.3291 14.3956C36.2353 14.2932 36.0938 14.2208 35.9544 14.2136Z",fill:n}))},c=["noPickupsStateContent"];t.a=function(e){var t=e.onClick,n=e.title,o=e.description,a=e.buttonLabel,l=e.variant,C=void 0===l?"primary":l,m=s()(c);return i.a.createElement("div",{className:"flex-auto flex flex-column"},i.a.createElement("div",{style:{margin:"auto 0"},className:"flex flex-column ".concat("primary"===C?"items-center":"items-start"," ").concat(m.noPickupsStateContent)},i.a.createElement(r,{color:"primary"===C?"#979899":"#000000"}),i.a.createElement("p",{className:"f3 fw6 mb0 mt5"},n),i.a.createElement("p",{className:"t-small mt3 mb0 c-muted-1"},o)),t&&i.a.createElement("div",{className:"mt8"},i.a.createElement(p.a,{block:!0,onClick:t},a)))}},52:function(e,t,n){e.exports={buttonWrapper:"vtex-shipping-option-components-1-x-buttonWrapper",zipCodeValue:"vtex-shipping-option-components-1-x-zipCodeValue",shippingButtonContainer:"vtex-shipping-option-components-1-x-shippingButtonContainer",deliveryPopover:"vtex-shipping-option-components-1-x-deliveryPopover",popoverInputContainer:"vtex-shipping-option-components-1-x-popoverInputContainer",openIconContainer:"vtex-shipping-option-components-1-x-openIconContainer",drawerHiddenIcon:"vtex-shipping-option-components-1-x-drawerHiddenIcon",shippingOptionButton:"vtex-shipping-option-components-1-x-shippingOptionButton",modalCloseButton:"vtex-shipping-option-components-1-x-modalCloseButton",modalBackButton:"vtex-shipping-option-components-1-x-modalBackButton",deliveryModalButton:"vtex-shipping-option-components-1-x-deliveryModalButton",shippingOptionButtonSelected:"vtex-shipping-option-components-1-x-shippingOptionButtonSelected",shippingMethodModalOptions:"vtex-shipping-option-components-1-x-shippingMethodModalOptions",deliveryModalButtonLabel:"vtex-shipping-option-components-1-x-deliveryModalButtonLabel",deliveryDrawerValue:"vtex-shipping-option-components-1-x-deliveryDrawerValue",deliveryModalButtonLabelLimited:"vtex-shipping-option-components-1-x-deliveryModalButtonLabelLimited",buttonValue:"vtex-shipping-option-components-1-x-buttonValue",availabilityBadgeCircle:"vtex-shipping-option-components-1-x-availabilityBadgeCircle",availabilityPickupButton:"vtex-shipping-option-components-1-x-availabilityPickupButton",fadein:"vtex-shipping-option-components-1-x-fadein"}}}]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([["PickupModal"],{0:function(e,t){e.exports=React},16:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},27:function(e,t){e.exports=ReactDOM},29:function(e,t,n){"use strict";var o=n(5),c=n(0),i=n.n(c),s=n(4),a=n(24),r=n(2),u=n(30),l=n(16),p=n.n(l),d=n(8),m=n.n(d),_=(n(52),["pickupItem","pickupItemSelected"]),f=function(e){var t=e.pickup,n=e.onClick,o=e.selected,c=t.distance,s=t.pickupPoint,a=s.friendlyName,r=s.address,u=r.city,l=r.neighborhood,p=r.number,d=r.postalCode,f=r.street,E=m()(_);return i.a.createElement("button",{style:{padding:"1.25rem",backgroundColor:"unset",marginBottom:"1.25rem"},className:"".concat(E.pickupItem," ").concat(o?"".concat(E.pickupItemSelected," bw1 b--action-primary"):""," pointer relative hover-b--gray b--black-10 ba br2"),onClick:n},i.a.createElement("p",{className:"f4 tl ma0 fw6 mb2",style:{maxWidth:"80%"}},a),i.a.createElement("p",{className:"mid-gray f6 ma0 tl"},"".concat(p," ").concat(f)),i.a.createElement("p",{className:"mid-gray f6 ma0 tl"},"".concat(l,", ").concat(u,", ").concat(d)),i.a.createElement("span",{className:"mid-gray absolute top-1 right-1"},c.toFixed(1)," Km"))},E=["updateButtonContainer"],k=function(e){var t=e.pickups,n=e.selectedPickup,a=e.onSelectPickup,u=e.onClose,l=e.shouldPersistFacet,d=m()(E),_=Object(s.useIntl)(),k=Object(c.useState)(null),x=Object(o.a)(k,2),P=x[0],g=x[1];Object(c.useEffect)((function(){n&&g(n)}),[n]);var b=n&&P&&P.pickupPoint.id!==(null==n?void 0:n.pickupPoint.id);return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"m-100 flex flex-column justify-center"},t.filter((function(e){return e.pickupPoint.isActive})).map((function(e){return i.a.createElement(f,{key:e.pickupPoint.id,selected:!!P&&P.pickupPoint.id===e.pickupPoint.id,onClick:function(){g(e),n||(a(e,l),null==u||u())},pickup:e})}))),b&&i.a.createElement("div",{style:{bottom:"-30px"},className:"sticky left-0 bottom-0 w-100 flex justify-center ".concat(d.updateButtonContainer)},i.a.createElement(p.a,{block:!0,onClick:function(){a(P,l),null==u||u()}},_.formatMessage(r.default.updateButtonLabel))))};t.a=function(e){var t=e.onSubmit,n=e.inputErrorMessage,l=e.selectedZipcode,p=e.pickups,d=e.selectedPickup,m=e.onSelectPickup,_=e.onClose,f=e.shouldPersistFacet,E=e.onDeliverySelection,x=e.isLoading,P=Object(c.useState)(""),g=Object(o.a)(P,2),b=g[0],v=g[1],N=Object(s.useIntl)();return Object(c.useEffect)((function(){return v(null!=l?l:"")}),[l]),i.a.createElement("div",{className:"flex flex-column mt5 vh-100"},i.a.createElement("div",{className:"mb7"},i.a.createElement(a.a,{onChange:function(e){return v(e)},zipcode:b,onSubmit:t,errorMessage:n,placeholder:N.formatMessage(r.default.postalCodeInputPlaceHolder)})),0!==p.length||x?i.a.createElement(k,{pickups:p,onSelectPickup:m,selectedPickup:d,onClose:_,shouldPersistFacet:f}):i.a.createElement(u.a,{onClick:E,buttonLabel:N.formatMessage(r.default.noStoresStateButton),title:N.formatMessage(r.default.noStoresStateTitle),description:N.formatMessage(r.default.noStoresStateDescription,{postalCode:" ".concat(b)})}))}},32:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},33:function(e,t,n){"use strict";var o=n(0),c=n.n(o),i=n(4),s=n(22),a=n(2),r=n(29);t.a=function(e){var t=e.isOpen,n=e.onClose,o=e.pickupProps,u=Object(i.useIntl)(),l=o.onSelectPickup,p=o.onSubmit,d=o.pickups,m=o.inputErrorMessage,_=o.selectedPickup,f=o.selectedZipcode,E=o.isLoading;return c.a.createElement(s.a,{showArrowBack:!1,isTopCloseButton:!1,title:u.formatMessage(a.default.deliverToButtonPlaceholder),isOpen:t,onClose:n},c.a.createElement(r.a,{onSelectPickup:l,onSubmit:p,pickups:d,inputErrorMessage:m,selectedPickup:_,selectedZipcode:f,shouldPersistFacet:!1,isLoading:E}))}},35:function(e,t){e.exports=__RENDER_8_RUNTIME__},36:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},38:function(e,t){e.exports=regeneratorRuntime},39:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},4:function(e,t){e.exports=ReactIntl},42:function(e,t){e.exports=PropTypes},43:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClose"]},44:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconArrowBack"]},45:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Input"]},46:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClear"]},51:function(e,t){e.exports=ExEnv},53:function(e,t,n){"use strict";n.r(t);var o=n(0),c=n.n(o),i=n(33),s=n(19);t.default=function(e){var t=e.isOpen,n=e.onClose,o=Object(s.c)(),a=o.zipcode,r=o.pickups,u=o.selectedPickup,l=o.isLoading,p=o.submitErrorMessage,d=Object(s.b)();return c.a.createElement(i.a,{isOpen:t,onClose:n,pickupProps:{onSelectPickup:function(e,t){d({type:"UPDATE_PICKUP",args:{pickup:e,shouldPersistFacet:t}})},onSubmit:function(e){d({type:"UPDATE_ZIPCODE",args:{zipcode:e,reload:!1}})},pickups:r,inputErrorMessage:null==p?void 0:p.message,selectedPickup:u,selectedZipcode:a,isLoading:l}})}},8:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},85:function(e,t,n){"use strict";n.r(t),function(e){var t=n(13);n.p=Object(t.getPublicPath)("vtex.shipping-option-components@1.6.0");var o=Object(t.register)((function(){return n(53)}),e,"vtex.shipping-option-components@1.6.0","vtex.shipping-option-components@1.x","PickupModal");o.renderHotReload,o.setupHMR}.call(this,n(31)(e))}},[[85,"common",2,0,1,3]]]); },function(){ (window.webpackJsonpvtex_shipping_option_components_1_6_0=window.webpackJsonpvtex_shipping_option_components_1_6_0||[]).push([["PostalCodeModal"],[function(e,t){e.exports=React},,,,function(e,t){e.exports=ReactIntl},,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Button"]},,,,,,,,,,,function(e,t){e.exports=ReactDOM},,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixelEventCallback"]},,,function(e,t){e.exports=__RENDER_8_RUNTIME__},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},function(e,t,n){"use strict";var o=n(5),a=n(0),s=n.n(a),i=n(4),c=n(47),r=n.n(c),l=n(48),u=n.n(l),_=n(49),p=n.n(_),d=n(8),f=n.n(d),E=n(2),m=n(23),x=["postalCodeHelpLink"],O=u.a.injectRules((function(e){var t,n,o=e.rules,a=Object(i.useIntl)(),c=f()(x);if(o){var r=null===(t=o.fields)||void 0===t?void 0:t.find((function(e){return"postalCode"===e.name}));n=null==r?void 0:r.forgottenURL}return n?s.a.createElement(p.a,{href:n,target:"_blank",className:"".concat(c.postalCodeHelpLink)},a.formatMessage(E.default.popoverPostalCodeLink)):null}));t.a=function(){var e=Object(a.useState)(""),t=Object(o.a)(e,2),n=t[0],i=t[1];return Object(a.useEffect)((function(){i(Object(m.a)())}),[]),s.a.createElement(r.a,{country:n,shouldUseIOFetching:!0},s.a.createElement(O,null))}},function(e,t){e.exports=regeneratorRuntime},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},,,function(e,t){e.exports=PropTypes},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/IconArrowBack"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Input"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/IconClear"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.address-form@4.x/AddressRules"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.address-form@4.x/helpers"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Link"]},function(e,t,n){"use strict";var o=n(5),a=n(0),s=n.n(a),i=n(4),c=n(16),r=n.n(c),l=n(24),u=n(2),_=n(37),p=function(e){var t=e.onSubmit,n=e.onChange,o=e.zipcode,a=e.isLoading,c=e.inputErrorMessage,p=Object(i.useIntl)();return s.a.createElement("div",{className:"flex-auto flex flex-column justify-between mt0"},s.a.createElement("p",{className:"mid-gray ma0"},p.formatMessage(u.default.locationModalDescription)),s.a.createElement("div",null,s.a.createElement(l.a,{onChange:function(e){return n(e)},zipcode:o,onSubmit:t,errorMessage:c,showClearButton:!1,placeholder:p.formatMessage(u.default.popoverPostalCodeInputPlaceHolder)}),s.a.createElement("div",{className:"mt3"},s.a.createElement(_.a,null))),s.a.createElement(r.a,{isLoading:a,onClick:function(){return t(o)}},p.formatMessage(u.default.popoverSubmitButtonLabel)))},d=n(22),f=n(30),E=n(21);t.a=function(e){var t=e.isOpen,n=e.onClose,c=e.onSubmit,r=e.isLoading,l=e.inputErrorMessage,_=e.selectedZipcode,m=e.nonDismissibleModal,x=Object(a.useState)(""),O=Object(o.a)(x,2),v=O[0],g=O[1],N=Object(a.useState)("locationSelection"),R=Object(o.a)(N,2),C=R[0],b=R[1],M=Object(i.useIntl)();Object(a.useEffect)((function(){return g(null!=_?_:"")}),[_]),Object(a.useEffect)((function(){(null==l?void 0:l.code)===E.PRODUCTS_NOT_FOUND_ERROR_CODE&&b("noPickupState")}),[l]);var S={locationSelection:{title:M.formatMessage(u.default.locationModalTitle),content:s.a.createElement(p,{onSubmit:c,isLoading:r,inputErrorMessage:null==l?void 0:l.message,onChange:function(e){return g(e)},zipcode:v})},noPickupState:{title:"",content:s.a.createElement(f.a,{title:M.formatMessage(u.default.noPickupsStateTitle),description:M.formatMessage(u.default.noPickupsStateDescription,{postalCode:" ".concat(v)}),buttonLabel:M.formatMessage(u.default.noPickupsStateButtonLabel),onClick:function(){return b("locationSelection")},variant:"secondary"})}};return s.a.createElement(d.a,{onArrowBack:function(){},showArrowBack:!1,isTopCloseButton:!0,title:S[C].title,isOpen:t,onClose:n,nonDismissible:m},S[C].content)}},function(e,t){e.exports=ExEnv},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(13);n.p=Object(t.getPublicPath)("vtex.shipping-option-components@1.6.0");var o=Object(t.register)((function(){return n(87)}),e,"vtex.shipping-option-components@1.6.0","vtex.shipping-option-components@1.x","PostalCodeModal");o.renderHotReload,o.setupHMR}.call(this,n(31)(e))},function(e,t,n){"use strict";n.r(t);var o=n(0),a=n.n(o),s=n(50),i=n(19);t.default=function(e){var t=e.isOpen,n=e.onClose,o=Object(i.c)(),c=o.zipcode,r=o.isLoading,l=o.submitErrorMessage,u=Object(i.b)();return a.a.createElement(s.a,{isOpen:t,onClose:n,onSubmit:function(e,t){u({type:"UPDATE_ZIPCODE",args:{zipcode:e,reload:t}})},isLoading:r,inputErrorMessage:l,selectedZipcode:c})}}],[[86,"common",2,0,1,3]]]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];s3&&void 0!==arguments[3]?arguments[3]:"/",i="";if(n&&n>0){var o=new Date;o.setTime((new Date).getTime()+n),i="expires=".concat(o.toUTCString(),";")}document.cookie="".concat(e,"=").concat(encodeURIComponent(t),";").concat(i,"path=").concat(r)}var f=function(){function e(t){Object(a.a)(this,e),this.client=t,this.historyKey="biggy-search-history"}var t,n,r;return Object(s.a)(e,[{key:"topSearches",value:(r=Object(o.a)(i.a.mark((function e(){return i.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 r.apply(this,arguments)})},{key:"suggestionSearches",value:(n=Object(o.a)(i.a.mark((function e(t){return i.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 n.apply(this,arguments)})},{key:"suggestionProducts",value:(t=Object(o.a)(i.a.mark((function e(t,n,r){var o,a,s,c,l,p,m,d=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>3&&void 0!==d[3]&&d[3],a=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:a,advertisementOptions:m,hideUnavailableItems:s,orderBy:c,fullText:t,facetKey:n,facetValue:r,productOriginVtex:o,count:l,shippingOptions:p,variant:h("sp-variant")},fetchPolicy:"network-only"}));case 8:case"end":return e.stop()}}),e,this)}))),function(e,n,r){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 n=this.searchHistory();n.indexOf(e)<0&&(n.unshift(e),n=n.slice(0,t)),v(this.historyKey,n.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__["vtex.product-list-context@0.x/ProductListContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/withDevice"]},function(e,t){function n(e,t,n){var r,i,o,a,s;function c(){var u=Date.now()-a;u=0?r=setTimeout(c,t-u):(r=null,n||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var u=function(){o=this,i=arguments,a=Date.now();var u=n&&!r;return r||(r=setTimeout(c,t)),u&&(s=e.apply(o,i),o=i=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},u}n.debounce=n,e.exports=n},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__["vtex.product-summary@2.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,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("vtex.search@2.18.5");var r=Object(t.register)((function(){return n(46)}),e,"vtex.search@2.18.5","vtex.search@2.x","Autocomplete");r.renderHotReload,r.setupHMR}.call(this,n(16)(e))},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r),o=n(5),a=n(9),s=n(10),c=n(23),u=n(22),l=n(13),p=n(0),m=n.n(p),d=n(7),h=n(3),v=n(25),f=n.n(v),g=n(26),x=n.n(g),y=n(27),E=n.n(y),_=n(28),k=n.n(_),b=n(29),S=n.n(b),L=n(30),O=n(21),P=n(14),N=n.n(P),T=n(2),w=n(31),I=n.n(w),C=n(32),M=n.n(C),R=n(11),H=n.n(R),j=n(33),D=n.n(j),F=n(34),V=n.n(F),q=n(35),A=n.n(q),W=n(12),U=n.n(W),B=function(e){var t,n,r,i,o=e.product,a=e.onClick,s=null==o?void 0:o.sku,c=null===(r=null===(n=null===(t=null==s?void 0:s.sellers)||void 0===t?void 0:t[0])||void 0===n?void 0:n.commertialOffer)||void 0===r?void 0:r.taxPercentage;return m.a.createElement("div",null,m.a.createElement(T.Link,{params:{slug:null==o?void 0:o.linkText,id:null==o?void 0:o.productId},page:"store.product",className:"no-underline",onClick:a},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===(i=null==s?void 0:s.image)||void 0===i?void 0:i.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")},o.productName)),m.a.createElement("div",{className:U.a.priceContainer},m.a.createElement(A.a,{product:o,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,n=e.title,r=e.products,i=e.showTitle,o=e.totalProducts,a=e.layout,s=e.isLoading,c=e.onProductClick,u=e.onSeeAllClick,l=e.HorizontalProductSummary,p=e.customPage,d=e.searchId;return 0!==r.length||s?m.a.createElement("section",{className:H.a.tileList,"data-af-onimpression":!!d||void 0,"data-af-search-id":d},i?m.a.createElement("p",{className:"".concat(H.a.tileListTitle," c-on-base")},n):null,s?m.a.createElement("div",{className:H.a.tileListSpinner},m.a.createElement(I.a,null)):m.a.createElement(m.a.Fragment,null,m.a.createElement("ul",{className:H.a.tileListList,style:{flexDirection:a===re.Horizontal?"column":"row"}},r.map((function(e,n){var r=M.a.mapCatalogProductToProductSummary(e);return m.a.createElement("li",{key:e.productId,className:H.a.tileListItem,"data-af-onclick":!(!d||!e.productId)||void 0,"data-af-search-id":d,"data-af-product-position":n+1,"data-af-product-id":e.productId},a===re.Horizontal?l?m.a.createElement(l,{product:r,placement:"autocomplete",actionOnClick:function(){c(r.productId,n,t)}}):m.a.createElement(B,{product:r,onClick:function(){c(r.productId,n,t)}}):m.a.createElement(T.ExtensionPoint,{id:"product-summary",product:r,placement:"autocomplete",actionOnClick:function(){c(r.productId,n,t)}}))}))),m.a.createElement("footer",{className:H.a.tileListFooter},o>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:o}})):null))):null};var Q=n(6),K=n.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,n){return m.a.createElement("li",{key:n,className:"".concat(K.a.itemListSubItem," c-on-base pointer"),onMouseOver:function(n){return e.onMouseOver(n,t)},onFocus:function(n){return e.onMouseOver(n,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,n)}},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 n,r=Object(l.a)(e);if(t){var i=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var G=function(e){Object(c.a)(n,e);var t=$(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).state={currentTimeoutId:null},e.handleMouseOver=function(t,n){if(t.stopPropagation(),!e.state.currentTimeoutId){var r=setTimeout((function(){e.props.onItemHover&&e.props.onItemHover(n),e.setState({currentTimeoutId:null})}),100);e.setState({currentTimeoutId:r})}},e.handleMouseOut=function(){var t=e.state.currentTimeoutId;t&&(clearTimeout(t),e.setState({currentTimeoutId:null}))},e}return Object(s.a)(n,[{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,n){var r;return p.createElement("li",{key:t.value,className:"".concat(K.a.itemListItem),onMouseOver:function(n){return e.handleMouseOver(n,t)},onFocus:function(n){return e.handleMouseOver(n,t)},onMouseOut:function(){return e.handleMouseOut()},onBlur:function(){return e.handleMouseOut()}},p.createElement(T.Link,{page:null!==(r=e.props.customPage)&&void 0!==r?r:"store.search",params:{term:t.value},query:"map=ft&_q=".concat(t.value),onClick:function(){return e.props.onItemClick(t.value,n)},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}))}))))}}]),n}(p.Component),X=n(36);var Z;function Y(e,t,n){return function(r,i){e({page:t,event:"autocomplete",eventType:n,search:{term:r,position:i}})}}function ee(e,t,n,r,i){try{e({event:"autocomplete",eventType:Z.Search,search:{operator:t,misspelled:n,text:decodeURI(i),match:r}})}catch(o){e({event:"autocomplete",eventType:Z.Search,search:{operator:t,misspelled:n,text:i,match:r}})}}!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(o.a)(i.a.mark((function e(t){var n,r,o,a,s,c,u;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new Headers).append("Content-Type","application/json"),s={method:"GET",headers:a,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===(o=null===(r=null===(n=null==u?void 0:u.namespaces)||void 0===n?void 0:n.public)||void 0===r?void 0:r.shippingOption)||void 0===o?void 0:o.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 ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var i=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var re;!function(e){e.Horizontal="HORIZONTAL",e.Vertical="VERTICAL"}(re||(re={}));var ie,oe=E.a.ProductListProvider,ae=function(e){Object(c.a)(l,e);var t,n,r,u=ne(l);function l(e){var t;return Object(a.a)(this,l),(t=u.call(this,e)).state={topSearchedItems:[],history:[],products:[],suggestionItems:[],totalProducts:0,queryFromHover:{},dynamicTerm:"",isProductsLoading:!1,currentHeightWhenOpen:0,searchId:""},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,n=e.productLayout,r=e.isMobile;return void 0!==n?n:r?re.Horizontal:re.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,n=this.autocompleteRef.current.offsetHeight,r=n-(t+n-e);this.autocompleteRef.current.style.maxHeight="".concat(r,"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 n=this.props.inputValue;this.setState({dynamicTerm:n,queryFromHover:void 0}),null===n||""===n?(this.updateTopSearches(),this.updateHistory(),this.setState({suggestionItems:[],products:[]})):this.updateSuggestions().then((function(){return t.fitAutocompleteInWindow(),t.updateProducts(n)})).then((function(){return t.fitAutocompleteInWindow()}))}}},{key:"highlightTerm",value:function(e,t){var n=e.split(t);return m.a.createElement(m.a.Fragment,null,n.map((function(e,r){return m.a.createElement(m.a.Fragment,null,e,r!==n.length-1?m.a.createElement("span",{className:"b"},t):null)})))}},{key:"updateSuggestions",value:(r=Object(o.a)(i.a.mark((function e(){var t,n,r,o,a,s,c=this;return i.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,n=t.data.autocompleteSearchSuggestions.searches,r=this.props.maxSuggestedTerms,o=void 0===r?5:r,a=n.slice(0,o).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=a.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 r.apply(this,arguments)})},{key:"updateProducts",value:(n=Object(o.a)(i.a.mark((function e(t){var n,r,o,a,s,c,u,l,p,m,d,h,v,f,g,x,y,E,_,k,b,S;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t,o=this.props,a=o.__unstableProductOrigin,s=o.__unstableProductOriginVtex,c=void 0!==s&&s,u=o.simulationBehavior,l=void 0===u?"default":u,p=o.hideUnavailableItems,m=void 0!==p&&p,d=o.orderBy,h=this.state.queryFromHover,r){e.next=6;break}return this.setState({products:[],totalProducts:0}),e.abrupt("return");case 6:return a&&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 v=e.sent,f=null!==(n=null==v?void 0:v.map((function(e){return e.value})))&&void 0!==n?n:[],g={showSponsored:!0,sponsoredCount:2,repeatSponsoredProducts:!1,advertisementPlacement:"autocomplete"},e.next=15,this.client.suggestionProducts(r,h?h.key:void 0,h?h.value:void 0,"VTEX"===a||c,l,m,d,this.props.maxSuggestedProducts||3,f,g);case 15:x=e.sent,h||(y=x.data.productSuggestions,E=y.count,_=y.operator,k=y.misspelled,ee(this.props.push,_,k,E,r)),this.setState({isProductsLoading:!1}),b=x.data.productSuggestions,S=b.products.slice(0,this.getProductCount()),this.setState({products:S,totalProducts:b.count,searchId:b.searchId||""});case 21:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"updateTopSearches",value:(t=Object(o.a)(i.a.mark((function e(){var t,n,r,o,a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.topSearches();case 2:t=e.sent,n=t.data.topSearches.searches,r=this.props.maxTopSearches,o=void 0===r?10:r,a=n.slice(0,o).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:a});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(x.a,null)};var t}));this.setState({history:e})}},{key:"renderSuggestions",value:function(){var e=this,t=!!this.state.suggestionItems&&this.state.suggestionItems.length>0,n=t?m.a.createElement(h.FormattedMessage,{id:"store/suggestions"}):m.a.createElement(h.FormattedMessage,{id:"store/emptySuggestion"});return m.a.createElement(G,{title:n,items:this.state.suggestionItems||[],modifier:"suggestion",showTitle:!t||!this.props.hideTitles,onItemHover:this.handleItemHover,showTitleOnEmpty:0!==this.props.maxSuggestedTerms,onItemClick:function(t,n){Y(e.props.push,e.props.runtime.page,Z.SearchSuggestionClick)(t,n),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,n){Y(e.props.push,e.props.runtime.page,Z.TopSearchClick)(t,n),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,n){Y(e.props.push,e.props.runtime.page,Z.HistoryClick)(t,n),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()}}):null)}},{key:"contentWhenQueryIsNotEmpty",value:function(){var e=this,t=this.state,n=t.products,r=t.totalProducts,i=t.isProductsLoading,o=t.searchId,a=this.props,s=a.hideTitles,c=a.push,u=a.runtime,l=a.inputValue,p=l.replace(/\//gi,"$2F");return m.a.createElement(m.a.Fragment,null,this.renderSuggestions(),m.a.createElement(z,{term:p||"",customPage:this.props.customPage,shelfProductCount:this.getProductCount(),title:m.a.createElement(h.FormattedMessage,{id:"store/suggestedProducts",values:{term:l}}),products:n||[],showTitle:!s,totalProducts:r||0,layout:this.getProductLayout(),isLoading:i,onProductClick:function(t,n,r){!function(e,t){return function(n,r,i){return e({page:t,event:"autocomplete",eventType:Z.ProductClick,product:{productId:n,position:r},term:i})}}(c,u.page)(t,n,r),e.closeModal()},onSeeAllClick:function(t){!function(e,t){return function(n){return e({page:t,event:"autocomplete",eventType:Z.SeeAllClick,search:{term:n}})}}(c,u.page)(t),e.closeModal()},HorizontalProductSummary:this.props.HorizontalProductSummary,searchId:o}))}},{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,n=e.suggestionItems,r=e.history,i=e.products;return t.length>0||n.length>0||r.length>0||i.length>0}},{key:"getProductCount",value:function(){var e=this.props,t=e.customBreakpoints,n=e.isMobile,r=e.maxSuggestedProducts,i=void 0===r?3:r;if(!window||n||!t)return i;var o=window.innerWidth;return t.md&&t.lg&&t.xlg?o>=t.xlg.width?t.xlg.maxSuggestedProducts:o>=t.lg.width?t.lg.maxSuggestedProducts:o>=t.md.width?t.md.maxSuggestedProducts:i:i}},{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()===re.Horizontal?"column":"row"}},m.a.createElement(oe,{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(f.a,null)):null)))}}]),l}(m.a.Component),se=Object(L.withPixel)(k()(Object(d.withApollo)((ie=ae,function(e){return m.a.createElement(ie,Object(X.a)({},e,{runtime:Object(T.useRuntime)()}))}))));t.default=se}],[[40,"common"]]]); },function(){ !function(e){function t(t){for(var n,o,u=t[0],c=t[1],l=t[2],s=0,d=[];s=0||(o[r]=e[r]);return o}},32:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},33:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},6:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},7:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=e.hideEmptyCols,o=void 0!==n&&n,r=t.reduce((function(t,e){var n="grow"===e.width,o="number"==typeof e.width?t.availableWidth-e.width:0;return{availableWidth:n?0:o,remainingColsNum:t.remainingColsNum+(e.hasDefinedWidth?0:1),hasAnyWidthGrow:t.hasAnyWidthGrow||n}}),{availableWidth:100,remainingColsNum:0,hasAnyWidthGrow:!1}),i=r.availableWidth,a=r.remainingColsNum,c=r.hasAnyWidthGrow;if(i<0&&!c){var d=-100/i;t=t.map((function(t){return Object.assign(Object.assign({},t),{width:"number"==typeof t.width?t.width*d:t.width})}))}return t.map((function(t){var e="number"==typeof t.width?"".concat(t.width,"%"):t.width;return{element:t.element,width:t.hasDefinedWidth?e:"".concat(Math.floor(Math.max(0,i)/(o?1:a)),"%"),hasDefinedWidth:t.hasDefinedWidth}}))};var m,w,v,g=n(14),O=n.n(g);!function(t){t.equal="equal",t.auto="auto"}(w||(w={})),function(t){t.between="between",t.around="around",t.left="left",t.right="right",t.center="center"}(v||(v={}));var j=(m={},Object(r.a)(m,v.between,"justify-between"),Object(r.a)(m,v.around,"justify-around"),Object(r.a)(m,v.left,"justify-start"),Object(r.a)(m,v.center,"justify-center"),Object(r.a)(m,v.right,"justify-end"),m),y=["flexRowContent"],W=function(t){var e=t.children,n=t.colGap,r=t.rowGap,i=t.marginTop,c=t.marginBottom,d=t.paddingTop,p=t.paddingBottom,m=t.border,g=t.borderWidth,W=t.borderColor,x=t.preserveLayoutOnMobile,C=t.preventHorizontalStretch,G=t.preventVerticalStretch,k=t.horizontalAlign,R=t.colSizing,E=t.colJustify,D=void 0===E?v.between:E,N=t.experimentalHideEmptyCols,_=void 0!==N&&N,M=Object(u.c)(),A=l()(y),B=Object(f.d)({colGap:null!=n?n:M.colGap,rowGap:null!=r?r:M.rowGap}),L=Object(f.b)({marginTop:i,marginBottom:c}),P=Object(f.c)({paddingTop:d,paddingBottom:p}),T=Object(f.a)({border:m,borderWidth:g,borderColor:W}),S=function(t,e){var n="phone"===h()().device,o=e||{},r=o.preserveLayoutOnMobile,i=void 0!==r&&r,c=o.hideEmptyCols,d=void 0!==c&&c,l=a.a.Children.toArray(t).map((function(t){if(!(e=t)||!e.props)return{element:t,width:0,hasDefinedWidth:!1,isResponsive:!0};var e,o=Object(f.e)(t.props.width||t.props.blockProps&&t.props.blockProps.width);return o&&"object"===Object(s.a)(o)?{element:t,width:n?o.mobile||0:o.desktop||0,hasDefinedWidth:!0,isResponsive:!0}:!i&&n?{element:t,width:0,hasDefinedWidth:!1,isResponsive:!1}:"number"==typeof o||"string"==typeof o?{element:t,width:o,hasDefinedWidth:!0,isResponsive:!1}:{element:t,width:0,hasDefinedWidth:!1,isResponsive:!0}})),u=l.some((function(t){return t.isResponsive})),p=!i&&n&&!u;return{cols:b(l,{hideEmptyCols:d}),breakOnMobile:p}}(e,{preserveLayoutOnMobile:x,hideEmptyCols:_}),I=S.cols,z=S.breakOnMobile,J=R===w.auto,q=J?j[D]:j.left;return null!=k&&(q=j[k]),a.a.createElement(u.a,Object(o.a)({parent:u.b.ROW},B),a.a.createElement("div",{className:"".concat(z?"flex-none flex-ns":"flex"," ").concat(L," ").concat(P," ").concat(T," ").concat(q," ").concat(A.flexRowContent," items-stretch w-100")},I.map((function(t,e){var n=e===I.length-1,o=n?0:B.colGap,r=n?0:B.rowGap;return a.a.createElement("div",{key:e,className:"".concat(z?"pr".concat(o,"-ns pb").concat(r," pb0-ns"):"pr".concat(o)," ").concat(G?"":"items-stretch"," ").concat(C?"":O.a.stretchChildrenWidth," ").concat("grow"===t.width?"flex-grow-1":""," ").concat(_?O.a.col:""," flex"),style:{width:C||J&&!t.hasDefinedWidth?"auto":z?"100%":t.width}},t.element)}))))},x=Object(c.defineMessages)({title:{id:"admin/editor.row.title"},description:{id:"admin/editor.row.description"}});W.schema={title:x.title.id,description:x.description.id};e.default=W},14:function(t,e,n){t.exports={stretchChildrenWidth:"vtex-flex-layout-0-x-stretchChildrenWidth",col:"vtex-flex-layout-0-x-col"}},2:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return d}));var o,r=n(0),i=n.n(r);!function(t){t.NONE="none",t.ROW="row",t.COL="col"}(o||(o={}));var a=i.a.createContext({parent:o.NONE,colGap:0,rowGap:0}),c=function(t){var e=t.parent,n=t.colGap,o=t.rowGap,c=t.children,d=Object(r.useMemo)((function(){return{parent:e,colGap:n,rowGap:o}}),[e,n,o]);return i.a.createElement(a.Provider,{value:d},c)},d=function(){return Object(r.useContext)(a)}},3:function(t,e,n){"use strict";n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var o,r=n(7),i=n(1),a=function(t,e){return t?Object(i.range)(0,12).map(String).includes(String(t))?"string"==typeof t?parseInt(t,10):t:(e&&console.warn("Invalid ".concat(e,' value ("').concat(t,'"). It should be an integer between 0 and ').concat(11,".")),0):0},c=function(t){var e=Object(i.toPairs)(t).map((function(t){var e=Object(r.a)(t,2),n=e[0],o=e[1];return[n,a(o,n)]}));return Object(i.fromPairs)(e)},d=function(t){if("string"!=typeof t)return null;if("grow"===t)return"grow";var e=t.match(new RegExp("(\\d*)(".concat(["%"].join("|"),")")));if(!e)return null;var n=e[1];return null==n?null:parseInt(n,10)},l=(o=d,function(t){return function(t){return t&&null!=t.mobile&&null!=t.desktop}(t)?{mobile:o(t.mobile),desktop:o(t.desktop)}:o(t)}),u=function(t){return function(e){var n=Object(i.pick)(Object.keys(t),e),o=c(n);return Object(i.toPairs)(o).map((function(e){var n=Object(r.a)(e,2),o=n[0],i=n[1];return"".concat(t[o]).concat(i)})).join(" ")}},s=u({paddingTop:"pt",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr"}),p=u({marginTop:"mt",marginBottom:"mb",marginLeft:"ml",marginRight:"mr"}),h={top:"bt",right:"br",bottom:"bb",left:"bl",all:"ba"},f=function(t){var e=t.border,n=t.borderWidth,o=t.borderColor,r=e?[].concat(e).map((function(t){return h[t]})).join(" "):"",i=n?"bw".concat(a(n,"bw")):"",c=o?"b--".concat(o.split(" ")[0]):"";return"".concat(r," ").concat(i," ").concat(c)}}}]); },function(){ (window.webpackJsonpvtex_flex_layout_0_21_5=window.webpackJsonpvtex_flex_layout_0_21_5||[]).push([["FlexLayout"],[function(e,t){e.exports=React},function(e,t){e.exports=R},,,,function(e,t){e.exports=ReactIntl},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValues"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/Container"]},,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("vtex.flex-layout@0.21.5");var o=Object(t.register)((function(){return n(20)}),e,"vtex.flex-layout@0.21.5","vtex.flex-layout@0.x","FlexLayout");o.renderHotReload,o.setupHMR}.call(this,n(10)(e))},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n.n(o),a=n(5),l=n(6),s=n.n(l),r=n(15),c=n.n(r),u=n(9),_=n.n(u),x=n(2),d=n(13),f=["flexRow"],p=function(e){var t=_()(e),n=t.arialabel,o=t.fullWidth,l=t.htmlId,r=Object(x.c)(),u=s()(f),p=Object(a.useIntl)(),v=i.a.createElement(d.default,t),E=r.parent===x.b.NONE,R=!o&&E?i.a.createElement(c.a,null,v):v;return i.a.createElement("div",{className:u.flexRow,id:l,"aria-label":n||p.formatMessage({id:"store/flex-layout.flexLayout-row.aria-label"},{sectionId:null!=l?l:"row"})},R)},v=Object(a.defineMessages)({title:{id:"admin/editor.row.title"},description:{id:"admin/editor.row.description"}});p.schema={title:v.title.id,description:v.description.id},t.default=p}],[[19,"common",0]]]); },function(){ (window.webpackJsonpvtex_flex_layout_0_21_5=window.webpackJsonpvtex_flex_layout_0_21_5||[]).push([["Col"],[function(t,n){t.exports=React},function(t,n){t.exports=R},function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"a",(function(){return a})),e.d(n,"c",(function(){return u}));var r,o=e(0),c=e.n(o);!function(t){t.NONE="none",t.ROW="row",t.COL="col"}(r||(r={}));var i=c.a.createContext({parent:r.NONE,colGap:0,rowGap:0}),a=function(t){var n=t.parent,e=t.colGap,r=t.rowGap,a=t.children,u=Object(o.useMemo)((function(){return{parent:n,colGap:e,rowGap:r}}),[n,e,r]);return c.a.createElement(i.Provider,{value:u},a)},u=function(){return Object(o.useContext)(i)}},function(t,n,e){"use strict";e.d(n,"d",(function(){return a})),e.d(n,"e",(function(){return l})),e.d(n,"c",(function(){return f})),e.d(n,"b",(function(){return p})),e.d(n,"a",(function(){return b}));var r,o=e(7),c=e(1),i=function(t,n){return t?Object(c.range)(0,12).map(String).includes(String(t))?"string"==typeof t?parseInt(t,10):t:(n&&console.warn("Invalid ".concat(n,' value ("').concat(t,'"). It should be an integer between 0 and ').concat(11,".")),0):0},a=function(t){var n=Object(c.toPairs)(t).map((function(t){var n=Object(o.a)(t,2),e=n[0],r=n[1];return[e,i(r,e)]}));return Object(c.fromPairs)(n)},u=function(t){if("string"!=typeof t)return null;if("grow"===t)return"grow";var n=t.match(new RegExp("(\\d*)(".concat(["%"].join("|"),")")));if(!n)return null;var e=n[1];return null==e?null:parseInt(e,10)},l=(r=u,function(t){return function(t){return t&&null!=t.mobile&&null!=t.desktop}(t)?{mobile:r(t.mobile),desktop:r(t.desktop)}:r(t)}),d=function(t){return function(n){var e=Object(c.pick)(Object.keys(t),n),r=a(e);return Object(c.toPairs)(r).map((function(n){var e=Object(o.a)(n,2),r=e[0],c=e[1];return"".concat(t[r]).concat(c)})).join(" ")}},f=d({paddingTop:"pt",paddingBottom:"pb",paddingLeft:"pl",paddingRight:"pr"}),p=d({marginTop:"mt",marginBottom:"mb",marginLeft:"ml",marginRight:"mr"}),s={top:"bt",right:"br",bottom:"bb",left:"bl",all:"ba"},b=function(t){var n=t.border,e=t.borderWidth,r=t.borderColor,o=n?[].concat(n).map((function(t){return s[t]})).join(" "):"",c=e?"bw".concat(i(e,"bw")):"",a=r?"b--".concat(r.split(" ")[0]):"";return"".concat(o," ").concat(c," ").concat(a)}},,function(t,n){t.exports=ReactIntl},function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@0.x/useCssHandles"]},,,function(t,n){t.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValues"]},,,,,,,,function(t,n,e){"use strict";e.r(n),function(t){var n=e(4);e.p=Object(n.getPublicPath)("vtex.flex-layout@0.21.5");var r=Object(n.register)((function(){return e(18)}),t,"vtex.flex-layout@0.21.5","vtex.flex-layout@0.x","Col");r.renderHotReload,r.setupHMR}.call(this,e(10)(t))},function(t,n,e){"use strict";e.r(n);var r,o,c=e(11),i=e(0),a=e.n(i),u=e(5),l=e(9),d=e.n(l),f=e(6),p=e.n(f),s=e(2),b=e(3),m=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",(function(){return r}))},13:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},15:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&l(t,r).includes(r.arrayFormatSeparator);t=a?l(t,r):t;const s=o||a?t.split(r.arrayFormatSeparator).map(e=>l(e,r)):null===t?t:l(t,r);n[e]=s};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?l(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map(e=>l(e,r));void 0!==n[e]?n[e]=[].concat(n[e],a):n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),n=Object.create(null);if("string"!=typeof r)return n;if(!(r=r.trim().replace(/^[?#&]/,"")))return n;for(const o of r.split("&")){if(""===o)continue;let[r,s]=a(e.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:l(s,e),t(l(r,e),s,n)}for(const r of Object.keys(n)){const t=n[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=y(t[r],e);else n[r]=y(t,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((r,e)=>{const t=n[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=function r(e){return Array.isArray(e)?e.sort():"object"==typeof e?r(Object.keys(e)).sort((r,e)=>Number(r)-Number(e)).map(r=>e[r]):e}(t):r[e]=t,r},Object.create(null))}e.extract=f,e.parse=d,e.stringify=(r,e)=>{if(!r)return"";i((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],n=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[",o,"]"].join("")]:[...t,[u(e,r),"[",u(o,r),"]=",u(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[]"].join("")]:[...t,[u(e,r),"[]=",u(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[u(t,r),e,u(o,r)].join("")]:[[n,u(o,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,u(e,r)]:[...t,[u(e,r),"=",u(n,r)].join("")]}}(e),o={};for(const e of Object.keys(r))t(e)||(o[e]=r[e]);const a=Object.keys(o);return!1!==e.sort&&a.sort(e.sort),a.map(t=>{const o=r[t];return void 0===o?"":null===o?u(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?u(t,e)+"[]":o.reduce(n(t),[]).join("&"):u(t,e)+"="+u(o,e)}).filter(r=>r.length>0).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=a(r,"#");return Object.assign({url:t.split("?")[0]||"",query:d(f(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,e)}:{})},e.stringifyUrl=(r,t)=>{t=Object.assign({encode:!0,strict:!0,[c]:!0},t);const n=p(r.url).split("?")[0]||"",o=e.extract(r.url),a=e.parse(o,{sort:!1}),s=Object.assign(a,r.query);let i=e.stringify(s,t);i&&(i="?"+i);let l=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(l="#"+(t[c]?u(r.fragmentIdentifier,t):r.fragmentIdentifier)),`${n}${i}${l}`},e.pick=(r,t,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);const{url:o,query:a,fragmentIdentifier:i}=e.parseUrl(r,n);return e.stringifyUrl({url:o,query:s(a,t),fragmentIdentifier:i},n)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}},67:function(r,e,t){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>"%"+r.charCodeAt(0).toString(16).toUpperCase())},68:function(r,e,t){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(r,e){try{return decodeURIComponent(r.join(""))}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],a(t),a(n))}function s(r){try{return decodeURIComponent(r)}catch(o){for(var e=r.match(n),t=1;t{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]}},70:function(r,e,t){"use strict";r.exports=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;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){e.exports=ReactApollo},,,function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(0),o=r(1),a=r(4),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=e.cacheKey,i=e.skip,c=Object(o.useRuntime)(),u=c.route,s=c.account,l=null!=r?r:u.routeId,p=Object(n.useMemo)((function(){return!o.canUseDOM||i?null:{event:"pageView",pageTitle:null!=t?t:document.title,pageUrl:location.href,referrer:0===document.referrer.indexOf(location.origin)?void 0:document.referrer,accountName:s,routeId:(null==u?void 0:u.routeId)?u.routeId:""}}),[s,t,o.canUseDOM,l]);Object(a.a)(i?null:p,l)},c=["store.search","store.product"];t.a=function(e){var t=e.title,r=Object(o.useRuntime)().route,n=r&&c.some((function(e){return 0===r.routeId.indexOf(e)}));return i({title:t,skip:n}),null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1);function o(){var e=Object(n.useRuntime)(),t=e.route,r=e.rootPath,o=void 0===r?"":r,a=t.canonicalPath,i=window.__hostname__||window.location&&window.location.hostname;return i&&a?"https://".concat(i).concat(o).concat(a):null}},,,function(e,t,r){"use strict";var n=r(0),o=r.n(n);t.a=function(e){var t=e.children,r=e.className;return o.a.createElement("div",{className:r},o.a.createElement("div",{className:"flex flex-column min-vh-100 w-100"},t))}},,,,,,,function(e,t){e.exports=ReactIntl},,,,,,,,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastProvider"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/PWAContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderQueue"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.shipping-option-components@1.x/ShippingOptionContext"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationAddToCart"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormProfile"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormShipping"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormCheckin"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/OrderFormContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryOrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastContext"]},,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t),function(e){var t=r(3);r.p=Object(t.getPublicPath)("vtex.store@2.142.0");var n=Object(t.register)((function(){return r(73)}),e,"vtex.store@2.142.0","vtex.store@2.x","StoreWrapper");n.renderHotReload,n.setupHMR}.call(this,r(9)(e))},,function(e,t,r){"use strict";r.r(t);var n=r(19),o=r(6),a=r(8),i=r(0),c=r.n(i),u=r(1),s=r(5),l=r(35),p=r.n(l),d=r(36),f=r(37),m=r(38),O=r(39),h=r(40),_=["firstName","lastName","document","id","email","phone","isAuthenticated"];var v=function(){var e=Object(s.usePixel)().push;return Object(i.useEffect)((function(){(window.__RENDER_8_SESSION__&&window.__RENDER_8_SESSION__.sessionPromise?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve(null)).then((function(t){var r,n,o=null===(n=null===(r=null==t?void 0:t.response)||void 0===r?void 0:r.namespaces)||void 0===n?void 0:n.profile;if(o){var a=function(e){return e?_.reduce((function(t,r){var n,o=null===(n=e[r])||void 0===n?void 0:n.value;return o&&(t[r]="isAuthenticated"===r?function(e){return"true"===e.toLowerCase()}(o):o),t}),{}):{}}(o);e(Object.assign({event:"userData"},a))}}))}),[e]),null},b=r(10),g=r(41),E=r(42),x=r(13),j=r(51),y=r(52),N=r(20),R=r(7),w=r(43),S=r.n(w),P=r(44),C=r.n(P),F=r(45),M=r.n(F),T=r(46),D=r.n(T),I=r(47),A=r.n(I),k=r(48),U=r(49),q=r.n(U);function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(N.a)(e);if(t){var o=Object(N.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(y.a)(this,r)}}var L=function(e){Object(j.a)(r,e);var t=W(r);function r(){var e;Object(g.a)(this,r);for(var n=arguments.length,o=new Array(n),i=0;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})),script:[T&&{type:"text/javascript",src:"".concat(C,"/register.js").concat(X).concat(H?"":"&__disableSW=true","&scope=").concat(encodeURIComponent(C)),defer:!0}].filter(Boolean),link:[].concat(Object(n.a)(Z||[]),Object(n.a)(!l&&Y?[{rel:"canonical",href:encodeURI(Y)}]:[])).filter(Boolean)}),c.a.createElement(s.PixelProvider,{currency:x},c.a.createElement(d.PWAProvider,{rootPath:C},c.a.createElement(b.a,{title:J}),c.a.createElement(v,null),c.a.createElement(p.a,{positioning:"window"},c.a.createElement(K,null),L?oe:c.a.createElement(z,null,oe)))),function(){try{return u.canUseDOM&&window.top!==window.self&&window.top.__provideRuntime}catch(e){return!1}}()&&c.a.createElement(u.NoSSR,null,c.a.createElement(u.ExtensionPoint,{id:"highlight-overlay"})))}}],[[71,"common",0]]]); }], document.currentScript.dataset.index)