enqueueScripts([function(){ !function(t){function n(n){for(var r,u,c=n[0],a=n[1],f=n[2],s=0,p=[];st.length)&&(n=t.length);for(var e=0,r=new Array(n);e0?a.sku.seller=null!==(r=a.sku.sellers.find((function(e){return e.sellerDefault})))&&void 0!==r?r:a.sku.sellers[0]:a.sku.seller={commertialOffer:{Price:0,ListPrice:0}},a.sku.image=t.sku.image,n(a)}}})},C=r(38),R=r.n(C),j=r(61),T=r.n(j),k=g.a.useProductSummaryDispatch;var L=function(){var e,t=(null!==(e=R()())&&void 0!==e?e:{}).selectedItem,r=k(),n=T()();return function(e){var i=t&&e.items.find((function(e){return e.itemId===t.itemId}));r({type:"SET_PRODUCT",args:{product:e}}),null==n||n({type:"SET_PRODUCT",args:{product:e}}),null==n||n({type:"SET_SELECTED_ITEM",args:{item:i}})}};var D=function(e){var t=e.product,r=e.inView,n=e.children,i=e.priceBehavior,o=g.a.useProductSummaryDispatch(),a=L();return S({product:t,inView:r,priceBehavior:i,onError:function(){o({type:"SET_PRICE_LOADING",args:{isPriceLoading:!1}})},onComplete:function(e){a(e),o({type:"SET_PRICE_LOADING",args:{isPriceLoading:!1}})}}),u.a.createElement(u.a.Fragment,null,n)},w=r(32),M=r.n(w),A=["sponsoredBadgeContainer","sponsoredBadgeText"],B=function(e){var t=e.label,r=void 0===t?"store/sponsoredBadge.title":t,n=s()(A).handles,i=o()(n.sponsoredBadgeContainer,"absolute z-1"),a=o()(n.sponsoredBadgeText,"c-muted-1 t-mini-s");return u.a.createElement("div",{className:i},u.a.createElement("span",{className:a},u.a.createElement(M.a,{id:r})))},V=r(22),U=r(39),H=g.a.ProductSummaryProvider,Q=g.a.useProductSummaryDispatch,W=g.a.useProductSummary,q=["container","containerNormal","element","clearLink"];function F(e){var t,r,i,c,l,m,v=e.product,_=e.actionOnClick,g=e.children,b=e.href,x=e.priceBehavior,P=void 0===x?"default":x,y=e.position,I=e.classes,N=function(e){if(e){var t={},r=[];return Object.keys(e).forEach((function(n){n.startsWith("data-")?t[n]=e[n]:r.push(n)})),r.length>0&&console.warn("extraProductProps contains keys that don't start with 'data-': ".concat(r.join(", "))),Object.keys(t).length>0?t:void 0}}(e.extraProductProps),S=W(),C=S.isLoading,R=S.isHovering,j=S.selectedItem,T=S.listName,k=S.query,L=S.inView,w=S.sponsoredBadge,M=Q(),A=s()(q,{classes:I}).handles,V=(0,Object(O.useRuntime)().getSettings)("vtex.store"),H=null===(t=null==V?void 0:V.advancedSettings)||void 0===t?void 0:t.a11ySemanticHtmlMigration,F=p.a.useProductListDispatch(),G=p.a.useProductListState(),J="autocomplete-result-list"===(null==G?void 0:G.listName),z=Object(a.useRef)(null),K=Object(a.useCallback)((function(){null==F||F({type:"SEND_IMPRESSION",args:{product:v,position:y}}),M({type:"SET_IN_VIEW",args:{inView:!0}})}),[M,F,v,y]);d()({ref:z,once:!0,onView:K}),Object(a.useEffect)((function(){v&&M({type:"SET_PRODUCT",args:{product:v}})}),[v,M]),Object(a.useEffect)((function(){y&&M({type:"SET_POSITION",args:{position:y}})}),[y,M]);var X=Object(a.useCallback)((function(){M({type:"SET_HOVER",args:{isHovering:!1}})}),[M]),Y=Object(a.useCallback)((function(){M({type:"SET_HOVER",args:{isHovering:!0}})}),[M]),Z=Object(a.useCallback)((function(e){M({type:"SET_LOADING",args:{isLoading:e}})}),[M]),$=Object(a.useMemo)((function(){return{product:v,isLoading:C,isHovering:R,handleItemsStateUpdate:Z}}),[v,C,R,Z]),ee=o()(A.container,A.containerNormal,"br3 h-100 w-100 flex flex-column justify-between center tc",!H&&"overflow-hidden"),te=o()(A.element,"pointer pt3 pb4 flex flex-column h-100"),re=o()(A.clearLink,"h-100 flex flex-column",H&&"focus-visible:outline-2 focus-visible:outline-blue-500"),ne=null!==(r=null==j?void 0:j.itemId)&&void 0!==r?r:null===(i=null==v?void 0:v.sku)||void 0===i?void 0:i.itemId,ie=b?{to:b,onClick:J?_:void 0,onClickCapture:J?void 0:_,"aria-label":"".concat((null==v?void 0:v.productName)||"product")}:{page:"store.product",params:{slug:null==v?void 0:v.linkText,id:null==v?void 0:v.productId,__listName:T},query:k,onClick:J?_:void 0,onClickCapture:J?void 0:_,"aria-label":"".concat((null==v?void 0:v.productName)||"product")},oe=null!==(l=null===(c=v.advertisement)||void 0===c?void 0:c.eventParameters)&&void 0!==l?l:null===(m=v.advertisement)||void 0===m?void 0:m.adId,ae=Object(U.a)(v,null==w?void 0:w.position,"containerTopLeft"),ue=Object(E.useIntl)();return u.a.createElement(h.default.Provider,{value:$},u.a.createElement(f.a,{product:v,query:{skuId:ne}},u.a.createElement(D,{product:v,inView:L,priceBehavior:P},u.a.createElement("section",Object(n.a)({},N,{"aria-label":ue.formatMessage({id:"store/product-summary.shelf.aria-label"},{productName:v.productName}),className:ee,onMouseEnter:Y,onMouseLeave:X,style:{maxWidth:300},ref:z,"data-van-aid":oe}),u.a.createElement(O.Link,Object(n.a)({className:re},ie),u.a.createElement("article",{className:te},ae?u.a.createElement(B,{label:null==w?void 0:w.label}):null,g))))))}function G(e){var t=e.product,r=e.actionOnClick,n=e.href,i=e.priceBehavior,o=void 0===i?"default":i,a=e.trackListName,c=void 0===a||a,s=e.listName,l=e.position,d=e.sponsoredBadgePosition,m=e.sponsoredBadgeLabel,f=e.placement,v=e.classes,p=e.children,_=e.extraProductProps,g={position:d,label:m};return u.a.createElement(H,{product:t,listName:c?s:void 0,sponsoredBadge:g,isPriceLoading:"async"===o||"asyncOnly1P"===o},u.a.createElement(F,{product:t,href:n,actionOnClick:r,priceBehavior:o,position:l,placement:f,classes:v,extraProductProps:_},p))}G.schema={title:"admin/editor.productSummary.title",description:"admin/editor.productSummary.description"},G.mapCatalogProductToProductSummary=V.b;t.default=G},20:function(e,t,r){"use strict";function n(e){if(e&&0!==e.length){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}}r.d(t,"a",(function(){return n}))},21:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-list-context@0.x/ProductListContext"]},22:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return b}));var n=r(11),i=r(37),o=r(20),a=new RegExp(/.+ids\/(\d+)/),u=new RegExp(/http:\/\//);function c(e,t,r){if(!e.includes("/arquivos/ids/"))return e;var n=function(e){var t,r,n,i,o=a.exec(e),u=(r="v",null===(i=null!==(n=null==(t=e)?void 0:t.split("".concat(r,"="))[1])&&void 0!==n?n:"")||void 0===i?void 0:i.split("&")[0]);return o&&o.length>0?{cleanUrl:o[0],vParam:u}:{cleanUrl:e}}(e),i=n.vParam,o=n.cleanUrl;return i?"".concat(o,"-").concat(t,"-").concat(r,"?v=").concat(i):"".concat(o,"-").concat(t,"-").concat(r)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof r&&(r=Math.min(r,4e3));var n=c(e,t,r),i=n.includes("?")?"&":"?";return"".concat(n).concat(i,"width=").concat(t,"&height=").concat(r,"&aspect=true")}}function l(e){return e.commertialOffer.Price}function d(e){var t=e.commertialOffer.AvailableQuantity;return null!=t&&t>0}function m(e,t){var r=e.filter(v);if(0===r.length)return e[0];if(1===r.length)return r[0];var n=r.map((function(e){return function(e,t){var r=e.sellers;if(1===r.length)return r[0].commertialOffer.Price;var n=r.filter(d).map(l);return"highest"===t?n.reduce((function(e,t){return t>e?t:e})):n.reduce((function(e,t){return tn[e]?r:e}),0):n.reduce((function(e,t,r){return t1&&void 0!==arguments[1]?arguments[1]:"FIRST_AVAILABLE",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;if(!e)return null;var s,l=Object.assign({},e),d=l.items||[],m=l.properties||[],f=null!==(t=m.find((function(e){return"DefaultSKUSelected"===e.name})))&&void 0!==t?t:null;if(s=1===d.length?d[0]:f?p(d,f.values,u):_(d,u)){var v=null!==(r=Object(o.a)(null==s?void 0:s.sellers))&&void 0!==r?r:E,b=null!==(i=null==s?void 0:s.referenceId)&&void 0!==i?i:[],x=Object(n.a)(b,1),P=x[0],y=void 0===P?O:P,I=null!==(a=null==s?void 0:s.images)&&void 0!==a?a:[],N=I.map((function(e){return Object.assign(Object.assign({},e),{imageUrl:h(e.imageUrl,c)})})),S=Object(n.a)(N,1),C=S[0],R=void 0===C?g:C;l.sku=Object.assign(Object.assign({},s),{seller:v,referenceId:y,image:R,images:N})}return l}},29:function(e,t){e.exports=ReactApollo},32:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/IOMessage"]},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},39:function(e,t,r){"use strict";t.a=function(e,t,r){var n,i;return(!!(null===(n=null==e?void 0:e.advertisement)||void 0===n?void 0:n.adId)||!!(null===(i=e.advertisement)||void 0===i?void 0:i.eventParameters))&&t===r}},44:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r.n(n),o=i.a.createContext(void 0),a=o.Consumer;o.Consumer=function(e){return console.error("If you are seeing this, a component it's using ProductSummaryContext from vtex.product-summary, which is deprecated. Please see the issue https://github.com/vtex-apps/store-issues#28 on how to migrate to the new component."),i.a.createElement(a,e)},t.default=o},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},58:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.on-view@1.x/useOnView"]},59:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/ProductContextProvider"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},60:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryItemsWithSimulation"]},61:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProductDispatch"]},7:function(e,t){e.exports=Classnames},8:function(e,t){e.exports=__RENDER_8_RUNTIME__},85:function(e,t,r){"use strict";r.r(t),function(e){var t=r(4);r.p=Object(t.getPublicPath)("vtex.product-summary@2.91.2");var n=Object(t.register)((function(){return r(105)}),e,"vtex.product-summary@2.91.2","vtex.product-summary@2.x","ProductSummaryCustom");n.renderHotReload,n.setupHMR}.call(this,r(13)(e))}},[[85,"common"]]]); },function(){ (window.webpackJsonpvtex_product_summary_2_91_2=window.webpackJsonpvtex_product_summary_2_91_2||[]).push([["ProductSummaryImage"],{0:function(e,t){e.exports=React},10:function(e,t){e.exports=ReactIntl},108:function(e,t,r){"use strict";r.r(t);var a=r(11),i=r(0),n=r.n(i),o=r(40),u=r.n(o),c=r(41),l=r.n(c),m=r(7),s=r.n(m),d=r(53),p=r.n(d),v=r(63),g=r.n(v),h=r(5),f=r.n(h),x=r(38),y=r.n(x),b=r(6),C=r.n(b),I=r(10),E=r(42),_=r(3),w=r.n(_),S=r(22),N=function(e,t,r,i){var n,o=t,u="auto";return i&&"auto"!==i?(u=t*(null!==(n=function(e){if(!e)return null;if("string"==typeof e){if("auto"===e)return null;var t=e.split(":");if(2!==t.length)return null;var r=Object(a.a)(t,2),i=r[0],n=r[1],o=parseFloat(n)/parseFloat(i);return"number"!=typeof o||Number.isNaN(o)?null:o}return"number"==typeof e?e:null}(i))&&void 0!==n?n:1),o>r&&(u/=o/r,o=r),u>r&&(o/=u/r,u=r),o=Math.round(o),u=Math.round(u)):o=Math.min(r,o),Object(S.a)(e,o,u)},P=C.a.useProductSummary,O=["image","imageWrapper","imageContainer","product","imagePlaceholder","mainImageHovered"];function R(e){var t=e.src,r=e.width,a=e.height,i=e.dpi,n=e.aspectRatio;return r||a?Object(S.a)(t,r*i,a*i):n?N(t,300,500,n):t}function L(e){var t=e.images,r=e.hoverImage,a=e.hoverImageLabel,i=null!=r?r:{},n=i.criteria,o=void 0===n?"label":n,u=i.label,c=void 0===u?a:u,l=i.labelMatchCriteria,m=void 0===l?"exact":l,s=i.index;return"label"===o?j(t,c,m):"index"===o?function(e,t){return null==t||Number.isNaN(t)?null:e[t]}(t,s):null}function B(e){var t=e.width,r=e.height,a=e.aspectRatio,i=e.maxHeight;return t||r?{width:"100%",height:r,objectFit:"contain",maxHeight:"unset",maxWidth:t}:a||i?{width:"100%",height:"100%",objectFit:"contain",maxHeight:null!=i?i:"unset"}:void 0}function M(e){var t=e.showCollections,r=e.productClusters,a=e.children;if(!t||!r||0===r.length)return n.a.createElement(n.a.Fragment,null,a);var i=r.map((function(e){return e.name}));return n.a.createElement(u.a,{collectionBadgesText:i},a)}function H(e){var t=e.showBadge,r=e.commertialOffer,a=e.badgeText,i=e.children;return t?n.a.createElement(l.a,{listPrice:r.ListPrice,sellingPrice:r.Price,label:a},i):n.a.createElement(n.a.Fragment,null,i)}function j(e,t,r){return t?"contains"===r?e.find((function(e){var r=e.imageLabel;return null==r?void 0:r.includes(t)})):e.find((function(e){return e.imageLabel===t})):null}function k(e){var t=e.src,r=e.width,a=e.height,i=e.onError,o=e.alt,u=e.className,c=e.aspectRatio,l=e.maxHeight,m=e.fetchpriority,s=void 0===m?"auto":m,d=p()().isMobile?2:1;return n.a.createElement("img",{src:R({src:t,width:r,height:a,dpi:d,aspectRatio:c}),style:B({width:r,height:a,aspectRatio:c,maxHeight:l}),loading:"low"===s?"lazy":"eager",alt:o,className:u,onError:i,fetchpriority:s})}function T(e){var t,r,o,u,c,l,m,d,v,h=e.showBadge,x=void 0===h||h,b=e.badgeText,C=e.displayMode,_=void 0===C?"normal":C,S=e.mainImageLabel,N=void 0===S?"":S,R=e.hoverImageLabel,B=void 0===R?"":R,T=e.hoverImage,A=e.showCollections,F=void 0!==A&&A,U=e.placeholder,D=e.width,W=e.height,V=e.aspectRatio,K=e.maxHeight,q=e.classes,z=e.fetchpriority,J=void 0===z?"byPosition":z,Z=P(),Q=Z.product,G=Z.position,X=f()(O,{classes:q}),Y=X.handles,$=X.withModifiers,ee=Object(I.useIntl)(),te=Object(i.useState)(!1),re=Object(a.a)(te,2),ae=re[0],ie=re[1],ne=function(){return ie(!0)},oe=p()().isMobile,ue=(null!==(t=y()())&&void 0!==t?t:{}).skuSelector,ce=(ue=void 0===ue?{}:ue).selectedImageVariationSKU,le=null!=Q?Q:{},me=le.productClusters,se=le.productName,de=null==Q?void 0:Q.sku,pe=g()({widthProp:D,heightProp:W,aspectRatioProp:V,maxHeightProp:K}),ve=pe.widthProp,ge=pe.heightProp,he=pe.aspectRatioProp,fe=pe.maxHeightProp,xe=s()(w.a.imageContainer,Y.imageWrapper,"inline"!==_&&"db w-100 center"),ye=[parseFloat(null!==(r=null!=ve?ve:ge)&&void 0!==r?r:0),parseFloat(null!==(o=null!=ge?ge:ve)&&void 0!==o?o:0)],be=ye[0],Ce=ye[1],Ie=s()(w.a.imageStackContainer,!oe&&w.a.hoverEffect),Ee=s()("dib relative",Y.imageContainer,Ie),_e=null!==(c=null===(u=null==de?void 0:de.image)||void 0===u?void 0:u.imageUrl)&&void 0!==c?c:"",we=!_e||ae;if(!U&&we)return n.a.createElement("div",{className:xe},n.a.createElement("div",{className:Ee},n.a.createElement(E.a,{cssHandle:Y.imagePlaceholder})));var Se=null!==(l=null==de?void 0:de.images)&&void 0!==l?l:[],Ne=L({images:Se,hoverImage:T,hoverImageLabel:B});if(null==ce&&N){var Pe="string"==typeof N?j(Se,N):j(Se,N.label,N.labelMatchCriteria);Pe&&(_e=Pe.imageUrl)}var Oe=s()("inline"===_?w.a.imageInline:w.a.imageNormal),Re=null!==(v=null===(d=null===(m=Q.sku)||void 0===m?void 0:m.seller)||void 0===d?void 0:d.commertialOffer)&&void 0!==v?v:{},Le=s()(Oe,Y.image,Boolean(Ne)&&Y.mainImageHovered),Be=s()("w-100 h-100 dn absolute top-0 left-0 z-999",$("image","hover"),Oe,!oe&&w.a.hoverImage),Me=function(e,t){return t?e?1===t?"high":"low":t<3?"high":"low":"low"};return n.a.createElement("div",{className:xe,"aria-label":ee.formatMessage({id:"store/product-summary.image.aria-label"},{productName:Q.productName})},n.a.createElement(M,{showCollections:F,productClusters:me},n.a.createElement(H,{showBadge:x,commertialOffer:Re,badgeText:b},n.a.createElement("div",{className:Ee},n.a.createElement(k,{src:we?U:_e,width:be,height:Ce,aspectRatio:he,maxHeight:fe,alt:se,className:Le,onError:ne,fetchpriority:"byPosition"===J?Me(oe,G):J}),Ne&&!oe&&n.a.createElement(k,{src:Ne.imageUrl,width:be,height:Ce,aspectRatio:he,maxHeight:fe,alt:se,className:Be,onError:ne,fetchpriority:"byPosition"===J?Me(oe,G):J})))))}T.schema={title:"admin/editor.productSummaryImage.title",description:"admin/editor.productSummaryImage.description",type:"object",properties:{showBadge:{type:"boolean",title:"admin/editor.productSummary.showBadge.title",default:!0,isLayout:!0},showCollections:{type:"boolean",title:"admin/editor.productSummary.showCollections.title",default:!1,isLayout:!0},displayMode:{title:"admin/editor.productSummary.displayMode.title",type:"string",enum:["normal","inline"],default:"normal",isLayout:!0},hoverImageLabel:{title:"admin/editor.productSummaryImage.hoverImageLabel.title",description:"admin/editor.productSummaryImage.hoverImageLabel.description",type:"string",default:"",isLayout:!1},hoverImage:{type:"object",properties:{criteria:{title:"admin/editor.productSummaryImage.hoverImage.criteria.title",enum:["index","label"]}},dependencies:{criteria:{oneOf:[{properties:{criteria:{enum:["index"]},index:{title:"admin/editor.productSummaryImage.hoverImage.criteria.index",type:"number"}}},{properties:{criteria:{enum:["label"]},label:{title:"admin/editor.productSummaryImage.hoverImage.criteria.label",type:"string"},labelMatchCriteria:{title:"admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria",widget:{"ui:widget":"radio"},type:"string",enum:["exact","contains"],default:"exact"}}}]}}},fetchpriority:{title:"admin/editor.productSummaryImage.fetchpriority.title",enum:["high","low","auto","byPosition"],enumNames:["admin/editor.productSummaryImage.fetchpriority.high","admin/editor.productSummaryImage.fetchpriority.low","admin/editor.productSummaryImage.fetchpriority.auto","admin/editor.productSummaryImage.fetchpriority.byPosition"],widget:{"ui:widget":"radio"},default:"byPosition"}}};t.default=T},20:function(e,t,r){"use strict";function a(e){if(e&&0!==e.length){var t=e.find((function(e){return e.sellerDefault}));return t||e[0]}}r.d(t,"a",(function(){return a}))},22:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return C}));var a=r(11),i=r(37),n=r(20),o=new RegExp(/.+ids\/(\d+)/),u=new RegExp(/http:\/\//);function c(e,t,r){if(!e.includes("/arquivos/ids/"))return e;var a=function(e){var t,r,a,i,n=o.exec(e),u=(r="v",null===(i=null!==(a=null==(t=e)?void 0:t.split("".concat(r,"="))[1])&&void 0!==a?a:"")||void 0===i?void 0:i.split("&")[0]);return n&&n.length>0?{cleanUrl:n[0],vParam:u}:{cleanUrl:e}}(e),i=a.vParam,n=a.cleanUrl;return i?"".concat(n,"-").concat(t,"-").concat(r,"?v=").concat(i):"".concat(n,"-").concat(t,"-").concat(r)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof r&&(r=Math.min(r,4e3));var a=c(e,t,r),i=a.includes("?")?"&":"?";return"".concat(a).concat(i,"width=").concat(t,"&height=").concat(r,"&aspect=true")}}function m(e){return e.commertialOffer.Price}function s(e){var t=e.commertialOffer.AvailableQuantity;return null!=t&&t>0}function d(e,t){var r=e.filter(v);if(0===r.length)return e[0];if(1===r.length)return r[0];var a=r.map((function(e){return function(e,t){var r=e.sellers;if(1===r.length)return r[0].commertialOffer.Price;var a=r.filter(s).map(m);return"highest"===t?a.reduce((function(e,t){return t>e?t:e})):a.reduce((function(e,t){return ta[e]?r:e}),0):a.reduce((function(e,t,r){return t1&&void 0!==arguments[1]?arguments[1]:"FIRST_AVAILABLE",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;if(!e)return null;var l,m=Object.assign({},e),s=m.items||[],d=m.properties||[],p=null!==(t=d.find((function(e){return"DefaultSKUSelected"===e.name})))&&void 0!==t?t:null;if(l=1===s.length?s[0]:p?g(s,p.values,u):h(s,u)){var v=null!==(r=Object(n.a)(null==l?void 0:l.sellers))&&void 0!==r?r:y,C=null!==(i=null==l?void 0:l.referenceId)&&void 0!==i?i:[],I=Object(a.a)(C,1),E=I[0],_=void 0===E?x:E,w=null!==(o=null==l?void 0:l.images)&&void 0!==o?o:[],S=w.map((function(e){return Object.assign(Object.assign({},e),{imageUrl:b(e.imageUrl,c)})})),N=Object(a.a)(S,1),P=N[0],O=void 0===P?f:P;m.sku=Object.assign(Object.assign({},l),{seller:v,referenceId:_,image:O,images:S})}return m}},3:function(e,t,r){e.exports={containerInline:"vtex-product-summary-2-x-containerInline",imageContainer:"vtex-product-summary-2-x-imageContainer",container:"vtex-product-summary-2-x-container",containerSmall:"vtex-product-summary-2-x-containerSmall",containerInlinePrice:"vtex-product-summary-2-x-containerInlinePrice",information:"vtex-product-summary-2-x-information",element:"vtex-product-summary-2-x-element",image:"vtex-product-summary-2-x-image",buyButtonContainer:"vtex-product-summary-2-x-buyButtonContainer",buyButton:"vtex-product-summary-2-x-buyButton",description:"vtex-product-summary-2-x-description",quantityStepperContainer:"vtex-product-summary-2-x-quantityStepperContainer",imageInline:"vtex-product-summary-2-x-imageInline",isHidden:"vtex-product-summary-2-x-isHidden",containerNormal:"vtex-product-summary-2-x-containerNormal",nameContainer:"vtex-product-summary-2-x-nameContainer",clearLink:"vtex-product-summary-2-x-clearLink",aspectRatio:"vtex-product-summary-2-x-aspectRatio",priceContainer:"vtex-product-summary-2-x-priceContainer",SKUSelectorContainer:"vtex-product-summary-2-x-SKUSelectorContainer",attachmentListContainer:"vtex-product-summary-2-x-attachmentListContainer",attachmentItemContainer:"vtex-product-summary-2-x-attachmentItemContainer",imageNormal:"vtex-product-summary-2-x-imageNormal",addToListBtn:"vtex-product-summary-2-x-addToListBtn",imagePlaceholder:"vtex-product-summary-2-x-imagePlaceholder",attachmentChildrenContainer:"vtex-product-summary-2-x-attachmentChildrenContainer",imageStackContainer:"vtex-product-summary-2-x-imageStackContainer",hoverEffect:"vtex-product-summary-2-x-hoverEffect",hoverImage:"vtex-product-summary-2-x-hoverImage",mainImageHovered:"vtex-product-summary-2-x-mainImageHovered",priceSpinner:"vtex-product-summary-2-x-priceSpinner",spin:"vtex-product-summary-2-x-spin",sponsoredBadgeContainer:"vtex-product-summary-2-x-sponsoredBadgeContainer",sponsoredBadgeText:"vtex-product-summary-2-x-sponsoredBadgeText"}},38:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},40:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/CollectionBadges"]},41:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/DiscountBadge"]},42:function(e,t,r){"use strict";var a=r(0),i=r.n(a);t.a=function(e){var t=e.cssHandle;return i.a.createElement("div",{className:"relative"},i.a.createElement("div",{className:"".concat(t," absolute w-100 h-100 contain bg-center")}),i.a.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"image-placeholder"},i.a.createElement("rect",{width:"512",height:"512",fill:"#F2F2F2"}),i.a.createElement("rect",{x:"183.857",y:"180.2",width:"144.286",height:"150.474",stroke:"#CACBCC",strokeWidth:"2"}),i.a.createElement("path",{d:"M183.78 303.688H328.214",stroke:"#CACBCC",strokeWidth:"2"}),i.a.createElement("path",{d:"M205.082 279.563L223.599 240.507L242.116 260.035L269.892 220.979L306.926 279.563H205.082Z",stroke:"#CACBCC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.a.createElement("path",{d:"M252.225 213.939C252.225 219.822 247.66 224.52 242.114 224.52C236.569 224.52 232.004 219.822 232.004 213.939C232.004 208.057 236.569 203.359 242.114 203.359C247.66 203.359 252.225 208.057 252.225 213.939Z",stroke:"#CACBCC",strokeWidth:"2"})))}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},53:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},63:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValues"]},7:function(e,t){e.exports=Classnames},88:function(e,t,r){"use strict";r.r(t),function(e){var t=r(4);r.p=Object(t.getPublicPath)("vtex.product-summary@2.91.2");var a=Object(t.register)((function(){return r(108)}),e,"vtex.product-summary@2.91.2","vtex.product-summary@2.x","ProductSummaryImage");a.renderHotReload,a.setupHMR}.call(this,r(13)(e))}},[[88,"common"]]]); },function(){ (window.webpackJsonpvtex_product_summary_2_91_2=window.webpackJsonpvtex_product_summary_2_91_2||[]).push([["ProductSummaryPrice"],{0:function(e,t){e.exports=React},18:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-components@3.x/ProductPrice"]},2:function(e,t){e.exports=R},3:function(e,t,i){e.exports={containerInline:"vtex-product-summary-2-x-containerInline",imageContainer:"vtex-product-summary-2-x-imageContainer",container:"vtex-product-summary-2-x-container",containerSmall:"vtex-product-summary-2-x-containerSmall",containerInlinePrice:"vtex-product-summary-2-x-containerInlinePrice",information:"vtex-product-summary-2-x-information",element:"vtex-product-summary-2-x-element",image:"vtex-product-summary-2-x-image",buyButtonContainer:"vtex-product-summary-2-x-buyButtonContainer",buyButton:"vtex-product-summary-2-x-buyButton",description:"vtex-product-summary-2-x-description",quantityStepperContainer:"vtex-product-summary-2-x-quantityStepperContainer",imageInline:"vtex-product-summary-2-x-imageInline",isHidden:"vtex-product-summary-2-x-isHidden",containerNormal:"vtex-product-summary-2-x-containerNormal",nameContainer:"vtex-product-summary-2-x-nameContainer",clearLink:"vtex-product-summary-2-x-clearLink",aspectRatio:"vtex-product-summary-2-x-aspectRatio",priceContainer:"vtex-product-summary-2-x-priceContainer",SKUSelectorContainer:"vtex-product-summary-2-x-SKUSelectorContainer",attachmentListContainer:"vtex-product-summary-2-x-attachmentListContainer",attachmentItemContainer:"vtex-product-summary-2-x-attachmentItemContainer",imageNormal:"vtex-product-summary-2-x-imageNormal",addToListBtn:"vtex-product-summary-2-x-addToListBtn",imagePlaceholder:"vtex-product-summary-2-x-imagePlaceholder",attachmentChildrenContainer:"vtex-product-summary-2-x-attachmentChildrenContainer",imageStackContainer:"vtex-product-summary-2-x-imageStackContainer",hoverEffect:"vtex-product-summary-2-x-hoverEffect",hoverImage:"vtex-product-summary-2-x-hoverImage",mainImageHovered:"vtex-product-summary-2-x-mainImageHovered",priceSpinner:"vtex-product-summary-2-x-priceSpinner",spin:"vtex-product-summary-2-x-spin",sponsoredBadgeContainer:"vtex-product-summary-2-x-sponsoredBadgeContainer",sponsoredBadgeText:"vtex-product-summary-2-x-sponsoredBadgeText"}},5:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-summary-context@0.x/ProductSummaryContext"]},94:function(e,t,i){"use strict";i.r(t),function(e){var t=i(4);i.p=Object(t.getPublicPath)("vtex.product-summary@2.91.2");var r=Object(t.register)((function(){return i(95)}),e,"vtex.product-summary@2.91.2","vtex.product-summary@2.x","ProductSummaryPrice");r.renderHotReload,r.setupHMR}.call(this,i(13)(e))},95:function(e,t,i){"use strict";i.r(t);var r=i(0),n=i.n(r),a=i(2),s=i(18),o=i.n(s),c=i(6),l=i.n(c),m=i(5),u=i.n(m),d=i(3),p=i.n(d),x=l.a.useProductSummary,P=["priceContainer","productPriceClass","listPriceContainer","listPriceLabel","listPrice","sellingPriceContainer","sellingPriceLabel","sellingPrice","savingsContainer","savings","interestRate","installmentContainer","listPriceRange","sellingPriceRange","priceLoading"];function v(e,t){if(!e||!e.items&&!e.priceRange)return[];if(e.priceRange){var i=e.priceRange[t];return i?[i.lowPrice,i.highPrice]:[]}var r="sellingPrice"===t?"Price":"ListPrice";return Object(a.flatten)(Object(a.pluck)("sellers",e.items)).map(Object(a.path)(["commertialOffer",r])).filter((function(e){return 0!==e}))}function y(e){var t,i,r=e.showListPrice,a=void 0===r||r,s=e.showSellingPriceRange,c=void 0!==s&&s,l=e.showLabels,m=void 0===l||l,d=e.showInstallments,y=void 0===d||d,g=e.showDiscountValue,C=void 0!==g&&g,h=e.labelSellingPrice,b=void 0===h?"":h,f=e.labelListPrice,L=void 0===f?"":f,S=e.showBorders,w=void 0!==S&&S,R=e.showListPriceRange,_=void 0!==R&&R,I=e.classes,N=x(),E=N.product,B=N.isLoading,O=N.isPriceLoading,k=u()(P,{classes:I}).handles,j=null===(i=null===(t=null==E?void 0:E.sku)||void 0===t?void 0:t.seller)||void 0===i?void 0:i.commertialOffer;if(B||O)return n.a.createElement("div",{className:"".concat(k.priceLoading," flex items-end justify-end w-100 h1 pr6")},n.a.createElement("div",{className:p.a.priceSpinner}));var H={containerClass:"flex flex-column justify-end items-center"+(w?"":" ".concat(k.priceContainer," pv5")),sellingPriceClass:"".concat(k.sellingPrice," dib ph2 t-body t-heading-5-ns")},T=c?v(E,"sellingPrice"):[],D=_?v(E,"listPrice"):[],M=j.Price;return n.a.createElement("div",{className:H.containerClass},0!==M&&n.a.createElement(o.a,{className:"".concat(k.productPriceClass," flex flex-column justify-start"),listPriceContainerClass:"".concat(k.listPriceContainer," pv1 normal c-muted-2"),listPriceLabelClass:"".concat(k.listPriceLabel," dib strike t-small t-mini"),listPriceClass:"".concat(k.listPrice," dib ph2 strike t-small-ns t-mini"),sellingPriceContainerClass:"".concat(k.sellingPriceContainer," pt1 pb3 c-on-base"),sellingPriceLabelClass:"".concat(k.sellingPriceLabel," dib"),sellingPriceClass:H.sellingPriceClass,savingsContainerClass:"".concat(k.savingsContainer," t-small-ns c-muted-2"),savingsClass:"".concat(k.savings," dib"),interestRateClass:"".concat(k.interestRate," dib pl2"),installmentContainerClass:"".concat(k.installmentContainer," t-small-ns c-muted-2"),listPrice:j.ListPrice,sellingPriceList:T,listPriceRangeClass:"".concat(k.listPriceRange," dib ph2 t-small-ns strike"),sellingPriceRangeClass:"".concat(k.sellingPriceRange," dib ph2 t-small-ns"),sellingPrice:j.Price,installments:j.Installments,showListPrice:a,showSellingPriceRange:c,showLabels:m,showInstallments:y,labelSellingPrice:b,labelListPrice:L,listPriceList:D,showListPriceRange:_,showSavings:C}))}y.schema={title:"admin/editor.productSummaryPrice.title",description:"admin/editor.productSummaryPrice.description",type:"object",properties:{showListPrice:{type:"boolean",title:"admin/editor.productSummaryPrice.showListPrice.title",default:!0,isLayout:!0},showSellingPriceRange:{type:"boolean",title:"admin/editor.productSummaryPrice.showSellingPriceRange.title",default:!1,isLayout:!0},showListPriceRange:{type:"boolean",title:"admin/editor.productSummaryPrice.showListPriceRange.title",default:!1,isLayout:!0},showInstallments:{type:"boolean",title:"admin/editor.productSummaryPrice.showInstallments.title",default:!0,isLayout:!0},showDiscountValue:{type:"boolean",title:"admin/editor.productSummaryPrice.showDiscountValue.title",default:!1},showLabels:{type:"boolean",title:"admin/editor.productSummaryPrice.showLabels.title",default:!0,isLayout:!0},showBorders:{type:"boolean",title:"admin/editor.productSummaryPrice.showBorders.title",default:!1,isLayout:!0}}},t.default=y}},[[94,"common"]]]); },function(){ !function(t){function e(e){for(var r,u,c=e[0],a=e[1],f=e[2],s=0,p=[];s=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",(function(){return r}))},14:function(t,e,n){t.exports=n(28)},15:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},19:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(o.usePixel)(),u=a.push,i=Object(r.useRef)(null),s=i.current;Object(r.useEffect)((function(){if(t&&!n&&s!==t){if(!e||Object(c.isEmpty)(e))return;Array.isArray(e)?e.forEach(u):u(e),i.current=t}}),[e,n,t,s,u])}},67:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store@2.145.0");var r=Object(t.register)((function(){return n(68)}),e,"vtex.store@2.145.0","vtex.store@2.x","HomeWrapper");r.renderHotReload,r.setupHMR}.call(this,n(9)(e))},68:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),c=n(1),a=n(29),u=n.n(a),i=n(30),s=n.n(i),_=n(6);t.default=function(e){var t=e.children,n=Object(c.useRuntime)(),a=n.account,i=n.route,p=(0,n.getSettings)("vtex.store").searchTermPath,l=Object(r.useMemo)((function(){return c.canUseDOM?[{event:"pageInfo",eventType:"homeView",accountName:a,pageTitle:document.title,pageUrl:location.href,pageCategory:"Home"}]:null}),[a]);return Object(_.a)(l,i.routeId),o.a.createElement(r.Fragment,null,o.a.createElement(u.a,{searchTermPath:p}),o.a.createElement(s.a,null),t)}},7:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]}},[[67,"common"]]]); },function(){ (window.webpackJsonpvtex_store_2_145_0=window.webpackJsonpvtex_store_2_145_0||[]).push([[1],{24:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var o=r(0),n=r.n(o),i=r(40),s=r.n(i),a=((()=>{const t=async(t,e,r,o)=>{const n=new URL(e,t).toString(),i=o?{"content-type":"application/json"}:void 0;return s()(n,{body:o?JSON.stringify(o):void 0,method:r,headers:{accept:"application/json",...i}}).then(t=>{if(!t.ok)throw console.error({description:"HTTP error",response:t}),new Error("HTTP error! status: "+t.status);return t.json()})}})(),"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),h=Symbol.for("vtex.ads.react.context"),u=a[h],f=null!=u?u:function(){const t=Object(o.createContext)(void 0);return a[h]=t,t}();function c({identity:t,hydrationStrategy:e,children:r}){if(!t||!e)throw new Error("AdsProvider requires both identity and hydrationStrategy props");return n.a.createElement(f.Provider,{value:{identity:t,hydrationStrategy:{fetcher:e.fetcher,matcher:e.matcher,key:e.key}}},r)}},40:function(t,e){var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global,o=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r=void 0!==t&&t||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},o="URLSearchParams"in r,n="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function y(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function b(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function w(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=w(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=w(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=y(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,o,n,i=y(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),o=/charset=([A-Za-z0-9_-]+)/.exec(t.type),n=o?o[1]:"utf-8",e.readAsText(t,n),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}})),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var _=[301,302,303,307,308];T.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new T(null,{status:e,headers:{location:t}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function A(t,o){return new Promise((function(n,s){var h=new g(t,o);if(h.signal&&h.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}if(u.onload=function(){var t,e,r={statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();try{e.append(o,n)}catch(t){console.warn("Response "+t.message)}}})),e)};0===h.url.indexOf("file://")&&(u.status<200||u.status>599)?r.status=200:r.status=u.status,r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new T(o,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){s(new e.DOMException("Aborted","AbortError"))}),0)},u.open(h.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(h.url),!0),"include"===h.credentials?u.withCredentials=!0:"omit"===h.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&(u.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof l||r.Headers&&o.headers instanceof r.Headers)){var y=[];Object.getOwnPropertyNames(o.headers).forEach((function(t){y.push(f(t)),u.setRequestHeader(t,c(o.headers[t]))})),h.headers.forEach((function(t,e){-1===y.indexOf(e)&&u.setRequestHeader(e,t)}))}else h.headers.forEach((function(t,e){u.setRequestHeader(e,t)}));h.signal&&(h.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&h.signal.removeEventListener("abort",d)}),u.send(void 0===h._bodyInit?null:h._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=l,r.Request=g,r.Response=T),e.Headers=l,e.Request=g,e.Response=T,e.fetch=A}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var n=r.fetch?r:o;(e=n.fetch).default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e}}]); },function(){ (window.webpackJsonpvtex_store_2_145_0=window.webpackJsonpvtex_store_2_145_0||[]).push([[0],{20:function(r,e,t){"use strict";const n=t(75),o=t(76),a=t(77),s=t(78),c=Symbol("encodeFragmentIdentifier");function i(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(r,e){return e.encode?e.strict?n(r):encodeURIComponent(r):r}function l(r,e){return e.decode?o(r):r}function p(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function f(r){const e=(r=p(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function y(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function d(r,e){i((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const t=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),e?void 0!==n[r]?n[r]=[].concat(n[r],t):n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&l(t,r).includes(r.arrayFormatSeparator);t=a?l(t,r):t;const s=o||a?t.split(r.arrayFormatSeparator).map(e=>l(e,r)):null===t?t:l(t,r);n[e]=s};case"bracket-separator":return(e,t,n)=>{const o=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!o)return void(n[e]=t?l(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map(e=>l(e,r));void 0!==n[e]?n[e]=[].concat(n[e],a):n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[].concat(t[r],e):t[r]=e}}}(e),n=Object.create(null);if("string"!=typeof r)return n;if(!(r=r.trim().replace(/^[?#&]/,"")))return n;for(const o of r.split("&")){if(""===o)continue;let[r,s]=a(e.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:l(s,e),t(l(r,e),s,n)}for(const r of Object.keys(n)){const t=n[r];if("object"==typeof t&&null!==t)for(const r of Object.keys(t))t[r]=y(t[r],e);else n[r]=y(t,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((r,e)=>{const t=n[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=function r(e){return Array.isArray(e)?e.sort():"object"==typeof e?r(Object.keys(e)).sort((r,e)=>Number(r)-Number(e)).map(r=>e[r]):e}(t):r[e]=t,r},Object.create(null))}e.extract=f,e.parse=d,e.stringify=(r,e)=>{if(!r)return"";i((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const t=t=>e.skipNull&&null==r[t]||e.skipEmptyString&&""===r[t],n=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[",o,"]"].join("")]:[...t,[u(e,r),"[",u(o,r),"]=",u(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[u(e,r),"[]"].join("")]:[...t,[u(e,r),"[]=",u(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[u(t,r),e,u(o,r)].join("")]:[[n,u(o,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,u(e,r)]:[...t,[u(e,r),"=",u(n,r)].join("")]}}(e),o={};for(const e of Object.keys(r))t(e)||(o[e]=r[e]);const a=Object.keys(o);return!1!==e.sort&&a.sort(e.sort),a.map(t=>{const o=r[t];return void 0===o?"":null===o?u(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?u(t,e)+"[]":o.reduce(n(t),[]).join("&"):u(t,e)+"="+u(o,e)}).filter(r=>r.length>0).join("&")},e.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[t,n]=a(r,"#");return Object.assign({url:t.split("?")[0]||"",query:d(f(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,e)}:{})},e.stringifyUrl=(r,t)=>{t=Object.assign({encode:!0,strict:!0,[c]:!0},t);const n=p(r.url).split("?")[0]||"",o=e.extract(r.url),a=e.parse(o,{sort:!1}),s=Object.assign(a,r.query);let i=e.stringify(s,t);i&&(i="?"+i);let l=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);return r.fragmentIdentifier&&(l="#"+(t[c]?u(r.fragmentIdentifier,t):r.fragmentIdentifier)),`${n}${i}${l}`},e.pick=(r,t,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);const{url:o,query:a,fragmentIdentifier:i}=e.parseUrl(r,n);return e.stringifyUrl({url:o,query:s(a,t),fragmentIdentifier:i},n)},e.exclude=(r,t,n)=>{const o=Array.isArray(t)?r=>!t.includes(r):(r,e)=>!t(r,e);return e.pick(r,o,n)}},75:function(r,e,t){"use strict";r.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,r=>"%"+r.charCodeAt(0).toString(16).toUpperCase())},76:function(r,e,t){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(r,e){try{return decodeURIComponent(r.join(""))}catch(r){}if(1===r.length)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],a(t),a(n))}function s(r){try{return decodeURIComponent(r)}catch(o){for(var e=r.match(n),t=1;t{if("string"!=typeof r||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[r];const t=r.indexOf(e);return-1===t?[r]:[r.slice(0,t),r.slice(t+e.length)]}},78:function(r,e,t){"use strict";r.exports=function(r,e){for(var t={},n=Object.keys(r),o=Array.isArray(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object(o.usePixel)(),c=i.push,u=Object(n.useRef)(null),s=u.current;Object(n.useEffect)((function(){if(t&&!r&&s!==t){if(!e||Object(a.isEmpty)(e))return;Array.isArray(e)?e.forEach(c):c(e),u.current=t}}),[e,r,t,s,c])}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/PixelContext"]},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=["firstName","lastName","document","id","email","phone","isAuthenticated"],o=function(){return window.__RENDER_8_SESSION__&&window.__RENDER_8_SESSION__.sessionPromise?window.__RENDER_8_SESSION__.sessionPromise:Promise.resolve(null)};function a(e){return e?n.reduce((function(t,r){var n,o=null===(n=e[r])||void 0===n?void 0:n.value;return o&&(t[r]="isAuthenticated"===r?function(e){return"true"===e.toLowerCase()}(o):o),t}),{}):{}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(0),o=r(1),a=r(6),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=e.cacheKey,i=e.skip,c=Object(o.useRuntime)(),u=c.route,s=c.account,l=null!=r?r:u.routeId,d=Object(n.useMemo)((function(){return!o.canUseDOM||i?null:{event:"pageView",pageTitle:null!=t?t:document.title,pageUrl:location.href,referrer:0===document.referrer.indexOf(location.origin)?void 0:document.referrer,accountName:s,routeId:(null==u?void 0:u.routeId)?u.routeId:""}}),[s,t,o.canUseDOM,l]);Object(a.a)(i?null:d,l)},c=["store.search","store.product"];t.a=function(e){var t=e.title,r=Object(o.useRuntime)().route,n=r&&c.some((function(e){return 0===r.routeId.indexOf(e)}));return i({title:t,skip:n}),null}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1);function o(){var e=Object(n.useRuntime)(),t=e.route,r=e.rootPath,o=void 0===r?"":r,a=t.canonicalPath,i=window.__hostname__||window.location&&window.location.hostname;return i&&a?"https://".concat(i).concat(o).concat(a):null}},,,,function(e,t,r){"use strict";var n=r(0),o=r.n(n);t.a=function(e){var t=e.children,r=e.className;return o.a.createElement("div",{className:r},o.a.createElement("div",{className:"flex flex-column min-vh-100 w-100"},t))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var n=r(14),o=r.n(n),a=r(23),i=r(4),c=r(0),u=r.n(c),s=r(24),l=r(18),d=r.n(l),p=r(5),f=r(1),m=r(10),O=function(e,t){var r=e.items.find((function(e){return e.itemId===t.skuId&&e.sellers.some((function(e){return e.sellerId===t.sellerId}))}));if(void 0===r)return!1;var n=r.sellers.find((function(e){return e.sellerId===t.sellerId}));return!!n&&(r.sellers=[n],e.items=[r],!0)},v=function(e){var t,r=e.children,n=Object(f.useRuntime)(),l=n.account,v=null===(t=(0,n.getSettings)("vtex.store"))||void 0===t?void 0:t.publisherId,h=Object(c.useState)(void 0),_=Object(i.a)(h,2),b=_[0],g=_[1],x=Object(c.useState)("session-id"),E=Object(i.a)(x,2),j=E[0],y=E[1];Object(c.useEffect)((function(){Object(m.a)().then((function(e){var t,r,n,o,a=null===(r=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.namespaces)||void 0===r?void 0:r.profile;if(a){y(null!==(o=null===(n=e.response)||void 0===n?void 0:n.id)&&void 0!==o?o:"session-id");var i=Object(m.b)(a);g(i.id)}})).catch((function(){}))}),[]);var N=Object(p.useApolloClient)(),R=function(){var e=Object(a.a)(o.a.mark((function e(t){var r,n,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return",[]);case 2:return e.prev=2,n=t.map((function(e){return e.skuId})).join(";"),e.next=6,N.query({query:d.a,variables:{fullText:"sku.id:".concat(n)}});case 6:return a=e.sent,i=a.data,e.abrupt("return",null!==(r=null==i?void 0:i.productSearch.products)&&void 0!==r?r:[]);case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}();return v?u.a.createElement(s.a,{identity:{accountName:l,publisherId:v,userId:b,sessionId:j,channel:"site"},hydrationStrategy:{fetcher:R,matcher:O,key:"sf"}},r):r}},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryProductSearchV3"]},,,,,,,,,function(e,t){e.exports=ReactIntl},function(e,t){e.exports=regeneratorRuntime},,,,,,,,,,,,,,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastProvider"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/PWAContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderQueue"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-items@0.x/OrderItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.order-manager@0.x/OrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.shipping-option-components@1.x/ShippingOptionContext"]},,,function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationAddToCart"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateItems"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormProfile"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormShipping"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/MutationUpdateOrderFormCheckin"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/OrderFormContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-resources@0.x/QueryOrderForm"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/ToastContext"]},,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t),function(e){var t=r(3);r.p=Object(t.getPublicPath)("vtex.store@2.145.0");var n=Object(t.register)((function(){return r(81)}),e,"vtex.store@2.145.0","vtex.store@2.x","StoreWrapper");n.renderHotReload,n.setupHMR}.call(this,r(9)(e))},,function(e,t,r){"use strict";r.r(t);var n=r(25),o=r(4),a=r(8),i=r(0),c=r.n(i),u=r(1),s=r(7),l=r(43),d=r.n(l),p=r(44),f=r(45),m=r(46),O=r(47),v=r(48),h=r(10),_=function(){var e=Object(s.usePixel)().push;return Object(i.useEffect)((function(){Object(h.a)().then((function(t){var r,n,o=null===(n=null===(r=null==t?void 0:t.response)||void 0===r?void 0:r.namespaces)||void 0===n?void 0:n.profile;if(o){var a=Object(h.b)(o);e(Object.assign({event:"userData"},a))}}))}),[e]),null},b=r(11),g=r(49),x=r(50),E=r(15),j=r(59),y=r(60),N=r(26),R=r(5),S=r(51),w=r.n(S),P=r(52),C=r.n(P),F=r(53),M=r.n(F),T=r(54),I=r.n(T),D=r(55),k=r.n(D),A=r(56),q=r(57),U=r.n(q);function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(N.a)(e);if(t){var o=Object(N.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(y.a)(this,r)}}var L=function(e){Object(j.a)(r,e);var t=W(r);function r(){var e;Object(g.a)(this,r);for(var n=arguments.length,o=new Array(n),i=0;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0})),script:[T&&{type:"text/javascript",src:"".concat(C,"/register.js").concat(X).concat(B?"":"&__disableSW=true","&scope=").concat(encodeURIComponent(C)),defer:!0}].filter(Boolean),link:[].concat(Object(n.a)(Z||[]),Object(n.a)(!l&&Y?[{rel:"canonical",href:encodeURI(Y)}]:[])).filter(Boolean)}),c.a.createElement(s.PixelProvider,{currency:E},c.a.createElement(p.PWAProvider,{rootPath:C},c.a.createElement(b.a,{title:V}),c.a.createElement(_,null),c.a.createElement(d.a,{positioning:"window"},c.a.createElement(K,null),L?ae:c.a.createElement(Q,null,ae)))),function(){try{return u.canUseDOM&&window.top!==window.self&&window.top.__provideRuntime}catch(e){return!1}}()&&c.a.createElement(u.NoSSR,null,c.a.createElement(u.ExtensionPoint,{id:"highlight-overlay"})))}}],[[79,"common",1,0]]]); },function(){ (window.webpackJsonpvtex_store_2_145_0=window.webpackJsonpvtex_store_2_145_0||[]).push([["DefaultChallenge"],{63:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store@2.145.0");var r=Object(t.register)((function(){return n(64)}),e,"vtex.store@2.145.0","vtex.store@2.x","DefaultChallenge");r.renderHotReload,r.setupHMR}.call(this,n(9)(e))},64:function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.children}}},[[63,"common"]]]); },function(){ !function(e){function t(t){for(var n,a,u=t[0],c=t[1],l=t[2],s=0,d=[];se.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?r:void 0}),t)},m=a(10),p=a.n(m),d=a(7),y=a.n(d),g=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o3&&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(s.a)(this,e),this.client=t,this.historyKey="biggy-search-history"}var t,n,r;return Object(a.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:m.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,s,a,u,l,p,h=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=h.length>3&&void 0!==h[3]&&h[3],s=h.length>4&&void 0!==h[4]?h[4]:"default",a=h.length>5&&void 0!==h[5]&&h[5],u=h.length>6?h[6]:void 0,l=h.length>7?h[7]:void 0,p=h.length>8?h[8]:void 0,e.abrupt("return",this.client.query({query:c.a,variables:{simulationBehavior:s,hideUnavailableItems:a,orderBy:u,fullText:t,facetKey:n,facetValue:r,productOriginVtex:o,count:l,shippingOptions:p,variant:d("sp-variant")},fetchPolicy:"network-only"}));case 7:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"searchHistory",value:function(){return(d(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)),g(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,s,a;function u(){var c=Date.now()-s;c=0?r=setTimeout(u,t-c):(r=null,n||(a=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,s=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(a=e.apply(o,i),o=i=null),a};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(a=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},c}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.list-context@0.x/useListContext"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.list-context@0.x/ListContextProvider"]},function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.pixel-manager@1.x/usePixel"]},,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(4);n.p=Object(t.getPublicPath)("hopelingerie.search@2.16.14");var r=Object(t.register)((function(){return n(45)}),e,"hopelingerie.search@2.16.14","hopelingerie.search@2.x","Autocomplete");r.renderHotReload,r.setupHMR}.call(this,n(15)(e))},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r),o=n(5),s=n(10),a=n(11),u=n(22),c=n(21),l=n(12),p=n(0),h=n.n(p),m=n(7),d=n(3),g=n(24),f=n.n(g),v=n(25),y=n.n(v),x=n(26),_=n.n(x),E=n(27),P=n.n(E),b=n(28),S=n.n(b),L=n(29),O=n.n(L),k=n(20),T=n(13),w=n.n(T),M=n(2),N=n(30),I=n.n(N),C=n(31),R=n.n(C),H=n(32),j=n.n(H),F=n(33),D=n.n(F),V=n(34),q=n.n(V),A=n(8),U=n.n(A),W=function(e){var t=e.term,n=e.title,r=e.products,i=e.showTitle,o=e.totalProducts,s=e.layout,a=e.isLoading,u=e.onProductClick,c=e.onSeeAllClick,l=e.customPage,m=e.customClass,g=(j()()||[]).list,f=q()().push,v=Object(M.useTreePath)().treePath,y=Object(p.useMemo)((function(){var e=r.filter((function(e){return e.productId})).map((function(e,n){var r=n+1,i=R.a.mapCatalogProductToProductSummary(e);return h.a.createElement(M.ExtensionPoint,{id:"product-summary",key:String(r),treePath:v,product:i,actionOnClick:function(){return u(e.productId,n,t,"tile-list")}})}));return g.concat(e)}),[r,v,g,f]);return 0!==r.length||a?h.a.createElement("section",{className:"".concat(U.a.tileList," ").concat(U.a[m])},i?h.a.createElement("p",{className:"".concat(U.a.tileListTitle," c-on-base")},n):null,a?h.a.createElement("div",{className:U.a.tileListSpinner},h.a.createElement(I.a,null)):h.a.createElement(h.a.Fragment,null,s===ce.Horizontal?h.a.createElement("div",{className:U.a.tileListList},h.a.createElement(D.a,{list:y},h.a.createElement(M.ExtensionPoint,{id:"slider-layout"}))):h.a.createElement("ul",{className:U.a.tileListList,style:{flexDirection:"column"}},y.map((function(e,t){return h.a.createElement("li",{key:r[t].productId,className:U.a.tileListItem},e)}))),h.a.createElement("footer",{className:U.a.tileListFooter},o>0?h.a.createElement(M.Link,{query:"map=ft&_q=".concat(t),params:{term:t},page:l||"store.search",className:U.a.tileListSeeMore,onClick:function(){return c(t)}},h.a.createElement(d.FormattedMessage,{id:"store/seeMore",values:{count:o}}),h.a.createElement("strong",null,' "'.concat(t,'"'))):null))):null};var z=n(6),B=n.n(z),Q=function(e){var t;return(null===(t=e.item)||void 0===t?void 0:t.attributes)?h.a.createElement("ul",{className:B.a.itemListSubList},e.item.attributes.map((function(t,n){return h.a.createElement("li",{key:n,className:"".concat(B.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()}},h.a.createElement(M.Link,{className:"".concat(B.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 K(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(c.a)(this,n)}}var J=function(e){Object(u.a)(n,e);var t=K(n);function n(){var e;return Object(s.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(a.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?B.a["itemList--".concat(this.props.modifier)]:"",n=this.props.inputValue;return p.createElement("article",{className:"".concat(B.a.itemList," ").concat(t)},this.props.showTitle?p.createElement("p",{className:"".concat(B.a.itemListTitle," c-on-base")},this.props.title):null,p.createElement("ol",{className:B.a.itemListList},this.props.items.map((function(t,r){var i;return p.createElement("li",{key:t.value,className:"".concat(B.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(M.Link,{page:null!==(i=e.props.customPage)&&void 0!==i?i:"store.search",params:{term:t.value},query:"map=ft&_q=".concat(t.value),onClick:function(){return e.props.onItemClick(t.value,r)},className:B.a.itemListLink},t.icon?p.createElement("span",{className:B.a.itemListIcon},t.icon):null,t.prefix?p.createElement("span",{className:B.a.itemListPrefix},t.prefix):null,p.createElement("span",{className:"".concat(B.a.itemListLinkTitle," c-on-base")},n?p.createElement(X,{str:t.value,substr:n}):t.label)),p.createElement(Q,{item:t,onMouseOver:e.handleMouseOver,onMouseOut:e.handleMouseOut,closeModal:e.props.closeModal,onItemClick:e.props.onItemClick}))}))))}}]),n}(p.Component);function X(e){var t=e.str,n=e.substr,r=t.normalize("NFD").replace(/[\u0300-\u036f]/g,""),i=n.normalize("NFD").replace(/[\u0300-\u036f]/g,""),o=new RegExp(i,"i"),s=r.match(o);if(!s||null==s.index)return p.createElement("span",null,t);var a=s.index,u=t.slice(a,a+n.length),c=t.slice(0,s.index),l=u,h=t.slice(s.index+n.length);return p.createElement(p.Fragment,null,c,"",p.createElement("strong",null,l),"",h)}var $=n(35);var G="product_click",Z="search_suggestion_click",Y="top_search_click",ee="history_click",te="search",ne="see_all_click";function re(e,t){return function(n,r,i,o){return e({page:t,event:"autocomplete",eventType:G,product:{productId:n,position:r},term:i,list:o})}}function ie(e,t,n){return function(r,i){e({page:t,event:"autocomplete",eventType:n,search:{term:r,position:i}})}}function oe(e,t){return function(n){return e({page:t,event:"autocomplete",eventType:ne,search:{term:n}})}}function se(e,t,n,r,i){try{e({event:"autocomplete",eventType:te,search:{operator:t,misspelled:n,text:decodeURI(i),match:r}})}catch(o){e({event:"autocomplete",eventType:te,search:{operator:t,misspelled:n,text:i,match:r}})}}var ae=function(){var e=Object(o.a)(i.a.mark((function e(t){var n,r,o,s,a,u,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(s=new Headers).append("Content-Type","application/json"),a={method:"GET",headers:s,redirect:"follow"},e.next=5,fetch("".concat(t||"","/api/sessions?items=public.shippingOption"),a);case 5:return u=e.sent,e.next=8,u.json();case 8:if(c=e.sent,null===(o=null===(r=null===(n=null==c?void 0:c.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(c.namespaces.public.shippingOption.value));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function ue(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(c.a)(this,n)}}var ce,le=O.a.withPixel;!function(e){e.Horizontal="HORIZONTAL",e.Vertical="VERTICAL"}(ce||(ce={}));var pe,he=_.a.ProductListProvider,me=function(e){Object(u.a)(p,e);var t,n,r,c,l=ue(p);function p(e){var t;return Object(s.a)(this,p),(t=l.call(this,e)).state={topSearchedItems:[],history:[],products:[],topSaleProducts:[],suggestionItems:[],totalProducts:0,queryFromHover:{},dynamicTerm:"",isProductsLoading:!1,currentHeightWhenOpen:0},t.handleItemHover=function(e){"groupValue"in e?(t.setState({dynamicTerm:e.groupValue,queryFromHover:{key:e.key,value:e.value}}),t.updateProducts(e.groupValue)):(t.setState({dynamicTerm:e.value,queryFromHover:{key:void 0,value:void 0}}),t.updateProducts(e.value))},t.getProductLayout=function(){var e=t.props,n=e.productLayout,r=e.isMobile;return void 0!==n?n:r?ce.Horizontal:ce.Vertical},t.client=new k.a(t.props.client),t.autocompleteRef=h.a.createRef(),t.isIOS=navigator&&!!navigator.userAgent.match(/(iPod|iPhone|iPad)/),t}return Object(a.a)(p,[{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(),this.updateTopSaleProducts()}},{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 h.a.createElement(h.a.Fragment,null,n.map((function(e,r){return h.a.createElement(h.a.Fragment,null,e,r!==n.length-1?h.a.createElement("span",{className:"b"},t):null)})))}},{key:"updateSuggestions",value:(c=Object(o.a)(i.a.mark((function e(){var t,n,r,o,s,a,u=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,s=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}}))}})),a=s.map((function(e){return{label:u.highlightTerm(e.term.toLowerCase(),u.props.inputValue.toLocaleLowerCase()),value:e.term,groupValue:e.term,link:"/".concat(e.term,"?map=ft"),attributes:e.attributes}})),this.setState({suggestionItems:a});case 8:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"updateProducts",value:(r=Object(o.a)(i.a.mark((function e(t){var n,r,o,s,a,u,c,l,p,h,m,d,g,f,v,y,x,_,E,P,b;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t,o=this.props,s=o.__unstableProductOrigin,a=o.__unstableProductOriginVtex,u=void 0!==a&&a,c=o.simulationBehavior,l=void 0===c?"default":c,p=o.hideUnavailableItems,h=void 0!==p&&p,m=o.orderBy,d=this.state.queryFromHover,r){e.next=6;break}return this.setState({products:[],totalProducts:0}),e.abrupt("return");case 6:return s&&console.warn("The prop `__unstableProductOrigin` has been deprecated. Use the boolean prop `__unstableProductOriginVtex` instead."),this.setState({isProductsLoading:!0}),e.next=10,ae(this.props.runtime.rootPath);case 10:return g=e.sent,f=null!==(n=null==g?void 0:g.map((function(e){return e.value})))&&void 0!==n?n:[],e.next=14,this.client.suggestionProducts(r,d?d.key:void 0,d?d.value:void 0,"VTEX"===s||u,l,h,m,this.props.maxSuggestedProducts||3,f);case 14:v=e.sent,d||(y=v.data.productSuggestions,x=y.count,_=y.operator,E=y.misspelled,se(this.props.push,_,E,x,r)),this.setState({isProductsLoading:!1}),P=v.data.productSuggestions,b=P.products.slice(0,this.getProductCount()),this.setState({products:b,totalProducts:P.count});case 20:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"updateTopSaleProducts",value:(n=Object(o.a)(i.a.mark((function e(){var t,n,r,o,s,a,u,c,l,p,h,m,d,g,f,v,y,x,_;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,r=n.__unstableProductOrigin,o=n.__unstableProductOriginVtex,s=void 0!==o&&o,a=n.simulationBehavior,u=void 0===a?"default":a,c=n.hideUnavailableItems,l=void 0!==c&&c,p=this.state.queryFromHover,r&&console.warn("The prop `__unstableProductOrigin` has been deprecated. Use the boolean prop `__unstableProductOriginVtex` instead."),this.setState({isProductsLoading:!0}),e.next=6,ae(this.props.runtime.rootPath);case 6:return h=e.sent,m=null!==(t=null==h?void 0:h.map((function(e){return e.value})))&&void 0!==t?t:[],e.next=10,this.client.suggestionProducts("",p?p.key:void 0,p?p.value:void 0,"VTEX"===r||s,u,l,"OrderByTopSaleDESC",this.props.maxSuggestedProducts||3,m);case 10:d=e.sent,p||(g=d.data.productSuggestions,f=g.count,v=g.operator,y=g.misspelled,se(this.props.push,v,y,f,"")),this.setState({isProductsLoading:!1}),x=d.data.productSuggestions,_=x.products.slice(0,this.getProductCount()),this.setState({topSaleProducts:_,totalProducts:x.count});case 16:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"updateTopSearches",value:(t=Object(o.a)(i.a.mark((function e(){var t,n,r,o,s;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,s=n.slice(0,o).map((function(e,t){return{prefix:h.a.createElement(h.a.Fragment,null,"".concat(t+1),h.a.createElement(d.FormattedMessage,{id:"store/ordinalNumber"})),value:e.term,label:e.term,link:"/".concat(e.term,"?map=ft")}})),this.setState({topSearchedItems:s});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:h.a.createElement(y.a,null)};var t}));this.setState({history:e})}},{key:"renderSuggestions",value:function(){var e=this,t=!!this.state.suggestionItems&&this.state.suggestionItems.length>0,n=t?h.a.createElement(d.FormattedMessage,{id:"store/suggestions"}):h.a.createElement(d.FormattedMessage,{id:"store/emptySuggestion"});return h.a.createElement(J,{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){ie(e.props.push,e.props.runtime.page,Z)(t,n),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()},inputValue:this.props.inputValue})}},{key:"contentWhenQueryIsEmpty",value:function(){var e=this,t=this.state,n=t.topSaleProducts,r=t.totalProducts,i=t.isProductsLoading,o=this.props,s=o.hideTitles,a=o.push,u=o.runtime,c=o.inputValue;return h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:w.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?h.a.createElement(J,{modifier:"top-search",title:h.a.createElement(d.FormattedMessage,{id:"store/topSearches"}),items:this.state.topSearchedItems||[],showTitle:!this.props.hideTitles,onItemClick:function(t,n){ie(e.props.push,e.props.runtime.page,Y)(t,n),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()},inputValue:c}):null,!this.props.isMobile||this.props.isMobile&&this.props.historyFirst?h.a.createElement(J,{modifier:"history",title:h.a.createElement(d.FormattedMessage,{id:"store/history"}),items:this.state.history||[],showTitle:!this.props.hideTitles,onItemClick:function(t,n){ie(e.props.push,e.props.runtime.page,ee)(t,n),e.closeModal()},customPage:this.props.customPage,closeModal:function(){return e.closeModal()},inputValue:c}):null),h.a.createElement(W,{term:"",customPage:this.props.customPage,shelfProductCount:this.getProductCount(),title:h.a.createElement(d.FormattedMessage,{id:"store/topSaleProducts"}),products:n||[],showTitle:!s,totalProducts:r||0,layout:this.getProductLayout(),isLoading:i,onProductClick:function(t,n,r,i){re(a,u.page)(t,n,r,i),e.closeModal()},onSeeAllClick:function(t){oe(a,u.page)(t),e.closeModal()},HorizontalProductSummary:this.props.HorizontalProductSummary,customClass:"topSale"}))}},{key:"contentWhenQueryIsNotEmpty",value:function(){var e=this,t=this.state,n=t.products,r=t.totalProducts,i=t.isProductsLoading,o=this.props,s=o.hideTitles,a=o.push,u=o.runtime,c=o.inputValue,l=c.replace(/\//gi,"$2F");return h.a.createElement(h.a.Fragment,null,this.renderSuggestions(),h.a.createElement(W,{term:l||"",customPage:this.props.customPage,shelfProductCount:this.getProductCount(),title:h.a.createElement(d.FormattedMessage,{id:"store/suggestedProducts",values:{term:c}}),products:n||[],showTitle:!s,totalProducts:r||0,layout:this.getProductLayout(),isLoading:i,onProductClick:function(t,n,r,i){re(a,u.page)(t,n,r,i),e.closeModal()},onSeeAllClick:function(t){oe(a,u.page)(t),e.closeModal()},HorizontalProductSummary:this.props.HorizontalProductSummary,customClass:"suggestions"}))}},{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()?"":w.a["biggy-js-container--hidden"];return h.a.createElement("div",{className:w.a["biggy-autocomplete-wrapper"],style:{width:this.props.autocompleteWidth?"".concat(this.props.autocompleteWidth,"vw"):void 0}},h.a.createElement("section",{ref:this.autocompleteRef,className:"".concat(w.a["biggy-autocomplete"]," ").concat(t," w-100"),style:{flexDirection:this.getProductLayout()===ce.Horizontal?"column":"row"}},h.a.createElement(he,{listName:"autocomplete-result-list"},h.a.createElement("button",{onClick:function(){return e.closeModal()},className:w.a["close-btn"]},h.a.createElement(f.a,null)),this.renderContent())))}}]),p}(h.a.Component),de=le(P()(Object(m.withApollo)((pe=me,function(e){return h.a.createElement(pe,Object($.a)({},e,{runtime:Object(M.useRuntime)()}))}))));t.default=de}],[[39,"common"]]]); }], document.currentScript.dataset.index)