1"use strict";(self.webpackChunkzerobees=self.webpackChunkzerobees||[]).push([[539],{7937:(e,n,t)=>{e.exports=t.p+"static/media/ZeroBees_logo_new.88561a841e0b8f7b26ba.png"},41302:(e,n,t)=>{t.d(n,{A:()=>i});var o=t(84411),a=(t(65043),t(74725)),r=t(38812),s=t(70579);const i=e=>{let{text:n,className:t,explanation:i,showLogo:l=!1}=e;const{t:c}=(0,a.B)();let d=n||c("summary.noResults");return(0,s.jsxs)("div",{className:"d-flex flex-column align-items-center ".concat(t),children:[l&&(0,s.jsx)(o.CImg,{src:r.A,alt:"zerobees's logo",width:"200px"}),(0,s.jsx)("h2",{className:"text-primary ",children:d}),(0,s.jsx)("h5",{className:"text-info",children:i})]})}},68314:(e,n,t)=>{e.exports=t.p+"static/media/logo-white.23ce99b7ef73914564be.png"},70539:(e,n,t)=>{t.d(n,{A:()=>R});var o=t(84411),a=t(77059),r=t(65043),s=t(14556),i=t(73012),l=t(92597),c=t(7937),d=t(68314),u=t(97939),h=t(41302),m=t(70957),f=t(76145),p=t(97864),g=t(51290),x=t(7270),b=t(76381),v=t(70579);const y=()=>(0,v.jsxs)(o.CModalBody,{className:"text-justify",children:[(0,v.jsx)("p",{children:"Now you can start looking at your next actions to see how to improve you scores."}),(0,v.jsx)("p",{children:"We recommend annual re-validation - or more frequently if you feel you have achieved progress and want to disclose an increased score."})]});var w=t(90038),k=t(94647);const j=()=>{const{sendEsgSubmittedForValidationEmail:e}=(0,a._G)(),{validationEmailSent:n,email:t}=(0,s.d4)(f.zN),{data:i}=(0,k.aB)(),l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1),h=(0,s.wA)();return(0,v.jsxs)(o.CModalBody,{className:"text-justify",children:[(0,v.jsxs)("p",{children:["Once you've uploaded your"," ",(0,v.jsxs)(u.TextButton,{className:"text-info",style:{fontSize:"16px",fontWeight:"bold"},onClick:()=>{h((0,w.nY)(!0))},children:[" ","evidence"]}),", it's time to submit your score for validation and pay the fee for validation."]}),(0,v.jsx)("p",{children:"We'll assign you an analyst with 2 working days, and they'll be in touch over the next 2 weeks to ask for clarifications or further evidence - by email and potentially scheduling a call where needed. Please feel free to request a call at this stage once you have the details of your analyst."}),(0,v.jsx)("p",{children:"Your analyst will assess your evidence and proposed score against our framework any dviergence - where evidence is insufficient or even where you may score better than you proposed. These areas of difference will form the basis for analyst follow up, and you'll have an opportunity to submit further evidence or discuss the question further with the analyst. You can escalate issues with ZeroBees upon request, but the decision of the escalation manager is final."}),(0,v.jsx)("p",{children:"Expect validation to take around 3 weeks from submission, though this time may be shorter or longer depending on the evidence you've submitted and number of organisations going through accreditation."}),(0,v.jsxs)("div",{className:"d-flex justify-content-center w-100 mt-4",children:[(0,v.jsx)(u.ButtonBasic,{size:"lg",bgcolor:"green",hovercolor:"darkgreen",onClick:async()=>{if(!n)try{d(!0),await e({respondentId:i.uid,email:t,name:i.displayName})}catch(o){console.log("error sending email",o)}finally{d(!1)}l.current.click()},disabled:c,active:!0,tabIndex:-1,children:c?"Please wait...":"Submit & Pay"}),(0,v.jsx)("a",{href:"https://www.zerobees.com/bit-payment",target:"_blank",rel:"noreferrer",alt:"",ref:l,style:{visibility:"hidden"},children:"Pay"})]})]})};var N=t(40517),z=t(10846);const S=e=>{let{onClose:n}=e;const{updateDocument:t}=(0,N.u_)(),{data:a}=(0,k.aB)(),r=(0,s.wA)(),{jump:l}=(0,i.fS)();return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(o.CModalBody,{children:[(0,v.jsx)("p",{className:"text-left",children:"Congratulations - you've made it to your self-assessment result."}),(0,v.jsx)("p",{children:"Now you can start looking at your next actions to see how to improve you scores. Come back and re-assess whenever you're ready!"}),(0,v.jsx)("p",{children:"If you're ready for Verification Track - to have you score validated and ready for disclosure, click the button below to switch tracks and start adding evidence today."}),(0,v.jsx)("div",{className:"d-flex justify-content-center w-100",children:(0,v.jsx)(u.ButtonBasic,{size:"lg",bgcolor:"green",hovercolor:"darkgreen",className:"mx-auto",onClick:async()=>{try{await t(["esg-survey",(null===a||void 0===a?void 0:a.uid)||"none"],{track:"validation"}),r((0,z.m)({type:"success",text:"Track switched to verification"})),console.log("Track switched to verification"),n(),l(0)}catch(e){r((0,z.m)({type:"error",text:"Error switching track"})),console.log("error",e)}}
1,active:!0,tabIndex:-1,children:"Verification"})})]})})};var C=t(32542),B=t(24858),A=t(95666),I=t(80057);const F=()=>{const e=(0,B.mN)(),n=(0,s.d4)(f.zN),{data:t}=(0,k.aB)();(0,r.useEffect)(()=>{n&&e.reset({name:(null===t||void 0===t?void 0:t.displayName)||"",organisation:null===n||void 0===n?void 0:n.orgName,email:null===n||void 0===n?void 0:n.email})},[n,t]);const i=n=>{e.setValue(n.target.name,n.target.value,{shouldTouch:!0})},{errors:l,touchedFields:c}=e.formState||{},d=Object.keys(c).length>0,h=e.getValues(),{sendEsgContactEmail:m}=(0,a._G)(),[p,g]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e.register("name",I.gx),e.register("organisation",I.gx),e.register("email",I.gx),e.register("message",I.gx)},[]);return(0,v.jsx)(u.BasicCollapse,{className:"bg-light mt-2 rounded text-black",title:"Contact Us",children:(0,v.jsxs)("div",{className:"p-3 d-flex flex-column",style:{gap:"1rem"},children:[(0,v.jsx)("p",{children:"If you need strategic or technical support for any improvement plans, please fill out the form below and we'll be in touch."}),(0,v.jsx)(A.A,{label:"Name",Component:u.BasicInput,name:"name",onChange:i,values:h,errors:l}),(0,v.jsx)(A.A,{label:"Organisation",Component:u.BasicInput,name:"organisation",onChange:i,values:h,errors:l}),(0,v.jsx)(A.A,{label:"Email",Component:u.BasicInput,name:"email",onChange:i,values:h,errors:l}),(0,v.jsx)(A.A,{label:"Message",Component:u.StyledTextArea,rows:2,name:"message",onChange:i,values:h,errors:l}),(0,v.jsx)("div",{className:"d-flex justify-content-center ",children:(0,v.jsxs)(o.CButton,{type:"button",size:"lg",color:"success",disabled:!d||p,onClick:async()=>{if(!await e.trigger())return;const n=e.getValues();try{g(!0),await m(n)}catch(t){console.log("error",t)}finally{g(!1)}},children:[(0,v.jsx)(C.Ay,{name:"cil-send",className:"mr-2"}),p?"Sending...":"Send email"]})})]})})},E=e=>{let{track:n,show:t,onClose:a,isVerified:r}=e;return(0,v.jsx)(b.A,{size:"lg",show:t,onClose:a,centered:!0,children:(0,v.jsxs)("div",{className:"px-4 py-4",children:[(0,v.jsx)(o.CModalHeader,{closeButton:!0,children:(0,v.jsx)("h3",{style:{fontSize:"28px"},children:"What's Next?"})}),r?(0,v.jsx)(y,{}):"self-assessment"===n?(0,v.jsx)(S,{onClose:a}):(0,v.jsx)(j,{}),(0,v.jsx)(F,{})]})})},P=e=>{let{track:n,evidenceRate:t,isVerified:o}=e;const[a,i]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),d=(0,s.d4)(f.zN),h=()=>{c(!0)},m=(0,s.wA)();return(0,v.jsxs)(v.Fragment,{children:["self-assessment"===n?(0,v.jsxs)("div",{className:"text-center mb-3",children:[(0,v.jsx)("p",{style:{fontSize:"20px"},children:"Congratulations on completing your ESG self-assessment with ZeroBees!"}),(0,v.jsx)("p",{children:"Below is an indication of your current ESG maturity based on the answers you have provided."}),(0,v.jsx)(u.ButtonBasic,{size:"lg",bgcolor:"green",hovercolor:"darkgreen",onClick:h,active:!0,tabIndex:-1,children:"What's Next?"})]}):(0,v.jsxs)("div",{className:"text-center mb-3",children:[(0,v.jsxs)("p",{style:{fontSize:"20px"},className:"mb-1",children:["You've currently provided"," ",(0,v.jsx)(u.TextButton,{className:"text-info",style:{fontSize:"20px",fontWeight:"bold"},onClick:()=>{m((0,w.nY)(!0))},children:"evidence"})," ","for ",(0,v.jsxs)("b",{children:[t,"%"]})," of the required questions,"]}),(0,v.jsxs)("p",{style:{fontSize:"20px"},children:["for the period from"," ",(0,v.jsxs)("b",{children:[null===d||void 0===d?void 0:d.periodFrom," to ",null===d||void 0===d?void 0:d.periodTo]}),"."]}),o?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("p",{children:["Your ESG score for the period ",null===d||void 0===d?void 0:d.periodFrom," to"," ",null===d||void 0===d?void 0:d.periodTo," is validated."]}),(0,v.jsx)("p",{children:'The full breakdown on your validated scores is below. Please look at the "next steps" to plan your improvement pathway for the coming year.'})]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("p",{children:"Please confirm that you're happy with the answers and evidence you've submitted in order to proceed to verification."}),(0,v.jsx)(g.A,{style:{fontSize:"16px"},className:" mb-4",name:"confirmed",id:"confirmed",label:"I'm happy with the answers and evidence I've submitted",onChange:e=>{const n=(0,x.convertStrToBool)(e.target.checked);i(n)},value:a})]}),(0,v.jsx)(u.ButtonBasic,{size:"lg",bgcolor:"green",hovercolor:"darkgreen",disabled:!a&&!o,onClick:h,active:!0,tabIndex:-1,
1children:"What's Next?"})]}),(0,v.jsx)(E,{track:n,show:l,onClose:()=>c(!1),isVerified:o})]})};var T=t(98148),q=t(46475);const R=e=>{let{orgId:n,isStep:t}=e;const{currentSurvey:g,status:x}=(0,a.c9)({orgId:n,isStandalone:!0}),b=(null===g||void 0===g?void 0:g.areas)||[],{prev:y}=(0,i.fS)(),w=(0,s.d4)(f.k7),{internalSurveyResponses:k,adminSurveyResponses:j,externalSurveyResponses:N,totalSurveyResponses:z,status:S}=(0,a.wI)({orgId:n,isStandalone:!0}),{orgName:C}=(0,s.d4)(f.zN)||{},{rows:B,areas:A,finalPercentage:I,finalScore:F,totalPossible:E}=(0,q.ZP)({surveyAreas:b,internalSurveyResponses:k,adminSurveyResponses:j,externalSurveyResponses:N,totalSurveyResponses:z}),R=null===j||void 0===j?void 0:j.isVerified,V=null===j||void 0===j?void 0:j.isFinal,W="loading"===x||"loading"===S,[_,D]=(0,r.useState)(0);return(0,r.useEffect)(()=>{(async()=>{var e;if(!n)return;if(!g)return;const t=[];null===g||void 0===g||null===(e=g.areas)||void 0===e||e.forEach(e=>{var o;null===e||void 0===e||null===(o=e.questions)||void 0===o||o.forEach(o=>{t.push((async e=>{let{orgId:n,area:t,questionKey:o}=e;try{var a;const e="survey/standalone/".concat(n,"/").concat(t,"/").concat(o),r=l.IG.ref().child(e),s=await r.listAll();return(null===s||void 0===s||null===(a=s.items)||void 0===a?void 0:a.length)>0}catch(r){return console.error("error checking files",r),!1}})({orgId:n,area:e.key,questionKey:o.key}))})});const o=await Promise.all(t),a=Math.round(o.filter(Boolean).length/o.length*1e4)/100;D(a)})()},[g]),(0,v.jsxs)(T.A,{className:"d-flex flex-column align-items-center mt-4",children:[t&&(0,v.jsx)(m.A,{onClick:y,label:"Back"}),(0,v.jsx)("img",{src:d,id:"white-logo",alt:"zerobees logo",width:"120px",className:"mr-4 position-absolute"}),(0,v.jsxs)(o.CCol,{className:"d-flex flex-column mb-4 w-100 align-items-center ".concat(t?"":"mt-5"),children:[(0,v.jsx)("div",{children:(0,v.jsx)("img",{src:c,alt:"",id:"logo",width:100})}),(0,v.jsx)("p",{style:{fontSize:"72px",fontWeight:"bold",lineHeight:1.2},className:"text-info mb-0",children:C}),(0,v.jsx)("h2",{className:"text-primary font-weight-light",style:{fontSize:"2rem"},children:"Results"})]}),(0,v.jsx)(P,{track:w,evidenceRate:_,isVerified:R}),(0,v.jsx)(p.l_,{track:w}),W?(0,v.jsx)(u.LoadingSpinner,{}):(0,v.jsxs)(o.CCol,{className:"mb-4 mt-4",children:[(0,v.jsx)(p.fL,{areas:A,finalPercentage:I,totalPossible:E,isFinal:V}),(0,v.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,v.jsxs)("p",{style:{fontSize:"20px",marginTop:"1rem"},children:["The total number of points:"," ",(0,v.jsxs)("b",{children:[F," / ",E]})," ","possible"]}),C&&(0,v.jsx)(p.PF,{finalPercentage:I,finalScore:F,orgName:C})]})]}),z&&null!==b&&void 0!==b&&b.length?(0,v.jsxs)(v.Fragment,{children:[A.map((e,n)=>(0,v.jsxs)("div",{style:{overflow:"auto",maxWidth:"100%"},className:"mt-4 section-".concat(n),children:[(0,v.jsx)("h3",{className:"text-left mb-3",children:e.label}),(0,v.jsx)(p.pA,{addTableClasses:"area-".concat(n),rows:B.filter(n=>n.area===e.label)})]},n)),(0,v.jsx)(p.pA,{rows:B,isPrint:!0})]}):(0,v.jsx)(h.A,{className:"mt-3 mx-auto",text:"No survey responses yet"})]})}},98148:(e,n,t)=>{t.d(n,{A:()=>r});var o,a=t(57528);const r=t(30009).default.div(o||(o=(0,a.A)(['\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n\n h4{\n color: black;\n }\n\n\n .title-card {\n background-color: white;\n }\n\n h1 {\n font-size: clamp(36px, 5vw, 72px);\n font-weight: 600;\n }\n h2 {\n font-size: clamp(32px, 4vw, 44px);\n font-weight: 600;\n }\n\n h3 {\n font-size: 22px;\n font-weight: 600;\n }\n\n li::marker {\n color: #fbb03b;\n font-size: 22px;\n }\n\n .text-golden {\n color: #df9900;\n }\n\n .nav-link.active {\n color: black;\n font-weight: 600;\n }\n\n &::-webkit-slider-thumb {\n background: green !important;\n }\n\n &::-moz-range-thumb {\n background: green !important;\n }\n\n p {\n font-size: 16px;\n }\n\n table {\n background-color: white;\n font-size: 16px;\n }\n thead {\n background-color: #ececec;\n font-size: 18px;\n }\n\n /* th div {\n font-size: 16px !important;\n } */\n td,\n th {\n padding: 1rem !important;\n text-align: start !important;\n vertical-align: middle !important;\n }\n\n td.p-0{\n padding: 0 !important;\n border: none !important;\n }\n .table-sector {\n background-color: gainsboro;\n font-weight: bold;\n }\n\n .table-total {\n background-color: black;\n color: white;\n font-weight: bold;\n }\n\n .table-section {\n width: 100%;\n background-color: rgb(253, 245, 232);\n }
1\n\n .type-switch {\n font-size: 20px;\n }\n\n @media screen and (max-width: 576px) {\n .type-switch {\n font-size: 14px;\n }\n }\n\n select,\n select:focus {\n background-color: transparent;\n border: 1px solid green;\n color: green;\n width: 100%;\n font-size: 14px;\n }\n\n .c-dark-theme & {\n background-color: #181924;\n\n .title-card {\n background-color: #34343b !important;\n }\n\n table {\n border: 1.5px solid #ffffff;\n }\n\n .table-sector {\n background-color: var(--clr-table-dark-2) !important;\n }\n\n .table-total {\n background-color: var(--clr-table-dark-1) !important;\n }\n\n th {\n background-color: var(--clr-table-header-dark);\n }\n\n tr {\n background-color: transparent !important;\n }\n\n .table-section {\n background-color: #24252f;\n }\n\n /* input {\n color: #ffffff !important;\n } */\n select {\n color: #ffffff;\n }\n\n .react-select__single-value {\n color: #ffffff;\n }\n }\n\n h1 {\n color: var(--warning);\n font-weight: 700;\n font-size: 5em;\n }\n\n h2 {\n color: var(--success);\n font-weight: 600;\n font-size: 3em;\n }\n\n .circle-text{\n color: var(--success);\n font-weight: 600;\n font-size: 1.5em;\n text-align: center;\n\n }\n\n table {\n background-color: white;\n font-size: 16px;\n }\n thead {\n background-color: #ececec;\n font-size: 18px;\n }\n .table-sector {\n background-color: gainsboro;\n font-weight: bold;\n font-size: 18px!important;\n p {\n font-size: 18px!important\n }\n }\n\n li {\n text-align: left;\n }\n\n \n\n .table-question.row-0,.table.area-0 tr.p-0 {\n background-color: #00924517!important;\n\n \n }\n .table-question.row-1,.table.area-1 tr.p-0 {\n background-color: #FFDF0717!important;\n\n }\n .table-question.row-2,.table.area-2 tr.p-0 {\n background-color: #A421D117!important;\n \n }\n .table-question.row-3,.table.area-3 tr.p-0 {\n background-color: #487db217!important; \n }\n\n\n .table-sector.row-0 {\n \n background-color: #00924582!important;\n }\n .table-sector.row-1 {\n background-color: #FFDF0782!important;\n \n }\n .table-sector.row-2 {\n background-color: #A421D182!important;\n \n }\n .table-sector.row-3 {\n background-color: #487db282!important; \n }\n\n .table.area-0 thead{\n background-color: #009245!important;\n }\n\n .table.area-1 thead{\n background-color: #d9bd00!important;\n }\n\n .table.area-2 thead{\n background-color: #A421D1!important;\n }\n\n .table.area-3 thead{\n background-color: #487db2!important;\n }\n\n .table[class*="area-"] thead{\n color: white !important;}\n\n @media screen and (max-width: 766px) {\n padding-block: 0;\n /* padding-inline: 0.5rem; */\n\n .mobile-d-none {\n display: none;\n }\n }\n'])))}}]); 2//# sourceMappingURL=539.a5626e1c.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.