PageSourceSearch

https://gettopdiscounts.com/_next/static/chunks/2274.619c4affb9ad4437.js

js gettopdiscounts.com collected 2026-10-05 06:50:10 UTC 7,775 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2274,2592],{52274:(e,l,r)=>{r.r(l),r.d(l,{default:()=>d});var n=r(95155),t=r(15239);r(12115);var o=r(58966),i=r(49450),a=r(52754),u=r(72592),s=r(70852);let d=e=>{var l,r,d,c,f,p,h,m,x,v,g,b,w,_,j,k,y,N,$,F,C,A,q,U,H,I,S,T,z,D,R,B,E,G=e.product,Q=(e.companyId,e.awaited_p_id,e.mer_slug_type),W=e.mer_slug,L=e.domain,M=(e.ads_campaign,e.onOfferClick),O=(0,o.wA)(G.merchant,W,Q),P=(null==G||null==(l=G.offer)?void 0:l.original_price)?parseFloat(null==G||null==(r=G.offer)?void 0:r.original_price):0,J=(null==G||null==(d=G.offer)?void 0:d.sale_price)?parseFloat(null==G||null==(c=G.offer)?void 0:c.sale_price):0,K=P>0&&J>0?Math.round((P-J)/P*100):null,V=(0,o.m5)((null==G||null==(f=G.offer)?void 0:f.offer_title)||(null==G||null==(p=G.offer)?void 0:p.offer_detail),K),X=(null==G||null==(m=G.offer)||null==(h=m.offer_type)?void 0:h.name)==="product";return(0,n.jsxs)("div",{className:"w-full mb-4 group/capsule relative select-none",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-neutral-50/60 rounded-tl-2xl rounded-br-2xl transition-all duration-200 group-hover/capsule:scale-[1.001] -z-10"}),(0,n.jsxs)("div",{className:"relative w-full bg-white border border-neutral-200/70 rounded-tl-2xl rounded-br-2xl p-4 md:p-5 transition-all duration-200 group-hover/capsule:border-neutral-400 group-hover/capsule:shadow-[0_10px_28px_rgba(0,0,0,0.02)]",children:[(0,n.jsxs)("div",{className:"w-full flex items-center justify-between gap-4 mb-3",children:[(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(a.A,{endDate:null==G||null==(x=G.offer)?void 0:x.end_date})}),V&&(0,n.jsx)("span",{className:"bg-neutral-950 text-[#FF5A00] text-[9px] font-black tracking-wider uppercase px-2 py-0.5 rounded transition-transform duration-200 group-hover/capsule:scale-105",children:V})]}),(0,n.jsxs)("div",{className:"flex items-center gap-4 w-full mb-3",children:[(null==G||null==(v=G.offer)?void 0:v.product_image)&&(0,n.jsx)("div",{className:"relative shrink-0 w-28 h-28 rounded-xl border border-neutral-200/80 bg-neutral-50 overflow-hidden transition-all duration-200 group-hover/capsule:bg-white group-hover/capsule:border-neutral-300",children:(0,n.jsx)(t.default,{src:(0,o.Uh)(L,null==G||null==(g=G.offer)?void 0:g.product_image,""),alt:X?`${(null==G||null==(b=G.offer)?void 0:b.offer_title)||"Product"} image`:`${null==G||null==(w=G.merchant)?void 0:w.merchant_name} Deals and Coupons`,fill:!0,unoptimized:!0,className:"object-contain mix-blend-multiply p-2 transition-transform duration-300 group-hover/capsule:scale-105",sizes:"112px"})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0 space-y-1.5 self-center",children:[(0,n.jsx)("h4",{className:"text-left text-neutral-800 text-sm md:text-base font-bold tracking-tight leading-snug line-clamp-2 transition-colors duration-200 group-hover/capsule:text-neutral-950",children:(0,o.rH)(null==G||null==(j=G.offer)||null==(_=j.offer_title)?void 0:_.replaceAll("_"," "))}),(X||(null==G||null==(k=G.offer)?void 0:k.product_image)!==null)&&(0,n.jsxs)("div",{className:"flex items-baseline gap-2 pt-0.5",children:[(null==G||null==(y=G.offer)?void 0:y.sale_price)&&J>0&&(0,n.jsxs)("span",{className:"font-extrabold text-neutral-950 text-lg md:text-xl tracking-tight transition-colors duration-200 group-hover/capsule:text-[#FF5A00]",children:[(0,o.Qn)(null==G||null==(N=G.offer)?void 0:N.currency),null==G||null==($=G.offer)?void 0:$.sale_price]}),(null==G||null==(F=G.offer)?void 0:F.original_price)&&P>0&&(0,n.jsxs)("span",{className:"text-neutral-400 text-[11px] font-semibold line-through tracking-wide decoration-neutral-200",children:[(0,o.Qn)(null==G||null==(C=G.offer)?void 0:C.currency),null==G||null==(A=G.offer)?void 0:A.original_price]})]})]})]}),(0,n.jsx)("div",{className:"w-full border-t border-neutral-100/90 my-3"}),(0,n.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-center justify-between gap-3 pt-0.5",children:[(0,n.jsx)("div",{className:"text-left text-[11px] md:text-xs font-bold text-neutral-400 hover:text-[#FF5A00] transition-colors cursor-pointer underline decoration-neutral-200 hover:decoration-[#FF5A00] underline-offset-4 shrink-0",children:(0,n.jsx)(s.default,{domain:L,imageSrc:null==G||null==(q=G.offer)?void 0:q.product_image,merchantHref:O,offer:null==G?void 0:G.offer,type:"anch
1or",merchantImg:null==G||null==(U=G.merchant)?void 0:U.merchant_logo})}),(0,n.jsx)("div",{className:"flex items-center justify-center max-h-6 overflow-hidden shrink-0",children:(null==G||null==(H=G.offer)?void 0:H.unique_id)&&(0,n.jsx)("div",{className:"flex items-center justify-center [&_span]:hidden [&_p]:hidden [&_h4]:hidden [&_a]:flex [&_a]:items-center",children:(0,n.jsx)(u.default,{offerUrl:`/${null==G||null==(I=G.offer)?void 0:I.url}`,offerTitle:null==G||null==(S=G.offer)?void 0:S.offer_title,merchantHref:O,unique_id:null==G||null==(T=G.offer)?void 0:T.unique_id,domain:L})})}),(0,n.jsx)("div",{className:"min-w-[125px] sm:min-w-[145px] w-full sm:w-auto shrink-0",children:(null==G||null==(z=G.offer)?void 0:z.coupon_code)?(0,n.jsx)("button",{onClick:()=>M(G,O),"aria-label":"Show coupon code",style:{background:"none",border:"none",padding:0,cursor:"pointer",width:"100%"},children:(0,n.jsx)(i.default,{unique_id:null==G||null==(D=G.offer)?void 0:D.unique_id,outUrl:null==G||null==(R=G.offer)?void 0:R.url,merchantHref:O,domain:L,customClass:"relative flex items-center justify-center p-[1px] rounded-full border border-dashed border-neutral-300 hover:border-neutral-950 bg-white cursor-pointer w-full group/btn transition-colors duration-200",children:(0,n.jsx)("div",{className:"bg-neutral-950 group-hover/btn:bg-[#FF5A00] text-white group-hover/btn:text-neutral-950 font-extrabold text-[11px] uppercase tracking-wider w-full rounded-full flex items-center justify-center py-2 px-3 transition-colors duration-200",children:"Show Coupon"})})}):(0,n.jsx)("button",{onClick:()=>M(G,O),"aria-label":X?"Buy now":"Get deal",style:{background:"none",border:"none",padding:0,cursor:"pointer",width:"100%"},children:(0,n.jsx)(i.default,{unique_id:null==G||null==(B=G.offer)?void 0:B.unique_id,outUrl:null==G||null==(E=G.offer)?void 0:E.url,merchantHref:O,domain:L,customClass:"flex items-center justify-center bg-neutral-950 hover:bg-[#FF5A00] text-white hover:text-white text-[11px] font-extrabold uppercase tracking-wider rounded-full py-2.5 px-4 transition-all duration-200 w-full text-center shadow-xs",children:(0,n.jsx)("span",{children:X?"Buy Now":"Get Deal"})})})})]})]})]})}},72592:(e,l,r)=>{r.r(l),r.d(l,{default:()=>u});var n=r(95155),t=r(58966),o=r(15239),i=r(52619),a=r.n(i);r(12115);let u=e=>{var l=e.offerUrl,r=e.offerTitle,i=e.domain;e.merchantHref,e.unique_id;var u=`https://${i}`,s=(null==l?void 0:l.startsWith("/"))?l:`/${l}`,d=encodeURIComponent(`${u}${s}`),c=encodeURIComponent(r),f=[{name:"Facebook",icon:"facebook.png",href:`https://www.facebook.com/sharer/sharer.php?u=${d}`},{name:"Twitter",icon:"twitter.png",href:`https://x.com/intent/tweet?url=${d}&text=${c}`},{name:"WhatsApp",icon:"whatsapp.png",href:`https://api.whatsapp.com/send?text=${c}%20${d}`},{name:"LinkedIn",icon:"linkedin.png",href:`https://www.linkedin.com/sharing/share-offsite/?url=${d}`},{name:"Telegram",icon:"telegram.png",href:`https://t.me/share/url?url=${d}&text=${c}`}];return(0,n.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem"},children:f.map(e=>(0,n.jsx)(a(),{rel:"nofollow sponsored noopener noreferrer",href:e.href,target:"_blank",className:"link",style:{borderRadius:"50%",display:"flex"},children:(0,n.jsx)(o.default,{src:(0,t.Uh)(i,`/shared-assets/social/${e.icon}`,""),alt:`Share on ${e.name}`,width:20,height:20})},e.name))})}}}]);
2//# sourceMappingURL=2274.619c4affb9ad4437.js.map

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.