1"use strict";(self.webpackChunkvinnova=self.webpackChunkvinnova||[]).push([[6007],{594:function(t,e,i){i.r(e),i.e(1848).then(i.bind(i,644));var a={eventFire:function(t,e){if(t.fireEvent)t.fireEvent("on"+e);else{var i=document.createEvent("Events");i.initEvent(e,!0,!1),t.dispatchEvent(i)}},formSubmitted:function(){location.reload()},waitForAlForm:function(){var t=this,e=document.getElementsByClassName("al-form");if(null!=e&&e.length>0){var i=e[0].getElementsByTagName("input"),a=$(e).first().find("a");if(a.text().indexOf("personuppgifter")>-1){var n=$("#personal-data");n.length&&(n.attr("href",a.attr("href")),a.hide(),n.show())}var r=document.getElementsByClassName("module-apsis-subscribe-block")[0].getElementsByTagName("img");null!=r&&r.length>0&&[].forEach.call(r,(function(t){"0"===t.getAttribute("width")&&"0"===t.getAttribute("width")&&(t.setAttribute("aria-hidden",!0),t.setAttribute("alt",""))}));for(var s=0;s<i.length;s++){var o=i[s].getAttribute("type");if(o&&"button"==o)$(i[s]).on("click touchstart",(function(){var e=!0,a=document.getElementsByClassName("al-input-field");for(s=0;s<a.length;s++){var n=a[s];$(n).find("input").each((function(){"1"===$(this).attr("data-mandatory")&&("checkbox"==$(this).attr("type")?$(this).is(":checked")||(e=!1):$(this).val()||(e=!1))}))}if(e){var r=$("div[data-check-tags]").attr("data-check-tags");if(r)$(".al-input-field").each((function(){var t=$(this).children("input");for(s=0;s<this.children.length;s++){var e;null!=(e=t[s])&&null!=e.attributes&&null!=e.attributes.id&&r.includes(e.attributes.id.value)>0&&($(e).click(),$(e).click())}}));var o=$("div[data-form-guid]").attr("data-form-guid");if(o){var l=new Date,u=l.getFullYear();l.setFullYear(u+2),document.cookie="_vinnova_apsisSubmitted"+o+"=; expires="+l.toString()+"; path=/;"}setTimeout((function(){t.formSubmitted()}),1e3),i[s].ontouchstart=function(){eventFire(this,"click")}}}))}$(".al-form-reset-button").on("click",(function(){var t=document.cookie,e=t.indexOf("pe_data=Fform_name"),i=t.substring(0,e),a=i.substring(i.lastIndexOf(";")+2,e-1);document.cookie=a+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";for(var n=document.cookie.split(/=[^;]*(?:;\s*|$)/),r=0;r<n.length;r++)/^_vinnova_ApsisCookie/.test(n[r])&&(document.cookie=n[r]+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;");for(r=0;r<n.length;r++)/^_vinnova_FirstTimeCookie/.test(n[r])&&(document.cookie=n[r]+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;");for(r=0;r<n.length;r++)/^_vinnova_apsisSubmitted/.test(n[r])&&(document.cookie=n[r]+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;");location.reload()}));var l=$("div[data-show-tags]").attr("data-show-tags");if(l)(d=$(".al-input-field")).each((function(){var t=$(this).children("label").first(),e=$(this).children("input").first();t.text();var i=$(this).find("input");if(i.length&&"checkbox"!=i[0].type&&(i[0].placeholder="[email protected]",t.hide()),"Mejladress*"==t.text()&&$(this).addClass("email-input"),l.indexOf(t.attr("for"))>=0){e=$(this).children("input"),t=$(this).children("label");for(s=0;s<this.children.length;s++){var a,n;a=e[s],n=t[s+1],null!=a&&null!=a.attributes&&null!=a.attributes.id&&(l.includes(a.attributes.id.value)>0||($(a).hide(),$(n).hide()))}}else null!=e&&null!=e.attr("data-mandatory")&&1==e.attr("data-mandatory")&&e.attr("data-mandatory",0),$(this).addClass("input-is-hidden"),$(this).hide()})),d.length-$(".input-is-hidden").length==1&&$(".al-form").addClass("only-one");var u=$("div[data-check-tags]").attr("data-check-tags");if(u){var d=$(".al-input-field");document.cookie,d.each((function(){var t=$(this).children("input");for(s=0;s<this.children.length;s++){var e;null!=(e=t[s])&&null!=e.attributes&&null!=e.attributes.id&&u.includes(e.attributes.id.value)>0&&$(e).prop("checked","checked")}}
1))}}else{var c=this;setTimeout((function(){c.waitForAlForm()}),500)}$(".module-apsis-subscribe-block").css("opacity",1)},init:function(){var t=$("div[data-form-id]").attr("data-form-id");t&&(new ApsisForms.FormbuilderInstance).init({formId:t.substring(4)});var e=this;setTimeout((function(){e.waitForAlForm()}),500)}};e.default=a}}]);
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.