1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97349],{75851:function(e,o,t){"use strict";t.d(o,{Z:function(){return CouponModal_CouponModal}});var i=t(14710),a=t(42081),n=t(89690),s=t(50390),l=t(98304),r=t(42897),d=t(55191),c=t(9518),p=t(31248),h=t(13308),u=t(83259),_=t.n(u),C=t(57885),m=t(42025),x=t(21028),v=t(48075),M=t(54058),f=t(56493),g=t(29201),j=t.n(g);let L="requested_coupons",Z={coupons:[]},getSessionRequestedCoupons=()=>{let e=window.sessionStorage.getItem(L);return e?JSON.parse(e):Z},isCouponsRequested=e=>{var o;let t=getSessionRequestedCoupons();return null==t?void 0:null===(o=t.coupons)||void 0===o?void 0:o.includes(e)},pushSessionRequestedCoupons=e=>{let o=getSessionRequestedCoupons();o.coupons.push(e),window.sessionStorage.setItem(L,JSON.stringify(o))};var w=t(92957),S=t(87010),A=t(28149),T=t(80755),b=t(25486),N=t.n(b),children_CashbackModalities=e=>{let{className:o,cashbackModalitiesData:t}=e,a=_()(N().CashbackModalities,o);return(0,i.jsxs)("div",{className:a,children:[(0,i.jsxs)("div",{className:N().ListHeading,children:[(0,i.jsx)(w.ZP,{type:"little",width:S.zm?18:12,className:N().BrandIcon}),(0,i.jsx)(x.Z,{modifier:v.zc.SMALL,tag:v.rb.SPAN,className:N().Title,children:"Cashbacks da loja"})]}),(0,i.jsx)("ul",{className:N().List,children:null==t?void 0:t.map(e=>{let{type:o,label:t,value:a}=e,n="".concat(o,"-").concat(t.trim());return(0,i.jsx)("li",{className:N().ListItem,children:(0,i.jsx)(A.Z,{beforeIcon:"secondary"===o?"Lightning":"Union",variant:o,value:a,size:T.I.SMALL,children:t})},n)})})]})};let CouponCode=e=>{let{code:o,url:t,onCopyCode:n}=e,[s,l]=(0,a.useState)(!1),handleCopyClick=e=>{var t,i;null===(i=navigator)||void 0===i||null===(t=i.clipboard)||void 0===t||t.writeText(o),l(!0),n&&n(e),setTimeout(()=>l(!1),3e3)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:_()(j().CouponCode,{[j().ShowingAlert]:s}),role:"button",tabIndex:0,onClick:handleCopyClick,children:[(0,i.jsx)(p.Z,{}),(0,i.jsx)(x.Z,{modifier:v.zc.SMALL,children:o}),s&&(0,i.jsx)("div",{className:j().CopiedAlert,children:"C\xf3digo copiado"})]}),(0,i.jsx)(m.Z,{href:t,target:"_blank",rel:"nofollow noopener",beforeIcon:(0,i.jsx)(h.Z,{}),size:{sm:"small",md:"medium"},onClick:handleCopyClick,children:"Copiar e ir \xe0 loja"})]})};
1var CouponModal_CouponModal=e=>{let{id:o,code:t,name:p,usedCount:u,description:g,sellerLogo:L,endDate:Z,storePath:w,leadPath:S,sellerName:A,cashbackRate:T,isMultipleCashback:b,cashbackModalitiesData:N,isOffer:O,discountValueType:B,value:k,rules:y,onClose:I,onGetCoupon:R,onCopyCode:V,onGetOffer:W,onButtonClick:D}=e,[H,X]=(0,a.useState)(!1),[q,E]=(0,a.useState)(!1),z=b?M.mg.UP_TO_CASHBACK:M.mg.CASHBACK_FOR_YOU;return(0,a.useEffect)(()=>{X(!1)},[e]),(0,a.useEffect)(()=>{E(isCouponsRequested(o))},[o]),(0,i.jsx)(C.Z,{hash:"couponModal-".concat(o),callbacks:{onClose:I},children:(0,i.jsxs)("div",{className:j().CouponModal,children:[(0,i.jsx)("div",{className:j().ModalPullBar,onClick:()=>{if(window){var e,o;null===(o=window)||void 0===o||null===(e=o.history)||void 0===e||e.replaceState(null,""," "),window.dispatchEvent(new HashChangeEvent("hashchange"))}I&&I()}}),(0,i.jsxs)("div",{className:j().DiscountWrapper,children:[(0,i.jsx)(x.Z,{modifier:v.Fc.X_SMALL,md:v.TO.SMALL,children:p||(0,n.Z)(B,k)}),!!T&&(0,i.jsx)(f.Z,{type:z,value:T?Math.round(1e4*T)/100:void 0})]}),(0,i.jsxs)("div",{className:j().MerchantWrapper,children:[(0,i.jsxs)(x.Z,{className:j().MerchantTitle,modifier:v.zc.X_SMALL,md:v.TO.X_SMALL,children:[O?(0,i.jsx)("span",{className:j().offer,children:"Oferta"}):(0,i.jsx)("span",{children:"C\xf3digo"})," ","⢠",A]}),(0,i.jsx)(x.Z,{className:j().MerchantDescription,modifier:v.Sr.X_SMALL,md:v.hp.SMALL,children:g}),(0,i.jsx)("img",{loading:"lazy",src:L,alt:A,decoding:"async"})]}),(0,i.jsxs)("div",{className:j().CouponStats,children:[u&&(0,i.jsxs)(x.Z,{modifier:v.Sr.X_SMALL,md:v.hp.X_SMALL,children:[(0,i.jsx)(l.Z,{})," ",u," usados"]}),Z&&(0,i.jsxs)(x.Z,{modifier:v.Sr.X_SMALL,md:v.hp.X_SMALL,children:[(0,i.jsx)(r.Z,{height:12}),(0,s.Z)(Z)]})]}),q&&(0,i.jsxs)("div",{className:j().InfoWrapper,children:[(0,i.jsx)(d.Z,{}),(0,i.jsx)(x.Z,{modifier:v.hp.X_SMALL,children:O?"Para garantir o cashback \xe9 preciso estar logado no Buscap\xe9 e finalizar o pedido na nova aba aberta.":"Copie o c\xf3digo e cole no carrinho de compras antes de finalizar seu pedido na loja."})]}),b&&!!N&&(0,i.jsx)(children_CashbackModalities,{className:j().CashbackModalities,cashbackModalitiesData:N}),(0,i.jsxs)("div",{className:j().CtaWrapper,children:[!O&&(0,i.jsx)(i.Fragment,{children:t&&(0,i.jsx)(CouponCode,{code:t,url:w,onCopyCode:e=>{pushSessionRequestedCoupons(o),R&&R(o),V&&V(t),D&&D(e)}})}),O&&(0,i.jsx)(m.Z,{beforeIcon:(0,i.jsx)(h.Z,{}),modifier:q?"secondary":"primary",onClick:e=>{pushSessionRequestedCoupons(o),W&&W(o),D&&D(e)},className:_()(j().SeeOfferButton,{[j().WhiteButton]:q}),href:S,target:"_blank",rel:"nofollow noopener",size:{sm:"small",md:"medium"},children:q?"Ver ofertas novamente":"Ver ofertas"})]}),y&&(0,i.jsxs)("div",{className:_()(j().RulesWrapper,{[j().Opened]:H}),children:[(0,i.jsxs)("div",{className:j().Title,role:"button",tabIndex:0,onClick:()=>{X(!H)},children:[(0,i.jsx)(c.Z,{}),(0,i.jsx)(x.Z,{modifier:"MobileHeadingXs",children:"Ver regras"})]}),H&&(0,i.jsx)(x.Z,{children:y})]})]})})}},28149:function(e,o,t){"use strict";t.d(o,{Z:function(){return OptionChip_OptionChip}});var i=t(14710);t(42081);var a=t(83259),n=t.n(a),s=t(48075),l=t(21028),r=t(79409),d=t.n(r),c=t(80755),p=t(15018),helpers_getIcon=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,t=arguments.length>2?arguments[2]:void 0;return t?"string"==typeof t?(0,i.jsx)(p.Z,{className:e,width:o,height:o,name:t}):t:null},OptionChip_OptionChip=e=>{let{as:o,beforeIcon:t,afterIcon:a,onClick:r,testId:p,className:h,children:u,value:_,variant:C="primary",size:m=c.I.NORMAL,...x}=e,v=o||c.B,M=helpers_getIcon(d().BeforeIcon,12,t),f=helpers_getIcon(d().AfterIcon,16,a),g=m===c.I.SMALL?s.$s.X_SMALL:s.cj.SMALL,j=m===c.I.SMALL?s.zc.X_SMALL:s.tB.SMALL;return(0,i.jsxs)(v,{className:n()(d().OptionChip,{[d().Secondary]:"secondary"===C,[d().Clicable]:r||x.href},h),onClick:r&&(e=>{null==r||r(e)}),...x,children:[(0,i.jsxs)("span",{className:d().Text,children:[M,"string"==typeof u?(0,i.jsx)(l.Z,{tag:s.rb.SPAN,modifier:g,children:u}):u]}),(0,i.jsxs)("span",{className:d().Value,children:[_&&(0,i.jsx)(l.Z,{tag:s.rb.SPAN,modifier:j,children:_}),f]})]})}},80755:function(e,o,t){"use strict";t.d(o,{B:function(){return i},I:function(){return a}});let i="div",a={SMALL:"small",NORMAL:"normal"}},1090:function(e,o,t){"use strict";t.d(o,{Z:function(){return Tooltip_Tooltip}});var i=t(14710);t(42081);var a=t(83259),n=t.n(a),s=t(59633),l=t.n(s),Tooltip_Tooltip=e=>{let{className:o,arrowAt:t="top",children:a}=e;if(!a)return null;let s=n()(l().Tooltip,o),r=n()(l().Triangle,{[l().AtTop]:"top"===t,[l().AtRight]:"right"===t,[l().AtBottom]:"bottom"===t,[l().AtLeft]:"left"===t});return(0,i.jsxs)("span",{className:s,children:[(0,i.jsx)("span",{className:l().TextWrapper,children:a}),(0,i.jsx)("span",{className:r})]})}},42897:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:(0,i.jsxs)("g",{id:"icon",fillRule:"evenodd",clipRule:"evenodd",children:[(0,i.jsx)("path",{id:"icon",d:"M7 1.75
1a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5ZM.25 7a6.75 6.75 0 1 1 13.5 0A6.75 6.75 0 0 1 .25 7Z"}),(0,i.jsx)("path",{id:"icon",d:"M7 2.75a.75.75 0 0 1 .75.75v2.75h2.75a.75.75 0 0 1 0 1.5H7A.75.75 0 0 1 6.25 7V3.5A.75.75 0 0 1 7 2.75Z"})]})}));o.Z=n},41397:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:(0,i.jsx)("path",{id:"icon",d:"M12.726 1.273a1.33 1.33 0 0 0-1.88 0L7 5.12 3.153 1.273a1.33 1.33 0 0 0-1.88 1.88L5.12 7l-3.847 3.847a1.33 1.33 0 1 0 1.88 1.88L7 8.88l3.847 3.847a1.33 1.33 0 0 0 1.88-1.88L8.88 7l3.846-3.847c.52-.519.52-1.36 0-1.88Z"})}));o.Z=n},31248:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 21",...e,children:(0,i.jsx)("path",{id:"icon",fillRule:"evenodd",d:"M12 21H2a1.934 1.934 0 0 1-2-2V9a1.934 1.934 0 0 1 2-2h4V3a1.934 1.934 0 0 1 2-2h10a1.934 1.934 0 0 1 2 2v10a1.935 1.935 0 0 1-2 2h-4v4a1.935 1.935 0 0 1-2 2ZM2 9v10h10v-4H8a1.935 1.935 0 0 1-2-2V9H2Zm6-6v10h10V3H8Z",clipRule:"evenodd"})}));o.Z=n},42625:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 12",...e,children:(0,i.jsxs)("g",{id:"icon",children:[(0,i.jsx)("path",{fillRule:"evenodd",d:"M.333 1.333C.333.965.632.667 1 .667h12c.368 0 .667.298.667.666v3.334a.667.667 0 0 1-.667.666.667.667 0 1 0 0 1.334c.368 0 .667.298.667.666v3.334a.667.667 0 0 1-.667.666H1a.667.667 0 0 1-.667-.666V7.333c0-.368.299-.666.667-.666a.667.667 0 1 0 0-1.334.667.667 0 0 1-.667-.666V1.333ZM1.667 2v2.114a2 2 0 0 1 0 3.772V10h10.666V7.886a2 2 0 0 1 0-3.772V2H1.667Z",clipRule:"evenodd"}),(0,i.jsx)("path",{d:"M6.333 4.333a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm3.334 3.334a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),(0,i.jsx)("path",{fillRule:"evenodd",d:"M9.471 3.529c.26.26.26.682 0 .942l-4 4a.667.667 0 0 1-.942-.942l4-4c.26-.26.682-.26.942 0Z",clipRule:"evenodd"})]})}));o.Z=n},98304:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:(0,i.jsx)("path",{d:"M.693 8.238a.667.667 0 0 0 0 .944l2.826 2.825c.26.261.684.26.944-.002l.469-.471-3.295-3.296a.667.667 0 0 0-.944 0Zm14.612-4.244a.67.67 0 0 0-.947 0l-6.593 6.6-2.355-2.36a.669.669 0 1 0-.946.945l2.83 2.83c.26.26.682.26.943 0l7.068-7.068a.67.67 0 0 0 0-.947Zm-3.77.942a.667.667 0 1 0-.943-.943L6.82 7.767l.946.94 3.77-3.77Z"})}));o.Z=n},46387:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{id:"icon",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10c-.006 5.52-4.48 9.994-10 10Zm-8-9.828A8 8 0 1 0 4 12v.172ZM14 16a1 1 0 0 1-1 1h-.5a1.5 1.5 0 0 1-1.5-1.5v-2a.5.5 0 0 0-.5-.5.5.5 0 0 1-.5-.5V12a1 1 0 0 1 1-1h.5a1.5 1.5 0 0 1 1.5 1.5v2a.5.5 0 0 0 .5.5.5.5 0 0 1 .5.5v.5Zm-1-8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})}));o.Z=n},55191:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:(0,i.jsx)("path",{id:"icon",d:"M6.993 13.667A6.667 6.667 0 1 1 7.007.333a6.667 6.667 0 0 1-.014 13.334ZM1.667 7.115a5.333 5.333 0 1 0 0-.115v.115Zm6 2.552a.667.667 0 1 1-1.334 0 .667.667 0 0 1 1.334 0Zm0-2.667a.667.667 0 0 1-1.334 0V4.333a.667.667 0 0 1 1.334 0V7Z"})}));o.Z=n},9518:function(e,o,t){"use strict";var i=t(14710),a=t(42081);let n=(0,a.memo)(e=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 11",...e,children:(0,i.jsx)("path",{id:"icon",d:"M7.94 10.009a1.5 1.5 0 0 0 2.121 0l6.895-6.895a1.5 1.5 0 1 0-2.121-2.12L9 6.832 3.167.993a1.5 1.5 0 1 0-2.121 2.12L7.94 10.01Z"})}));o.Z=n},89690:function(e,o,t){"use strict";t.d(o,{Z:function(){return helpers_discountType}});var helpers_discountType=(e,o,t)=>"percentage"===e?"".concat(o,"% OFF"):t||"Desconto"},50390:function(e,o,t){"use strict";t.d(o,{Z:function(){return helpers_expirationDate}});var helpers_expirationDate=e=>{let o=new Date,t=new Date(e),i=t.getTime()-o.getTime(),a=Math.round(i/864e5);return a<=0?"Expira hoje":1===a?"Expira amanh\xe3":a>1?"Expira em ".concat(a," dias"):void 0}},3485:function(e,o,t){"use strict";var i=t(1659),a=t(53492),n=t(68651);o.Z=e=>{let o=(0,n.v)(e)||"";return{loginUrl:(0,i.Z)(o),logoutUrl:(0,a.Z)(o)}}},29201:function(e){e.exports={highlightLayout:"CouponModal_highlightLayout__vfhhX",CouponModal:"CouponModal_CouponModal__r9riP",DiscountWrapper:"C
1ouponModal_DiscountWrapper__jEjpN",MerchantWrapper:"CouponModal_MerchantWrapper__IPxuu",InfoWrapper:"CouponModal_InfoWrapper__bnbR_",RulesWrapper:"CouponModal_RulesWrapper__Nc1p2",Button:"CouponModal_Button__NS4er",CouponStats:"CouponModal_CouponStats__OH9qc",CashbackModalities:"CouponModal_CashbackModalities__UEUG_",CtaWrapper:"CouponModal_CtaWrapper__UB9Mr",ModalPullBar:"CouponModal_ModalPullBar__KRYDK",MerchantTitle:"CouponModal_MerchantTitle__Owo2t",offer:"CouponModal_offer__Ut8fe",MerchantDescription:"CouponModal_MerchantDescription__kQJG0",WhiteButton:"CouponModal_WhiteButton__Y5y8k",Opened:"CouponModal_Opened__V1w8p",Title:"CouponModal_Title__iGvcD",SeeOfferButton:"CouponModal_SeeOfferButton___rx4C",SeeOfferButtonUsed:"CouponModal_SeeOfferButtonUsed__g0Oys",CouponCode:"CouponModal_CouponCode__VNEtL",ShowingAlert:"CouponModal_ShowingAlert__5tqA8",CopiedAlert:"CouponModal_CopiedAlert__XST__"}},25486:function(e){e.exports={highlightLayout:"CashbackModalities_highlightLayout__gDSMO",CashbackModalities:"CashbackModalities_CashbackModalities__mWxFN",ListHeading:"CashbackModalities_ListHeading__T2GUo",BrandIcon:"CashbackModalities_BrandIcon__xNkC_",Title:"CashbackModalities_Title__rQMzJ",List:"CashbackModalities_List__21qsW",ListItem:"CashbackModalities_ListItem__OB4or"}},79409:function(e){e.exports={OptionChip:"OptionChip_OptionChip__Cs3vR",Clicable:"OptionChip_Clicable__bq5ll",Secondary:"OptionChip_Secondary__3huEG",BeforeIcon:"OptionChip_BeforeIcon__nVyti",Disabled:"OptionChip_Disabled__0yTKH",RemoveButton:"OptionChip_RemoveButton__ltNcb",Value:"OptionChip_Value__rBQoG",AfterIcon:"OptionChip_AfterIcon__OQIJV",Text:"OptionChip_Text__T3FOY"}},59633:function(e){e.exports={highlightLayout:"Tooltip_highlightLayout__TX9WG",Tooltip:"Tooltip_Tooltip__9Oor4",TextWrapper:"Tooltip_TextWrapper__S_bOV",Triangle:"Tooltip_Triangle__kOjsv",AtTop:"Tooltip_AtTop__46hyB",AtRight:"Tooltip_AtRight__CN0T8",AtBottom:"Tooltip_AtBottom__S4LZ_",AtLeft:"Tooltip_AtLeft__3JslR"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.