PageSourceSearch

https://esg-zerobees.netlify.app/static/js/633.75940e3d.chunk.js

js esg-zerobees.netlify.app collected 2026-10-03 10:42:46 UTC 2,688 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkzerobees=self.webpackChunkzerobees||[]).push([[633],{93633:(e,n,a)=>{a.r(n),a.d(n,{default:()=>k});var t,r,s,i=a(84411),o=a(98289),c=a(65043),l=a(35323),d=a(97939),m=a(53536),u=a(57528),p=a(30009);const h=p.default.div(t||(t=(0,u.A)(["\n  table {\n    thead {\n      font-size: 0.8rem;\n    }\n    tbody {\n      :hover {\n        cursor: pointer;\n      }\n      td {\n        font-size: 14px;\n        vertical-align: middle;\n      }\n    }\n  }\n\n  .pagination {\n    justify-content: center !important;\n  }\n"]))),g=(0,p.keyframes)(r||(r=(0,u.A)(["\n  33%{\n    color: var(--danger);\n  }\n\n  66%{\n    color: var(--info);\n  }\n\n  99%{\n    color: var(--success);\n  }\n"])));p.default.div(s||(s=(0,u.A)(["\n  .highlight-text {\n    animation: "," 2s linear infinite;\n    -webkit-animation: "," 2s ease-in-out infinite;\n  }\n"])),g,g);var f=a(70579);const x=[{label:"Organisation",key:"orgName"},{label:"Email",key:"email"},{label:"Standalone",key:"isStandalone"},{label:"Track",key:"track"},{label:"Joined At",key:"created"}],y=e=>e.created?new Date(e.created).toLocaleDateString():"",k=()=>{const[e,n]=c.useState([]),[a,t]=c.useState(!0),r=(0,l.W6)();return(0,c.useEffect)(()=>{(async()=>{t("loading");try{const e=o.A.firestore(),a=(await e.collectionGroup("esg-survey").get()).docs.map(e=>{const n=e.data();return{orgName:n.orgName,email:n.email,id:n.id,isStandalone:!0,track:(0,m.upperFirst)(n.track||""),periodId:"",created:y(n),timestamp:n.created}}),r=(await e.collection("organisations").where("show-survey","==",!0).get()).docs.map(e=>{const n=e.data();return{orgName:n.name,email:n["admin-email"],id:n.id,isStandalone:!1,track:"",periodId:n.period,created:y(n),timestamp:n.created}}),s=[...a,...r].sort((e,n)=>n.timestamp-e.timestamp);n(s),t("success")}catch(e){console.log(e),t("error")}})()},[]),(0,f.jsxs)("div",{className:"d-flex flex-column justify-content-center align-items-center mx-auto w-100",style:{maxWidth:"1200px"},children:[(0,f.jsx)("h1",{className:"text-center my-4",style:{fontWeight:"600"},children:"ESG Survey"}),"loading"===a?(0,f.jsx)(d.LoadingSpinner,{}):"error"===a?(0,f.jsx)("h2",{className:"text-danger",children:"There was an error loading users"}):(0,f.jsxs)(d.StepCard,{children:[(0,f.jsx)("h3",{style:{fontSize:"30px"},children:"Users"}),(0,f.jsx)("p",{className:"text-info",children:"Click row to select"}),(0,f.jsx)(h,{className:"w-100",children:(0,f.jsx)(i.CDataTable,{fields:x,items:e,onRowClick:e=>{const{id:n,isStandalone:a,periodId:t}=e;r.push("/survey/admin/users/".concat(n,"?standalone=").concat(a,"&periodId=").concat(t))},hover:!0})})]})]})}}}]);
2//# sourceMappingURL=633.75940e3d.chunk.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.