PageSourceSearch

https://www.letslocalise.com/_next/static/chunks/67356.b48741ea96e0e64d.js

js letslocalise.com collected 2026-10-10 00:24:01 UTC 13,205 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67356],{62607:function(e,n,t){t.d(n,{BL:function(){return a},Dj:function(){return o},Gv:function(){return u},To:function(){return d},Vb:function(){return i},dU:function(){return c},me:function(){return l},tU:function(){return s},v3:function(){return r}});let s="\n	query papListing($qf: Object, $adopted: Boolean, $sortBy: Object, $viewIndex: Int, $viewSize: Int) {\n		papListing(qf: $qf, adopted: $adopted, sortBy: $sortBy, viewIndex: $viewIndex, viewSize: $viewSize) {\n			resultList {\n        papId\n        title\n        statusId\n        endDate\n        uploadedContents {\n          cdnUrl\n          fileType\n        }\n        party {\n          schoolDetails {\n            schoolId\n            schoolName\n          }\n        }\n      }\n		}\n	}\n",i="\n	query parListing($qf: Object, $adopted: Boolean, $sortBy: Object, $viewIndex: Int, $viewSize: Int) {\n		parListing(qf: $qf, adopted: $adopted, sortBy: $sortBy, viewIndex: $viewIndex, viewSize: $viewSize) {\n      resultList {\n        title\n        parId\n        statusId\n        endDate\n        uploadedContents {\n          cdnUrl\n          fileType\n        }\n        party {\n          schoolDetails {\n            schoolName\n            schoolId\n          }\n          businessDetails {\n            businessName\n            businessId\n          }\n        }\n      }\n		}\n	}\n",l="\n	query pamListing($qf: Object, $adopted: Boolean, $sortBy: Object, $viewIndex: Int, $viewSize: Int) {\n		pamListing(qf: $qf, adopted: $adopted, sortBy: $sortBy, viewIndex: $viewIndex, viewSize: $viewSize) {\n      resultList {\n        title\n        pamId\n        statusId\n        endDate\n        uploadedContents {\n          cdnUrl\n          fileType\n        }\n        party {\n          schoolDetails {\n            schoolName\n            schoolId\n          }\n          businessDetails {\n            businessName\n            businessId\n          }\n        }\n      }\n		}\n	}\n",a="\n	query internshipListing($qf: Object, $adopted: Boolean, $viewIndex: Int, $viewSize: Int) {\n		internshipListing(qf: $qf, adopted: $adopted, viewIndex: $viewIndex, viewSize: $viewSize) {\n      resultList {\n        title\n        internshipId\n        statusId\n        endDate\n        party {\n          schoolDetails { schoolName }\n        }\n        uploadedContents {\n          fileType\n          cdnUrl\n        }\n      }\n		}\n	}\n",o="\n  query ($first: Int, $qf: Object) {\n    listAdoptions(first: $first, qf: $qf) {\n      edges {\n        node {\n          partyDetails {\n            schoolDetails {\n              schoolName\n              schoolId\n              logoContent {\n                cdnUrl\n              }\n              party {\n                address {\n                  city\n                  state\n                }\n              }\n            }\n          }\n        }\n      }\n      totalCount\n    }\n  }\n",r="\n  query getFollowers($qf: Object)  {\n    getFollowers(qf: $qf) {\n      edges {\n        node {\n          following\n          partyId\n          followingPartyId\n          followingPartyDetails {\n            partyType\n            schoolDetails {\n              schoolId\n              schoolName\n              schoolType\n              logoContent {\n                cdnUrl\n              }\n              adoptedByDetails {\n                adoptedByPartyDetails {\n                  businessDetails {\n                    businessName\n                  }\n                }\n              }\n            }\n            businessDetails {\n              businessId\n              businessName\n              businessType\n              logoContent {\n                cdnUrl\n              }\n            }\n            userDetails {\n              name\n              profilePicContent {\n                cdnUrl\n              }\n            }\n          }\n        }\n      }\n      totalCount\n    }\n  }\n",d="\n	query getBusinessMetrics {\n		getBusinessMetrics {\n			resultValue\n		}\n	}\n",c="\n	query schoolList(\n		$first: Int\n		$last: Int\n		$after: String\n		$before: String\n		$q: String\n		$qf: Object\n	) {\n		schoolList(\n			first: $first\n			last: $last\n			after: $after\n			before: $before\n			q: $q\n			qf: $qf\n		) {\n			totalCount\n			pageInfo {\n				endCursor\n				hasNextPage\n			}\n			edges {\n				cursor\n				node {\n					schoolId\n					schoolName\n					party {\n						address {\n							city\n							state\n						}\n					}\n					logoContent {\n						cdnUrl\n						name\n						id\n					}\n				}\n			}\n		}\n	}\n",u="\n	query listGspProgram (\n    $first: Int\n    $last: Int\n    $after: String\n    $before: String\n    $q: String\n    $qf: Object\n  ) {\n    listGspProgram(\n      first: $first\n      last: $last\n      after: $after\n      before: $before\n      q: $q\n      qf: $qf\n    ) {\n      pageInfo {\n        endCursor\n        hasNextPage\n        hasPreviousPage\n        startCursor\n      }\n      edges {\n        node {\n          programId\n          title\n          statusId\n          uploadedContents {\n            cdnUrl\n            fileType\n          }\n        }\n      }\n    }\n  }\n"},67356:function(e,n,t){t.r(n);var s=t(57437),i=t(2265),l=t(99376),a=t(56068),o=t(93795),r=t(84154),d=t(11140),c=t(22744),u=t
1(1373),p=t(62607);let g={red:{bar:"bg-rose-300",headerBg:"bg-rose-50",iconBg:"bg-rose-100",iconText:"text-rose-600",linkText:"text-rose-600",dot:"bg-rose-400"},green:{bar:"bg-emerald-300",headerBg:"bg-emerald-50",iconBg:"bg-emerald-100",iconText:"text-emerald-600",linkText:"text-emerald-600",dot:"bg-emerald-400"},purple:{bar:"bg-purple-300",headerBg:"bg-purple-50",iconBg:"bg-purple-100",iconText:"text-purple-600",linkText:"text-purple-600",dot:"bg-purple-400"},orange:{bar:"bg-orange-300",headerBg:"bg-orange-50",iconBg:"bg-orange-100",iconText:"text-orange-600",linkText:"text-orange-600",dot:"bg-orange-400"}};n.default=e=>{let{businessId:n}=e,t=(0,l.useRouter)(),[v,h]=(0,i.useState)([]),[m,x]=(0,i.useState)([]),[b,f]=(0,i.useState)([]),[y,N]=(0,i.useState)(!0),[$,w]=(0,i.useState)(!0),[I,j]=(0,i.useState)(!0),q=()=>{N(!0),(0,u.Bq)(p.tU,{viewSize:3,viewIndex:0,qf:{AND:[{OR:[{statusId:"PAP_ACTIVE"}]},{OR:[{endDate:{gte:(0,a.t)(new Date,{hours:23,minutes:59,seconds:59,milliseconds:0})}}]}]}}).then(e=>{var n,t;return h((null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.papListing)||void 0===n?void 0:n.resultList)||[])}).finally(()=>N(!1)),w(!0),(0,u.Bq)(p.Vb,{viewSize:3,viewIndex:0,qf:{AND:[{OR:[{statusId:"PAR_ACTIVE"}]},{OR:[{endDate:{gte:(0,a.t)(new Date,{hours:23,minutes:59,seconds:59,milliseconds:0})}}]},{OR:[{partyId:{not:n}}]},{OR:[{parOwnerPartyType:"SCHOOL"}]}]}}).then(e=>{var n,t;return x((null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.parListing)||void 0===n?void 0:n.resultList)||[])}).finally(()=>w(!1)),j(!0),(0,u.Bq)(p.BL,{viewSize:3,viewIndex:0,qf:{AND:[{OR:[{statusId:"INT_ACTIVE"}]},{OR:[{endDate:{gte:(0,a.t)(new Date,{hours:23,minutes:59,seconds:59,milliseconds:0})}}]}]}}).then(e=>{var n,t;return f((null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.internshipListing)||void 0===n?void 0:n.resultList)||[])}).finally(()=>j(!1))},D=(0,i.useRef)((0,u.Rm)(q)).current;(0,i.useEffect)(()=>{n&&D()},[n,D]);let B=()=>(0,s.jsx)("div",{className:"space-y-4 animate-pulse",children:[void 0,void 0,void 0,void 0].map((e,n)=>(0,s.jsxs)("div",{className:"grid gap-2 grid-cols-[8px_auto_20px] items-center",children:[(0,s.jsx)("div",{className:"w-2 h-2 rounded-sm bg-gray-300"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4"}),(0,s.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]}),(0,s.jsx)("div",{className:"w-4 h-4 bg-gray-300 rounded-sm"})]},n))}),L=(e,n,i,l)=>(null==e?void 0:e.length)===0?(0,s.jsx)("div",{className:"text-gray-500 text-center",children:"No data found!"}):null==e?void 0:e.map((e,a)=>{var o,r;let d=u.g_[null==e?void 0:e.statusId];return(0,s.jsxs)("div",{className:"grid gap-4 grid-cols-[8px_auto_20px] items-center cursor-pointer hover:bg-blue-50 border hover:border-blue-200 rounded-md p-2",onClick:()=>t.push(l(e)),children:[(0,s.jsx)("div",{className:"w-2 h-2 rounded-sm ".concat(null!==(r=null===(o=g[n])||void 0===o?void 0:o.dot)&&void 0!==r?r:"bg-slate-400")}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"font-semibold text-base line-clamp-1",children:null==e?void 0:e.title}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:i(e)}),d&&(0,s.jsx)("div",{className:"mt-1",children:(0,u.Nv)(d,!0)})]}),(0,s.jsx)(c.Bqb,{className:"text-gray-400"})]},a)}),S=e=>{var n;let{color:i,title:l,icon:a,items:o,loading:r,viewLink:d,subTitle:u,link:p}=e,v=null!==(n=g[i])&&void 0!==n?n:g.purple;return(0,s.jsxs)("div",{className:"relative rounded-2xl overflow-hidden shadow-sm border border-gray-100",children:[(0,s.jsx)("span",{className:"absolute inset-y-0 left-0 w-1 ".concat(v.bar," rounded-l-2xl")}),(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 pt-3 pb-3 border-b border-gray-100 ".concat(v.headerBg),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"".concat(v.iconBg," p-1.5 rounded-lg ").concat(v.iconText),children:a}),(0,s.jsx)("span",{className:"text-xs font-bold text-slate-700 uppercase tracking-wide",children:l})]}),d&&(0,s.jsxs)("div",{className:"text-xs font-semibold ".concat(v.linkText," cursor-pointer hover:opacity-75 transition-opacity flex items-center gap-1 whitespace-nowrap"),onClick:()=>t.push(d),children:["View All ",(0,s.jsx)(c.hdK,{})]})]}),(0,s.jsx)("div",{className:"bg-white p-4 max-h-[215px] grid gap-1 overflow-y-auto",children:r?(0,s.jsx)(B,{}):L(o,i,u,p)})]})};return(0,s.jsxs)("div",{className:"relative bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden",children:[(0,s.jsx)("span",{className:"absolute inset-y-0 left-0 w-1 bg-purple-300 rounded-l-2xl"}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2.5 px-5 pt-4 pb-3 border-b border-gray-100 bg-purple-100",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("div",{className:"bg-purple-100 p-1.5 rounded-lg",children:(0,s.jsx)(c.nK7,{className:"text-purple-600",size:18})}),(0,s.jsx)("h2",{className:"text-sm font-bold text-slate-700 uppercase tracking-wide",children:"Active Campaigns"})]}),(0,s.jsx)(o.Z,{content:"Refresh",children:(0,s.jsx)("button",{type:"button",onClick:q,disabled:y||$||I,className:"text-xs font-semibold text-purple-600 disabled:opacity-40",children:(0,s.jsx)(c.la_,{className:"text-lg"})})})]}),(0,s.jsx)("div",{className:"p-6 grid gap-4",children:(0,s.jsxs)("div",{className:"grid gap-4 grid-cols-1 md:grid-cols-3",children:[(0,s.jsx)(S,{color:"red",title:"Pledge a Resource",icon:(0,s.jsx)(d.Tn0,{size:20}),items:m,loading:$,viewLink:"/dashboard/charity/campaigns?tab=resource",subTitle:e=>{var n,t,s,i,l,a;return null!==(a=null!==(l=null==e?void 0:null===(t=e.party)||void 0===t?void 0:null===(n=t.schoolDetails)||void 0===n?void 0:n.schoolName)&&void 0!==l?l:null==e?void 0:null===(i=e.party)||void 0===i?void 0:null===(s=i.businessDetail
1s)||void 0===s?void 0:s.businessName)&&void 0!==a?a:"N/A"},link:e=>"/dashboard/charity/campaigns/".concat(null==e?void 0:e.parId,"?type=PAR")}),(0,s.jsx)(S,{color:"green",title:"Pledge a Penny",icon:(0,s.jsx)(r.MsF,{size:20}),items:v,loading:y,viewLink:"/dashboard/charity/campaigns?tab=money",subTitle:e=>{var n,t,s;return null!==(s=null==e?void 0:null===(t=e.party)||void 0===t?void 0:null===(n=t.schoolDetails)||void 0===n?void 0:n.schoolName)&&void 0!==s?s:"N/A"},link:e=>"/dashboard/charity/campaigns/".concat(null==e?void 0:e.papId,"?type=PAP")}),(0,s.jsx)(S,{color:"purple",title:"Industry Connect",icon:(0,s.jsx)(c.KfF,{size:20}),items:b,loading:I,viewLink:"/dashboard/charity/campaigns?tab=career",subTitle:e=>{var n,t,s;return null!==(s=null==e?void 0:null===(t=e.party)||void 0===t?void 0:null===(n=t.schoolDetails)||void 0===n?void 0:n.schoolName)&&void 0!==s?s:"N/A"},link:e=>"/dashboard/charity/campaigns/".concat(null==e?void 0:e.internshipId,"?type=CO")})]})})]})}},61650:function(e,n,t){t.d(n,{N:function(){return l}});var s=t(99649),i=t(63497);function l(e){let n=(0,s.Q)(e),t=n.getFullYear(),l=n.getMonth(),a=(0,i.L)(e,0);return a.setFullYear(t,l+1,0),a.setHours(0,0,0,0),a.getDate()}},56068:function(e,n,t){t.d(n,{t:function(){return a}});var s=t(63497),i=t(40448),l=t(99649);function a(e,n){let t=(0,l.Q)(e);return isNaN(+t)?(0,s.L)(e,NaN):(null!=n.year&&t.setFullYear(n.year),null!=n.month&&(t=(0,i.q)(t,n.month)),null!=n.date&&t.setDate(n.date),null!=n.hours&&t.setHours(n.hours),null!=n.minutes&&t.setMinutes(n.minutes),null!=n.seconds&&t.setSeconds(n.seconds),null!=n.milliseconds&&t.setMilliseconds(n.milliseconds),t)}},40448:function(e,n,t){t.d(n,{q:function(){return a}});var s=t(63497),i=t(61650),l=t(99649);function a(e,n){let t=(0,l.Q)(e),a=t.getFullYear(),o=t.getDate(),r=(0,s.L)(e,0);r.setFullYear(a,n,15),r.setHours(0,0,0,0);let d=(0,i.N)(r);return t.setMonth(n,Math.min(o,d)),t}}}]);

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.