text: (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{"7yIz":function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("q1tI"),a=r("hg3N"),c=function(){return Object(n.useContext)(a.OrderForm)}},"9I8U":function(e,t,r){"use strict";var n=r("izhR"),a=r("q1tI"),c=r.n(a);t.a=function(e){var t=e.children,r=e.variant;return c.a.createElement(n.b,{variant:"offer."+r+".container"},t)}},"Evs+":function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("QR2T"),a=r("9Yq8"),c=function(e){return{src:Object(n.a)(null!=e?e:a.b,a.c.width,a.c.height),width:a.c.widthStr,height:a.c.heightStr}}},F57I:function(e,t,r){"use strict";r.r(t),r.d(t,"fragment",(function(){return x}));var n=r("q1tI"),a=r.n(n),c=r("y/BZ"),i=r("Evs+"),l=r("9I8U"),o=r("gmmj"),u=r("zLVn"),s=r("2A+t"),d=r("bFsN"),f=function(e){var t=e.children,r=e.variant,n=Object(u.a)(e,["children","variant"]);return Object(s.a)(d.a,Object.assign({state:{fromSummary:!0},sx:{variant:"productSummary."+r+".container"}},n),t)},m=r("Xojf"),v=r("izhR"),p=function(e){var t=e.variant,r=e.children;return a.a.createElement(v.b,{variant:"productSummary."+t+".title",as:"h3"},r)},h=r("S8uJ"),b=r("Psuc"),g=r("6mPD"),E=r("TZ6P"),y=Object(s.a)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 511.343 511.343"},Object(s.a)("g",null,Object(s.a)("path",{d:"m490.334 106.668h-399.808l-5.943-66.207c-.972-10.827-10.046-19.123-20.916-19.123h-42.667c-11.598 0-21 9.402-21 21s9.402 21 21 21h23.468c12.825 142.882-20.321-226.415 24.153 269.089 1.714 19.394 12.193 40.439 30.245 54.739-32.547 41.564-2.809 102.839 50.134 102.839 43.942 0 74.935-43.826 59.866-85.334h114.936c-15.05 41.455 15.876 85.334 59.866 85.334 35.106 0 63.667-28.561 63.667-63.667s-28.561-63.667-63.667-63.667h-234.526c-15.952 0-29.853-9.624-35.853-23.646l335.608-19.724c9.162-.538 16.914-6.966 19.141-15.87l42.67-170.67c3.308-13.234-6.71-26.093-20.374-26.093zm-341.334 341.337c-11.946 0-21.666-9.72-21.666-21.667s9.72-21.667 21.666-21.667c11.947 0 21.667 9.72 21.667 21.667s-9.72 21.667-21.667 21.667zm234.667 0c-11.947 0-21.667-9.72-21.667-21.667s9.72-21.667 21.667-21.667 21.667 9.72 21.667 21.667-9.72 21.667-21.667 21.667zm47.366-169.726-323.397 19.005-13.34-148.617h369.142z"}))),O={borderColor:"transparent",borderBottomRightRadius:"4px",borderTopLeftRadius:"4px",backgroundColor:"white",alignSelf:"flex-end",marginRight:"-15px",cursor:"pointer",fill:"#757575",padding:"12px",height:"50px",width:"50px"},j=function(e){var t=e.sku,r=Object(E.a)(t,1),n=r.loading,a=Object(u.a)(r,["loading"]);return n?Object(s.a)(v.b,Object.assign({sx:Object.assign({},O,{backgroundColor:"#f2f2f2",display:"flex",justifyContent:"center",alignItems:"center"})},a),Object(s.a)(v.l,{size:"20px"})):Object(s.a)(v.b,Object.assign({sx:O},a,{className:"buyButton"}),y)},x=(r("GCOn"),r("r3Ve"),"1361549284"),C=function(){return a.a.createElement(l.a,{variant:"productSummary"},a.a.createElement(o.a,{height:"20px"}),a.a.createElement(o.a,{height:"23px"}),a.a.createElement(o.a,{height:"20px"}))};t.default=function(e){var t=e.product,r=e.loading,n=void 0===r?"lazy":r,l=e.variant,o=void 0===l?"default":l,u=t,s=u.items[0],d=u.productName,E=u.productId,y=u.productClusters,O=s.images[0],x=O.imageUrl,w=O.imageText,k=s.sellers,S=function(e){return{to:"/"+e.linkText+"/p",onClick:function(t){return Object(c.a)({type:"vtex:productClick",data:{product:e}})}}}(t),I=Object(i.a)(x);return a.a.createElement(f,Object.assign({},S,{variant:o}),a.a.createElement(m.a,Object.assign({alt:null!=w?w:"Product Image",loading:n,variant:o},I)),a.a.createElement(p,{variant:o},d),a.a.createElement(v.e,{sx:{justifyContent:"space-between",minHeight:"25px",my:"5px"}},a.a.createElement(b.a,{productId:E}),a.a.createElement(g.a,{productClusters:y})),void 0===k?a.a.createElement(C,null):k.length>0?a.a.createElement(h.a,{variant:"productSummary",commercialOffer:k[0].commercialOffer}):null,a.a.createElement(j,{sku:s}))}},P4zw:function(e,t,r){"use strict";r.r(t),r.d(t,"query",(function(){return le}));var n=r("q1tI"),a=r.n(n),c=r("lK4i"),i=r("Kkt6"),l=r("LSSd"),o=r("rulN"),u=r("Cj0F"),s=(r("2U1z"),r("GCOn")),d=r("asHU"),f={query:void 0,sha256Hash:"2f02c18e5e6498f2ad683b810bd953fd21d8ac251fccde02862f3adda0f25b9d",operationName:"SearchQuery"},m=r("qn5I"),v=function(){return Object(m.b)("div",{sx:{position:"fixed",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.12)",zIndex:9999,cursor:"pointer",justifyContent:"center",alignItems:"center",display:["-webkit-box","-ms-flexbox","-webkit-flex","flex"]}},Object(m.b)(s.o,null))},p=r("F57I"),h=function(e){var t=e.products;return a.a.createElement(a.a.Fragment,null,t.map((function(e,t){return a.a.createElement(p.default,{loading:0===t?"eager":"lazy",key:e.productId,product:e})})))},b=r("DUPK"),g=r("dvwI"),E=r("zCvC"),y=function(){return Object(n.useContext)(E.a).filters},O=function(e){var t,r,a,c,i=e.query,l=e.initialData,o=e.pageSize,u=void 0===o?10:o,s=y(),d=(r=i,a=function(e,t){var r,n;if(0!==e&&0===(null==t||null===(r=t.vtex.productSearch)||void 0===r||null===(n=r.products)||void 0===n?void 0:n.length))return null;var a=e*u,c=(e+1)*u-1;return Object.assign({},s,{from:a,to:c})},c={revalidateOnMount:!0,initialData:l&&[l],initialSize:2},Object(b.b)((function(e,t){var r=a(e,t);return JSON.stringify(r)}),(function(e){return Object(g.a)(Object.assign({},r,{variables:JSON.parse(e)}))}),c)),f=d.data,m=d.error,v=d.size,p=d.setSize,h=Object(n.useCallback)((function(){return p((function(e){return e+1}))}),[p]),E=Math.max(1,v-1);return{fetchMore:h,isLoadingMore:!f&&!m||!(!f||void 0!==f[E-1]),isReachingEnd:0===(null==f||null===(t=f[0])||void 0===t?void 0:t.vtex.productSearch.products.length)||!!(f&&f[E-1]&&f[E-1].vtex.productSearch.products.length<u),data:null==f?void 0:f.slice(0,E),error:m}},j=function(e){var t=e.initialData,r=e.columns,c=e.pageSize,i=Object(d.useIntl)().formatMessage,l=O({query:f,initialData:t,pageSize:c}),o=l.data,u=l.fetchMore,m=l.isLoadingMore,p=l.isReachingEnd,b=i({id:"search.page-list.more"}),g=i({id:"search.page-list.more.loading"});return o?a.a.createElement(n.Fragment,null,a.a.createElement(s.j,{variant:"search",columns:r},o.map((function(e,t){return a.a.createElement(h,{key:"summary-page-"+t,products:e.vtex.productSearch.products})}))),a.a.createElement(s.e,{variant:"loadMore",onClick:function(e){var t,r;null===(t=(r=e.target).blur)||void 0===t||t.call(r),u()},"aria-label":b,disabled:p||m},p?"":m?g:b)):a.a.createElement(v,null)},x=r("YuT6"),C=r("/FmD"),w=function(e){var t=e.children,r=e.variant,n="searchControls"+(r?"."+r:"");return a.a.createElement(s.d,{variant:n},t)},k=function(e){var t=e.totalCount,r=e.label,n=e.variant,c="searchControls"+(n?"."+n:"")+".totalCount";return a.a.createElement(s.d,{variant:c},a.a.createElement("span",null,t),r)},S=r("o0o1"),I=r.n(S),z=(r("otvA"),r("HaE+")),D=r("zLVn"),M=[["OrderByScoreDESC","searchControls.select.scoreDesc"],["OrderByPriceDESC","searchControls.select.priceDesc"],["OrderByPriceASC","searchControls.select.priceAsc"],["OrderByTopSaleDESC","searchControls.select.topSaleDesc"],["OrderByReviewRateDESC","searchControls.select.reviewRateDesc"],["OrderByNameDESC","searchControls.select.nameDesc"],["OrderByNameASC","searchControls.select.nameAsc"],["OrderByReleaseDateDESC","searchControls.select.releaseDateDesc"],["OrderByBestDiscountDESC","searchControls.select.bestDiscountDesc"]],B=function(e){var t=e.onChange,r=e["aria-label"],n=void 0===r?"Refine Search":r,c=e.formatLabel,i=e.variant,l=Object(D.a)(e,["onChange","aria-label","formatLabel","variant"]),o="searchControls"+(i?"."+i:"")+".select";return a.a.createElement(s.n,Object.assign({"aria-label":n,onChange:function(e){return t(e.target.selectedOptions[0].value)},variant:o},l),M.map((function(e){var t=e[0],r=e[1],n=c(r);return a.a.createElement("option",{label:n,key:t,value:t,"aria-label":n})})))},P=function(e){var t=e.variant,n=Object(d.useIntl)().formatMessage,c=y();return a.a.createElement(B,{variant:t,defaultValue:c.orderBy,onChange:function(){var e=Object(z.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(r.bind(null,"Ykmp"));case 2:e.sent.setSearchFilters(Object.assign({},c,{orderBy:t}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),formatLabel:function(e){return n({id:e})}})},R=function(e){var t=e.label,r=e.variant,n=Object(D.a)(e,["label","variant"]),c="searchControls"+(r?"."+r:"")+".filtersButton";return a.a.createElement(s.e,Object.assign({variant:c},n),t,a.a.createElement("svg",{fill:"none",width:"16",height:"16",viewBox:"0 0 17 17",className:" vtex-search-result-3-x-filterIcon",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a.a.createElement("use",{href:"#mpa-filter-settings",xlinkHref:"#mpa-filter-settings"},a.a.createElement("g",{id:"mpa-filter-settings"},a.a.createElement("path",{d:"M4 5V1",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),a.a.createElement("path",{d:"M4 16V14",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),a.a.createElement("path",{d:"M13 12V16",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),a.a.createElement("path",{d:"M13 1V3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),a.a.createElement("path",{d:"M4 14C5.65685 14 7 12.6569 7 11C7 9.34315 5.65685 8 4 8C2.34315 8 1 9.34315 1 11C1 12.6569 2.34315 14 4 14Z",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),a.a.createElement("path",{d:"M13 9C14.6569 9 16 7.65685 16 6C16 4.34315 14.6569 3 13 3C11.3431 3 10 4.34315 10 6C10 7.65685 11.3431 9 13 9Z",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})))))},L=Object(n.lazy)((function(){return Promise.all([r.e(1),r.e(41)]).then(r.bind(null,"tDoj"))})),q=function(e){var t=e.variant,r=Object(D.a)(e,["variant"]),c=Object(d.useIntl)().formatMessage,i=Object(n.useState)(!1),l=i[0],o=i[1],u=Object(n.useCallback)((function(){return o(!l)}),[l]);return a.a.createElement(a.a.Fragment,null,a.a.createElement(R,{label:c({id:"searchControls.filters"}),variant:t,onClick:u}),l?a.a.createElement(n.Suspense,{fallback:null},a.a.createElement(L,Object.assign({},r,{toggle:u,isOpen:l}))):null)},N=function(e){var t=e.data,r=Object(d.useIntl)().formatMessage,n=t.vtex.productSearch.recordsFiltered;return a.a.createElement(w,null,a.a.createElement(q,t.vtex.facets),a.a.createElement(P,null),a.a.createElement(k,{label:r({id:"searchControls.totalCount"},{count:n}),totalCount:n}))},T=function(e){var t=e.children;return Object(m.b)("div",{sx:{display:"flex",flexWrap:"wrap"}},t)},F=function(e){var t=e.children;return Object(m.b)("aside",{sx:{display:["none","block"],flexGrow:1,flexBasis:"sidebar",width:230}},t)},A=function(e){var t=e.children;return Object(m.b)("div",{sx:{flexGrow:99999,flexBasis:0,minWidth:300,ml:[0,"3rem"]}},t)},U=Object(n.lazy)((function(){return r.e(1).then(r.bind(null,"hUr7"))})),H=[2,2,3,4],V=function(e){var t,r,n=e.data,c=null!==(t=null===(r=n.vtex.facets)||void 0===r?void 0:r.breadcrumb)&&void 0!==t?t:[];return a.a.createElement(x.a,null,a.a.createElement(u.a,{breadcrumb:c,type:"SEARCH"}),a.a.createElement(T,null,a.a.createElement(F,null,a.a.createElement(C.a,{device:"desktop",fallback:null},a.a.createElement(U,{isActive:function(e){return e<5},variant:"desktop"}))),a.a.createElement(A,null,a.a.createElement(N,{data:n}),a.a.createElement(j,{initialData:n,columns:H}))))},Z=r("XtZ1"),J=new Array(10).fill(!0),_=function(){return a.a.createElement(x.a,null,a.a.createElement(s.d,{sx:{marginTop:"1.5rem",marginBottom:"1rem"}},a.a.createElement(Z.a,{width:"500px",height:"45px"})),a.a.createElement(T,null,a.a.createElement(F,null,a.a.createElement(C.a,{device:"desktop",fallback:null},a.a.createElement(Z.a,{width:"230px",height:"1000px"}))),a.a.createElement(A,null,a.a.createElement(s.d,{sx:{my:"32px"}},a.a.createElement(Z.a,{height:"33px"})),a.a.createElement(s.j,{my:4,gap:3,columns:[2,2,3,5]},J.map((function(e,t){return a.a.createElement(Z.a,{key:t+".preview",height:"470px"})}))))))},Q=function(){return null},X=r("Hhlv"),G=function(e){var t=e.data;return a.a.createElement(X.a,{title:t.vtex.productSearch.titleTag})},K=r("9vKe"),W=r("+l+a"),Y=r("y/BZ"),$=r("YwZP"),ee="OrderByScoreDESC",te=function(e){var t=Object($.useLocation)();return Object(n.useMemo)((function(){var r,n,a,c,i,l,o=t.search,u=t.pathname,s=new URLSearchParams(o),d=null!==(r=null==e?void 0:e.query)&&void 0!==r?r:function(e){var t="/"===e[0]?1:0,r="/"===e[e.length-1]?e.length-1:e.length;return e.slice(t,r)}(u),f=null!==(n=null!==(a=null==e?void 0:e.map)&&void 0!==a?a:s.get("map"))&&void 0!==n?n:function(e){var t=e.split("/");return 1===t.length?"ft":new Array(t.length).fill("c").join(",")}(d),m=null!==(c=null==e?void 0:e.selectedFacets)&&void 0!==c?c:function(e,t){for(var r=t.split(","),n=e.split("/"),a=[],c=0;c<r.length;c++)a.push({key:r[c],value:n[c]});return a}(d,f),v=f.startsWith("ft")?d.split("/")[0]:void 0;return{orderBy:null!==(i=null!==(l=null==e?void 0:e.orderBy)&&void 0!==l?l:s.get("orderBy"))&&void 0!==i?i:ee,selectedFacets:m,fullText:v,query:d,map:f}}),[e,t])},re=r("bTm8"),ne={query:void 0,sha256Hash:"c853364c908f50af7accea5d23245e878d6c3ede1440e794a4e67fa50e73255b",operationName:"SearchPageQuery"},ae=function(){return r.e(46).then(r.bind(null,"J4yM"))},ce=Object(n.lazy)(ae),ie=function(e){var t=e.pageContext,r=e.data,n=t.staticPath,c=te(t),i=Object(W.a)(Object.assign({},ne,{variables:Object.assign({},c,{staticPath:!0}),suspense:!0,initialData:n?r:void 0})).data;return Object(Y.b)((function(){var e,t,r;return[{type:"vtex:pageView",data:{pageUrl:window.location.href,pageTitle:document.title,referrer:document.referrer,accountName:"marinbrasil"}},{type:"vtex:internalSiteSearchView",data:{accountName:"marinbrasil",pageUrl:window.location.href,pageTitle:document.title,referrer:document.referrer,term:null!==(e=c.fullText)&&void 0!==e?e:"",results:null!==(t=null==i||null===(r=i.vtex.productSearch)||void 0===r?void 0:r.recordsFiltered)&&void 0!==t?t:0}}]}),re.c?"":window.location.href),a.a.createElement(E.b,{filters:c,data:i},a.a.createElement(V,Object.assign({},e,{data:i})),a.a.createElement(G,Object.assign({},e,{data:i})),a.a.createElement(K.a,{fallback:a.a.createElement(Q,null),preloader:ae},a.a.createElement(ce,null)))},le="2157118453";t.default=function(e){var t=e.pageContext.staticPath;return a.a.createElement(o.a,null,a.a.createElement(l.a,{isPrerendered:t,fallback:a.a.createElement(_,null)},a.a.createElement(c.a,{fallback:function(e){return a.a.createElement(i.a,{error:e})}},a.a.createElement(ie,e))))}},QR2T:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("q1tI"),a=r("RwTr"),c=function(e,t,r){return Object(n.useMemo)((function(){return Object(a.a)(e,t,r)}),[e])}},S8uJ:function(e,t,r){"use strict";var n=r("q1tI"),a=r.n(n),c=r("hbN7"),i=r("9I8U"),l=r("izhR"),o=function(e){var t=e.children,r=e.variant;return a.a.createElement(l.b,{variant:"offer."+r+".soldout"},t)},u=function(e){var t=e.variant,r=e.children;return a.a.createElement(l.b,{variant:"offer."+t+".listPrice"},r)},s=function(e){var t=e.children,r=e.variant;return 0===t?null:a.a.createElement(l.b,{variant:"offer."+r+".discountBadge"},t)},d=function(e){var t=e.children,r=e.variant;return a.a.createElement(l.b,{variant:"offer."+r+".price"},t)},f=function(e){var t=e.children,r=e.variant;return a.a.createElement(l.b,{variant:"offer."+r+".installments"},t)},m=r("zMLq");t.a=function(e){var t=e.commercialOffer,r=e.commercialOffer.maxInstallments[0],n=e.variant,v=void 0===n?"offer":n,p=Object(c.a)().format,h=Object(m.a)(t),b=h.price,g=h.discount,E=function(e){var t=e.listPrice,r=e.price,n=Object(c.a)().format;return r===t?null:n(t)}(t),y=function(e){var t=e.price,r=e.listPrice;return 0===r?0:100-Math.round(t/r*100)}(t);return a.a.createElement(i.a,{variant:v},0===b?a.a.createElement(o,{variant:v},"Ops! Este produto esgotou :("):a.a.createElement(a.a.Fragment,null,a.a.createElement(l.b,{variant:"offer."+v+".discountBox"},a.a.createElement(u,{variant:v},E),a.a.createElement(s,{variant:v},y?"-"+y+"%":y)),a.a.createElement(d,{variant:v},p(b),a.a.createElement("span",null," ","à vista ",g>0?"("+g+"% off)":null)),a.a.createElement(f,{variant:v},r?a.a.createElement(a.a.Fragment,null,a.a.createElement("span",null," ou ",r.numberOfInstallments,"x"),a.a.createElement("strong",null," ",p(r.value)," sem juros")):null)))}},TZ6P:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r("o0o1"),a=r.n(n),c=(r("otvA"),r("HaE+")),i=r("q1tI"),l=r("y/BZ"),o=r("7yIz"),u=r("lXiQ"),s=function(e,t){var r=Object(i.useState)(!1),n=r[0],s=r[1],d=Object(u.a)(e),f=Object(o.a)(),m=n||!e||!(null==f?void 0:f.value)||!d;return{disabled:m,onClick:function(){var r=Object(c.a)(a.a.mark((function r(n){var c,i;return a.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.preventDefault(),!m){r.next=3;break}return r.abrupt("return");case 3:return c={id:Number(e.itemId),quantity:t,seller:d.sellerId},r.prev=4,s(!0),i=[c],r.next=9,f.addToCart(i);case 9:Object(l.a)({type:"vtex:addToCart",data:{items:i}}),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(4),console.error(r.t0);case 15:return r.prev=15,s(!1),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[4,12,15,18]])})));return function(e){return r.apply(this,arguments)}}(),loading:n}}},Xojf:function(e,t,r){"use strict";var n=r("izhR"),a=r("q1tI"),c=r.n(a);t.a=function(e){var t=e.loading,r=void 0===t?"lazy":t,a=e.height,i=e.width,l=e.variant,o=e.src,u=e.alt;return c.a.createElement(n.a,{variant:"productSummary."+l+".image",src:o,ratio:1,loading:r,alt:u,width:i,height:a})}},hbN7:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var c=arguments[t],i=0,l=c.length;i<l;i++,a++)n[a]=c[i];return n};function a(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var r;return(r={})[e]=t[e],r}))):e;var t})))}var c=function(e,t){return void 0===t&&(t={}),function(){for(var r,c=[],i=0;i<arguments.length;i++)c[i]=arguments[i];var l=a(c),o=l&&t[l];return o||(o=new((r=e).bind.apply(r,n([void 0],c))),l&&(t[l]=o)),o}},i=r("3Pd9"),l=r("asHU"),o=c(Intl.NumberFormat),u=function(){var e=Object(i.a)()[0],t=Object(l.useIntl)().locale;return o(t,{currency:e,style:"currency"})}},lXiQ:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){var t;return null==e||null===(t=e.sellers)||void 0===t?void 0:t[0]}},zCvC:function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return i}));var n=r("q1tI"),a=r.n(n),c=Object(n.createContext)(void 0);c.displayName="SearchContext";var i=function(e){var t=e.children,r=e.filters,n=e.data;return a.a.createElement(c.Provider,{value:{filters:r,data:n}},t)}},zMLq:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){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}}function l(e,t,r){return(l=i()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var c=new(Function.bind.apply(e,a));return r&&n(c,r.prototype),c}).apply(null,arguments)}function o(e){var t="function"==typeof Map?new Map:void 0;return(o=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return l(e,arguments,c(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),n(a,e)})(e)}function u(e,t){u=function(e,t){return new i(e,void 0,t)};var r=o(RegExp),n=RegExp.prototype,c=new WeakMap;function i(e,t,n){var a=r.call(this,e,t);return c.set(a,n||c.get(e)),a}function l(e,t){var r=c.get(t);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return a(i,r),i.prototype.exec=function(e){var t=n.exec.call(this,e);return t&&(t.groups=l(t,this)),t},i.prototype[Symbol.replace]=function(e,t){if("string"==typeof t){var r=c.get(this);return n[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+r[t]})))}if("function"==typeof t){var a=this;return n[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!=typeof e[e.length-1]&&e.push(l(e,a)),t.apply(this,e)}))}return n[Symbol.replace].call(this,e,t)},u.apply(this,arguments)}r.d(t,"a",(function(){return d}));var s=u(/Boleto ([0-9]*)%/,{percentage:1}),d=function(e){var t,r,n,a,c=e.teasers,i=e.price,l=null===(n=(null!==(t=null===(r=c[0])||void 0===r?void 0:r.name)&&void 0!==t?t:"").match(s))||void 0===n||null===(a=n.groups)||void 0===a?void 0:a.percentage,o=Number(null!=l?l:"0");return{discount:o,price:i*(100-o)/100}}}}]);
  //# sourceMappingURL=component---faststore-packages-gatsby-theme-vtex-src-templates-search-tsx-127a0ebb5e5720678db3.js.map