PageSourceSearch

https://charly.se/_next/static/chunks/pages/employers/[employer]/sparplan-1d647e8e5aa61804.js

js charly.se collected 2026-10-04 10:05:59 UTC 26,336 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7918],{15622:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/employers/[employer]/sparplan",function(){return n(54635)}])},663:function(e,a){"use strict";a.Z={src:"/_next/static/media/dad-carrying-child-small.fa43ed62.png",height:150,width:238,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAP1BMVEUKDQqBhIVJPzeAbV0qR0sjGAwdLi8yUVYkOzxBVlqWc1wgIh8bHhpqcHKYmZsxNCyIaEteOiFvW0qyucBbT0IGq88LAAAACnRSTlP9/////v///f33bw7+BAAAAAlwSFlzAAALEwAACxMBAJqcGAAAADFJREFUeJwFwYkBgCAMBMElXAjGBxT6r9UZgG31g958ZtaONF63IhTN/V5B6OJ8yvEDF+wBHna4/sgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5}},40284:function(e,a,n){"use strict";var r=n(75766),t=n(85893),s=n(93967),i=n.n(s),o=n(52611),l=n.n(o);a.Z=function(e){var a,n=e.invisible,s=e.noMobile;return(0,t.jsx)("hr",{className:i()(l().horizontalLine,(a={},(0,r._)(a,l().invisible,n),(0,r._)(a,l().noMobile,s),a))})}},82135:function(e,a,n){"use strict";var r=n(75766),t=n(85893),s=n(41664),i=n.n(s),o=n(93967),l=n.n(o),c=n(86476),d=n.n(c);a.Z=function(e){var a,n=(0,t.jsxs)("div",{className:l()(d().teaser,(a={},(0,r._)(a,d().borderless,e.borderless),(0,r._)(a,d().link,!!e.href),(0,r._)(a,d().fixedImageHeight,!!e.fixedImageHeight),a)),children:[(0,t.jsx)("div",{className:d().image,style:{backgroundImage:"url(".concat(e.image,")")}}),(0,t.jsx)("div",{className:d().content,children:e.children})]});return e.href?(0,t.jsx)(i(),{href:e.href,style:{textDecoration:"none"},children:n}):n}},54014:function(e,a,n){"use strict";var r=n(85893),t=n(13084),s=n(84334);a.Z=function(e){var a=e.children,n=(0,t.d5)(),i=n.isFetching,o=n.employer;return i||(null==o?void 0:o.active)?(0,r.jsx)(r.Fragment,{children:a}):(0,r.jsx)(s.Z,{})}},12005:function(e,a,n){"use strict";var r=n(75766),t=n(72253),s=n(47702),i=n(85893),o=n(65606),l=n(68934),c=n(28397),d=n(93967),u=n.n(d),m=n(19027),p=n.n(m);a.Z=function(e){var a=e.children,n=e.navTheme,d=e.noMobilePadding,m=(0,s._)(e,["children","navTheme","noMobilePadding"]);return(0,l.iz)(n||c.X.Dark),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,(0,t._)({},m)),(0,i.jsx)("div",{className:u()(p().contentFrame,(0,r._)({},p().noMobilePadding,d)),children:a})]})}},49515:function(e,a,n){"use strict";n.d(a,{G:function(){return v},_:function(){return g}});var r=n(75766),t=n(72253),s=n(14932),i=n(47702),o=n(85893),l=n(93967),c=n.n(l),d=n(65606),u=n(68934),m=n(28397),p=n(86101),h=n.n(p),_=n(12005),f=function(e){var a=e.children,n=e.navTheme,s=e.className,l=e.color,p=e.noTopPaddingMobile,_=(0,i._)(e,["children","navTheme","className","color","noTopPaddingMobile"]);return(0,u.iz)(n||m.X.Dark),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,(0,t._)({},_)),(0,o.jsx)("div",{className:h().wrapper,children:(0,o.jsx)("div",{className:c()(h().container,h()[l],s),children:(0,o.jsx)("div",{className:h().children,children:(0,o.jsx)("div",{className:c()(h().content,(0,r._)({},h().noTopPaddingMobile,p)),children:a})})})})]})},g=function(e){return(0,o.jsx)(_.Z,(0,t._)({},e))},v=function(e){return(0,o.jsx)(f,(0,s._)((0,t._)({},e),{color:"turquoise"}))}},25737:function(e,a,n){"use strict";n.d(a,{f:function(){return d}});var r=n(72253),t=n(85893),s=n(11163),i=n(67294),o=n(54014),l=n(13084),c=n(3948),d=function(e){return function(a){var n=(0,s.useRouter)(),d=(0,l.d5)(),u=d.employee,m=d.isFetching,p=d.isUnauthorized,h=d.employer;return(0,i.useEffect)(function(){h&&p&&!m&&n.replace("/employers/".concat(null==h?void 0:h.slug,"/logga-in?redirect=").concat(encodeURIComponent(n.asPath)))},[null==u?void 0:u.id,m,null==h?void 0:h.slug]),(0,t.jsx)(o.Z,{children:u&&!p?(0,t.jsx)(e,(0,r._)({},a)):m?(0,t.jsx)(c.Z,{}):(0,t.jsx)(t.Fragment,{})})}}},54635:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return em}});var r=n(11010),t=n(75766),s=n(72253),i=n(14932),o=n(24043),l=n(97582),c=n(85893),d=n(11163),u=n(93967),m=n.n(u),p=n(67294),h=n(40284),_=n(54014),f=n(49515),g=n(25737),v=n(29690),x=n(84992),b=n(95359),y=n(36257),j=n.n(y),k=n(42532),P=n(13084),N=n(84304),w=n(82251),A=n.n(w),T=n(54893),S=n(63851),L=n(36383),M=n(91647),B=function(e){var a=(0,p.useMemo)(function(){return(0,M.RF)(e.data.children)},[e.data.children]),n=(0,p.useMemo)(function(){return Math.abs(e.data.total)},[e.data.total]),r=(0,p.useMemo)(function(){return Math.round((0,S.J1)(n,"future-gap"===e.calculationType?a.salary+a.pe
1nsion:a.total))},[n,e.calculationType,a]);return(0,c.jsx)("div",{className:A().totalLoss,children:(0,c.jsxs)("div",{className:A().header,children:[(0,c.jsxs)("span",{className:A().subtitle,children:[(0,c.jsx)(L.Z,{children:"policy-holder"===e.role?"Din partners":"Din"})," totala framtida f\xf6rlust"]}),(0,c.jsxs)("div",{className:A().title,children:["-",(0,T.dN)((0,S.RW)(n,100))," kr"]}),0!==r&&(0,c.jsx)("span",{className:A().comparison,children:"".concat(Math.abs(r),"% ").concat(r<0?"mindre":"mer"," \xe4n snittet")})]})})},Z=n(248),C=n(29127),F=n.n(C),I=function(e){var a=e.title,n=e.a,r=e.b,t=e.c,s=e.max,i=e.description,o=Math.max(n/s/2*100,0),l=Math.max(r/s/2*100,0),d=t?Math.max(t/s/2*100,0):0,u=Math.max(o,l,d);return(0,c.jsxs)("div",{className:F().comparison,children:[(0,c.jsx)("p",{className:F().title,children:a}),(0,c.jsxs)("div",{className:F().bars,style:{width:"".concat(Math.max(o,l,d),"%")},children:[(0,c.jsx)("span",{className:F().categoryA,style:{width:0===n?"1px":"".concat(Math.round(o/u*100),"%")}}),(0,c.jsx)("span",{className:F().categoryB,style:{width:"".concat(Math.round(l/u*100),"%")}}),Number.isFinite(t)&&(0,c.jsx)("span",{className:F().categoryC,style:{width:"".concat(Math.round(d/u*100),"%")}}),(0,c.jsxs)("div",{className:F().amount,children:["-",(0,T.dN)(n)," kr"]})]}),(0,c.jsx)("p",{className:F().description,children:i})]})},z=function(e,a){if(e)return{total:e.averageLossTotal*a,salary:e.averageLossSalary*a,pension:e.averageLossPension*a,partTime:e.averageLossPartTime*a,vab:e.averageLossVab*a}},D=function(e){var a,n=e.filter(function(e){return void 0!==e}).map(function(e){var a=e.salary,n=e.vab,r=e.pension,t=e.partTime;return Math.max(Math.abs(null!=a?a:0),Math.abs(null!=n?n:0),Math.abs(null!=r?r:0),Math.abs(null!=t?t:0))});return Math.round((a=Math).max.apply(a,(0,Z._)(n)))},E=function(e){var a,n,r,t=z((0,v.At)({slug:e.employer}).data,e.data.children),s=(0,M.RF)(e.data.children),i=D([e.data,s,t]);return(0,c.jsxs)("div",{className:F().totalLossBreakdown,children:[(0,c.jsx)("p",{className:F().title,children:"Uppt\xe4ck vad som p\xe5verkar resultatet!"}),(0,c.jsx)("p",{className:F().body,children:"H\xe4r f\xe5r du en visuell \xf6verblick \xf6ver f\xf6rlusten - uppdelat efter orsaker och i relation till snittet och din arbetsplats."}),(0,c.jsxs)("div",{className:F().legend,children:[(0,c.jsx)("span",{className:F().categoryA,children:"policy-holder"===e.role?"Din partner":"Du"}),(0,c.jsx)("span",{className:F().categoryB,children:"Genomsnittet"}),t&&(0,c.jsx)("span",{className:F().categoryC,children:"Din arbetsplats"})]}),(0,c.jsxs)("div",{className:F().comparisons,children:[!(0,S.le)(e.data.partTime)&&(0,c.jsx)(I,{title:"Deltid",a:Math.abs(e.data.partTime),b:null!==(a=s.partTime)&&void 0!==a?a:0,c:null==t?void 0:t.partTime,max:i,description:"F\xf6rlusten av att inte arbeta heltid, dvs 100%. Genomsnittet f\xf6r deltidsarbete \xe4r att vara ledig 6h/vecka i 1,2 \xe5r."}),!(0,S.le)(e.data.salary)&&(0,c.jsx)(I,{title:"Inkomst",a:Math.abs(e.data.salary),b:s.salary,c:null==t?void 0:t.salary,max:i,description:"F\xf6rlorad l\xf6n under f\xf6r\xe4ldraledigheten. Genomsnittet f\xf6r en f\xf6r\xe4ldraledighet \xe4r 13 m\xe5nader f\xf6r kvinnor och 4 m\xe5nader f\xf6r m\xe4n."}),!(0,S.le)(e.data.pension)&&(0,c.jsx)(I,{title:"Pension",a:Math.abs(e.data.pension),b:null!==(n=s.pension)&&void 0!==n?n:0,c:null==t?void 0:t.pension,max:i,description:"Motsvarar uteblivna pensionsins\xe4ttningar. Pensionen p\xe5verkas framf\xf6rallt av f\xf6r\xe4ldraledighet och deltidsarbete och om du har kollektivavtal."}),!(0,S.le)(e.data.vab)&&(0,c.jsx)(I,{title:"VAB",a:Math.abs(e.data.vab),b:null!==(r=s.vab)&&void 0!==r?r:0,c:null==t?void 0:t.vab,max:i,description:"VAB delas i Sverige i regel ganska lika. Genomsnittsfamiljen tar ut 10 dagar f\xf6r en tv\xe5\xe5ring och den tiden delas 60/40 mellan f\xf6r\xe4ldrarna. "})]})]})},G=n(8689),V=n(10392),R=n(81879),q=n(94058),O=n.n(q),H=n(66388),Y=function(){return(0,c.jsx)(V.Z,{children:(0,c.jsxs)("div",{className:O().legalOffering,children:[(0,c.jsx)(H.ZP.Title,{as:"h3",level:4,children:"Legalt skydd"}),(0,c.jsx)(H.ZP.Paragraph,{children:(0,c.jsx)(H.ZP.Bold,{children:"Se till att skydda ert sparm\xe5l med ett juridiskt bindande avtal som tryggar b\xe5da parter oavsett om ni forts\xe4tter vara tillsammans eller g\xe5r skilda v\xe4gar."})}),(0,c.jsx)(H.ZP.Paragraph,{children:"Avtalet \xe4r kostnadsfritt och inneb\xe4r att det belopp ni kommit \xf6verens om som kompensation blir en g\xe5va under tiden ni \xe4r tillsammans. Vid en eventuell separation omvandlas g\xe5van till en skuld."}),(0,c.jsxs)("div",{className:O().details,children:[(0,c.jsx)(V.Z,{background:"grey",shadow:!1,padding:"thin",children:(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:O().title,children:"F\xf6r sambos"}),(0,c.jsx)(H.ZP.Paragraph,{level:2,children:"\xc4r ni sambos laddar ni ned ett skuldebrev, som signeras fysiskt av er b\xe5da. Skuldebrevet beh\xf6ver inte registeras."})]})}),(0,c.jsx)(V.Z,{background:"grey",shadow:!1,padding:"thin",children:(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:O().title,children:"F\xf6r gifta"}),(0,c.jsx)(H.ZP.Paragraph,{level:2,children:"\xc4r ni gifta laddar ni ned ett \xe4ktenskapsf\xf6rord inneh\xe5llande ett skuldebrev. F\xf6r att \xe4ktenskapsf\xf6rordet ska bli giltigt beh\xf6ver ni signera avtalet fysiskt och sedan skicka in det till Skatteverket f\xf6r registering."})]})})]})]})})},U=n(46437),X=n(82996),W=n(52160),J=n.n(W),K=function(){var e=["var(--ui-turquoise)","var(--ui-blue-dark)","var(--ui-gray)","var(--ui-cream)","var(--ui-white)"],a=M.sg.map(function(a,n){var r=a.fund;return{id:r,label:r,value:a.allocation,color:e[n]}});return(0,c.jsxs)("div",{className:J().pieChart,children:[(0,c.jsx)("div",{className:J().pie,children:(0,c.jsx)(X.H,{data:a,innerRadius:.3,animate:!1,fit:!0,margin:{top:0,right:10,bottom:10,left:10},enableArcLinkLabels:!1,colors:{datum:"data.color"},padAngle:0,cornerRadius:3,valueFormat:function(e){return(0,S.yI)(e,{decimals:0})},arcLabelsTextColor:function(e){return"var(--ui-blue-dark)"===e.color?"var(--ui-white)":"var(--ui-black-font)"}})}),(0,c.jsx)(V.Z,{className:J().legend,children:a.map(function(e){var a=e.label,n=e.color;return(0,c.jsxs)("div",{className:J().item,children:[(0,c.jsx)("span",{className:J().color,style:{background:n}}),(0,c.jsx)("span",{className:J().label,children:a})]},a)})})]})},Q=function(e){var a,n,r=e.data,t=(0,p.useMemo)(function(){return r?(0,Z._)(r).sort(function(e,a){return new Date(e.date).getTime()-new Date(a.date).getTime()}):[]},[r]),s=t.slice(t.length-60).map(function(e,a,n){var r;return{date:e.date,value:(e.value/(null===(r=n[0])||void 0===r?void 0:r.value)+1)
1*100}});return(0,c.jsxs)("div",{className:J().lineChart,children:[(0,c.jsxs)("div",{className:J().info,children:[(0,c.jsxs)("div",{className:J().box,children:[(0,c.jsx)("span",{className:J().title,children:"Din avgift"}),(0,c.jsx)("span",{className:J().value,children:"0,31%"})]}),(0,c.jsxs)("div",{className:J().box,children:[(0,c.jsx)("span",{className:J().title,children:"Utveckling 5 \xe5r"}),(0,c.jsx)("span",{className:J().value,children:(0,S.yI)((null===(a=t[t.length-1])||void 0===a?void 0:a.value)/(null===(n=t[t.length-60])||void 0===n?void 0:n.value)-1)})]})]}),(0,c.jsx)("div",{className:J().line,children:(0,c.jsx)(X.x,{data:[{id:"data",color:"var(--ui-turquoise)",data:s.map(function(e,a){return{x:a,y:e.value-100}})}],animate:!0,colors:function(e){return e.color},margin:{top:0,right:0,bottom:0,left:0},useMesh:!1,enableGridX:!1,enableGridY:!1,pointColor:{theme:"background"},enableArea:!0,yScale:{type:"linear",max:200,min:50},fill:[{id:"gradientA",match:"*"}],defs:[{colors:[{color:"var(--ui-turquoise)",offset:0},{color:"var(--ui-white)",offset:100,opacity:0}],id:"gradientA",type:"linearGradient"}]})})]})},$=n(45007),ee=n(29833),ea=n(73190),en="charly-portfolio-performance",er=function(){var e,a=(0,o._)((0,p.useState)(!1),2),n=a[0],t=a[1],s=(0,$.v9)(ea.H3),i=(0,$.I0)(),c=(e=(0,r._)(function(){var e,a;return(0,l.Jh)(this,function(n){switch(n.label){case 0:return[4,fetch("/api/portfolio/performance")];case 1:if(200!==(e=n.sent()).status)return ee.kg.error("Unable to fetch portfolio performance data"),t(!1),[2];return[4,e.json()];case 2:if((a=n.sent()).error)return ee.kg.error("Error when fetching portfolio performance data",{data:a}),t(!1),[2];return(0,R.bW)()&&window.localStorage.setItem(en,JSON.stringify({timestamp:Date.now(),data:a.data})),i((0,ea.Ek)(a.data)),[2]}})}),function(){return e.apply(this,arguments)});if((0,p.useEffect)(function(){s&&t(!1)},[null==s?void 0:s.length]),s)return{portfolioPerformance:s,isLoading:!1};if((0,R.bW)()&&window.localStorage.getItem(en)){var d=JSON.parse(window.localStorage.getItem(en)||"null"),u=d.data;d.timestamp>Date.now()-6048e5?i((0,ea.Ek)(u)):n||(window.localStorage.removeItem(en),t(!0),c())}else n||(t(!0),c());return{isLoading:n,portfolioPerformance:s}},et=n(663),es=n(82135),ei=n(76333),eo=n(41664),el=n.n(eo),ec=function(e){var a=(0,o._)((0,k.z_)(),1)[0],n=(0,o._)((0,p.useState)(!1),2),r=n[0],t=n[1],s=(0,o._)((0,p.useState)(!1),2),i=s[0],l=s[1],d=(0,p.useRef)(null),u=(0,R.yv)()?"":"TEST: ";return((0,p.useEffect)(function(){localStorage.getItem(M.sW)?(t(!0),e.onSuccess&&e.onSuccess()):r&&localStorage.setItem(M.sW,"1")},[r]),(0,p.useEffect)(function(){i&&!d.current&&(d.current=setTimeout(function(){l(!1),d.current=null,e.onSuccess&&e.onSuccess()},5e3))},[i,d]),r&&!i)?(0,c.jsx)(c.Fragment,{}):i?(0,c.jsx)(N.Z,{disabled:!0,background:"yellow",uppercase:!0,size:"wide",children:"Tack!"}):(0,c.jsx)(N.Z,{onClick:function(){l(!0),t(!0),a({recipient:"[email protected]",subject:"".concat(u,"Kund har visat intresse"),sender:{email:"[email protected]",name:"".concat(u,"Charly.se f\xf6retag")},message:"\nKund har visat intresse f\xf6r att b\xf6rja spara.\n\nNamn: ".concat(e.employee.firstName," ").concat(e.employee.lastName,"\nEmail: ").concat(e.employee.email,"\nArbetsgivare: ").concat(e.employer.name,"\n\nKompensationsinst\xe4llning:\n\n").concat(JSON.stringify(e.input,null,2),"\n").trim()})},background:"yellow",uppercase:!0,size:"wide",children:"Visa intresse"})},ed=function(e){var a,n,r,t=encodeURIComponent("/employers/".concat(e.employer.slug,"/teckna-forsakring?savingsTarget=").concat(null===(a=e.input)||void 0===a?void 0:a.compensationAmount,"&monthlyPremium=").concat(null===(n=e.input)||void 0===n?void 0:n.monthlyPremium,"&horizon=").concat(null===(r=e.input)||void 0===r?void 0:r.horizonYears,"&role=").concat(e.role));return(0,c.jsxs)("div",{className:j().cta,children:["purchase"===e.ctaType&&(0,c.jsx)(N.Z,{as:"a",href:"/employers/".concat(e.employer.slug,"/verifiera?redirect=").concat(t,"&message=").concat("Du beh\xf6ver verifiera dig med BankID innan du kan b\xf6rja spara."),disabled:e.disabled,background:"yellow",uppercase:!0,size:"wide",children:"B\xf6rja spara"}),"show-interest"===e.ctaType&&(0,c.jsx)(ec,{employer:e.employer,employee:e.employee,input:e.input,role:e.role,onSuccess:e.onSuccess}),(0,c.jsx)("a",{className:j().link,href:"/employers/".concat(e.employer.slug,"/hur-vi-raknar"),target:"_blank",rel:"noreferrer",children:"S\xe5 h\xe4r ber\xe4knas er sparplan"})]})},eu=function(e){var a,n,r=[{title:"F\xe5 koll p\xe5 ditt resultat - Boka samtal med oss",body:(0,c.jsxs)(c.Fragment,{children:["Vi finns h\xe4r f\xf6r att st\xf6tta dig -",(0,c.jsx)("br",{}),(0,c.jsx)("a",{href:"https://calendly.com/lisa-charly-equity/fa-koll-pa-ditt-resultat-oc
1h-nasta-steg-boka-har",target:"_blank",rel:"noreferrer",children:"Se lediga tider h\xe4r"}),"!"]}),image:"/_next/static/media/boka-mote.7ccc3ef0.jpg"},{title:"Tips p\xe5 hur du kan prata med din partner",body:(0,c.jsxs)(c.Fragment,{children:["F\xe5 ig\xe5ng samtalet d\xe4r hemma! ",(0,c.jsx)("br",{}),"5 tips f\xf6r att g\xf6ra snacket enklare."]}),image:et.Z.src,href:"/employers/".concat(null===(a=e.employer)||void 0===a?void 0:a.slug,"/blog/sa-far-ni-igang-samtalet-hemma")},{title:(0,c.jsx)(c.Fragment,{children:"Ekonomisk j\xe4mst\xe4lld\xadhet – varf\xf6r \xe4r vi inte framme \xe4n?"}),body:"Uppt\xe4ck vad forskningen s\xe4ger om orsakerna till gapet.",image:"/_next/static/media/dad-hugging-child.d44b8507.png",href:"/employers/".concat(null===(n=e.employer)||void 0===n?void 0:n.slug,"/blog/claudia-goldins-nobelpris-visar-varfoer-couples-equity-aer-naesta-steg-foer")}];return(0,c.jsx)("div",{className:j().teasersWrapper,children:(0,c.jsx)("ul",{className:j().teasers,children:r.map(function(e,a){var n=(0,c.jsx)(es.Z,{image:e.image,borderless:!0,fixedImageHeight:!0,children:(0,c.jsxs)("div",{className:j().content,children:[(0,c.jsx)("span",{className:j().title,children:e.title}),(0,c.jsx)("span",{className:j().body,children:e.body})]})});return(0,c.jsx)("li",{children:e.href?(0,c.jsx)(el(),{className:j().link,href:e.href,children:n}):n},"".concat(a))})})})},em=(0,g.f)(function(){var e=(0,d.useRouter)(),a=(0,P.d5)(),n=a.employee,u=a.employer,g=(0,o._)((0,p.useState)(null),2),y=g[0],N=g[1],w=(0,o._)((0,v.hK)(),1)[0],A=(0,o._)((0,v.gR)(),1)[0],T=(0,o._)((0,k._z)(),1)[0],S=(0,o._)((0,p.useState)(null),2),L=S[0],Z=S[1],C=(0,o._)((0,p.useState)(null),2),F=C[0],I=C[1],z=(0,o._)((0,p.useState)(!1),2),D=z[0],R=z[1],q=(0,o._)((0,p.useState)(null),2),O=q[0],H=q[1],X=(0,o._)((0,p.useState)(null),2),W=X[0],J=X[1],$=er().portfolioPerformance,ee=(0,p.useMemo)(function(){return(0,ei.X4)(null==u?void 0:u.slug)},[u]),ea=(0,p.useMemo)(function(){return ee.insurancePurchases?"purchase":"show-interest"},[ee]);(0,p.useEffect)(function(){sessionStorage.setItem(M.NQ,"1")},[]),(0,p.useEffect)(function(){e.isReady&&u&&n&&(0,r._)(function(){var a,r,t,s,i,c,d,m,p,h,_,f,g;return(0,l.Jh)(this,function(l){switch(l.label){case 0:return[4,Promise.all([A({slug:u.slug,employeeId:n.id}).unwrap().catch(function(){return null}),w({slug:u.slug,employeeId:n.id}).unwrap().catch(function(){return null})])];case 1:return r=(a=o._.apply(void 0,[l.sent(),2]))[0],t=a[1],s=(0,x.ZP)(u.slug,{employmentDate:n.startDate,birthDate:n.birthDate,gender:n.gender}),t&&("future"===e.query.calculation||!e.query.calculation&&t.updatedAt>(null!==(i=null==r?void 0:r.updatedAt)&&void 0!==i?i:0))?(m="partner"==(d=t.compensationAmount<0?"partner":"user")?"policy-holder":"insured",p="user"===d?t.employeeInput:t.partnerInput,h="user"===d?s:(0,x.ZP)("default"),_=(0,b.hY)(p,d,h),N({compensationAmount:t.compensationAmount,horizonYears:t.savingsHorizon,monthlyPremium:t.monthlyPremium,role:m,calculation:"future"}),H("future-gap"),J(t),Z(_),I(m)):r&&("historic"===e.query.calculation||!e.query.calculation&&r.updatedAt>(null!==(c=null==t?void 0:t.updatedAt)&&void 0!==c?c:0))&&(f="partner"==(r.compensationAmount<0?"partner":"user")?"policy-holder":"insured",g=(0,b.Bq)(r.input,s,n.birthDate),H("historic-gap"),J(r),N({compensationAmount:r.compensationAmount,horizonYears:r.savingsHorizon,monthlyPremium:r.monthlyPremium,role:f,calculation:"historic"}),Z(g),I(f)),[2]}})})()},[e.isReady,null==u?void 0:u.slug,null==n?void 0:n.id]),(0,p.useEffect)(function(){!ee.emails.savingsPlanPageVisited||!n||!n.email||!n.firstName||localStorage.getItem(M.Pu)||T({recipient:n.email,template:k.Vv.VisitedSavingsPlanPage,params:{firstName:n.firstName,url:window.location.href}}).unwrap().then(function(){localStorage.setItem(M.Pu,"true")}).catch(function(e){console.error("Failed to send email",e)})},[null==n?void 0:n.id,null==u?void 0:u.slug,ee]);var en=ee.isPilot?(0,c.jsx)(c.Fragment,{children:"Observera att detta \xe4r en pilot och att de siffror och grafer som visas bygger p\xe5 antaganden om f\xf6rv\xe4ntad avkastning fr\xe5n ett indexn\xe4ra fondsparande med l\xe5ga avgifter."}):(0,c.jsx)(c.Fragment,{children:"Om ni f\xf6ljer Charlys sparplan kommer ni st\xe4nga gapet f\xf6r tiden som inte delades lika. N\xe4r gapet st\xe4ngs \xe4r baserat p\xe5 portf\xf6ljens prestation de senaste 10 \xe5ren. Charly garanterar inte att sparandet n\xe5r den summan vid den tidpunkten."});return n&&u&&L&&y&&W&&O&&F?(0,c.jsx)(f._,{title:"Charly",pageTitle:"Er sparplan",noCrawl:!0,children:(0,c.jsx)(_.Z,{children:(0,c.jsxs)("div",{className:j().c
1ontent,children:[(0,c.jsx)("div",{className:j().main,children:(0,c.jsxs)("div",{className:m()(j().summary),children:[(0,c.jsx)(B,{role:F,data:L,calculationType:O}),(0,c.jsx)(h.Z,{}),(0,c.jsx)(E,{role:F,data:L,employer:u.slug}),(0,c.jsx)("div",{className:j().onlySmallScreens,children:(0,c.jsx)(V.Z,{disclaimer:en,children:(0,c.jsx)(G.B,{compensationAmount:W.compensationAmount,monthlyPremium:W.monthlyPremium,horizon:W.savingsHorizon,role:y.role,onChange:function(e){N((0,i._)((0,s._)({},y),{compensationAmount:e.compensationAmount,monthlyPremium:e.monthlyPremium,horizonYears:e.horizon}))},employee:n,employer:u})})})]})}),(0,c.jsxs)("div",{className:j().misc,children:[(0,c.jsx)(eu,{employer:u}),(0,c.jsxs)("div",{className:j().row,children:[ee.insurancePurchases&&(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:j().portfolioInformation,children:[(0,c.jsx)("p",{className:j().title,children:"Charlys fondportf\xf6lj"}),$&&(0,c.jsx)(Q,{data:$}),(0,c.jsx)("p",{children:"Portf\xf6ljen \xe4r skapad f\xf6r att passa ett pensionsspar, med l\xe5ng tid kvar tills pengarna ska tas ut. Den - har h\xf6g risk med 100% aktiefonder."}),(0,c.jsx)(K,{})]})}),(0,c.jsx)(Y,{})]}),(0,c.jsx)("div",{className:m()(j().ctaMobile,(0,t._)({},j().hide,D)),children:(0,c.jsx)(ed,{ctaType:ea,employee:n,employer:u,role:F,input:y,onSuccess:function(){R(!0)}})})]}),(0,c.jsx)("div",{className:j().sidebar,children:(0,c.jsxs)(V.Z,{className:m()(j().onlyLargeScreens),disclaimer:en,children:[(0,c.jsx)(G.B,{compensationAmount:W.compensationAmount,monthlyPremium:W.monthlyPremium,horizon:W.savingsHorizon,role:y.role,onChange:function(e){N((0,i._)((0,s._)({},y),{compensationAmount:e.compensationAmount,monthlyPremium:e.monthlyPremium,horizonYears:e.horizon}))},employee:n,employer:u}),(0,c.jsx)(ed,{ctaType:ea,employee:n,employer:u,role:F,input:y})]})})]})})}):(0,c.jsx)(f._,{title:"Charly",pageTitle:"Er sparplan",noCrawl:!0,children:(0,c.jsx)("div",{className:j().centered,children:(0,c.jsx)(U.Z,{})})})})},52611:function(e){e.exports={horizontalLine:"HorizontalLine_horizontalLine__QdDJY",invisible:"HorizontalLine_invisible__2GVOl",noMobile:"HorizontalLine_noMobile__UVFn1"}},86476:function(e){e.exports={teaser:"Teaser_teaser__HoDtK",borderless:"Teaser_borderless__39FRE",image:"Teaser_image__g2l3s",fixedImageHeight:"Teaser_fixedImageHeight__F7iJF",content:"Teaser_content__Dcj0w",link:"Teaser_link__kadgE"}},94058:function(e){e.exports={legalOffering:"LegalOffering_legalOffering__ZYO7l",details:"LegalOffering_details__jWXiN",title:"LegalOffering_title__jXypx",description:"LegalOffering_description__vIVz3"}},52160:function(e){e.exports={lineChart:"PortfolioPerformance_lineChart__BCbjs",line:"PortfolioPerformance_line___8j_s",selector:"PortfolioPerformance_selector__w3Aid",button:"PortfolioPerformance_button__mLFv3",selected:"PortfolioPerformance_selected__NBzFc",performance:"PortfolioPerformance_performance__7gu2x",info:"PortfolioPerformance_info__8q7Sh",box:"PortfolioPerformance_box__0t1PA",title:"PortfolioPerformance_title__OyI0A",value:"PortfolioPerformance_value__wPkvm",pieChart:"PortfolioPerformance_pieChart__C3gs3",pie:"PortfolioPerformance_pie__DjLfg",legend:"PortfolioPerformance_legend___4XNM",item:"PortfolioPerformance_item__SNlVu",color:"PortfolioPerformance_color__6nyvF",label:"PortfolioPerformance_label__PEVl4"}},29127:function(e){e.exports={totalLossBreakdown:"TotalLossBreakdown_totalLossBreakdown__x5GBV",title:"TotalLossBreakdown_title__jikzG",legend:"TotalLossBreakdown_legend__c91kZ",categoryA:"TotalLossBreakdown_categoryA__s_dZa",categoryB:"TotalLossBreakdown_categoryB__Ic3XD",categoryC:"TotalLossBreakdown_categoryC__LiG_Y",comparisons:"TotalLossBreakdown_comparisons__4ouIH",comparison:"TotalLossBreakdown_comparison__ZXVtR",bars:"TotalLossBreakdown_bars__rdwDt",amount:"TotalLossBreakdown_amount__STXw2",description:"TotalLossBreakdown_description__9emVp"}},82251:function(e){e.exports={totalLoss:"TotalLossComparison_totalLoss__kLFaZ",header:"TotalLossComparison_header__w7Z0g",subtitle:"TotalLossComparison_subtitle__II5V2",title:"TotalLossComparison_title__DtEmS",comparison:"TotalLossComparison_comparison__ShtNw"}},19027:function(e){e.exports={contentFrame:"CenteredPage_contentFrame__orxXt",noMobilePadding:"CenteredPage_noMobilePadding__B73T5"}}
1,86101:function(e){e.exports={wrapper:"GradientBackgroundPage_wrapper__dbCE9",container:"GradientBackgroundPage_container__htfFe",cream:"GradientBackgroundPage_cream__P5KYv",turquoise:"GradientBackgroundPage_turquoise__ONKh8",hideWave:"GradientBackgroundPage_hideWave__LZJtS",wave:"GradientBackgroundPage_wave__yXbB6",children:"GradientBackgroundPage_children__ZUgk1",content:"GradientBackgroundPage_content__wxbRr",noTopPaddingMobile:"GradientBackgroundPage_noTopPaddingMobile__yT7OQ"}},36257:function(e){e.exports={content:"sparplan_content__f5cg9",main:"sparplan_main__4zurd",sidebar:"sparplan_sidebar__Ge1_3",misc:"sparplan_misc__QczKr",summary:"sparplan_summary__VdGYU",row:"sparplan_row__qn2AH",portfolioInformation:"sparplan_portfolioInformation__ETW_Y",title:"sparplan_title__5bPzy",compArea:"sparplan_compArea__8eSSg",compensationBreakdown:"sparplan_compensationBreakdown__WMlz8",list:"sparplan_list__grFZf",barChart:"sparplan_barChart__miwpu",description:"sparplan_description__49AKC",label:"sparplan_label__tnJ7H",barRow:"sparplan_barRow__NXcML",bar:"sparplan_bar__zMjVf",valueRow:"sparplan_valueRow__65pnL",onlySmallScreens:"sparplan_onlySmallScreens__tu67H",onlyLargeScreens:"sparplan_onlyLargeScreens__RGqPt",cta:"sparplan_cta__XiCIV",ctaMobile:"sparplan_ctaMobile__ZYqqv",hide:"sparplan_hide___d5x2",centered:"sparplan_centered__5_vjs",teasersWrapper:"sparplan_teasersWrapper__zrqtK",teasers:"sparplan_teasers__5ZMcl",link:"sparplan_link__4_8uS",body:"sparplan_body__YPYs7"}}},function(e){e.O(0,[1191,1114,1647,5359,672,2888,9774,179],function(){return e(e.s=15622)}),_N_E=e.O()}]);

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.