PageSourceSearch

https://jamaat.org/_next/static/chunks/6562.6818681667fa5343.js

js jamaat.org collected 2026-10-02 07:27:34 UTC 5,502 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6562],{6562:(e,t,a)=>{a.r(t),a.d(t,{DonationsSection:()=>u});var i=a(95155),r=a(49050),s=a(52619),n=a.n(s),l=a(35299),c=a(83457),o=a(52987),d=a(87531),m=a(98726),x=a(64801),p=a(22619);function u(e){let{config:t,locale:a,direction:s,sectionId:n}=e,o="rtl"===s,{data:x,isLoading:u,error:g}=(0,m.dj9)(),w=t.limit||3,b=t.title?o?t.title.ur:t.title.en:o?"عطیات":"Donations",j=t.subtitle?o?t.subtitle.ur:t.subtitle.en:o?"اپنے عطیات سے جماعت اسلامی کی سرگرمیوں میں مدد کریں":"Support our activities with your generous donations",v=(null==x?void 0:x.slice(0,w))||[],N=e=>new Intl.NumberFormat(o?"ur-PK":"en-US",{style:"currency",currency:"PKR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e),f=(null==x?void 0:x.reduce((e,t)=>e+t.amount,0))||0,k=(null==x?void 0:x.length)||0;return u?(0,i.jsx)(y,{sectionId:n,config:t,children:(0,i.jsx)("div",{className:"flex items-center justify-center py-20",children:(0,i.jsx)(l.A,{className:"w-8 h-8 animate-spin text-emerald-primary"})})}):g?(0,i.jsx)(y,{sectionId:n,config:t,children:(0,i.jsx)("div",{className:"container mx-auto px-4 md:px-6 lg:px-8 relative",children:(0,i.jsxs)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[(0,i.jsx)("h2",{className:(0,p.R_)(o,"sectionTitle",o?"mb-2":"mb-4"),children:b}),(0,i.jsx)("p",{className:(0,p.aV)(o,"text-charcoal/60 max-w-2xl mx-auto mb-8"),children:j}),(0,i.jsx)(h,{config:t,locale:a,isRTL:o})]})})}):(0,i.jsx)(y,{sectionId:n,config:t,children:(0,i.jsxs)("div",{className:"container mx-auto px-4 md:px-6 lg:px-8 relative",children:[(0,i.jsxs)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[(0,i.jsx)("h2",{className:(0,p.R_)(o,"sectionTitle",o?"mb-2":"mb-4"),children:b}),(0,i.jsx)("p",{className:(0,p.aV)(o,"text-charcoal/60 max-w-2xl mx-auto"),children:j})]}),(0,i.jsxs)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"grid grid-cols-2 gap-6 max-w-md mx-auto mb-12",children:[(0,i.jsxs)("div",{className:"bg-white rounded-[5px] p-6 text-center shadow-sm border border-gray-100",children:[(0,i.jsx)("p",{className:"text-3xl font-bold text-emerald-primary",children:N(f)}),(0,i.jsx)("p",{className:(0,p.aV)(o,"text-sm text-gray-500 mt-1"),children:o?"کل عطیات":"Total Raised"})]}),(0,i.jsxs)("div",{className:"bg-white rounded-[5px] p-6 text-center shadow-sm border border-gray-100",children:[(0,i.jsx)("p",{className:"text-3xl font-bold text-emerald-primary",children:k}),(0,i.jsx)("p",{className:(0,p.aV)(o,"text-sm text-gray-500 mt-1"),children:o?"عطیہ دہندگان":"Donors"})]})]}),v.length>0&&(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-12",children:v.map((e,t)=>(0,i.jsxs)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*t},className:"bg-white rounded-[5px] p-6 shadow-sm border border-gray-100",children:[(0,i.jsx)("div",{className:"w-12 h-12 bg-emerald-100 rounded-[5px] flex items-center justify-center mb-4",children:(0,i.jsx)(c.A,{className:"w-6 h-6 text-emerald-primary"})}),(0,i.jsx)("p",{className:"text-2xl font-bold text-emerald-primary mb-1",children:N(e.amount)}),(0,i.jsx)("span",{className:(0,d.cn)("inline-flex px-2 py-1 rounded-full text-xs font-medium","completed"===e.status?"bg-green-100 text-green-700":"pending"===e.status?"bg-yellow-100 text-yellow-700":"bg-gray-100 text-gray-700"),children:e.status}),(0,i.jsx)("p",{className:"text-sm text-gray-400 mt-2",children:new Date(e.createdAt).toLocaleDateString(o?"ur-PK":"en-US")})]},e.id))}),(0,i.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.5},className:"text-center",children:(0,i.jsx)(h,{config:t,locale:a,isRTL:o})})]})})}function h(e){var t,a;let{config:r,locale:s,isRTL:l}=e;return(0,i.jsxs)(n(),{href:(null==(t=r.cta)?void 0:t.link)||"/".concat(s,"/donate"),className:(0,p.aV)(l,"inline-flex items-center gap-2 px-8 py-4 bg-emerald-primary text-white rounded-full font-semibold text-lg","hover:bg-emerald-dark transition-colors duration-300 shadow-lg hover:shadow-xl"),children:[(0,i.jsx)(c.A,{className:"w-5 h-5"}),(null==(a=r.cta)?void 0:a.text)?l?r.cta.text.ur:r.cta.text.en:l?"عطیہ دیں":"Donate Now",(0,i.jsx)(o.A,{className:(0,d.cn)("w-5 h-5",l&&"rotate-180")}
1)]})}function y(e){let{sectionId:t,config:a,children:r}=e;return(0,i.jsxs)("section",{id:t,className:"py-20 md:py-32 bg-[#FAFBFC] relative overflow-hidden",style:{backgroundColor:a.backgroundColor},children:[(0,i.jsx)("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"radial-gradient(circle at 2px 2px, ".concat(x.zw," 1px, transparent 0)"),backgroundSize:"30px 30px"}}),(0,i.jsx)("div",{className:"relative",children:r})]})}},64801:(e,t,a)=>{a.d(t,{RE:()=>r,zw:()=>i});let i="var(--color-emerald-primary)";function r(e){return e<=0?"transparent":"color-mix(in srgb, var(--color-emerald-primary) ".concat(Math.round(100*e),"%, transparent)")}},83457:(e,t,a)=>{a.d(t,{A:()=>i});let i=(0,a(71847).A)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]])}}]);

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.