PageSourceSearch

https://www.givexindia.com/_next/static/chunks/6527-abdb0481f0d30e70.js

js givexindia.com collected 2026-10-02 01:32:03 UTC 11,150 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6527],{56527:(e,l,t)=>{t.r(l),t.d(l,{default:()=>j});var i=t(95155);t(66766);var r=t(53311),a=t(93550),s=t(10238),n=t(14186),o=t(40646),d=t(48570);t(1460),t(12108);var c=t(35695),u=t(13568),x=t(31445),m=t(34540),p=t(12115),b=t(84329);t(32513);var f=t(49789),h=t(76408),g=t(36790),v=t(20156);let w={Bronze:1,Silver:2,Gold:7,Platinum:15};function j(){var e,l,t,j,N;let[y,_]=(0,p.useState)(null),k=(0,c.useRouter)(),A=(0,m.wA)(),z=(0,g.A)(),C=(0,x.CB)(),P=(0,m.d4)(e=>null==e?void 0:e.subscription),S=(0,m.d4)(e=>null==e?void 0:e.auth),M=[...(null==P||null==(e=P.SubscriptionPlanList)?void 0:e.r)||[]].sort((e,l)=>((null==l?void 0:l.price)||0)-((null==e?void 0:e.price)||0)),E=null==S||null==(t=S.user)||null==(l=t.r)?void 0:l.plan,[L,B]=(0,p.useState)(!1),G=e=>{let l=null==e?void 0:e.match(/<(p|li|h[1-6])[^>]*?>.*?<\/\1>/gi);return l?null==l?void 0:l.map(e=>e.trim()):[]},H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/<[^>]*>/g," ").replace(/&nbsp;/gi," ").replace(/\s+/g," ").trim().toLowerCase()},O=(e,l)=>{let t=H((null==l?void 0:l.display_text)||"");return G(e).filter(e=>!t||H(e)!==t)},R=e=>{if(!(null==e?void 0:e.display_text))return"";let l="".concat(e.label||"Limited Time",":");return e.display_text.replace(l,"").trim()},I=async()=>{var e,l;let t={};C&&(null==S||null==(l=S.user)||null==(e=l.r)?void 0:e.id)&&(t.user_id=S.user.r.id),await A((0,b.HN)(t))};(0,p.useEffect)(()=>{I()},[C,null==S||null==(N=S.user)||null==(j=N.r)?void 0:j.id]);let T=e=>{if(!C){(0,u.default)("\uD83D\uDD12 Please log in to subscribe to a plan"),k.push("/login");return}if((null==E?void 0:E.status)==2||(null==E?void 0:E.status)==5||(null==E?void 0:E.status)==9){_(e),B(!0);return}(0,v.UQ)({event:"add_to_cart",currency:"INR",value:(null==e?void 0:e.display_price)||(null==e?void 0:e.price),items:[{item_id:null==e?void 0:e.id,item_name:null==e?void 0:e.title,price:(null==e?void 0:e.display_price)||(null==e?void 0:e.price),quantity:1}]});let l={};for(let[t,i]of Object.entries(e))null!=i&&!1!==i&&""!==i&&"object"!=typeof i&&(l[t]=i);l.welcome_offer_id&&!l.welcome_offer_id.startsWith("offer_")&&delete l.welcome_offer_id;let t=new URLSearchParams(l).toString();k.push("/subscription/checkout?".concat(t))},U={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.5,ease:"easeOut"}}};return(0,i.jsxs)("div",{className:"py-10 flex items-center flex-col justify-center bg-background overflow-visible",children:[(0,i.jsx)("div",{className:"w-full px-4 md:px-8",children:(0,i.jsx)(h.P.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},initial:"hidden",animate:"visible",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 items-stretch",children:(null==P?void 0:P.loading)?Array.from({length:4}).map((e,l)=>(0,i.jsx)("div",{className:"relative w-full bg-[rgba(21,22,50,1)] rounded-3xl p-1 text-center text-white flex flex-col justify-between shadow-lg animate-pulse h-full",children:(0,i.jsxs)("div",{className:"bg-[rgba(21,22,50,1)] rounded-[22px] p-6 h-full flex flex-col",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,i.jsx)("div",{className:"h-6 bg-white/10 rounded w-20 mb-2"}),(0,i.jsx)("div",{className:"h-8 bg-white/10 rounded w-24"})]}),(0,i.jsx)("div",{className:"space-y-4 flex-1",children:[1,2,3,4,5].map(e=>(0,i.jsx)("div",{className:"h-4 bg-white/10 rounded w-full"},e))}),(0,i.jsx)("div",{className:"h-12 bg-white/10 rounded w-full mt-8"})]})},l)):null==M?void 0:M.map((e,l)=>{var t,c;let u=(null==E?void 0:E.subscription_plan_id)===(null==e?void 0:e.id),x=(null==e?void 0:e.title)==="Gold",m=(null==e?void 0:e.has_welcome_offer)===!0,p=(null==e?void 0:e.has_marketing_discount)===!0&&Number((null==e?void 0:e.compare_at_price)||0)>Number((null==e?void 0:e.price)||0),b=m||p,f=m?e.original_price:e.compare_at_price,g=m?e.display_price:e.price,v=(null==e?void 0:e.is_eligible_for_discount)===!0,j=(null==e?void 0:e.bonus_coins)||w[null==e?void 0:e.title]||0,N=(null==e||null==(t=e.limited_time_tag)?void 0:t.active)?e.limited_time_tag:null;return(0,i.jsxs)(h.P.div,{variants:U,whileHover:{y:-10,transition:{duration:.3}},className:"relative group h-full",children:[(0,i.jsx)("div",{className:"absolute inset-0 rounded-3xl bg-gradient-to-b ".concat(x?"from-blue-600 via-purple-500 to-pink-600":"from-blue-600/50 via-purple-500/30 to-pink-600/50"," opacity-0 group-hover:opacity-100 transition-opacity duration-300 blur-sm")}),(0,i.jsx)("div",{className:"relative h-full w-full rounded-3xl p-[1px] transition-all duration-300\n                      ".concat(u?"bg-gradient-to-b from-blue-600 to-pink-600":x?"bg-gradient-to-tr from-blue-600/40 via-purple-500/40 to-pink-600/40 hover:from-blue-600 hover:to-pink-600":"bg-white/10 hover:bg-white/20","\n                      "),children:(0,i.jsxs)("div",{className:"bg-[rgba(21,22,50,1)] h-full w-full rounded-[23px] p-6 flex flex-col relative",children:[x&&(0,i.jsx)("div",{className:"absolute -top-4 left-0 right-0 flex justify-center z-50",children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-blue-600 to-pink-600 blur-md opacity-70 animate-pulse"}),(0,i.jsxs)("span",{className:"relative bg-gradient-to-r from-blue-600 to-pink-600 text-white text-xs font-bold px-4 py-1.5 rounded-full shadow-lg flex items-center gap-1 uppercase tracking-wider",children:[(0,i.jsx)(r.A,{size:12,className:"text-yellow-200"}
1),"Best Value"]})]})}),(0,i.jsxs)("div",{className:"flex flex-col items-center mb-7 mt-4",children:[(0,i.jsx)("h3",{className:"text-2xl font-bold mb-2 ".concat(x?"text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-pink-600":"text-white"),children:null==e?void 0:e.title}),z&&j>0&&(0,i.jsxs)("div",{className:"mb-3 relative flex flex-col items-center",children:[(0,i.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-amber-500/15 to-orange-500/15 border border-amber-400/30 relative overflow-hidden",children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-amber-400/10 to-transparent animate-pulse"}),(0,i.jsx)(a.A,{size:16,className:"text-amber-400 relative z-10 flex-shrink-0"}),(0,i.jsxs)("span",{className:"relative z-10 flex items-center gap-1",children:[(0,i.jsx)("span",{className:"text-xl font-black text-transparent bg-clip-text bg-gradient-to-r from-amber-300 to-orange-400",children:j}),(0,i.jsx)("span",{className:"text-xs font-semibold text-amber-300/80 uppercase tracking-wide",children:"X-Coins"})]})]}),(0,i.jsxs)("div",{className:"text-[10px] text-amber-300/80 text-center font-medium mt-1",children:["(",j," Mega Giveaway ",1==j?"Entry":"Entries",")"]})]}),(0,i.jsxs)("div",{className:"flex items-baseline gap-1",children:[b?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"text-lg text-white/40 line-through",children:["₹",Math.floor(f)]}),(0,i.jsxs)("span",{className:"text-3xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-green-400 to-emerald-400",children:["₹",Math.floor(g)]})]}):(0,i.jsxs)("span",{className:"text-3xl font-bold text-white",children:["₹",Math.floor(e.price)]}),(0,i.jsxs)("span",{className:"text-white/50 text-sm",children:["/",null==e?void 0:e.period]})]}),p&&!m&&(0,i.jsxs)("div",{className:"mt-5 w-full max-w-[255px] rounded-2xl border border-green-500/30 bg-gradient-to-r from-green-500/20 to-emerald-500/15 px-4 py-4 text-center shadow-lg",children:[(0,i.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500/15 border border-emerald-400/30 px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-emerald-300",children:[(0,i.jsx)(s.A,{size:12}),"Special Price"]}),(0,i.jsxs)("p",{className:"mt-3 text-[13px] font-extrabold leading-tight text-emerald-100",children:["₹",Math.floor(f)," value plan now at ₹",Math.floor(g)]})]}),m&&(0,i.jsxs)("div",{className:"mt-5 w-full max-w-[255px] rounded-2xl border px-4 py-4 text-center shadow-lg ".concat(N?"border-amber-300/30 bg-gradient-to-br from-amber-400/15 via-emerald-400/10 to-blue-500/10 shadow-amber-500/10":"border-green-500/30 bg-gradient-to-r from-green-500/20 to-emerald-500/15"),children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,i.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500/15 border border-emerald-400/30 px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-emerald-300",children:[(0,i.jsx)(s.A,{size:12}),"Welcome Offer"]}),N&&(0,i.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-amber-400/15 border border-amber-300/30 px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-amber-200",children:[(0,i.jsx)(n.A,{size:12}),N.label]})]}),(null==N?void 0:N.display_text)&&(0,i.jsx)("div",{className:"mt-3 rounded-xl border border-amber-200/20 bg-black/15 px-3 py-2.5",children:(0,i.jsx)("p",{className:"text-[13px] font-extrabold leading-tight text-amber-100",children:R(N)})}),v&&(0,i.jsxs)("span",{className:"mt-3 inline-flex items-center gap-1 rounded-full bg-yellow-500/15 border border-yellow-400/25 px-3 py-1 text-[11px] font-semibold text-yellow-300",children:[(0,i.jsx)(o.A,{size:12}),"You are eligible"]}),C&&!v&&(0,i.jsx)("span",{className:"mt-3 inline-flex items-center rounded-full bg-white/5 border border-white/10 px-3 py-1 text-[11px] font-medium text-white/45",children:"You are not eligible for this offer"}),(0,i.jsxs)("p",{className:"mt-2 text-white/50 text-xs text-center leading-tight max-w-[210px] mx-auto",children:["₹",Math.floor(e.original_price),"/month from 3rd month onwards"]})]})]}),(0,i.jsx)("div",{className:"flex-1 space-y-4 mb-8",children:null==(c=O(null==e?void 0:e.description,N))?void 0:c.map((e,l)=>(0,i.jsxs)("div",{className:"flex items-start gap-3 text-sm text-white/80 group/item",children:[(0,i.jsx)(o.A,{className:"w-5 h-5 flex-shrink-0 ".concat(x?"text-pink-600":"text-blue-600"," group-hover:scale-110 transition-transform duration-300")}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e},className:"leading-tight"})]},l))}),(0,i.jsx)("button",{onClick:()=>!u&&T(e),disabled:u,className:"w-full py-4 rounded-xl font-bold text-sm uppercase tracking-wider transition-all duration-300 relative overflow-hidden cursor-pointer group/btn\n                            ".concat(u?"common-bg-gradient text-white/80 curs
1or-not-allowed opacity-70":x?"bg-gradient-to-r from-blue-600 to-pink-600 text-white shadow-lg shadow-blue-500/20 hover:shadow-pink-500/40":"bg-[#3563E6] text-white hover:bg-blue-700","\n                          "),children:(0,i.jsxs)("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[u?"Current Plan":(null==y?void 0:y.id)===(null==e?void 0:e.id)?"Selected":"Choose Plan",!u&&(0,i.jsx)(d.A,{className:"w-4 h-4 group-hover/btn:translate-x-1 transition-transform"})]})})]})})]},l)})})}),(0,i.jsx)(f.A,{open:L,onClose:()=>B(!1),onConfirm:()=>{B(!1),_(null)},currentPlan:E,selectedplan:y})]})}}}]);

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.