PageSourceSearch

https://www.aveliasolutions.com/static/js/1437.a19b1151.chunk.js

js aveliasolutions.com collected 2026-10-05 19:14:57 UTC 18,864 bytes, 406 lines download raw bytes

1"use strict";(self.webpackChunksaf_frontend=self.webpackChunksaf_frontend||[]).push([[1437],{3893:(e,t,i)=>{i.d(t,{A:()=>c});var o=i(76894),n=i(99998),r=i(65245),a=i.n(r),l=i(63120),s=i(67403);const d=(0,n.forwardRef)((e,t)=>(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#404040",width:"1em",height:"1em",ref:t,...e,children:(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{d:"M20.5 3.001a.5.5 0 0 1 .5.5V9.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V6.414l-6.646 6.647a.5.5 0 0 1-.708 0l-.707-.707a.5.5 0 0 1 0-.708L17.586 5H14.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5l6 .001Z"}),(0,o.jsx)("path",{d:"M5 8a1 1 0 0 1 1-1h6.5a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-6.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5V18a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V8Z"})]})})),c=(0,n.forwardRef)((e,t)=>{let{className:i,...n}=e;return(0,o.jsx)(s.I,{className:a()(l.T0,i),as:d,...n,ref:t})})},17205:(e,t,i)=>{i.d(t,{T9:()=>b,dq:()=>x});var o=i(76894),n=i(99998),r=i(65245),a=i.n(r),l=i(63120),s=i(81461),d=i(36643),c=i(21724);const u={[c.DN.ExtraSmall]:{width:20,height:12,labelFontSize:11,labelLineHeight:16,circle:{size:8,onPosition:8,offset:2}},[c.DN.Small]:{width:28,height:16,labelFontSize:11,labelLineHeight:18,circle:{size:12,onPosition:12,offset:2}},[c.DN.Medium]:{width:44,height:24,labelFontSize:14,labelLineHeight:20,circle:{size:20,onPosition:20,offset:2}},[c.DN.Large]:{width:56,height:28,labelFontSize:16,labelLineHeight:24,circle:{size:24,onPosition:28,offset:2}}},h=d.default.div`
2  display: flex;
3  flex-direction: row;
4  align-items: center;
5`,f=(0,d.default)(s.A)`
6  ${e=>{let{size:t,prefixCls:i,theme:o}=e;const{width:n,height:r,circle:a}=u[t];return d.css`
7      &.${i} {
8        position: relative;
9        display: block;
10        width: ${n}px;
11        height: ${r}px;
12        padding: 0;
13        border-radius: ${r/2}px;
14        border: 0;
15        background-color: ${o.border.medium};
16        cursor: pointer;
17        transition: background-color 0.3s ease-out;
18
19        &:after {
20          position: absolute;
21          width: ${a.size}px;
22          height: ${a.size}px;
23          left: ${a.offset}px;
24          top: ${a.offset}px;
25          border-radius: ${a.size/2}px;
26          background-color: ${o.text.onSecondary.strong};
27          content: '';
28          cursor: pointer;
29          transition: transform 0.3s ease-out;
30        }
31
32        &:hover {
33          background-color: ${o.focus.medium};
34        }
35
36        &:focus {
37          box-shadow: 0 0 0 3px ${o.focus.medium};
38          outline: none;
39        }
40
41        &-checked {
42          background-color: ${o.focus.strong};
43
44          &:after {
45            transform: translateX(${a.onPosition}px);
46          }
47        }
48
49        &-disabled {
50          cursor: no-drop;
51          background: ${o.border.subtle};
52
53          &-checked {
54            background-color: ${o.focus.subtle};
55          }
56        }
57      }
58    `}}
59`,m=d.default.span`
60  ${e=>{let{disabled:t,labelPosition:i,size:o,theme:n}=e;return d.css`
61    ${o===c.DN.ExtraSmall&&n.label.extraSmall.bold};
62    ${o===c.DN.Small&&n.label.small.bold};
63    ${o===c.DN.Medium&&n.label.medium.bold};
64    ${o===c.DN.Large&&n.label.large.bold};
65    color: ${t?n.text.onSurface.inactive:n.text.onSurface.strong};
66    margin: ${i===c.Hy.Left?"0 10px 0 0":"0 0 0 10px"};
67  `}}
68`,g=(0,n.forwardRef)((e,t)=>{let{className:i,size:n=c.DN.Medium,label:r,labelPosition:s=c.Hy.Left,disabled:d=!1,wrapperProps:u,title:g,...p}=e;const b=(0,o.jsx)(m,{size:n,disabled:d,labelPosition:s,children:r});return(0,o.jsxs)(h,{className:a()(l.il,i),...u,children:[s===c.Hy.Left&&r&&b,(0,o.jsx)(f,{ref:t,prefixCls:l.xG,disabled:d,size:n,title:g||"string"===typeof r&&r,...p}),s===c.Hy.Right&&r&&b]})});var p=i(63495);const b=(0,d.default)(g)`
69    .shell-toggle-switch {
70        background-color: ${p.Y0};
71        box-shadow: none;
72        &:focus {
73            background-color: ${p.Go};
74        }
75        &:hover {
76            background-color: ${p.Go};
77        }
78    }
79    .shell-toggle-switch-checked {
80        background-color: ${p.Go};
81    }
82`,x=((0,d.default)(g)`
83    .shell-toggle-switch {
84        background-color: ${p.Y0};
85        box-shadow: none;
86        &:focus {
87            background-color: ${p.$$};
88        }
89        &:hover {
90            background-color: ${p.$$};
91        }
92    }
93    .shell-toggle-switch-checked {
94        background-color: ${p.gk};
95    }
96`,(0,d.default)(g)`
97    .shell-toggle-switch {
98        background-color: ${p.Y0};
99        box-shadow: none;
100        &:focus {
101            background-color: ${p.Y0};
102        }
103        &:hover {
104            background-color: ${p.Y0};
105            opacity:${.6};
106        }
107    }
108    .shell-toggle-switch-checked {
109        background-color: ${p.nf};
110        &:focus {
111            background-color: ${p.nf};
112        }
113        &:hover {
114            background-color: ${p.nf};
115            opacity:${.6};
116        }
117    }
118`)},19812:(e,t,i)=>{i.d(t,{CO:()=>d,LM:()=>c,Ln:()=>l,M8:()=>a,eE:()=>s,t9:()=>r,yH:()=>u});var o=i(36643),n=i(63495);o.default.section`
119    display: flex;
120    flex-direction: column;
121    margin-bottom: 64px;
122`;const r=o.default.section`
123    display: flex;
124    flex-direction: column;
125    padding-top: 48px;
126    padding-bottom: 24px;
127    gap: 8px;
128    align-items: flex-start;
129    align-self: stretch;
130
131    > p {
132        @media ${n.Rp.sm} {
133            width: 100%;
134        }
135        width: 60%;
136    }
137`,a=o.default.section`
138    display: flex;
139    flex-direction: column;
140    margin-bottom: 40px;
141
142    > p {
143        width: 60%;
144        margin-top: 24px;
145    }
146`,l=o.default.section`
147    width: 100%;
148    margin-bottom: 48px;
149
150    > h2 {
151        margin-bottom: 24px;
152    }
153`,s=o.default.section`
154    display: flex;
155    flex-direction: column;
156    width: 70%;
157
158    > h2 {
159        margin-bottom: 40px;
160    }
161
162    > div > div:not(:last-child) {
163        margin-right: 24px;
164    }
165`,d=o.default.section`
166    display: flex;
167    width: 90%;
168`,c=o.default.section`
169    display: flex;
170    flex-direction: column;
171    width: 100%;
172    padding: 0 24px;
173    margin-bottom: 32px;
174    > div:nth-child(1) {
175        margin-bottom: 16px;
176    }
177`,u=o.default.section`
178    display: flex;
179    flex-direction: row;
180    justify-content: space-between;
181    align-items: center;
182    width: 100%;
183`},66952:(e,t,i)=>{i.d(t,{Dk:()=>l,LM:()=>s,ND:()=>r,fA:()=>a});var o=i(57137);const n="https://www.aveliasolutions.com/publicservice/retirement",r=async(e,t)=>{const i=new URL(`${n}/search`),r={};return e&&(r.$filter=e),t&&t.page&&t.limit&&(r.$page=t.page,r.$limit=t.limit),t&&t.orderby&&(r.$orderby=t.orderby),o.A.post(i.href,r)},a=async e=>{const t=await o.A.get(`${n}/dea/${e}`);if(200===t.status)return t.data},l=async e=>await o.A.get(`${n}/safLetter/${e}`),s=async e=>{const t=new URL("https://www.aveliasolutions.com/auth/company/retirementSettings"),i={};return i.publicRetirmentSetting=e,o.A.post(t.href,i)}},71437:(e,t,i)=>{i.r(t),i.d(t,{default:()=>L});var o=i(99998),n=i(36643),r=i(21656),a=i(19812),l=i(87922),s=i(60703),d=i(38521),c=i(39933),u=i(3893),h=i(17205),f=i(54115),m=i(93188),g=i(35368),p=i(66952),b=i(79090),x=i(65833),$=i(75298),y=i(91240),w=i(44364),v=i(82714),k=i(76894);const j=(0,n.default)(s.A)`
184    width: 100%;
185    height: auto;
186    padding: 24px;
187    flex-direction: column;
188    gap: 16px;
189    margin: 0px 8px 30px 8px;
190    box-sizing: border-box;
191    background-color: #fff;
192`,z=(0,n.default)(d.A)`
193    width: 100%;
194    height: auto;
195`,A=(0,n.default)(s.A)`
196    display: flex;
197    flex-direction: row;
198    justify-content: space-between;
199`,C=(0,n.default)(f.M_)`
200    display: flex;
201    flex-direction: column;
202    label {
203        margin-top: 10px;
204        }
205    }
206`,S=(0,n.default)(z)`
207    font-size: 24px;
208`,D=(0,n.default)(m.V3)`
209    span {
210        font-weight: normal;
211    }
212`,L=()=>{var e;const{response:t,loading:i,error:n}=(0,$.A)(x.YZ,[],{}),{ruleSet:s,persona:m}=(0,o.useContext)(b.Rs),{preferredUnit:z,setPreferredUnit:L}=(0,o.useContext)(b.Rs),[N,R]=(0,o.useState)("Default"),[P,E]=(0,o.useState)(!0);(0,o.useEffect)(()=>{var e,i;null!==t&&void 0!==t&&null!==(e=t.data)&&void 0!==e&&e.publicRetirmentSetting&&R(null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.publicRetirmentSetting)},[null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.publicRetirmentSetting]);const M=e=>{e!==z&&(null===L||void 0===L||L(e),g.A.success("Settings modified successfully! This change could take sometime to reflect."))};if(i)return(0,k.jsx)(r.j,{children:(0,k.jsx)(a.M8,{style:{justifyContent:"center"},children:(0,k.jsx)(y.kt,{})})});async function H(e){try{R(e),await(0,p.LM)(e),g.A.success("Settings modified successfully! This change could take sometime to reflect.")}catch(n){g.A.error("An error occurred while saving the preference.")}}return(0,k.jsxs)(r.j,{children:[(0,k.jsxs)(a.M8,{children:[(0,k.jsx)(l.lE,{type:"h1",style:{padding:"20px 0px"},children:(0,k.jsx)("strong",{children:"Settings"})}),(0,k.jsx)(d.A,{size:"medium",children:"Manage all the settings related to your account on Avelia."})]}),(0,k.jsxs)(j,{children:[(0,k.jsx)(d.A,{size:"small",children:"Applicable to your account login"}),(0,k.jsx)(d.A,{size:"medium",children:(0,k.jsx)(S,{children:"Email notifications"})}),(0,k.jsxs)(A,{children:[(0,k.jsxs)(d.A,{size:"medium",children:["Receive activity emails with document status change."," "]}),(0,k.jsx)(h.T9,{checked:P,onChange:()=>{E(e=>!e)}})]})]}),(null===s||void 0===s?void 0:s.canRecieveDEASL)&&(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(j,{children:[(0,k.jsx)(d.A,{size:"small",children:"Applicable to company"}),(0,k.jsx)(d.A,{size:"medium",children:(0,k.jsx)(S,{children:"Privacy and sharing"})}),(0,k.jsxs)(d.A,{size:"medium",children:[(0,k.jsx)("strong",{children:"On behalf of the beneficiary, what do you agree to include in your public retirement records?"})," "]}),(0,k.jsx)(d.A,{size:"medium",children:"I agree to include the following information for all my public retirement records on the Avelia landing page:"}),(0,k.jsxs)(C,{children:[(0,k.jsx)(D,{label:"Default information: document ID, blockchain ID, document type, beneficiary type, retirement date, SAF volume, GHG abatement",type:"radio",name:"settings",onChange:e=>{H("Default")},size:"medium",checked:"Default"===N}),(0,k.jsx)(D,{label:"Default information and beneficiary name (excluding actual retirement documents)",type:"radio",name:"settings",onChange:e=>{H("Partial")}
212,size:"medium",checked:"Partial"===N}),(0,k.jsx)(D,{label:"Default information, beneficiary name and actual retirement documents",type:"radio",name:"settings",onChange:e=>{H("Full")},size:"medium",checked:"Full"===N})]}),(0,k.jsx)(c.A,{dismissButtonTitle:"Dismiss",sentiment:"information",size:"large",style:{margin:"20px 0px"},children:"The 'Privacy & Sharing' preferences for the retirement table can be modified anytime to reflect on the Landing Page."}),(0,k.jsx)(f.Gw,{display:"flex",justifyContent:"flex-end",children:(0,k.jsxs)(f.yd,{id:"StyledButton",onClick:()=>{window.open("/public-retirement-records")},children:["View public retirement records \xa0",(0,k.jsx)(u.A,{width:24,height:24})]})})]})}),!(null!==m&&void 0!==m&&m.some(e=>e===v.K$.SUPPLIER||e===v.K$.PRODUCER))&&(0,k.jsxs)(j,{children:[(0,k.jsx)(d.A,{size:"small",children:"You can change this in the settings at any time"}),(0,k.jsx)(d.A,{size:"medium",children:(0,k.jsx)(S,{children:"Preferred Unit of Measurement"})}),(0,k.jsx)(d.A,{size:"medium",children:(0,k.jsx)("strong",{children:"What is your preferred Unit of Measurement?"})}),(0,k.jsxs)(C,{children:[(0,k.jsx)(D,{label:"Gallons",type:"radio",name:"preferredUnit",onChange:()=>M(w.r.GALLONS),size:"medium",checked:z===w.r.GALLONS}),(0,k.jsx)(D,{label:"Litres",type:"radio",name:"preferredUnit",onChange:()=>M(w.r.LITERS),size:"medium",checked:z===w.r.LITERS}),(0,k.jsx)(D,{label:"Cubic Meters",type:"radio",name:"preferredUnit",onChange:()=>M(w.r.CUBIC_METERS),size:"medium",checked:z===w.r.CUBIC_METERS})]})]})]})}},74279:(e,t,i)=>{i.d(t,{A:()=>m});var o=i(76894),n=i(99998),r=i(65245),a=i.n(r),l=i(63120),s=i(36643),d=i(21724);const c={[d.DN.Small]:{size:16,spacing:8,innerCircleSize:6},[d.DN.Medium]:{size:24,spacing:10,innerCircleSize:8},[d.DN.Large]:{size:28,spacing:12,innerCircleSize:10}},u=s.default.div`
213  display: inline-block;
214  border-radius: 100%;
215  position: relative;
216
217  ${e=>{let{size:t,invalid:i,theme:o}=e;return s.css`
218    flex-shrink: 0;
219    height: ${c[t].size}px;
220    width: ${c[t].size}px;
221    background: ${o.background.surface};
222    border: 2px solid ${i?o.system.strong.negative:o.border.medium};
223  `}}
224`,h=s.default.input`
225  position: absolute;
226  left: -9999px;
227
228  ${e=>{let{theme:t,$emphasis:i,$invalid:o}=e;return s.css`
229    &:checked ~ ${u} {
230      ${o?s.css`
231            background-color: ${t.system.strong.negative};
232            border-color: ${t.system.strong.negative};
233          `:s.css`
234            background-color: ${i?t.focus.strong:t.text.onPrimary.strong};
235            border-color: ${i?t.focus.strong:t.text.onPrimary.strong};
236          `};
237
238      &::after {
239        content: '';
240        position: absolute;
241        top: 50%;
242        left: 50%;
243        transform: translate(-50%, -50%);
244        background-color: ${t.text.onFocus.strong};
245        border-radius: 100%;
246      }
247    }
248
249    &:active:not(:disabled) ~ ${u} {
250      border-color: ${i?t.focus.strong:t.text.onPrimary.strong};
251
252      svg {
253        margin: auto;
254
255        path {
256          fill: ${i?t.focus.strong:t.text.onPrimary.strong};
257        }
258      }
259    }
260
261    &:focus ~ ${u} {
262      box-shadow: 0 0 0 4px ${t.focus.medium};
263      outline: 0;
264    }
265
266    &:disabled ~ ${u} {
267      background-color: ${t.background.inactive};
268      border-color: ${t.border.subtle};
269    }
270
271    &:disabled:checked ~ ${u} {
272      background-color: ${i?t.focus.subtle:t.text.onPrimary.inactive};
273      border-color: ${i?t.focus.subtle:"transparent"};
274    }
275  `}}
276`,f=s.default.label`
277  position: relative;
278  display: flex;
279  align-items: center;
280  width: fit-content;
281  box-sizing: border-box;
282
283  ${e=>{let{disabled:t,size:i,checked:o,$emphasis:n,theme:r}=e;return s.css`
284    cursor: ${t?"not-allowed":"pointer"};
285
286    > span {
287      ${i===d.DN.Small&&r.label.small.bold};
288      ${i===d.DN.Medium&&r.label.medium.bold};
289      ${i===d.DN.Large&&r.label.large.bold};
290      color: ${t?r.text.onSurface.inactive:r.text.onSurface.strong};
291      margin-left: ${c[i].spacing}px;
292    }
293
294    ${!t&&s.css`
295      &:hover {
296        & > div::after {
297          content: '';
298          width: ${c[i].innerCircleSize}px;
299          height: ${c[i].innerCircleSize}px;
300          position: absolute;
301          top: 50%;
302          left: 50%;
303          transform: translate(-50%, -50%);
304          opacity: ${o?.5:1};
305          background-color: ${o?r.background.surface:r.text.onSurface.subtle} !important;
306          border-radius: 100%;
307        }
308      }
309    `}
310
311    ${h} {
312      &:checked ~ ${u} {
313        &::after {
314          width: ${c[i].innerCircleSize}px;
315          height: ${c[i].innerCircleSize}px;
316        }
317      }
318
319      &:active:not(:disabled) ~ ${u} {
320        &::after {
321          background-color: ${n?r.focus.strong:r.text.onPrimary.strong} !important;
322        }
323      }
324    }
325  `}}
326`,m=(0,n.forwardRef)((e,t)=>{let{className:i="",label:n="",size:r=d.DN.Medium,checked:s,disabled:c=!1,invalid:m=!1,onChange:g=l.tE,emphasis:p=!0,...b}=e;return(0,o.jsxs)(f,{className:a()(l.ki,i),disabled:c,checked:s,$emphasis:p,size:r,children:[(0,o.jsx)(h,{onChange:g,disabled:c,checked:s,type:"radio",tabIndex:0,$emphasis:p,$invalid:m,ref:t,...b}),(0,o.jsx)(u,{size:r,invalid:m,"data-testid":"radio"}),n&&(0,o.jsx)("span",{"data-testid":"label",children:n})]})})},81461:(e,t,i)=>{i.d(t,{A:()=>h});var o=i(8275),n=i(65800),r=i(40877),a=i(99998),l=i(65245),s=i.n(l),d=i(14352),c=i(62207),u=a.forwardRef(function(e,t){var i,l=e.prefixCls,u=void 0===l?"rc-switch":l,h=e.className,f=e.checked,m=e.defaultChecked,g=e.disabled,p=e.loadingIcon,b=e.checkedChildren,x=e.unCheckedChildren,$=e.onClick,y=e.onChange,w=e.onKeyDown,v=(0,r.A)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),k=(0,d.A)(!1,{value:f,defaultValue:m}),j=(0,n.A)(k,2),z=j[0],A=j[1];function C(e,t){var i=z;return g||(A(i=e),null===y||void 0===y||y(i,t)),i}var S=s()(u,h,(i={},(0,o.A)(i,"".concat(u,"-checked"),z),(0,o.A)(i,"".concat(u,"-disabled"),g),i));return a.createElement("button",Object.assign({},v,{type:"button",role:"switch","aria-checked":z,disabled:g,className:S,ref:t,onKeyDown:function(e){e.which===c.A.LEFT?C(!1,e):e.which===c.A.RIGHT&&C(!0,e),null===w||void 0===w||w(e)},onClick:function(e){var t=C(!z,e);null===$||void 0===$||$(t,e)}}),p,a.createElement("span",{className:"".concat(u,"-inner")},z?b:x))});u.displayName="Switch";const h=u},93188:(e,t,i)=>{i.d(t,{Db:()=>d,V3:()=>l,ZR:()=>s});var o=i(74279),n=i(60703),r=i(36643),a=i(63495);const l=(0,r.default)(o.A)`
327    /* Default circle */
328    div[data-testid="radio"] {
329        border: 2px solid
330            ${e=>{let{hasError:t}=e;return t?"#dd1d21":"rgba(28, 28, 28, 0.14)"}};
331    }
332
333    /* Checked state */
334    input[type="radio"]:checked + div[data-testid="radio"] {
335        background-color: ${e=>{let{hasError:t}=e;return t?"#dd1d21":a.nf}};
336        border-color: ${e=>{let{hasError:t}=e;return t?"#dd1d21":a.nf}};
337        box-shadow: none !important;
338    }
339
340    div + span {
341        width: max-content;
342        margin-right: 10px;
343    }
344    label {
345        border: 1px solid red !important;
346        color: red;
347        font-weight: 400px !important;
348    }
349    * {
350        font-decoration: none;
351        font-weight: 400px !important;
352    }
353
354    * > span {
355        font-decoration: none;
356        font-weight: 400px !important;
357    }
358`,s=(0,r.default)(n.A)`
359    gap: 10px;
360    align-items: center;
361    margin-bottom: 4px;
362    p {
363        color: #343434;
364        font-family: Roboto;
365        font-size: 14px !important;
366        font-style: normal;
367        font-weight: 400;
368        line-height: 16px;
369        margin: 0;
370        padding: 0;
371    }
372`,d=((0,r.default)(n.A)`
373    gap: 10px;
374    align-items: left;
375    margin-bottom: 1px;
376    p {
377        color: #343434;
378        font-family: Roboto;
379        font-size: 12px !important;
380        font-style: normal;
381        font-weight: 400;
382        line-height: 5px;
383        margin: 0;
384        padding: 0;
385    }
386`,(0,r.default)(o.A)`
387    input[type="radio"]:checked + div {
388        background-color: ${a.nf};
389        border-color: ${a.nf};
390        box-shadow: none !important;
391    }
392    div + span {
393        width: max-content;
394        margin-right: 10px;
395    }
396    label {
397        border: 1px solid red !important;
398        color: red;
399    }
400    * {
401        font-decoration: none;
402    }
403    * > span {
404        font-decoration: none;
405    }
406`)}}]);

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.