<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1657],{81657:function(e,s,r){r.r(s);var t=r(5152),a=r.n(t),l=r(41664),i=r.n(l),o=r(67294),n=r(98388),d=r(59192),c=r(44831),f=r(63945),u=r(7170),m=r(35842),h=r(92116),p=r(59702),g=r(16127),x=r(23210),b=r(60964),y=r(36323),w=r(86335),z=r(46092),N=r(52726),j=r(89454),I=r(85893);const k=a()((()=&gt;r.e(7861).then(r.bind(r,67861))),{loadableGenerated:{webpack:()=&gt;[67861]}}),v=a()((()=&gt;r.e(1299).then(r.bind(r,31299))),{loadableGenerated:{webpack:()=&gt;[31299]}}),O=a()((()=&gt;r.e(3093).then(r.bind(r,33093))),{loadableGenerated:{webpack:()=&gt;[33093]}}),S=a()((()=&gt;r.e(7027).then(r.bind(r,27027))),{loadableGenerated:{webpack:()=&gt;[27027]}});s.default=e=&gt;{let{authors:s=[],cardTitleAs:r="span",categoryId:t,categoryName:a=null,className:l,gaEventCategory:P,likesCount:T,offerComments:C,offerId:Z,offerImagePriority:E=!1,offerIsHighlight:U,offerOldPrice:V=null,offerPhoto:D,offerPrice:L,offerPriceType:H,offerPublished:_,offerSlug:A,offerStatusName:F,offerTags:G=[],offerTitle:B,offerUserVisibility:Y,showFilterCategoriesDropdown:M=!1,showFooter:R,storeDomain:$,storeName:q,subcategoryId:K=null,subcategoryName:W=null,userId:X,userName:J,userPhoto:Q,onImageClick:ee=z.noop,onTitleClick:se=z.noop}=e;const{0:re,1:te}=(0,o.useState)(!1),{isOfferBlocked:ae,onUnloggedUserTriesOpenExclusiveOffer:le}=(0,p.Z)(),{isLoggedIn:ie}=(0,N.a)(),{isLg:oe}=(0,g.Z)({shouldUpdateAtInitialLoad:!1});return(0,I.jsx)(i(),{href:(0,y.HY)(A),prefetch:!1,passHref:!0,children:(0,I.jsxs)(m.default,{className:(0,n.m6)("flex h-full flex-col justify-between rounded-2",l),onClick:e=&gt;{ae(Y)&amp;&amp;((0,x.qP)({action:"click__offer__exclusive",category:P,logged:ie}),e.preventDefault(),le(A))},onMouseOut:()=&gt;{oe&amp;&amp;te(!1)},onMouseOver:()=&gt;{oe&amp;&amp;te(!0)},children:[(0,I.jsxs)("div",{className:"relative flex size-full flex-row md:mb-1 md:flex-col",children:[(0,I.jsxs)("div",{className:"order-0 flex justify-center border-neutral-high-200 pl-2 pt-4 dark:border-neutral-low-300 md:order-unset md:w-full md:border-b md:pr-4 lg:pl-4 lg:pt-2",children:[(0,w.Ko)({offerIsHighlight:U,offerStatusName:F,offerUserVisibility:Y})&amp;&amp;(0,I.jsx)(v,{className:"left-1 top-2 z-10 md:top-auto lg:left-4",offerIsHighlight:U,offerStatusName:F,offerUserVisibility:Y}),M&amp;&amp;(0,I.jsx)(k,{buttonVisibilityClassName:!re&amp;&amp;"md:invisible",categoryId:t,categoryName:a,className:"absolute right-2 top-2 z-10",gaEventCategory:P,isInternationalOffer:(0,w.U8)(G),isParentFocused:re,subcategoryId:K,subcategoryName:W}),(0,I.jsx)(h.default,{alt:(0,b.kE)(B),className:(0,n.dV)("size-[120px] rounded-4 md:size-[200px]",F===j.Z.STATUSES.FINISHED&amp;&amp;"opacity-30"),grayscale:F===j.Z.STATUSES.FINISHED,height:120,loading:E?null:"lazy",priority:E,sizes:"(max-width: 768px) 120px, 200px",src:(0,b.o9)(D,120),srcSet:`\n            ${(0,b.o9)(D,180)} 180w,\n            ${(0,b.o9)(D,300)} 300w,\n          `,width:120,onClick:ee})]}),(0,I.jsxs)("div",{className:"flex size-full flex-col justify-between pl-4 pr-2 pt-4 md:mb-2 md:mt-2 md:pl-2 md:pr-3 md:pt-0 lg:px-4",children:[(0,I.jsx)(f.Z,{className:(0,n.dV)("order-2 mt-2 md:order-unset",0===(null===G||void 0===G?void 0:G.length)&amp;&amp;"md:mb-8"),finished:F===j.Z.STATUSES.FINISHED,primaryInfo:(0,w.k7)(L,H),secondaryInfo:(0,w.Ik)(V,H),size:"size3"}),G.length&gt;0&amp;&amp;(0,I.jsx)(S,{className:"order-1 mt-1 md:order-unset md:flex",offerTags:G}),(0,I.jsx)(d.Z,{className:(0,n.dV)("order-0 relative h-18 md:order-unset md:min-h-18 lg:min-h-[2.825rem]",re?G.length&gt;0?"-top-10":"-top-8":"top-0",re?"overflow-y-visible":"overflow-y-hidden"),children:(0,I.jsx)(u.default,{as:r,className:(0,n.dV)("line-clamp-2 max-w-4/5 break-words dark:text-neutral-high-100 md:max-w-none",re&amp;&amp;"line-clamp-3"),onClick:se,children:B})}),(0,I.jsxs)(d.Z,{className:"order-4 mb-3 mt-2 flex-row justify-between md:mb-0",full:!0,children:[(0,I.jsx)(u.default,{as:"span",className:"block max-w-[65%] truncate whitespace-nowrap md:max-w-[70%]",size:"size2",bold:!0,children:q||$}),(0,I.jsxs)("div",{className:"flex items-center",children:[(0,I.jsx)(c.Z,{className:"text-neutral-low-100 dark:text-neutral-high-200",name:"messages",size:"size3"}),(0,I.jsx)(u.default,{className:"ml-1 mr-2 text-neutral-low-100 dark:text-neutral-high-200 md:mr-0",size:"size2",bold:!0,suppressHydrationWarning:!0,children:C})]})]})]})]}),R&amp;&amp;(0,I.jsx)(O,{authors:s,gaEventCategory:P,likesCount:T,offerComments:C,offerId:Z,offerPublished:_,userId:X,userName:J,userPhoto:Q})]})})}},59702:function(e,s,r){var t=r(5152),a=r.n(t),l=r(11163),i=r(67294),o=r(36323),n=r(51068),d=r(52726),c=r(1593),f=r(89454);const u=a()((()=&gt;r.e(3472).then(r.bind(r,83472))),{ssr:!1,loadableGenerated:{webpack:()=&gt;[83472]}});s.Z=()=&gt;{const e=(0,l.useRouter)(),{isLoggedIn:s,loadingLoggedInUser:r}=(0,d.a)(),{showDialog:t}=(0,c.Z)();return{isOfferBlocked:(0,i.useCallback)((e=&gt;e!==f.Z.VISIBILITY_STATUS.ALL&amp;&amp;e!==f.Z.VISIBILITY_STATUS.UNLOGGED_ONLY&amp;&amp;(!r&amp;&amp;!s)),[r,s]),onUnloggedUserTriesOpenExclusiveOffer:(0,i.useCallback)((r=&gt;{const a=(0,n.$h)(e.asPath),l=(0,o.HY)(r),i=a===l;if(s){if(i)return;e.push(l)}else t(u,{greetingsMessage:"Esta \xe9 uma oferta exclusiva para Promolovers! Cadastre-se gratuitamente para poder aproveitar.",onSuccess:()=&gt;{if(i)return;const s=(0,o.FX)(a,(0,o.HY)(r));e.push(s,void 0,{shallow:!0})}})}),[r,s,e])}}},63945:function(e,s,r){var t=r(59499),a=r(4730),l=r(98388),i=r(60487),o=r(64924),n=r(7170),d=r(85893);const c=["className","currency","finished","locale","primaryInfo","secondaryInfo","size"];function f(e,s){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);s&amp;&amp;(t=t.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),r.push.apply(r,t)}return r}function u(e){for(var s=1;s&lt;arguments.length;s++){var r=null!=arguments[s]?arguments[s]:{};s%2?f(Object(r),!0).forEach((function(s){(0,t.Z)(e,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))}))}return e}const m={size1:"size2",size2:"size4",size3:"size5",large:"size1"},h={size1:"size3",size2:"size5",size3:"size5",large:"size1"},p={size1:"size1",size2:"size1",size3:"size2",large:"size1"},g=e=&gt;e.substring(0,e.search(/\s+/)),x=e=&gt;e.substring(e.search(/\s+/)+1,e.length);s.Z=e=&gt;{let{className:s,currency:r="BRL",finished:t=!1,locale:f="pt-BR",primaryInfo:b,secondaryInfo:y,size:w="size2"}=e,z=(0,a.Z)(e,c);const N=m[w],j=h[w],I=p[w],[k,v]=[b,y].map((e=&gt;(0,i.hj)(e)?(0,i.cq)({number:e,currency:r,locale:f}):e));return(0,d.jsxs)("div",u(u({className:(0,l.m6)("flex w-min flex-col items-start",s)},z),{},{children:[v&amp;&amp;(0,d.jsx)(n.default,{as:"span",className:(0,l.dV)("whitespace-nowrap",y&amp;&amp;"text-neutral-low-200 dark:text-neutral-high-400",y&amp;&amp;(0,i.hj)(y)&amp;&amp;"line-through"),size:I,children:v}),(0,i.hj)(b)?(0,d.jsxs)("div",{className:"items-center",children:[(0,d.jsx)(o.Z,{as:"span",className:(0,l.dV)("pr-1",t?"text-neutral-low-400 dark:text-neutral-high-200":"text-primary-400 dark:text-primary-200"),size:j,children:g(k)}),(0,d.jsx)(o.Z,{as:"span",className:(0,l.dV)("whitespace-nowrap",t?"text-neutral-low-400 dark:text-neutral-high-200":"text-primary-400 dark:text-primary-200"),size:N,children:x(k)})]}):(0,d.jsx)(o.Z,{as:"span",className:(0,l.dV)("whitespace-nowrap",t?"text-neutral-low-400 dark:text-neutral-high-200":"text-primary-400 dark:text-primary-200"),size:N,children:k})]}))}}}]);
//# sourceMappingURL=1657.fefe6245a65521dd.js.map</pre></body></html>