PageSourceSearch

https://www.industrienspension.dk/assets/scripts/ip.3370.1473ded9796fae753873.chunk.js

js industrienspension.dk collected 2026-10-04 22:23:41 UTC 19,471 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkindustrienspension=globalThis.webpackChunkindustrienspension||[]).push([[3370],{3370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(4126),n(4580),n(2930),n(93),n(4772),n(2734),n(9689),n(500);var a,r=n(2425),i=(a=n(8649))&&a.__esModule?a:{default:a},s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(a,i,s):a[i]=e[i]}a.default=e,n&&n.set(e,a);return a}(n(2884)),o=n(5253);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let u;if(s.default){const e=(0,i.default)(".js-swiper-container");s.default.use([s.Manipulation,s.Navigation,s.Autoplay]);const t=e.data("swiper-delay")||1e4,n=e.data("swiper-loop")||!1;u=new s.default(e.get(0),{autoHeight:!0,init:!1,loop:n,autoplay:{delay:t,stopOnLastSlide:!0,disableOnInteraction:!0},watchSlidesProgress:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});const a=()=>{u.autoplay.running&&(0,i.default)(".svg-wrapper").addClass("animate")};u.on("init",(()=>a())),u.on("slideChangeTransitionStart",(()=>(0,i.default)(".svg-wrapper").removeClass("animate"))),u.on("slideChangeTransitionEnd",(()=>a())),u.el&&(u.autoplay.stop(),u.init(),(0,i.default)(".swiper-button-pause").on("click",(()=>{if(!u.autoplay.running)return u.autoplay.start(),void(0,i.default)(".svg-wrapper").addClass("animate");u.autoplay.stop(),(0,i.default)(".svg-wrapper").removeClass("animate")})),(0,i.default)(".min-side-col-campaign").on("mouseenter",(()=>{(0,i.default)(".svg-wrapper").removeClass("animate")})).on("mousemove",(()=>{(0,i.default)(".svg-wrapper").removeClass("animate")})).on("mouseleave",(()=>{u.autoplay.running&&(0,i.default)(".svg-wrapper").addClass("animate")}))),(0,i.default)(".swiper-button-pause").on("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),(0,i.default)(".swiper-button-pause").trigger("click"))}))}t.default=class{constructor(){d(this,"_personalizedData",void 0),d(this,"_showingGraph",!1);const e=document.querySelectorAll("#min-side-graf-actions .action-filter-link");this.initEventlistners(e),this.savingGraf(),setTimeout((()=>{this.returnsGraf(),this.prognoseGraf()}),3e3),this.pensionTimer(),this.renderPersonalization(),this.guideLinks(),this.showActiveGraph(e),this.setupButtonsForDelvisAldersopsparing()}setupButtonsForDelvisAldersopsparing(){const e=document.getElementById("btnDelvisAldersVisDefault"),t=document.getElementById("btnDelvisAldersSomEngangs");e&&t&&(t.style.cssText+="display: block !important;",e.style.cssText+="display: none !important;",t.onclick=n=>{t.style.cssText+="display: none !important;",this.prognoseGraf2(null,null,null,"Sum",null),e.style.cssText+="display: block !important;"},e.onclick=n=>{e.style.cssText+="display: none !important;",this.prognoseGraf(),t.style.cssText+="display: block !important;"})}async renderPersonalization(){const e=await this.personalizedData(),t=[];if(e.items.forEach((e=>{if("TextCampaignBoksModel"===e.type)t.push(e);else console.error(`unsupported type: ${e.type}`)})),u&&u.el&&t.length){const e=t.map((e=>`\n                <div class="swiper-slide">\n                    <div class="min-side-col-campaign-icon">${e.icon?'<svg role="img"><use xlink:href="/assets/images/sprite.symbol.svg#'+e.icon+'" xmlns:xlink="http://www.w3.org/1999/xlink"></use></svg>':""}</div>\n                    <h2 class="min-side-col-campaign-header">${e.header}</h2>\n                    <p class="min-side-col-campaign-description">${e.description}</p>\n                    <a class="btn min-side-col-campaign-button ${e.buttonLink&&e.buttonText?"":"hide"}" href="${e.buttonLink}">${e.buttonText}</a>\n                </div>\n            `));u.appendSlide(e),u.el.classList.remove("ajax-loading"),e.length>
11?u.autoplay.start():u.el.classList.add("is-single")}}hideGraph(e){this._showingGraph||e.removeClass("hide"),this._showingGraph=!0}showActiveGraph(e){e.forEach((e=>{const t=e.getAttribute("data-graf-toggle");document.querySelector(t).classList.add("hide")}));const t=[...e].find((e=>e.classList.contains("active"))).getAttribute("data-graf-toggle");document.querySelector(t).classList.remove("hide")}initEventlistners(e){e.forEach((e=>e.addEventListener("click",(e=>{document.querySelectorAll("#min-side-graf-actions .action-filter-link").forEach((e=>{e.classList.remove("active"),document.querySelector(e.dataset.grafToggle).classList.add("hide")})),document.querySelectorAll(".min-side-header-col:not(.min-side-header-col-graf)").forEach((t=>{t.classList.toggle("hide","true"==e.target.dataset.grafFull)})),e.target.classList.add("active"),document.querySelector(e.target.dataset.grafToggle).classList.remove("hide"),window.Highcharts.charts.forEach((e=>e.reflow()))}))));const t=document.querySelector("#pensionYears");t&&t.addEventListener("change",(e=>{this.prognoseGraf(e.target.value)}));const n=document.querySelector("#btnVisJusteringer");n&&n.addEventListener("click",(e=>{const t=(0,i.default)("input[id='output-1']").val(),n=(0,i.default)("input[id='output-2']").val(),a=(0,i.default)("input[id='output-3']").val();let r;r=(0,i.default)("#RatepensionTabKnap").is(":disabled")&&(0,i.default)("#LivslangpensionTabKnap").is(":disabled")?"Sum":(0,i.default)("[id$='TabKnap'].active").attr("name");const s=document.querySelector("#inputAoSumValue")?.value;this.prognoseGraf2(t,n,a,r,s)}));const a=document.querySelector("#inputAlderSlider"),r=document.querySelector("#output-1");a&&(window.onRangeSlideAlder=e=>{this.hentMaxVaerdier(a.value)}),r&&(r.onchange=e=>{this.hentMaxVaerdier(r.value)})}pensionTimer(){var e=document.getElementById("min-side-pension-timer");if(null!==e&&null!==e.dataset&&null!==e.dataset.callback){const t=e.dataset.callback;fetch(t).then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((e=>{this.pensionCountdown(e),this.pensionSavingStatus(e)})).catch((e=>{console.error(e)}))}}pensionSavingStatus(e){document.getElementById("min-side-pension-status").innerText=e.pensionValue}pensionCountdown(e){const t=document.getElementById("min-side-pension-countdown");let n;null!==e.pensionDate&&(n=r.DateTime.fromJSDate(new Date(e.pensionDate)));const a=setInterval((()=>{if(void 0===n)return void clearInterval(a);document.getElementById("min-side-pension-countdown-text").classList.remove("hide");const e=r.DateTime.fromJSDate(new Date),i={conversionAccuracy:"longterm"};var s=n.diff(e,["year","days","hours","minutes","seconds","milliseconds"],i);if(s.as("seconds")<0)return document.getElementById("min-side-pension-countdown-text").classList.remove("hide"),void clearInterval(a);const o=s.years,l=e.plus({years:o});s=n.diff(l,["days","hours","minutes","seconds","milliseconds"],i),t.innerHTML=`${o} år, ${s.days} dage, ${s.hours} timer, ${s.minutes} minutter, ${s.seconds} sekunder.`}),1e3)}savingGraf(){const e=(0,i.default)("#graf-savings-container"),t=(0,i.default)("#graf-savings");if(!e.length||!t.length)return;this.hideGraph(t),e.highcharts({credits:{enabled:!1},lang:{resetZoom:"Nulstil zoom"},chart:{type:"column",height:window.innerWidth<=767?300:null,style:{fontFamily:"proximanova-regular"},backgroundColor:"transparent"},title:null,tooltip:{enabled:!1},legend:{enabled:!1},colors:["#4EA642"],xAxis:{type:"category",gridLineWidth:1,gridLineColor:"#eaeaeb"},yAxis:{gridLineWidth:1,gridLineColor:"#eaeaeb",title:{text:null},labels:{formatter:function(){return this.value.toLocaleString("da-DK",{maximumFractionDigits:1})}}},series:[{name:"",data:[{name:"2015",y:0},{name:"2016",y:0},{name:"2017",y:0},{name:"2018",y:0},{name:"2019",y:0}]}]});const n=t.data("callbackUrl");fetch(n).then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((n=>{const a=n.map(this.mapGraph);e.highcharts().series[0].setData(a),document.getElementById("erAldersPensionstMedGennemsnitsRente")&&t.hide()})).catch((t=>{n||e.highcharts().series[0].setData([{name:2015,y:375e3},{name:2016,y:4e5},{name:2017,y:5e5},{name:2018,y:13e5},{name:2019,y:145e4}])}))}returnsGraf(){const e=(0,i.default)("#graf-returns-container"),t=(0,i.default)("#graf-returns");if(!e.length||!t.length)return;this.hideGraph(t),e.highcharts({credits:{enabled:!1},lang:{resetZoom:"Nulstil zoom"},chart:{type:"column",height:window.innerWidth<=767?300:null,style:{fontFamily:"proximanova-regular"},backgroundColor:"transparent"},title:null,tooltip:{enabled:!1},legend:{enabled:!1},colors:["#4EA642"],xAxis:{type:"category",gridLineWidth:1,gridLineColor:"#eaeaeb"},yAxis:{gridLineWidth:1,gridLineColor:"#eaeaeb",title:{text:null}
1,labels:{formatter:function(){return this.value.toLocaleString("da-DK",{maximumFractionDigits:1})}}},plotOptions:{series:{cursor:"pointer",point:{events:{click:function(){const e=document.getElementsByClassName("right")[0];e&&(window.location=e.href)}}}}},series:[{name:"",data:[{name:"2015",y:0},{name:"2016",y:0},{name:"2017",y:0},{name:"2018",y:0},{name:"2019",y:0}]}]});const n=t.data("callbackUrl");fetch(n).then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((t=>{const n=t.map(this.mapGraph);e.highcharts().series[0].setData(n)})).catch((t=>{n||e.highcharts().series[0].setData([{name:2015,y:375e3},{name:2016,y:4e5},{name:2017,y:5e5},{name:2018,y:-13e5},{name:2019,y:145e4}])}))}hentMaxVaerdier(e){(0,i.default)("#spinSliders").show(),(0,i.default)(".hide-hent-max").hide(),(0,i.default)("#errorSpan").hide();const t=(0,i.default)("#inputAlderSlider").data("callback"),n=(0,i.default)("#graf-forecast");if(!n.length)return;const a=n.data("encrypted-id"),r={method:"post",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({alder:e,encryptedId:a})};fetch(t,r).then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((e=>{let{obligatoriskRatepensionMax:t,ekstraRatepensionMax:n,maxAoSumVaerdi:a,maxAoSumTekst:r,fordelAoBroedtekst:s,defaultAoSumVaerdi:o,defaultAoSumTekst:l,error:d}=e;d?((0,i.default)("#spinSliders").hide(),(0,i.default)("#errorSpan").show()):(this.opdaterMaxUdbetalingsPerioder(t,n,a,r,s,o,l),formaterOgValiderTal("inputAoSumValue"))}))}opdaterMaxUdbetalingsPerioder(e,t,n,a,r,s,o){(0,i.default)("#spinSliders").hide(),(0,i.default)(".hide-hent-max").show();var l=(0,i.default)("#obligatoriskRatepensionsSlider");l.rangeslider("destroy"),l.attr("max",e);var d=(0,i.default)("#ekstraRatepensionsSlider");d.rangeslider("destroy"),d.attr("max",t),App.Util.rangeSlider(),"NaN"==(0,i.default)("input[id='output-2']").val()&&(0,i.default)("input[id='output-2']").val(e),"NaN"==(0,i.default)("input[id='output-3']").val()&&(0,i.default)("input[id='output-3']").val(t),(0,i.default)("#engangsudbetalingAltKnap").text(a),window.vaerdiAltAoSum=n,(0,i.default)("#engangsudbetalingStandardKnap").text(o),(0,i.default)("#inputAoSumValue").val(s),window.vaerdiDefaultAoSum=s,window.vaerdiAltAoSum<=window.vaerdiDefaultAoSum?(0,i.default)("#engangsudbetalingStandardKnap").hide():(0,i.default)("#engangsudbetalingStandardKnap").show(),(0,i.default)("#fordelAoBroedtekstParagraph").html(r)}prognoseGraf(e){if(null!==document.getElementById("inputAoSumValue")&&!document.getElementById("inputAoSumValue").value){const e=parseInt(document.getElementById("inputAoSumValue").value.replaceAll(".",""),10);if(!validerTal(e))return}var t=(0,i.default)("#graf-forecast");if(!t.length)return;i.default.fancybox.close(),this.hideGraph(t),(0,i.default)("#btnJusterPensionsudbetaling").addClass("hide"),(0,i.default)("#load").addClass("loading"),(0,i.default)("#spin").show();let n=t.data("callback");const a=t.data("encrypted-id");e||(e=t.data("default-alder"));let r={method:"post",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({alder:e,encryptedId:a})};n||(n=!n&&o.isMockup&&"/js/func/min-side/PrognoseGrafMockup.json",r={method:"get",headers:{"Content-Type":"application/json; charset=utf-8"}}),fetch(n,r).then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((e=>{let{tableHtml:n,tooltipsHtml:a,gulebokseHtml:r,graphData:s,graphOptions:o}=e;setTimeout((function(){const e=App.pensionForecastGraph.API(".box-prognose-new");(0,i.default)("#load").removeClass("loading"),(0,i.default)("#spin").hide(),(0,i.default)("#btnJusterPensionsudbetaling").removeClass("hide"),o&&e.update(o),(0,i.default)("#prognose-tabel-container").html(n),(0,i.default)("#prognose-tooltip-container").html(a),(0,i.default)("#prognose-gulebokse-container").html(r),e.reflow(),App.pensionForecastGraph.update(s),App.pensionForecastGraph.customTooltips(".box-prognose-new",e),document.getElementById("erAldersPensionstMedGennemsnitsRente")&&t.show()}),1)})).catch((e=>{(0,i.default)("#load").removeClass("loading"),(0,i.default)("#spin").hide()}))}prognoseGraf2(e,t,n,a,r){if(null!==document.getElementById("inputAoSumValue")&&!document.getElementById("inputAoSumValue").value){const e=parseInt(document.getElementById("inputAoSumValue").value.replaceAll(".",""),10);if(!validerTal(e))return}i.default.fancybox.close();var s=(0,i.default)("#graf-forecast");if(!s.length)return;this.hideGraph(s),(0,i.default)("#load").addClass("loading"),(0,i.default)("#spin").show();let l=s.data("callback");const d=s.data("encrypted-id");e||(e=s.data("default-alder"));let u={method:"post",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({alder:e,garantiperiodeobligatoriskrate:t,garantiperiodeekstrapension:n,aldersforsikringudbetalingsform:a,inputAoSumValue:r,encryptedId:d})};l||(l=!l&&o.isMockup&&"/js/func/min-side/PrognoseGrafMockup.json",u={method:"get",headers:{"Content-Type":"application/json; charset=utf-8"}}),fetch(l,u).then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((e=>{let{tableHtml:t,tooltipsHtml:n,gulebokseHtml:a,graphData:r,graphOptions:s}=e;setTimeout((function(){const e=App.pensionForecastGraph.API(".box-prognose-new");(0,i.default)("#load").removeClass("loading"),(0,i.default)("#spin").hide(),s&&e.update(s),(0,i.default)("#prognose-tabel-container").html(t),(0,i.default)("#prognose-tooltip-container").html(n),(0,i.default)("#prognose-gulebokse-container").html(a),e.reflow(),App.pensionForecastGraph.update(r),App.pensionForecastGraph.customTooltips(".box-prognose-new",e)}),1)})).catch((e=>{(0,i.default)("#load").removeClass("loading"),(0,i.default)("#spin").hide()}))}guideLinks(){const e=document.querySelector(".js-min-side-guide-links");null!==e&&e.querySelector(".btn").addEventListener("click",(t=>{t.preventDefault();const n=e.classList.contains("has-moreitems");e.classList.remove("has-moreitems"),n&&requestAnimationFrame((()=>{const t=e.querySelectorAll("ul > li")[9]?.querySelector("a.min-side-icon-link, a");t&&t.focus()}))}))}async personalizedData(){return void 0===this._personalizedData&&await fetch("?ipjson=1").then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((e=>{this._personalizedData=e})).catch((e=>{})),void 0===this._personalizedData&&await fetch("/js/func/min-side/ipjsonMockup.json").then((e=>200!==e.status?void 0:e)).then((e=>e.json())).then((e=>{this._personalizedData=e})).catch((e=>{console.error(e)})),this._personalizedData}mapGraph(e){return{name:e.label,y:e.value,color:e.value<0?"#de3000":""}}};document.querySelectorAll(".min-side-icon-link").forEach((e=>{const t=e.getElementsByTagName("svg");for(const e of t)e.setAttribute("fill","none")}))},4675:(e,t,n)=>{var a=n(252),r=n(6223),i=n(6323),s=n(6554),o=n(8705),l=n(8589),d=r([].push),u=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,c=6==e,p=7==e,h=5==e||c;return function(f,m,g,v){for(var y,b,w=s(f),S=i(w),A=a(m,g),x=o(S),k=0,E=v||l,T=t?E(f,x):n||p?E(f,0):void 0;x>k;k++)if((h||k in S)&&(b=A(y=S[k],k,w),e))if(t)T[k]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:d(T,y)}else switch(e){case 4:return!1;case 7:d(T,y)}return c?-1:r||u?u:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9745:(e,t,n)=>{var a=n(8890),r=n(5164),i=n(7501),s=n(5778)("species"),o=Array;e.exports=function(e){var t;return a(e)&&(t=e.constructor,(r(t)&&(t===o||a(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?o:t}}
1,8589:(e,t,n)=>{var a=n(9745);e.exports=function(e,t){return new(a(e))(0===t?0:t)}},3825:(e,t,n)=>{var a=n(5778)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,"/./"[e](t)}catch(e){}}return!1}},8890:(e,t,n)=>{var a=n(677);e.exports=Array.isArray||function(e){return"Array"==a(e)}},2828:(e,t,n)=>{var a=n(7501),r=n(677),i=n(5778)("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},1712:e=>{e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},7049:(e,t,n)=>{var a=n(2828),r=TypeError;e.exports=function(e){if(a(e))throw r("The method doesn't accept regular expressions");return e}},3435:(e,t,n)=>{"use strict";var a=n(2183),r=n(6223),i=n(101),s=n(1421),o=n(7205),l=n(2141),d=n(1023),u=n(6554),c=n(6323),p=Object.assign,h=Object.defineProperty,f=r([].concat);e.exports=!p||s((function(){if(a&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||o(p({},t)).join("")!=r}))?function(e,t){for(var n=u(e),r=arguments.length,s=1,p=l.f,h=d.f;r>s;)for(var m,g=c(arguments[s++]),v=p?f(o(g),p(g)):o(g),y=v.length,b=0;y>b;)m=v[b++],a&&!i(h,g,m)||(n[m]=g[m]);return n}:p},1267:(e,t,n)=>{"use strict";var a=n(7453),r=n(9093),i=n(5530),s=RangeError;e.exports=function(e){var t=r(i(this)),n="",o=a(e);if(o<0||o==1/0)throw s("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},9689:(e,t,n)=>{"use strict";var a=n(4128),r=n(4675).findIndex,i=n(7555),s="findIndex",o=!0;s in[]&&Array(1).findIndex((function(){o=!1})),a({target:"Array",proto:!0,forced:o},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},2734:(e,t,n)=>{"use strict";var a=n(4128),r=n(4675).find,i=n(7555),s="find",o=!0;s in[]&&Array(1).find((function(){o=!1})),a({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},93:(e,t,n)=>{n(4128)({target:"Math",stat:!0},{sign:n(1712)})},2930:(e,t,n)=>{n(4128)({target:"Math",stat:!0},{trunc:n(9870)})},4580:(e,t,n)=>{n(4128)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},4126:(e,t,n)=>{var a=n(4128),r=n(3435);a({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},4772:(e,t,n)=>{n(4128)({target:"String",proto:!0},{repeat:n(1267)})},500:(e,t,n)=>{"use strict";var a,r=n(4128),i=n(6223),s=n(9584).f,o=n(421),l=n(9093),d=n(7049),u=n(5530),c=n(3825),p=n(7840),h=i("".startsWith),f=i("".slice),m=Math.min,g=c("startsWith");r({target:"String",proto:!0,forced:!!(p||g||(a=s(String.prototype,"startsWith"),!a||a.writable))&&!g},{startsWith:function(e){var t=l(u(this));d(e);var n=o(m(arguments.length>1?arguments[1]:void 0,t.length)),a=l(e);return h?h(t,a,n):f(t,n,n+a.length)===a}})}}]);
2//# sourceMappingURL=ip.3370.1473ded9796fae753873.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.